Unexpected behavior with portals and swimmable 3D floors

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: Unexpected behavior with portals and swimmable 3D floors

Re: Unexpected behavior with portals and swimmable 3D floors

by Graf Zahl » Sat May 12, 2018 9:08 am

Welcome to the wonderful world of Doom physics. As you noticed, proper behavior for portals inside swimmable water has never been implemented. That's mainly because this stuff is no natural part of the engine but rather tacked on.

Unexpected behavior with portals and swimmable 3D floors

by boris » Sat May 12, 2018 8:51 am

GZDoom doesn't seem to recognize swimmable 3D floors if the player sticks their head through a portal that has a swimmable 3D floors. Since it's a bit hard to describe in words here's an image:

Image

This has two effects:

Player does not drown if the head is in the upper part of the portal
Physics are wonky. When passing from the upper part into the lower part the player suddenly drops. The player can't just use the jump button to swim up through the portal, but just wobbles up and down, just like when pressing the jump button at a normal water surface.

Here's a video of the behavior:



In the first part you can see the sudden drop. In the second part the wobbling when jumping. And for fun you can lastly see that the player if perfectly fine (i.e. not drowning) when standing on the platform, with the head sticking through the portal.

Example WAD attached.
Attachments
waterportal.wad
(11.74 KiB) Downloaded 224 times

Top