Project

General

Profile

Bug #851

Incorrect blast damage calculation

Added by gobhuo over 14 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2010-01-11
% Done:

100%


Description

Blast damage is calculated incorrectly.
Test case:
Fire a rocket against a wall. It should do 127-128 damage, as in vanilla Doom and PrBoom+. In Doomsday, however, it does 112-113 damage.

Labels: jDoom Gameplay

History

#1 Updated by gobhuo over 14 years ago

I use Doomsday 1.9 beta 6.8 (fresh installation), addons disabled.

#2 Updated by danij over 14 years ago

This is due to the fact the damage calculation was changed to incorporate the distance along the world up axis. However, as the rockets are fired from the player's position plus height/2 this means there is additional distance factored into the calculation.

Fixed for 1.9.0-beta6.9 by changing the distance calculation so that the z damage point is the base plus height/2 thereby removing the additional distance when both are equal on the world up axis.

Note that if you want to retain the exact original behaviour you can do so via the console:
server-game-radiusattack-nomaxz 1

#3 Updated by danij over 14 years ago

Which version of Doomsday are you using?

Also available in: Atom PDF