Difference between revisions of "Damaging floor"

From DoomWiki.org

[unchecked revision][unchecked revision]
(Technical information: other levels like that)
(Technical information)
Line 50: Line 50:
 
(Damage is halved, rounded down, at [[skill level]] 1.) Thus, there can be (and are) damaging floors that do not have the usual [[animated flat|fluid appearance]], and sometimes a floor expected to be damaging because of its texture is not damaging. For instance, in [[E2M7: Spawning Vats (Doom)|E2M7: Spawning Vats]], there is a rare example of a non-[[animated flat|animated]] damaging floor, using a row of intense blue lights in a trench.
 
(Damage is halved, rounded down, at [[skill level]] 1.) Thus, there can be (and are) damaging floors that do not have the usual [[animated flat|fluid appearance]], and sometimes a floor expected to be damaging because of its texture is not damaging. For instance, in [[E2M7: Spawning Vats (Doom)|E2M7: Spawning Vats]], there is a rare example of a non-[[animated flat|animated]] damaging floor, using a row of intense blue lights in a trench.
  
A specialized damaging floor type (11) is occasionally used in the last room of a level (e.g. [[E1M8: Phobos Anomaly]]). Damage is inflicted as with type 5, but when the player's health drops below 11%, the level ends. The player's health cannot drop below 1% while within this type of sector, a fact that has strange consequences when the player is not touching the sector floor. These sectors cancel the invulnerability bestowed by the [[Doom cheat codes#All Doom versions|God mode cheat]], although the [[Invulnerability|invulnerability powerup]] is not affected. This type of damaging floor is featured once again in [[Final Doom]]'s [[The Plutonia Experiment]], Level 11: Hunted, [[Hell Revealed]]'s [[Level 32: Mostly Harmful]], [[Kama Sutra]]'s [[Level 11: Execution]] and Level 29: [[I'm Just a DOOM Addict]] and [[Plutonia 2]]'s [[Level 11: Arch-Violence]].
+
A specialized damaging floor type (11) is occasionally used in the last room of a level (e.g. [[E1M8: Phobos Anomaly]]). Damage is inflicted as with type 5, but when the player's health drops below 11%, the level ends. The player's health cannot drop below 1% while within this type of sector, a fact that has strange consequences when the player is not touching the sector floor. These sectors cancel the invulnerability bestowed by the [[Doom cheat codes#All Doom versions|God mode cheat]], although the [[Invulnerability|invulnerability powerup]] is not affected. This type of damaging floor is featured once again in [[Final Doom]]'s [[The Plutonia Experiment]], [[MAP11: Hunted (The Plutonia Experiment)|Map 11: Hunted]], [[Hell Revealed]]'s [[MAP32: Mostly Harmful (Hell Revealed)|Map 32: Mostly Harmful]], [[Kama Sutra]]'s [[MAP11: Execution (Kama Sutra)|Map 11: Execution]] and [[MAP29: I'm Just a DOOM Addict (Kama Sutra)|Map 29: I'm Just a DOOM Addict]] and [[Plutonia 2]]'s [[MAP11: Arch-Violence (Plutonia 2)|Map 11: Arch-Violence]].
  
 
==="Leaky" radiation suits===
 
==="Leaky" radiation suits===

Revision as of 15:55, 3 April 2009

A nukage pool in Doom E1M1

Damaging floors are floors (sectors or groups of sectors) that will damage the player when he crosses them. They form part of the "dangerous Doom environment" described in the game booklets:

Slime and other radioactive waste: Many of the areas in Doom contain pools of dangerous liquids that will damage you if you walk through them. There are several varieties of waste, each doing increasing damage. If it looks fluid, beware!

Since the damaging effects are determined independently from the flats used on their area, they may be used to stand for different types of hazards and substances, according to the graphics chosen for the floor, such as green slime or lava, and any associated hints. Flaming wall textures may reinforce the idea of a very hot area, radioactive warning signs that "nukage" has leaked, and a level name like Toxin Refinery that hazardous organic substances abound.

Despite the damaging effects, it is often necessary to cross a damaging floor during play. Crossing as quickly as possible minimizes the damage. If the player has armor, then the damage is split between health and armor. Also, the radiation suit protects the player from damaging floors for a limited time.

Monsters are not affected by damaging floors.

There is a very short period, once a player touches the floor, during which the player receives no damage. Because of this, in those engines that allow jumping (such as Hexen or some source ports) it it possible to avoid damage from the floors by continuously jumping.

Technical information

The fluid appearance is implemented using animated flats, which include nukage, lava, blood, and the like. Flats are also defined to implement blue water and sludge water, but these are not usually damaging.

In Doom and Heretic, it is not the flat appearance, that makes a floor damaging. The level designer assigns a special type value to make the floor of a sector damaging when the player is within the typed sector. In Hexen certain flat's are harcoded to do damagae instead of also needing a sector type (allowing the sector to have another unrelated sector type).

The following damaging floor types are found in Doom:

Sector type Damage per second Doom source code comment Other effects
7 5% Nukage damage
5 10% Hellslime damage
16 20% Super hellslime damage
4 20% Strobe hurt Light blinks each 0.5 second
11 drops steadily until below 11%; Same as Type 5 Level ends when health is below 11%. God mode cheat is nullified.

(Damage is halved, rounded down, at skill level 1.) Thus, there can be (and are) damaging floors that do not have the usual fluid appearance, and sometimes a floor expected to be damaging because of its texture is not damaging. For instance, in E2M7: Spawning Vats, there is a rare example of a non-animated damaging floor, using a row of intense blue lights in a trench.

A specialized damaging floor type (11) is occasionally used in the last room of a level (e.g. E1M8: Phobos Anomaly). Damage is inflicted as with type 5, but when the player's health drops below 11%, the level ends. The player's health cannot drop below 1% while within this type of sector, a fact that has strange consequences when the player is not touching the sector floor. These sectors cancel the invulnerability bestowed by the God mode cheat, although the invulnerability powerup is not affected. This type of damaging floor is featured once again in Final Doom's The Plutonia Experiment, Map 11: Hunted, Hell Revealed's Map 32: Mostly Harmful, Kama Sutra's Map 11: Execution and Map 29: I'm Just a DOOM Addict and Plutonia 2's Map 11: Arch-Violence.

"Leaky" radiation suits

For the 20% damage types (4 and 16), there is a small chance (6/256 ≈ 2.3%) that the player will be damaged during a given second even if he is wearing a radiation suit. If each of the 60 seconds is considered independently, probability theory gives the cumulative effect as:

Total damage Probability
0% 24.10%
20% 34.70%
40% 24.57%
60% 11.40%
80% 3.90%
100% 1.05%
120% 0.23%
140% 0.04%
160% or more 0.01%

Due to the periodicity of Doom's pseudorandom number generator, however, it can be shown that the player instead takes damage as follows:

Total damage Probability
0% 9.77%
20% 59.77%
40% 12.11%
60% 16.80%
80% 1.56%

The latter result presumably should not be accepted at face value, since it assumes that 60 numbers are pulled from the table consecutively, whereas in a real level, other phenomena (such as roaming monsters and blinking lights) would sometimes call the generator as well. Moreover, in stock maps, it is rarely necessary to remain on the same damaging floor for 60 seconds. Testing seems to indicate that a single suit rarely "leaks" more than once.

Sources