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

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Hexen lava does not damage you when you land on it.

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

by Graf Zahl » Fri Nov 29, 2019 8:17 am

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

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

by Gez » Fri Nov 29, 2019 8: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 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?

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

by Graf Zahl » Fri Nov 29, 2019 7:59 am

Yes, something like that. I'll have a closer look later when I'm back home.

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

by _mental_ » Fri Nov 29, 2019 7:55 am

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

by Graf Zahl » Fri Nov 29, 2019 4: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.

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

by _mental_ » Fri Nov 29, 2019 4:12 am

The difference is caused by a lacking of this code. It's an open question how to incorporate that thing properly.

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

by Alper002 » Thu Nov 28, 2019 2: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.

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

by drfrag » Thu Nov 28, 2019 2:38 pm

That version doesn't exist AFAIK, try the latest version.

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

by Alper002 » Thu Nov 28, 2019 2: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 30 times

Top