Difference between revisions of "Blast damage"

From DoomWiki.org

[unchecked revision][unchecked revision]
(moving blast info into a separate article)
 
m
Line 15: Line 15:
 
* [[Cyberdemon]]
 
* [[Cyberdemon]]
 
* [[Rocket launcher]]
 
* [[Rocket launcher]]
 +
 +
[[Category:Doom engine]]
 +
[[Category:Gameplay]]

Revision as of 17:15, 2 April 2005

In addition to inflicting hit damage from the direct hit, blast damage attacks inflict radius damage in the area surrounding their explosion (Arch-Vile attacks 70 units, barrels and player or Cyberdemon rockets 128 units). Because of this, the characters using the blast attack will also be damaged if they are too close to the explosion.

An enemy that is hit will receive full blast damage (unless it is immune, see below), because it is at a distance of zero from the blast. Counting both the hit and the blast, a rocket launcher shot averages about the same damage as the super shotgun at close range (about three times the regular shotgun), but is equally effective at long range.

Cyberdemons and Spider Masterminds take only the hit damage, and are immune to all blast damage. Therefore, a greater number of rockets is required to kill these bosses than might be expected.

The Doom engine uses the same code for all blasts, and even the same sound effect. The blast radius is either 70 or 128 units, and all objects within that radius are examined. For each object that can be damaged, the distance to the center of the explosion is calculated as the greater of the x-distance and the y-distance of the centers, less the radius of the object. The line-of-sight is checked, and if the view of the object from the rocket is obstructed, no damage is inflicted. Otherwise, damage in hit points is equal to blast radius less the distance.

Explosion blast damage. Here, B and C take the same damage because they are at the same x distance, and the x distance is larger than y for both. Both take 128-80=48 units damage. A and D take no damage since the line of sight is obstructed. (In this illustration, one pixel corresponds to one map unit.)


See also