OpenXcom Forum

Modding => OpenXcom Extended => OXCE Support => Topic started by: The Martian on May 02, 2020, 11:07:17 am

Title: [Answered] Questions about zombieUnit
Post by: The Martian on May 02, 2020, 11:07:17 am
(Question #1): No zombifying enemy units?

I noticed that when shooting X-Com units with a weapon that has the zombieUnit: variable they change into a zombie on death as expected.

However if an enemy unit is struck and killed with the same weapon they do not become a zombie.

Is there a way around this?
(I don't mind if the spawned unit from the dead enemy is hostile, in fact that would be ideal)

(Question #2): Can zombieUnit: be made to only effect specific genders?

Is it possible to use zombieUnitByArmorMale: and / or zombieUnitByArmorFemale: to make it so that soldiers of one gender are turned into zombies on death while the others simply die from the same attack?

(Question #3): Can it be made so some armors spawn zombies on death but not others?

Can the zombieUnitByType: variable be used to allow weapons that can zombifying units but only effect soldiers equipped (Or not equipped) with specific armors causing any other ones to just die normally when struck?
Title: Re: (OXCE) Questions about zombieUnit:
Post by: Yankes on May 02, 2020, 02:44:30 pm
Zombie spawning is exposed to scripts, you can affect chance of it happening and recently you can alter what exactly unit will spawn.
Title: Re: (OXCE) Questions about zombieUnit:
Post by: The Martian on May 04, 2020, 03:36:11 pm
I'll continue to read up on scripting to pursue that method.

Thank you for the help.