Stackable corpses

Post your example zscripts/ACS scripts/etc here.

Stackable corpses

Postby Hey Doomer » Sat Sep 25, 2021 3:59 am

Ah the problem of "solid" corpses that stack like cordwood.

Well this seems to work:

https://i.postimg.cc/7YYZDNpp/stacked.png

Note the chaingun guy is on top of the others, as the debug boxes show. (His corpse shadow is under the shotgun guy.)

Here's how it works: whenever a thing dies and has health below 1, it spawns a bridge (called Box, but it's basically the InvisibleBridge actor) slightly above the floor. These may or may not overlap depending on x,y collision. The monsters will still always follow x,y paths when chasing and get stuck between or behind these boxes, but this can be changed in DECORATE (my additions in bold):

Actor Zombieman2 : Zombieman Replaces Zombieman
{
States
{
See:
TNT1 A 0 A_CheckProximity("JumpUp","Box",64)
POSS AABBCCDD 4 A_Chase
Loop
JumpUp:
POSS A 0 A_Recoil(-8)
POSS A 0 ThrustThingZ(0,8,0,0)
POSS AABBCCDD 4 A_Chase
Goto See
}
}

This adds a check for any "Box" bridge that spawns and jumps if needed to prevent being stuck, since they seem to prefer wandering around on the x,y axis.

The player will NOT get caught "inside" a monster, which is still a Doom corpse. You just walk "over" them (on the bridges) or shoot the bridges out of the way and the bodies drop.

This is far from perfect and can event look ridiculous. Since radius is fixed "piles" of bodies can look interesting like the above or have orphaned corpses hanging in mid air. It all depends on where bridges collide I think. Maybe there are different ways to tweak the numbers to reduce this, but you get the idea. In any case this works and doesn't affect anything else, including Archie's resurrections.

stackable.pk3
You do not have the required permissions to view the files attached to this post.
Last edited by Hey Doomer on Tue Sep 28, 2021 11:43 am, edited 1 time in total.
Hey Doomer
 
Joined: 25 Sep 2021
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Stackable corpses

Postby Apeirogon » Mon Sep 27, 2021 11:41 am

Whats the question, again?
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Stackable corpses

Postby Hey Doomer » Mon Sep 27, 2021 12:41 pm

Happy to post and didn't intend to suggest anything obvious as a new idea. I am fascinated at what can be done with this engine.

I've read a few threads on this forum stating that "solid" corpses would break collision physics, get players stuck inside monsters, and look stupid. Maybe. Still spawning invisible bridges seems to be one solution. Sprites vs. stepping on the dead is a discussion, I suppose.

https://i.postimg.cc/RFVRNrfW/stacked-2.png
https://i.postimg.cc/5t57XqRR/stacked-3.png
Hey Doomer
 
Joined: 25 Sep 2021
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Stackable corpses

Postby Apeirogon » Tue Sep 28, 2021 11:15 am

Scripting subforum is for "I want to do X but I cat/dont know how to do so, help", not for "I made X". Second should go to the general or script library subforum.
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Stackable corpses

Postby Hey Doomer » Tue Sep 28, 2021 11:21 am

OK dokey. Please delete this one, and I'll post in the other forum. Thanks
Hey Doomer
 
Joined: 25 Sep 2021
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Stackable corpses

Postby wildweasel » Tue Sep 28, 2021 11:24 am

Hey Doomer wrote:OK dokey. Please delete this one, and I'll post in the other forum. Thanks

No need, it's already here. :mrgreen:
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003


Return to Script Library

Who is online

Users browsing this forum: No registered users and 0 guests