The Ultimate DooMer wrote:I found this today when playing SSD with 2.0.53: APROP_Invulnerable does not protect against damage done to you by hitting manikins.
That's because you need to make the voodoo doll invulnerable, too. Invulnerability is no match against voodoo unless the doll is protected.
Using the next ZDoom with
enter scripts fixed, you can do this by giving the voodoo dolls the same TID as the player:
Code: Select all
script 1 enter
{
Thing_ChangeTID (0, PlayerNumber()+1);
}
and then when you want the player to be invulnerable, use the TID instead of 0:
Code: Select all
SetActorProperty (PlayerNumber()+1, APROP_Invulnerable, TRUE);
Change the +1 to whatever you like if you're aready using TIDs 1-8 for something else.
[quote="The Ultimate DooMer"]I found this today when playing SSD with 2.0.53: APROP_Invulnerable does not protect against damage done to you by hitting manikins.[/quote]
That's because you need to make the voodoo doll invulnerable, too. Invulnerability is no match against voodoo unless the doll is protected.
Using the next ZDoom with [url=http://forum.zdoom.org/viewtopic.php?t=1144]enter scripts fixed[/url], you can do this by giving the voodoo dolls the same TID as the player:
[code]script 1 enter
{
Thing_ChangeTID (0, PlayerNumber()+1);
}[/code]
and then when you want the player to be invulnerable, use the TID instead of 0:
[code]SetActorProperty (PlayerNumber()+1, APROP_Invulnerable, TRUE);[/code]
Change the +1 to whatever you like if you're aready using TIDs 1-8 for something else.