How does the Crush state works?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
Nash
 
 
Posts: 17340
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

How does the Crush state works?

Post 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?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 48515
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

It has to be a corpse with health 0 or lower.
User avatar
Nash
 
 
Posts: 17340
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Post by Nash »

Okay, thanks for the info.

(Hmm this is gonna be tricky...)
User avatar
Medricel
Posts: 1138
Joined: Sat Nov 20, 2004 9:47 am

Post 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?
User avatar
Nash
 
 
Posts: 17340
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Post by Nash »

Yeah, I've thought about using parent/child relationships. Thanks anyway!

Return to “Editing (Archive)”