Page 1 of 1
How does the Crush state works?
Posted: Sun Sep 10, 2006 5:23 pm
by Nash
I tried giving my actor (which has health; basically I'm trying to make a gibbable dead body) a +CORPSE flag but it doesn't get crushed under doors/ceiling etc.
How exactly does the engine determine if the actor can be crushed or not?
Posted: Mon Sep 11, 2006 2:06 am
by Graf Zahl
It has to be a corpse with health 0 or lower.
Posted: Mon Sep 11, 2006 2:30 am
by Nash
Okay, thanks for the info.
(Hmm this is gonna be tricky...)
Posted: Mon Sep 11, 2006 5:58 pm
by Medricel
Hmm, maybe some usage of
A_SpawnItem to make an invisible, 0-health thing whose crush state calls
A_KillMaster to kill the corpse?
Posted: Mon Sep 11, 2006 6:44 pm
by Nash
Yeah, I've thought about using parent/child relationships. Thanks anyway!