CANCRUSH state keyword / Flag

Moderator: GZDoom Developers

User avatar
Xeotroid
Posts: 436
Joined: Sat Jun 23, 2012 7:44 am
Graphics Processor: nVidia with Vulkan support
Location: Czech Rep.

Re: CANCRUSH state keyword / Flag

Post by Xeotroid »

You could give the actor a very high sensitivity to crush damage type and then use a Death.Crush state to get it to work. Try something like this, though I don't know if it works:

Code: Select all

ACTOR WhyNotBoth : Eldunari
{
  DamageFactor "Crush", 20.0
  //other properties
  States
  {
  //spawn code etc.

  Death.Crush: //death when crushed
    GIBS ABCD 1
    GIBS E -1
    Stop
  Death: //normal death by guns or something
    LAMP FG 1
    LAMP H -1
    Stop
  }
}
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: CANCRUSH state keyword / Flag

Post by Gez »

That'll work for crushing them under damaging crushers, but not for squishing them under closing doors or other non-damaging sector movements.
User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

Re: CANCRUSH state keyword / Flag

Post by Onar4241 »

Now that I think of it, how can monsters get crushed then? They are shootable. I found a workaround by using the SOLID flag, but on "tall corpses", I can't pass through them, so I used the THRUACTORS flag and everything is working as expected. Except that doors can not crush the corpse.
User avatar
Arctangent
Posts: 1235
Joined: Thu Nov 06, 2014 1:53 pm
Contact:

Re: CANCRUSH state keyword / Flag

Post by Arctangent »

Onar4241 wrote:Now that I think of it, how can monsters get crushed then? They are shootable.
Put a living monster under a door. Now close the door.

Afterwards, kill it, and close the door again.
User avatar
Xeotroid
Posts: 436
Joined: Sat Jun 23, 2012 7:44 am
Graphics Processor: nVidia with Vulkan support
Location: Czech Rep.

Re: CANCRUSH state keyword / Flag

Post by Xeotroid »

So how about making the flag cause the actor die instantly and go to Crush state afterwards when a door touches it? Or just bypass the death, just make it detect the door (dead monsters can do it, so why not other actors) and if it does, go to Crush state.
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: CANCRUSH state keyword / Flag

Post by Xaser »

Yeah, re-reading this again, a flag that allows actors to be insta-killed+insta-crushed would indeed be handy for special cases like this (or "destructible objects" in general). [Not needed] isn't accurate.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: CANCRUSH state keyword / Flag

Post by edward850 »

Honestly, I thought that's what +TOUCHY did already. :P

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

Re: CANCRUSH state keyword / Flag

Post by Onar4241 »

edward850 wrote:Honestly, I thought that's what +TOUCHY did already. :P

+TOUCHYTOSECTORS?
Whatever does what I want is needed so I say yes to "TOUCHYTOSECTORS" flag.
User avatar
NeuralStunner
 
 
Posts: 12326
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: CANCRUSH state keyword / Flag

Post by NeuralStunner »

edward850 wrote:Honestly, I thought that's what +TOUCHY did already. :P

+TOUCHYTOSECTORS?
Under the circumstances, I vote for "CRUNCHY". :P
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”