LOS check fails when above swimmable 3D floor water

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
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

LOS check fails when above swimmable 3D floor water

Post by Player701 »

There seems to be a problem with line of sight checking if the enemy is underwater and the player is above the surface. It appears that LOS checks will fail as long as the player is in the same sector that has the swimmable 3D floor applied to it.

Attached to this post is a test map to demonstrate the bug. The testing procedure is as follows:
  1. Go to MAP01 and immediately enable god or noclip so that you won't be kicked back by enemy attacks.
  2. Notice that the Chaingun Guy sees you. Type "warp -440 -75 0" in the console to trigger the buggy behavior.
  3. At this point, the Chaingun Guy doesn't seem to have a clue where you are, despite there being a direct line of sight between you and the enemy. As long as you stay close enough to the water but don't go into it, you will not be seen. This is also evident if you enable the fly cheat and float above the surface. You can only make the enemy see you by either submerging yourself into the water, or by going back to the starting point and hoping the enemy gets a clear line of sight.
Interestingly enough, this doesn't seem to happen with non-solid 3D floors, only swimmable 3D floors are affected. Haven't tested Transfer_Heights water yet.

Tested in GZDoom 3.6.0, g3.7pre-187-g705c87c6c
Attachments
MAP01.wad
(3.89 KiB) Downloaded 13 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: LOS check fails when above swimmable 3D floor water

Post by Graf Zahl »

Just a stupid typo caused by autocompletion...

Fixed.
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: LOS check fails when above swimmable 3D floor water

Post by Player701 »

Confirmed: LOS checks work fine with 3D floor water as of g3.7pre-210-g9661c3b53. However, Transfer_Heights-based water seems to block all LOS checks regardless of the sector the player is in. Is it supposed to be like that?

New test map attached.
Attachments
MAP01_TransferHeights.wad
(3.87 KiB) Downloaded 12 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: LOS check fails when above swimmable 3D floor water

Post by Graf Zahl »

Yes, that is intentional.
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: LOS check fails when above swimmable 3D floor water

Post by Player701 »

All right then. Thank you for fixing this.
Post Reply

Return to “Closed Bugs [GZDoom]”