CANCRUSH state keyword / Flag
Moderator: GZDoom Developers
CANCRUSH state keyword / Flag
I tried to make a shootable dead body with the +SHOOTABLE and the +CORPSE flags, but it doesn't crush under crushers. How about adding CANCRUSH state keyword which makes them able to crush?
Last edited by Onar4241 on Sat Sep 20, 2014 2:18 pm, edited 1 time in total.
Re: CANCRUSH state keyword
Don't know if this will work (I suspect not because the default one should do it) but did you also try giving them a crush state?
[edit] Never mind, I just saw the editing post where a crush state sequence was mentioned. [/edit]
[edit] Never mind, I just saw the editing post where a crush state sequence was mentioned. [/edit]
Re: CANCRUSH state keyword
Please make it a state keyword or a flag! Both ways work! I want those goddamn corpses to get crushed...Enjay wrote:Don't know if this will work (I suspect not because the default one should do it) but did you also try giving them a crush state?
[edit] Never mind, I just saw the editing post where a crush state sequence was mentioned. [/edit]
Re: CANCRUSH state keyword / Flag
Bumped this to see if any progress has been made into this? I know developers are busy but I would like to know what happened to this one.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: CANCRUSH state keyword / Flag
There's nothing to do here, you just have to give your corpse some negative health because that's being checked for when crushing stuff.
Re: CANCRUSH state keyword / Flag
The corpse is shootable in my case.Graf Zahl wrote:There's nothing to do here, you just have to give your corpse some negative health because that's being checked for when crushing stuff.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: CANCRUSH state keyword / Flag
Corpses should not be shootable. That's completely irrelevant for crushing. The only checks are for the CORPSE flag and whether health is less or equal than zero.
Re: CANCRUSH state keyword / Flag
Then CANCRUSH state keyword/flag IS needed.Graf Zahl wrote:Corpses should not be shootable. That's completely irrelevant for crushing. The only checks are for the CORPSE flag and whether health is less or equal than zero.
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: CANCRUSH state keyword / Flag
Is there a way to set health to an arbitrary number? I recall some discussion a few months back saying that you could not for some important reasons...
Re: CANCRUSH state keyword / Flag
If I'm understanding Graf correctly, this should indeed be possible, i.e. there's probably something else wrong in the OP's DECORATE code. Best to post it to make sure.
Re: CANCRUSH state keyword / Flag
He probably set 0x7FFFFFFF health or something like that to make the corpse shootable.
Did you try giving it a Pain.Crush state?
Did you try giving it a Pain.Crush state?
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: CANCRUSH state keyword / Flag
The problem is that being crushable by doors and being shootable are mutually exclusive properties.
For being shootable an actor's health needs to be positive and for being crushable it needs to be non-positive. (0 or negative.)
For being shootable an actor's health needs to be positive and for being crushable it needs to be non-positive. (0 or negative.)
Re: CANCRUSH state keyword / Flag
That is why I need that state keyword/flag added in the game so it excludes the health check.Graf Zahl wrote:The problem is that being crushable by doors and being shootable are mutually exclusive properties.
For being shootable an actor's health needs to be positive and for being crushable it needs to be non-positive. (0 or negative.)
Re: CANCRUSH state keyword / Flag
Not really, no. If the actor isn't dead, they have no business going anywhere near crush actions, including the state.
Re: CANCRUSH state keyword / Flag
So I suppose shootable corpses that crush under crushers will never be possible.

