Damage
“ | Pain is weakness leaving the body!
Click to listen
— The Soldier
|
” |
Damage is any event that reduces the health of a player or entity. Damage can come from a variety of sources, such as bullets, explosions, fire, falling from a great height, bleeding, certain taunts, or various environmental hazards (such as being struck by a train, drowning in water, or being sliced by a saw blade).
Contents
Weapon damage
Damage dealt by weapons is calculated with the following formula:
Damage dealt by critical hits uses the following formula instead:
Damage dealt by mini-crits uses the following formula instead:
Base damage
A weapon's base damage is a fixed value used as a starting point for damage calculations.
Certain weapons can have situational changes to their base damage:
- The Equalizer's base damage increases linearly as the wielder's current health decreases.
- The Pyro's various Flame Throwers (excluding the Dragon's Fury) deal 50% of base damage initially, reaching full damage after the same enemy has been attacked for 0.9 seconds.
- The Axtinguisher's base damage increases when striking a target suffering from afterburn. The magnitude of the damage increase depends on the afterburn's remaining duration.
- If a Demoman is wielding the Eyelander, the damage of the shield bash performed by the Chargin' Targe, Splendid Screen, and Tide Turner increases by 10% (up to a maximum of a 50% increase).
- The Quickiebomb Launcher's stickybombs have increased base damage depending on how much a shot is charged.
- The Heavy's various Miniguns deal 50% of base damage initially, reaching full damage after they have been spun up for 1 second or more.
- The Widowmaker's base damage is increased by 10% against targets that are currently being targeted by the wielder's Sentry Gun.
- The Crusader's Crossbow's base damage increases the further a shot travels. (This is not just an inversion of the distance modifier, as this damage increase also applies to critical hits, which typically do the same damage regardless of distance.)
- The Sniper's various Sniper Rifles (as well as the Huntsman) have increased base damage depending on how much a shot is charged.
- The Shahanshah's base damage changes depending on if the wielder is above or below 50% of their maximum health.
- The Enforcer's base damage increases by 20% while the wielder is disguised.
- The Atomizer, Cow Mangler 5000, Righteous Bison, Homewrecker, Neon Annihilator, Loch-n-Load, and Pomson 6000 all have different base damage values depending on if they're attacking a player or a building.
Distance modifier
The distance modifier is a number between 1.5 and 0.5 that sinusoidally decreases as the distance between the attacker and the target increases. At a range of 512 hammer units, the distance modifier is 1, so weapons will do 100% of their base damage. At a range of 0 hammer units, weapons will deal 150% of their base damage, while at a distance of 1024 hammer units or further, weapons will deal only 50% of their base damage.
Weapons that fire projectiles, such as the Rocket Launcher, calculate the distance modifier based on the distance between the attacker and the target at the moment the projectile hits a target. This means that the point from which the projectile was fired is irrelevant when considering damage dealt by that projectile; only the final position of the attacker and the target matter. Similarly, the rockets fired by a level 3 Sentry Gun calculates the distance modifier based on the distance between the Sentry Gun's owner (not the Sentry Gun itself) and the target.
The distance modifier is altered for Rocket Launchers, Stickybomb Launchers (when detonated within 5 seconds), Syringe Guns, the Righteous Bison, the Dragon's Fury, and the Pomson 6000. When the distance used in the formula is less than 512 hammer units, the damage ramp is flattened (shown by the maroon offshoot in the graph). As a result, at a distance of 0 hammer units, Rocket Launchers will deal only 125% of their base damage, and Stickybomb Launchers, Syringe Guns, the Righteous Bison, the Dragon's Fury, and the Pomson 6000 will do only 120% of their base damage. Conversely, the distance modifier for the Scout's primary weapons (excluding the Shortstop) is steepened at distances less than 512 hammer units; at a distance of 0 hammer units, these weapons will deal 175% of their base damage. These weapons still use the normal ramp at distances greater than 512 hammer units, and subsequently still have the same long-range damage reduction as other weapons.
Melee weapons, Flare Guns, Grenade Launchers (excluding the Loose Cannon), stickybombs launched more than 5 seconds ago, Sniper Rifles, the Huntsman, and the Flying Guillotine always have a distance modifier of 1, regardless of the actual distance to the target. Subsequently, these weapons will always deal the same amount of damage, regardless of distance to the target. The Crusader's Crossbow also has the same fixed distance modifier, but its actual base damage (not the distance modifier) also scales inversely with distance to target, resulting in it doing more damage as distance increases.
Flamethrowers ignore the regular distance modifier calculations entirely, and instead use their own separately calculated modifier based on projectile lifetime.
All weapons use a distance modifier of 1 for attacks against buildings; as a result, buildings always take the same damage from attacks, regardless of the distance between the building and the attacker.
On servers with the server cvar "tf_damage_disablespread
" set to 1, the distance modifier for each attack is randomly adjusted by ±102.4 hammer units (shown in the graph around 512 units, as an example). This results in a 15% variance in damage, including with weapons that are normally unaffected by distance (such as melee weapons).
On servers with the server cvar "tf_damage_disablespread
" set to 0 (the default value used on official servers), the effective distance used for damage calculation is the distance that is 102.4 hammer units less than the farthest possible random distance. This means that being farther than 921.6 units away is treated as being 921.6 units away; the normal maximum distance is 1024, and 102.4 less than that is 921.6 units.
Splash modifier
The splash modifier is a number used for explosive weapons that do not connect directly with the target. Valve has not released the official stats for the splash damage falloff yet. Typically, an explosion will deal its full damage at its epicenter, and half as much damage at the edge of the explosion's radius.
For the sake of consistency, weapons that explode when they hit a player directly will ignore any falloff from splash damage when calculating damage to the struck player (even though the explosion centre might be further than the minimum distance to the player's centre).
Self-damage reduction
Most explosive weapons deal less damage to the user than to enemies, depending on the situation. See the individual weapon pages for more information.
Critical modifier
Critical hits and mini-crits have two effects each.
A critical hit adds damage equal to 2 times the base damage, while a mini-crit adds 0.35 times the damage following falloff compensation.
Both critical hits and mini-crits check to see if the final distance is greater than 512: if it is, then any damage lost is offset by an equal increase in damage. The end result is that the weapon does not lose damage due to the distance modifier when the player is more than 512 units away; if the attack were not a crit or mini-crit, damage would continue to decrease out to 1024 units.
The extra damage added on by critical hits and mini-crits - including that from rampup or offsetting falloff - is of the "critical" type instead of the weapon's standard type (e.g. bullet or explosive). This affects the calculation of damage resistances.
Note: A backstab deals 2 times the victim's current health, but, under normal conditions, it also always crits, increasing the damage to 6 times the victim's current health.
While active, the Battalion's Backup protects team members from critical hits and mini-crits, treating them as normal damage instead. The Vaccinator's protective shield blocks 100% of critical damage from attacks of the selected type.
Damage types
Each weapon has an associated type of damage that it deals. Some weapons can deal more than one damage type at once; for instance, the Cow Mangler 5000's charged shot deals explosive damage as well as fire afterburn damage.
- Bullet damage is typically associated with hitscan weapons, though the damage caused by most projectile impacts is treated as such as well (such as syringes, arrows, and energy beams, excluding the Cow Mangler 5000's beam).
- Explosive damage is usually caused by explosive projectiles. Players killed via explosive damage will often gib.
- Fire damage is caused by both flaming weaponry and the afterburn they induce.
- Bleed damage is applied to players that are bleeding.
- Melee damage is dealt by melee weapons. Melee damage can destroy stickybombs and causes players to scream loudly on kill.
- Critical damage is caused by critical hits and mini-crits, playing distinctive sound effects and producing louder kill screams.
- Fall damage is applied to players that hit the ground after too high and/or too fast a drop, as well as damage dealt by the Mantreads and Thermal Thruster.
- Crush damage results when a player has been sandwiched between two objects (such as between a closing door and the ground). Being killed by crush damage causes the screen to flash red.
- Drowning damage results when a player has been underwater for too long resulting in the screen flashing blue at the same time damaging the player.
Damage vulnerability, resistance, and blocking
A player may take a modified amount of damage due to certain items. These effects stack multiplicatively. "X% damage vulnerability" multiplies that kind of damage by 100% then adding X%, and "Y% damage resistance" multiplies that kind of damage by 100% then subtracting Y%; for example, the Chargin' Targe grants 30% explosive damage resistance, which means all incoming explosive damage is multiplied by 70%.
Because effects are stacked multiplicatively, combinations of effects result in a slightly different value than may be expected; for example, a Soldier with the Pain Train (10% bullet weakness) and an active Battalion's Backup (50% sentry resistance) has a combined resistance of 45% against Sentry bullets - as opposed to the 40% that would result from the effects being simply added together.
Some weapons imbue an effect which increases or decreases the damage received from certain types of weapons. These effects may either be applied as "on wearer" (having the item equipped in the loadout) or "while active" (actively wielding the item).
List of weapons with damage vulnerability and resistance | ||||
---|---|---|---|---|
Secondary | While under the effects, immune to all damage. | |||
Bonk! Atomic Punch | ||||
Melee | +25% explosive damage vulnerability on wearer. | |||
Candy Cane | ||||
+25% fire damage resistance when active. | ||||
Sun-on-a-Stick | ||||
Secondary | While under the effects, +35% damage resistance, +50% Sentry Gun damage resistance, and immunity to critical hits to the Soldier and nearby teammates. | |||
Battalion's Backup | ||||
Melee | +10% bullet damage vulnerability on wearer. | |||
Pain Train | ||||
Primary | While 'Mmmph' taunting, immune to all damage. | |||
Phlogistinator | ||||
Secondary | +50% explosion self-damage vulnerability on wearer. | |||
Detonator | ||||
Melee | +20% damage vulnerability when active. | |||
Powerjack | ||||
Secondary | +50% fire damage resistance on wearer. +30% explosive damage resistance on wearer. | |||
Chargin' Targe | ||||
+20% fire damage resistance on wearer. +20% explosive damage resistance on wearer. | ||||
Splendid Screen | ||||
+15% fire damage resistance on wearer. +15% explosive damage resistance on wearer. | ||||
Tide Turner | ||||
Melee | +10% bullet damage vulnerability on wearer. | |||
Pain Train | ||||
+15% damage vulnerability when active. | ||||
Claidheamh Mòr | ||||
Primary | +20% damage resistance when below 50% health and spun up. | |||
Natascha | ||||
+20% damage resistance when below 50% health and spun up. | ||||
Brass Beast | ||||
Secondary | While under the effects, +20% damage vulnerability. | |||
Buffalo Steak Sandvich | ||||
Melee | +30% damage vulnerability when active. | |||
Warrior's Spirit | ||||
+40% damage resistance from ranged sources while active. +100% damage vulnerability from melee sources while active. | ||||
Fists of Steel | ||||
Melee | +20% fire damage vulnerability on wearer. | |||
Southern Hospitality | ||||
Secondary | While healing, +10% resistance to the selected damage type to the Medic and his patient. ÜberCharge provides +75% resistance and full crit resistance to the selected damage type to the Medic and his patient. | |||
Vaccinator | ||||
Secondary | +50% fire damage resistance on wearer. Grants full immunity to the effects of afterburn. | |||
Darwin's Danger Shield | ||||
Melee | 20% damage vulnerability when active. | |||
Bushwacka | ||||
Melee | On hit by fire, immune to fire damage for 1 second and immune to afterburn for 10 seconds. | |||
Spy-cicle | ||||
PDA 2 | While cloaked, +20% damage resistance. | |||
Invis Watch | Enthusiast's Timepiece | |||
Quäckenbirdt | Cloak and Dagger | |||
When being damaged (activating Dead Ringer), blocks 75% of incoming damage and gives afterburn immunity for 3 seconds. After Dead Ringer has been activated, +65% damage resistance on wearer which fades to 20% in 3 seconds. | ||||
Dead Ringer |
Update history
- Fixed the Flamethrower hit detection
December 17, 2010 Patch (Australian Christmas)
- [Undocumented] Melee weapons no longer deal bullet damage.
- [Undocumented] Melee weapons no longer count as bullet weapons when accounting for damage vulnerabilities.
July 2, 2015 Patch #1 (Gun Mettle Update)
- Random damage spread is off by default (convar
tf_damage_disablespread
). Existing users will still use their currently set value.