CANCRUSH state keyword / Flag

Moderator: GZDoom Developers

User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

CANCRUSH state keyword / Flag

Post by Onar4241 »

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.
User avatar
Enjay
 
 
Posts: 27294
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: CANCRUSH state keyword

Post by Enjay »

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]
User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

Re: CANCRUSH state keyword

Post by Onar4241 »

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]
Please make it a state keyword or a flag! Both ways work! I want those goddamn corpses to get crushed...
User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

Re: CANCRUSH state keyword / Flag

Post by Onar4241 »

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

Re: CANCRUSH state keyword / Flag

Post by Graf Zahl »

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.
User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

Re: CANCRUSH state keyword / Flag

Post by Onar4241 »

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.
The corpse is shootable in my case.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: CANCRUSH state keyword / Flag

Post by Graf Zahl »

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.
User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

Re: CANCRUSH state keyword / Flag

Post by Onar4241 »

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.
Then CANCRUSH state keyword/flag IS needed.
User avatar
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

Post by Matt »

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...
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: CANCRUSH state keyword / Flag

Post by Xaser »

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.
User avatar
Leonard2
Posts: 313
Joined: Tue Aug 14, 2012 6:10 pm

Re: CANCRUSH state keyword / Flag

Post by Leonard2 »

He probably set 0x7FFFFFFF health or something like that to make the corpse shootable.
Did you try giving it a Pain.Crush state?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: CANCRUSH state keyword / Flag

Post by Graf Zahl »

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.)
User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

Re: CANCRUSH state keyword / Flag

Post by Onar4241 »

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.)
That is why I need that state keyword/flag added in the game so it excludes the health check.
User avatar
edward850
Posts: 5902
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: CANCRUSH state keyword / Flag

Post by edward850 »

Not really, no. If the actor isn't dead, they have no business going anywhere near crush actions, including the state.
User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

Re: CANCRUSH state keyword / Flag

Post by Onar4241 »

So I suppose shootable corpses that crush under crushers will never be possible.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”