OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Delian on April 21, 2024, 03:02:43 pm

Title: [DONE][Suggestion] Option to force percentageOutsideUfo on any mission
Post 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.
Title: Re: percentageOutsideUfo not functioning with customUfo+addUfo
Post by: Meridian on April 21, 2024, 03:25:58 pm
Not a bug.

It works as intended (and as documented).

Please open a suggestion, if a new functionality is desired.
Title: Re: percentageOutsideUfo not functioning with customUfo+addUfo
Post by: Delian on April 21, 2024, 03:58:04 pm
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.
Title: Re: [Answered] percentageOutsideUfo not functioning with customUfo+addUfo
Post by: Solarius Scorch on April 21, 2024, 11:57:02 pm
For what it's worth, making percentageOutsideUfo work with customUfo would be very useful to me. Seconded!
Title: Re: [Answered] percentageOutsideUfo not functioning with customUfo+addUfo
Post by: Delian on April 22, 2024, 12:17:37 am
Ok, since SS is interested and he is a modder... I edited the first post into a suggestion.
Title: Re: [DONE][Suggestion] Option to force percentageOutsideUfo on any mission
Post by: Meridian on August 16, 2024, 04:42:34 pm
Done.

Sample ruleset:

Code: [Select]
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]
Title: Re: [DONE][Suggestion] Option to force percentageOutsideUfo on any mission
Post by: Delian on August 16, 2024, 05:27:10 pm
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.