OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Surrealistik on January 01, 2023, 03:33:51 pm
-
It would be nice to have additional parameters for zombification such as:
for weapons:
ZombificationOnDamage: int (zombification chance will only fire if the target takes at least X damage from the zombifying attack after armor/resistances, not on hit)
ZombificationOnKill: true/false (zombification chance will only fire if the target is normally killed by the zombifying attack)
ZombificationChanceRanged: int (zombification probability for the ranged element of this weapon)
ZombificationChanceMelee: int (zombification probability for the melee element of this weapon)
and for armors, so you have options other than straight up immunity:
ZombificationResistAbsolute: int (reduces the chance of zombification by this flat amount to a minimum of 0; modifies specialChance/ZombificationChanceRanged)
ZombificationResistPercent: int (reduces the chance of zombification by this percent to a minimum of 0; modifies specialChance/ZombificationChanceMelee)
-
Good news, all this functionality is already available via scripting.
-
Good news, all this functionality is already available via scripting.
Even more, you can decide WHAT will spawn
-
Good news, all this functionality is already available via scripting.
Was hoping for a convenient standardization of these parameters.
Unfortunately, while such a script can be produced, it is unlikely to be shared between projects, and I'm certain this functionality would be desired by many mods.
-
Sorry, but that is not a valid argument.
The scripts can easily be written in a way that they can be shared.
You can also add tags that will be called exactly as you proposed above on exactly the same entities, and can be used as any other attributes.
PS:
Adding new parameters to anything that has been converted to support scripts is out of scope of OXCE.
Maintaining backwards-compatibility between scripts and new parameters is very time consuming and also leads to very hard to read code.
Both Yankes and I rather invest time into something that is not available yet.
-
While Hatching Chryssalids and Tentaculats (https://openxcom.old.mod.io/hatching-chryssalids-and-tentaculats) isn't exactly what you are asking for, it might still serve as a base for writing your own script.
-
Even more, you can decide WHAT will spawn
On this note, there doesn't currently appear to be a good way in a script to reference and utilize zombieUnitByArmorMale/zombieUnitByArmorFemale or otherwise create indices/switches for more dynamic zombification transforms that varies depending on the unit being zombified.
-
Yes, this is used only in engine to determine default transformation but there should not be any problem to expose it to scripts too.
When I will have more free time I will look how best would be expose it to y-scripts.