Polyobjects and Crushing Corpses

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Polyobjects and Crushing Corpses

Postby Enjay » Mon Jan 04, 2021 12:24 pm

Can PolyObjects be made to crush corpses in the same way that regular doors do? I can't seem to make it happen.

Even the crushing type of PolyObject doesn't do it (which I don't want to use anyway because I don't want the player to be hurt by doors).
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Polyobjects and Crushing Corpses

Postby Gez » Mon Jan 04, 2021 2:08 pm

Enjay wrote:Can PolyObjects be made to crush corpses in the same way that regular doors do? I can't seem to make it happen.

I made a patch for that long ago but the feature got hidden behind an obscure MAPINFO flag.
Gez
 
 
 
Joined: 06 Jul 2007

Re: Polyobjects and Crushing Corpses

Postby Enjay » Mon Jan 04, 2021 3:19 pm

That sounds exactly like what I want... but I can't get it to work. :oops:

I take it that I'm just meant to add Grinding_Polyobj to the map definition?

If so, it doesn't seem to do it, at least with how I have my poly's set up. Test example attached with a nice wide door that it's easy to summon bad guys into the path of and kill them.
You do not have the required permissions to view the files attached to this post.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Polyobjects and Crushing Corpses

Postby Gez » Mon Jan 04, 2021 3:40 pm

Must have been broken at some point and nobody noticed because, well, it's been hidden behind an obscure MAPINFO setting that nobody ever uses.
Gez
 
 
 
Joined: 06 Jul 2007

Re: Polyobjects and Crushing Corpses

Postby phantombeta » Mon Jan 04, 2021 4:03 pm

Polyobject crushing is handled in FPolyObj::ThrustMobj. That function, however, checks if the actor has the SHOOTABLE flag or is a player. And actors lose the SHOOTABLE flag on death, so that'll never actually trigger for corpses.
User avatar
phantombeta
Tired of being treated like trash by control freaks
 
Joined: 02 May 2013

Re: Polyobjects and Crushing Corpses

Postby Enjay » Mon Jan 04, 2021 4:38 pm

OK, well if it's meant to work but doesn't. I'll raise a bug report so that it doesn't get lost.

[edit] Done viewtopic.php?f=2&t=71101 [/edit]
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest