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

Polyobjects and Crushing Corpses

Post by Enjay »

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).
Gez
 
 
Posts: 17805
Joined: Fri Jul 06, 2007 3:22 pm

Re: Polyobjects and Crushing Corpses

Post by Gez »

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

Re: Polyobjects and Crushing Corpses

Post by Enjay »

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.
Gez
 
 
Posts: 17805
Joined: Fri Jul 06, 2007 3:22 pm

Re: Polyobjects and Crushing Corpses

Post by Gez »

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.
User avatar
phantombeta
Posts: 2062
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Polyobjects and Crushing Corpses

Post by phantombeta »

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
Enjay
 
 
Posts: 26476
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Polyobjects and Crushing Corpses

Post by Enjay »

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]

Return to “Mapping”