OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Delian on April 21, 2024, 03:02:43 pm
-
When a deployment for a mission site (alien mission with objective: 3) uses customUfo setting and then uses an addUFO mapscript command, the added ufo is currently not recognized as an actual ufo, so in the deployment data, the percentageOutsideUfo setting of the deployed units is ignored when placing units on the map.
I suggest that the functionality of "percentageOutsideUfo" be extended to work for mission sites that had a custom ufo placed on them. This would make it easier for modders to control how enemy units are deployed on such missions.
-
Not a bug.
It works as intended (and as documented).
Please open a suggestion, if a new functionality is desired.
-
Ah, sorry, didn't read documentation carefully enough. As for making a suggestion, I can't, because I'm not a modder and it's not a QoL suggestion.
However, one thing I can say is that most deployments in XPZ have custom (not 0 or 100) percentageOutsideUfo value set for each unit, even though it doesn't function. So I can only assume that Dio thought percentageOutsideUfo worked for mission sites as he put some thought into what value to set each time.
Well, nevermind then. Can be closed.
-
For what it's worth, making percentageOutsideUfo work with customUfo would be very useful to me. Seconded!
-
Ok, since SS is interested and he is a modder... I edited the first post into a suggestion.
-
Done.
Sample ruleset:
alienDeployments:
- type: STR_TERROR_MISSION
forcePercentageOutsideUfo: true # percentageOutsideUfo will be forced even though this is not UFO crash/landing site
customUfo: STR_HARVESTER
mapScripts:
- type: URBAN
commands:
- type: addUFO
- type: addCraft
- type: fillArea
blocks: [3, 4, 10, 11, 12, 13, 14]
freqs: [3, 3, 2, 2, 2, 2, 2]
-
Great. Deployments in XPZ are troubled with bugs where all the units would either spawn inside a building (custom ufo), or outside. This will make fixing such bugs and customizing deployments in general much easier.