Lagi wrote:In my mod, enemies are often cut in pieces. I test that, the blood pool is not being created on the limbs that are spawn, only under main corpse. Any idea if You could or how I could fix it?
f.ex: I would like the top torso of ophidian to also create pool of blood under.
Spoiler: my snake death code
Code: Select all
actor SnakeTorso
{
// an actor must be a monster to enable NashGore code
Monster
// don't add to the kill counter
-COUNTKILL
States
{
Spawn:
TNT1 A 0 NoDelay
{
// mark this actor as NashGore-enabled
A_GiveInventory("NashGoreActor", 1);
// an actor must "officially die" to trigger NashGore's death logic
A_Die();
}
// rest of your code
}
}
(the above code assumes you are using DECORATE... if you are using ZScript, do the necessary adjustments to the code, like adding a Default block, and changing the class definition syntax, etc)