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

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

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

Postby Alper002 » Thu Nov 28, 2019 3:27 pm

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 4 times
Last edited by Alper002 on Thu Nov 28, 2019 3:42 pm, edited 1 time in total.
Alper002
 
Joined: 28 Nov 2019
Discord: Alper002#5131
Operating System: Windows 10/8.1/8 64-bit

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

Postby drfrag » Thu Nov 28, 2019 3:38 pm

That version doesn't exist AFAIK, try the latest version.
User avatar
drfrag
I.R developer, I.R smart
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain

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

Postby Alper002 » Thu Nov 28, 2019 3:41 pm

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.
Alper002
 
Joined: 28 Nov 2019
Discord: Alper002#5131
Operating System: Windows 10/8.1/8 64-bit

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

Postby _mental_ » Fri Nov 29, 2019 5:12 am

The difference is caused by a lacking of this code. It's an open question how to incorporate that thing properly.
_mental_
 
 
 
Joined: 07 Aug 2011

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

Postby Graf Zahl » Fri Nov 29, 2019 5:43 am

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.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


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

Postby Graf Zahl » Fri Nov 29, 2019 8:59 am

Yes, something like that. I'll have a closer look later when I'm back home.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby Gez » Fri Nov 29, 2019 9:11 am

_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 allExpand view
            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?
Gez
 
 
 
Joined: 06 Jul 2007

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

Postby Graf Zahl » Fri Nov 29, 2019 9:17 am

The mask here is the inverse of the regular one, this triggers only in those frames where the main one does not!
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Bugs

Who is online

Users browsing this forum: No registered users and 20 guests