Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[TF2] Damage on buildings is rounded down instead of up

Open Ismaciodismorphus opened this issue 3 years ago • 0 comments

If a weapons damage bonus or penalty results in its damage value having a decimal number its damage will be rounded down to the lowest non decimal number when used against buildings.

List of known affected weapons: The Fan O War, The Shahanshah when a sniper is above or equal to 50% of their health, The Warriors spirit, Axtinguisher and the Disciplinary action.

For an example using tf_debug_damage 1 and hitting a player with the fan o war shows it deals 8.75 damage to the player which is then rounded up to 9, because the command only counts damage against players and not buildings i cannot directly confirm that this is the case but it appears that building damage is instead rounded down dealing 8 damage instead to the building.

image1 image2 image3

Ismaciodismorphus avatar Oct 05 '22 06:10 Ismaciodismorphus