[won't change] Dead-but-Solid items aren't solid
Posted: Sat Oct 07, 2006 9:45
Consider this actor:
A load of these things are placed on the map one above the other at different heights and killed by a script when the level starts. They should fall on top of each other creating a pile of dead demons. At level start they do indeed "sit" on top of each other in 3D; however, when killed, they don't block each other as they ought to, but instead all fall in the same place with no height variation. Even placing an explicit call to A_SetSolid() in the second death state has no effect!
It is definitely the death code in the engine that is causing the problem; they do indeed "sit" on top of each other in the intended way until they are killed. Even explicitly giving them the same DeathHeight as their "normal" height makes no difference.
Code: Select all
ACTOR DemonSolid : Demon 15959
{
//
// This is a demon that is solid when dead
//
// This is needed to create a pile of dead demons of
// which some can be resurrected for a special effect.
//
//$Category butchery
//
DeathHeight 10
States
{
Death:
SARG I 8
SARG J 8 A_Scream
SARG K 4
SARG L 4 // note the removal of A_NoBlocking
SARG M 4
SARG N -1
Stop
}
}
It is definitely the death code in the engine that is causing the problem; they do indeed "sit" on top of each other in the intended way until they are killed. Even explicitly giving them the same DeathHeight as their "normal" height makes no difference.