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.

How does the Crush state works?

Postby Nash » Sun Sep 10, 2006 5:23 pm

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
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

Postby Graf Zahl » Mon Sep 11, 2006 2:06 am

It has to be a corpse with health 0 or lower.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Postby Nash » Mon Sep 11, 2006 2:30 am

Okay, thanks for the info.

(Hmm this is gonna be tricky...)
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

Postby Medricel » Mon Sep 11, 2006 5:58 pm

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
Medricel
26 is the new 18 is the new 11!
 
Joined: 20 Nov 2004

Postby Nash » Mon Sep 11, 2006 6:44 pm

Yeah, I've thought about using parent/child relationships. Thanks anyway!
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes


Return to Editing (Archive)

Who is online

Users browsing this forum: No registered users and 1 guest