nicked on 6/7/2014 at 16:46
I think I may have hit a hard-coded part of the zombie's scripts. I want to have a special undead which is immune to all the normal undead-hurting stuff like holy water, fire, flash bombs etc. but can be destroyed by a custom stim. The custom stim is applied by a sword.
I'm using fire, flash bombs and holy water elsewhere in the mission so I can't just repurpose one of those stims for the sword.
I suppose I could change all the holy water to use a Holy2 stim or something and just put a holy stim on the sword, but I'd rather avoid a bodge job if there's a better way.
I currently have the new undead as a child of ZombieTypes, although it doesn't really need to be.
I also can't seem to prevent SlashStims etc. from knocking the guy over into possum mode - if I give him a SlashStim receptron of Amplify x0, the custom stim on the sword stops having any effect.
Urgh, maybe I should just start again...
TL;DR - I want a custom enemy that cannot be harmed in any way except by one specific sword, which will explode it.
Nameless Voice on 7/7/2014 at 12:15
It sounds like you made your custom sword stim a child of SlashStim. Any recptrons for a stim will also trigger for any child stims.
The simplest way is to simply add abort receptrons for all the things that normally kill zombies. However, instead of setting No Min and No Max on HolyStim, set it to No Min and set the max some high number, like 100.
Then add a receptron for your SpecialSword Stim: Stimulate Object, Me, by HolyStim, Intensity 150 (e.g. above the abort max).
That should do it.
nicked on 8/7/2014 at 07:00
That did the trick, thanks! Set the sword to do 200 holy damage and an abort receptron for holy up to 100. Now holy water arrows have no effect, and the sword makes em splat. :)