[very annoying] Under water air supply

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

[very annoying] Under water air supply

Post by Graf Zahl »

Yes, the issue came up again:

http://forum.zdoom.org/viewtopic.php?t=5186


So how about adding a MAPINFO flag that can set the air supply time under water. And if it is set to 0 there is no underwater damage?

This 10 second limit makes any attempt to create decent underwater levels a futile effort.
User avatar
Enjay
 
 
Posts: 26979
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

Yes please. :yup:
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

In Hexen 2 and Heretic 2, there's a powerup that allows you to hold your breath longer underwater. Maybe this could be made into a powerup for zdoom as well?
User avatar
Enjay
 
 
Posts: 26979
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

The powerup sounds cool, but being able to remove (or extend) the oxygen time would be very, very useful for all sorts of reasons. Aside from anything else, the Doomguy is wearing a helmet. :P ;)

Perhaps another special or thing could also be added, with a similar mapinfo flag (actually, maybe the special already exists because some Strife levels already behave like this). I mean to have sectors that start damaging after you have been in them for a defined period of time - but without making them swimable. I know scripting can do this, it's just a suggestion. However, the swimable water mapinfo flag gets two thumbs up from me. :thumb: :thumb:



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

Post by Graf Zahl »

Anakin S. wrote:In Hexen 2 and Heretic 2, there's a powerup that allows you to hold your breath longer underwater. Maybe this could be made into a powerup for zdoom as well?

That might also be a good idea. But the hard coded 10 second limit is too rigid. You can't do anything with it. Just think about the cool underwater levels in SSD which were such a pain to play because you had to be extremely careful with your air supply. It was no fun. You can make levels where 10 seconds is a good time but there are also cases where the air supply should last longer by default to make them playable.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Anakin S. wrote:In Hexen 2 and Heretic 2, there's a powerup that allows you to hold your breath longer underwater. Maybe this could be made into a powerup for zdoom as well?
*coughcoughRadSuitcough*
User avatar
bimshwel
Posts: 725
Joined: Tue Jul 15, 2003 5:15 pm
Location: misplaced
Contact:

Post by bimshwel »

You should see a doctor about that.
User avatar
Ultraviolet
Posts: 1152
Joined: Tue Jul 15, 2003 9:08 pm
Location: PROJECT DETAILS CLASSIFIED.

Post by Ultraviolet »

Also useful would be a player airtimer aprop to set. You could do stuff like the bubbles in Alice.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Good idea. Water would be so much more useful if the mapper had more control over it...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Code: Select all

		// Handle air supply
		if (level.airsupply>0)
		{
			if (player->mo->waterlevel < 3 ||
				(player->mo->flags2 & MF2_INVULNERABLE) ||
				(player->cheats & CF_GODMODE))
			{
				player->air_finished = level.time + level.airsupply*TICRATE;
			}
			else if (player->air_finished <= level.time && !(level.time & 31))
			{
				P_DamageMobj (player->mo, NULL, NULL, 2 + 2*((level.time-player->air_finished)/TICRATE), MOD_WATER);
			}
		}
Do it yourself! ;) Of course it also needs the new option added to MAPINFO.
Ajapted
Posts: 71
Joined: Sat Apr 16, 2005 3:50 am
Location: Tasmania

Post by Ajapted »

Give the player things in DECORATE a "lungcapacity" property.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

No. This should be configurable by level, not by player class.
User avatar
MasterOFDeath
... in rememberance ...
Posts: 2024
Joined: Sat Apr 03, 2004 10:58 am

Post by MasterOFDeath »

I want translucent water damnit. :evil: :evil: :cry:

Heh, but anyways, the idea of increased air supply is awesome. Maybe in this new map I'm making I could make good use of it (see my title, and no its not a jokewad. ;P )
User avatar
Kirby
Posts: 2697
Joined: Thu Aug 26, 2004 1:23 pm

Post by Kirby »

MasterOFDeath wrote:I want translucent water damnit. :evil: :evil: :cry:
Well, if you don't mind the player not going underneath it, you can do it with portals :)
User avatar
MasterOFDeath
... in rememberance ...
Posts: 2024
Joined: Sat Apr 03, 2004 10:58 am

Post by MasterOFDeath »

Yeah but there are 2 problems besides going underneath it.

1. Sprites get cut off.
2. Zdoom's portal coding sucks, any map with portals locks up on me within 2-7 minuites and sometimes I have to restart my PC.
Post Reply

Return to “Closed Bugs [GZDoom]”