[very annoying] Under water air supply
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.
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.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
[very annoying] Under water air supply
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.
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.
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.

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.

97


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.


97
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
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.
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
- Ultraviolet
- Posts: 1152
- Joined: Tue Jul 15, 2003 9:08 pm
- Location: PROJECT DETAILS CLASSIFIED.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
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);
}
}

- MasterOFDeath
- ... in rememberance ...
- Posts: 2024
- Joined: Sat Apr 03, 2004 10:58 am
- MasterOFDeath
- ... in rememberance ...
- Posts: 2024
- Joined: Sat Apr 03, 2004 10:58 am