Hexen lava does not damage you when you land on it.

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
Alper002
Posts: 5
Joined: Thu Nov 28, 2019 10:43 am

Hexen lava does not damage you when you land on it.

Post by Alper002 »

I am using GZDoom 2.4.2.4.2.4.

In vanilla/chocolate Hexen, whenever you land on the lava, you take damage. This prevents "cheesing" the timed damage like what is possible in the version of GZDoom I'm currently using, as it doesn't currently seem to include this behavior.

I provided a pig projectile spawner in the example map because it quickly illustrates the difference. In the original Hexen, you constantly bounce as a pig due to taking damage from landing on the lava. However, this does not occur in the version of GZDoom that I am currently using.

edit:corrected version number.
Attachments
LavaStep.wad
Contains quick access to lava to step and jump on for testing.
(2.2 KiB) Downloaded 30 times
Last edited by Alper002 on Thu Nov 28, 2019 2:42 pm, edited 1 time in total.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Hexen lava does not damage you when you land on it.

Post by drfrag »

That version doesn't exist AFAIK, try the latest version.
Alper002
Posts: 5
Joined: Thu Nov 28, 2019 10:43 am

Re: Hexen lava does not damage you when you land on it.

Post by Alper002 »

drfrag wrote:That version doesn't exist AFAIK, try the latest version.
Sorry, I made a mistake, I meant 4.2.4 :oops:
My bad.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Hexen lava does not damage you when you land on it.

Post by _mental_ »

The difference is caused by a lacking of this code. It's an open question how to incorporate that thing properly.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Hexen lava does not damage you when you land on it.

Post by Graf Zahl »

Make it a terrain property. That way it won't retroactively affect custom definitions. Since it needs to check the terrain for the splash anyway this is the cleanest and most versatile approach.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Hexen lava does not damage you when you land on it.

Post by _mental_ »

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Hexen lava does not damage you when you land on it.

Post by Graf Zahl »

Yes, something like that. I'll have a closer look later when I'm back home.
Gez
 
 
Posts: 17833
Joined: Fri Jul 06, 2007 3:22 pm

Re: Hexen lava does not damage you when you land on it.

Post by Gez »

_mental_ wrote:The difference is caused by a lacking of this code. It's an open question how to incorporate that thing properly.
I don't get it:

Code: Select all

            if (thing->player && leveltime & 31)
            {
                P_DamageMobj(thing, &LavaInflictor, NULL, 5);
}
There's still the "leveltime & 31" mask going on, so it should only happen if P_HitFloor is called during the proper tic, right?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Hexen lava does not damage you when you land on it.

Post by Graf Zahl »

The mask here is the inverse of the regular one, this triggers only in those frames where the main one does not!
Post Reply

Return to “Closed Bugs [GZDoom]”