Difference between revisions of "Damage"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Damage vulnerability, resistance, and blocking: New Table (Easier to check))
Line 65: Line 65:
  
 
{| class="wikitable grid"
 
{| class="wikitable grid"
! class="header" width="20%" | Item
+
! class="header" | Class
 +
! class="header" | Weapon/Item set
 
! class="header" | Effect
 
! class="header" | Effect
 
|-
 
|-
! class="subheader" style="text-align: center" colspan="2"| Single Weapons
+
! rowspan="2" | {{Class link|Scout|br=yes}}
 +
| align="center" | {{Table icon|Candy Cane}}
 +
|
 +
{{Con}} 25% [[Projectiles#Explosions|explosive]] damage vulnerability on wearer.
 
|-
 
|-
! {{item icon|Battalion's Backup|50x50px}}<br />[[Battalion's Backup]]
+
| align="center" | {{Table icon|Pretty Boy's Pocket Pistol}}
| {{Info}} When used, it provides a defensive buff to nearby team members that blocks 35% of incoming damage and blocks [[Critical Hits|critical damage]].
+
|
 +
{{Pro}} Grants full immunity to [[fall damage]] on wearer.<br>
 +
{{Con}} 50% [[fire]] damage vulnerability on wearer.
 
|-
 
|-
! {{item icon|Bushwacka|50x50px}}<br />[[Bushwacka]]
+
! rowspan="2" | {{Class link|Soldier|br=yes}}
| {{Con}} +20% [[fire]] damage vulnerability on wearer.
+
| align="center" | {{Table icon|Battalion's Backup}}
 +
|
 +
{{Info}} When used, it provides a defensive buff to nearby team members that blocks 35% of incoming damage and blocks [[Critical hits]] and [[Critical hits#Mini-crits|Mini-crits]].
 
|-
 
|-
! {{item icon|Candy Cane|50x50px}}<br />[[Candy Cane]]
+
| align="center" | {{table icon|The Tank Buster}}
| {{Con}} +25% [[Explosion#Explosions|explosive]] damage vulnerability on wearer.
+
|
 +
{{Con}} 20% [[Sentry Gun]] damage resistance on wearer.
 
|-
 
|-
! {{item icon|Chargin' Targe|50x50px}}<br />[[Chargin' Targe]]
+
! rowspan="3" | {{Class link|Pyro|br=yes}}
| {{Pro}} +50% fire damage resistance on wearer.
+
| align="center" | {{Table icon|Powerjack}}
{{Pro}} +40% [[Explosion#Explosions|explosive]] damage resistance on wearer.
+
|
 +
{{Con}} +20% damage from melee sources while active.
 
|-
 
|-
! {{item icon|Dead Ringer|50x50px}}<br />[[Dead Ringer]]
+
| align="center" | {{Table icon|Phlogistinator}}
| {{info}} When used, blocks 90% of incoming damage. The resistance is applied to both the triggering hit and for the normal, non-extended [[Cloak]] duration.
+
|
 +
{{info}} When activating the Mmmph buff, blocks 75% of incoming damage for the taunt's duration.
 
|-
 
|-
! {{item icon|Fists of Steel|50x50px}}<br />[[Fists of Steel]]
+
| align="center" | {{table icon|The Gas Jockey's Gear}}
| {{Pro}} +40% damage resistance from ranged sources while active.
+
|
{{Con}} +100% damage vulnerability from melee sources while active.
+
{{Con}} 10% bullet vulnerability on wearer.
 
|-
 
|-
! {{item icon|Pain Train|50x50px}}<br />[[Pain Train]]
+
! rowspan="3" | {{Class link|Demoman|br=yes}}
| {{Con}} +10% [[bullet]] damage vulnerability on wearer.
+
| align="center" | {{Table icon|Chargin' Targe}}
 +
|
 +
{{Pro}} 50% fire damage resistance on wearer.<br>
 +
{{Pro}} 40% explosive damage resistance on wearer.
 
|-
 
|-
! {{item icon|Phlogistinator|50x50px}}<br />[[Phlogistinator]]
+
| align="center" | {{Table icon|Splendid Screen}}
| {{info}} When activating the Mmmph buff, blocks 75% of incoming damage for the taunt's duration.
+
|  
 +
{{Pro}} 20% fire damage resistance on wearer<br>
 +
{{Pro}} 15% explosive damage resistance on wearer
 
|-
 
|-
! {{item icon|Powerjack|50x50px}}<br />[[Powerjack]]
+
| align="center" | {{table icon|The Expert's Ordnance}}
| {{Con}} +20% damage from melee sources while active.
+
|
 +
{{Pro}} 10% fire damage resistance on wearer.
 
|-
 
|-
! {{item icon|Pretty Boy's Pocket Pistol|50x50px}}<br />[[Pretty Boy's Pocket Pistol]]
+
! rowspan="2" | {{Class link|Heavy|br=yes}}
| {{Pro}} Grants full immunity to [[fall damage]] on wearer.
+
| align="center" | {{Table icon|Fists of Steel}}
{{Con}} +50% [[fire]] damage vulnerability on wearer.
+
|
 +
{{Pro}} 40% damage resistance from ranged sources while active.<br>
 +
{{Con}} 100% damage vulnerability from melee sources while active.
 
|-
 
|-
! {{item icon|Southern Hospitality|50x50px}}<br />[[Southern Hospitality]]
+
| align="center" | {{table icon|The Hibernating Bear}}
| {{Con}} +20% fire damage vulnerability on wearer.
+
|
 +
{{Pro}} 5% Critical hit damage resistance on wearer.
 
|-
 
|-
! {{item icon|Splendid Screen|50x50px}}<br />[[Splendid Screen]]
+
! {{Class link|Engineer|br=yes}}
| {{Pro}} +20% fire damage resistance on wearer
+
| align="center" | {{Table icon|Southern Hospitality}}
{{Pro}}+15% explosive damage resistance on wearer
+
|
 +
{{Con}} 20% fire damage vulnerability on wearer.
 
|-
 
|-
! class="subheader" style="text-align: center" colspan="2"| {{Tooltip|Item Sets|Effects are applied when all the set's items are equipped.}}
+
! {{Class link|Sniper|br=yes}}
 +
| align="center" | {{Table icon|Bushwacka}}
 +
|
 +
{{Con}} 20% fire damage vulnerability on wearer.
 
|-
 
|-
! {{item icon|Loch-n-Load|50x50px}}{{item icon|Ullapool Caber|50x50px}}<br />[[The Expert's Ordnance]]
+
! {{Class link|Spy|br=yes}}
| {{Pro}} +10% fire damage resistance on wearer.
+
| align="center" | {{Table icon|Dead Ringer}}
 +
|
 +
{{info}} When used, blocks 90% of incoming damage. The resistance is applied to both the triggering hit and for the normal, non-extended [[Cloak]] duration.
 
|-
 
|-
! {{item icon|Degreaser}}{{item icon|Powerjack|50x50px}}{{item icon|Attendant|50x50px}}<br />[[The Gas Jockey's Gear]]
+
! {{Class link|Soldier|br=yes}} {{Class link|Demoman|br=yes}}
| {{Con}} +10% bullet vulnerability on wearer.
+
| align="center" | {{Table icon|Pain Train}}
|-
+
|
! {{item icon|Brass Beast|50x50px}}{{item icon|Buffalo Steak Sandvich|50x50px}}{{item icon|Warrior's Spirit|50x50px}}<br />[[The Hibernating Bear]]
+
{{Con}} 10% bullet damage vulnerability on wearer.
| {{Pro}} +5% Critical hit damage resistance on wearer.
 
|-
 
! {{item icon|Black Box|50x50px}}{{item icon|Battalion's Backup|50x50px}}{{item icon|Grenadier's Softcap|50x50px}}<br />[[The Tank Buster]]
 
| {{Pro}} +20% [[Sentry Gun]] damage resistance on wearer.
 
 
|-
 
|-
 
|}
 
|}

Revision as of 02:31, 18 December 2012

Wehhhhhh!
Pain is weakness leaving the body!
The Soldier

Damage in Team Fortress 2 is any event that reduces the health of a player or entity. Damage can be caused by weapons, fire, explosions, falling, bleeding, certain taunts, or by environmental sources such as trains, water, saw blades, the Horseless Headless Horsemann, MONOCULUS, Merasmus, and the Underworld.

Weapon damage

Weapon damage is calculated in the following manner:

(Base Damage) × (Distance and Randomness Modifier) × (Resistance/Vulnerability Modifiers) × (Splash Modifier)

Critical hits are calculated as:

(Base Damage) × (Resistance/Vulnerability Modifiers) × (Splash Modifier) × (Critical Modifier)

Mini-crits are calculated as:

(Base Damage) × (Positive Distance Modifier) × (Resistance/Vulnerability Modifiers) × (Randomness Modifier) × (Splash Modifier) × (Mini-Crit Modifier)

Base damage

The base damage of a weapon is a constant number that is fixed to a particular weapon. Damage does not depend on where on the target the attack hits, with the exception of weapons that critical hit on certain regions of the target.

Distance and randomness modifier

How damage is affected by distance.

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. The trough of the wave is at 1024 units, and all distances beyond 1024 are treated as 1024 for the purposes of damage calculation. In this formula, there is a random variation in the distance of ±153.6 units (shown in the graph around 512 units, as an example). This means that you may be treated as being up to 153.6 closer or farther than you actually are, for purposes of the formula. This is the 15% variation many players have heard of; it is not simply a 85–115% multiplier on the final damage.

The base distance given to the formula is modified for Rocket Launchers, Stickybomb Launchers (when detonated within 5 seconds), and Syringe Guns. When the distance between the attacker and target is less than 512 units, it is instead treated as being ~74% closer to 512 units; that is, you are considered to be farther away than you actually are. The result of this is that the maximum damage you can have before random variation is 120% (shown by the maroon offshoot in the graph). In short, these three weapons gain less extra damage from the distance modifier at close range, but still suffer from the same long-range damage penalty as the other weapons.

Conversely, the distance modifier for the Scout's primary weapons (Excluding the Shortstop) have an increased damage ramp at close range, maximising at 175% normal damage at point blank, but keep the same default damage ramp at ranges of 512 or greater.

Melee weapons, Flamethrowers, Flare Guns, Grenade Launchers, Sniper Rifles, and bows are all treated as being at 512 units for this formula. Flamethrowers, however, are affected by their own separately calculated distance modifier.

Weapons that fire projectiles, like the Rocket Launcher and Direct Hit, apply the distance modifier to damage 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.

Notes
  1. The ±153.6-unit variation takes place after scaling for rocket launchers and other distance-modifying weapons.
  2. The final distance used in the formula (after random variation) cannot go above 1024 or below 0.
  3. On servers where random variation is disabled (with use of the server cvar "tf_damage_disablespread"), the effective distance used is 153.6 units less than the farthest possible random distance (that is, after being capped at 1024 units). This means that being farther than 870.4 units away is treated as being 870.4 units away; the normal cap is 1024, and 153.6 less than that is 870.4 units.
  4. The distance modifier is always 1.0 if either the attacker or the target is a building.

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.

Self-damage reduction

Explosive weapons may deal less damage to the user than to enemies, depending on the situation. See the individual weapon pages for more information.

Critical modifier

Main article: Critical hit

Critical hits and mini-crits have two effects each. A critical hit sets the distance and randomness modifier to 1 (effectively removing it). It then multiplies the final damage by 3.

A mini-crit checks to see if the base distance is greater than 512: if it is, then it is treated as 512 for the purposes of the formula (shown as a blue dashed line in the image above) and then the ±153.6 modifier is applied. Whether it capped the distance or not, it then multiplies the final damage by 1.35. The end result is that the weapon does not lose damage when the player is more than 512 units away; if the attack were not critted or mini-critted, damage would continue to decrease out to 1024 units.

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 nearby team members from critical hits, treating them as normal damage instead.

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 40% explosive damage resistance, which means all incoming explosive damage is multiplied by 60%.

Because effects are stacked multiplicatively, combinations of effects result in a slightly different value than may be expected; for example a Soldier with the Tank Buster set (20% Sentry resistance), the Pain Train (10% bullet weakness), and an active Battalion's Backup (35% all damage resistance) has a combined resistance of 42.8% against Sentry bullets - as opposed to the 45% that would result in the effects being simply added together.

Some weapons or item sets imbue an effect which increases or decreases the damage received from certain types of weapons. These effect may either be applied as "on wearer" (having the item equipped in the loadout) or "while active" (actively wielding the item).

Class Weapon/Item set Effect
Candy Cane
Candy Cane

Pictogram minus.png  25% explosive damage vulnerability on wearer.

Pretty Boy's Pocket Pistol
Pretty Boy's Pocket Pistol

Pictogram plus.png  Grants full immunity to fall damage on wearer.
Pictogram minus.png  50% fire damage vulnerability on wearer.

Battalion's Backup
Battalion's Backup

Pictogram info.png  When used, it provides a defensive buff to nearby team members that blocks 35% of incoming damage and blocks Critical hits and Mini-crits.

The Tank Buster
The Tank Buster

Pictogram minus.png  20% Sentry Gun damage resistance on wearer.

Powerjack
Powerjack

Pictogram minus.png  +20% damage from melee sources while active.

Phlogistinator
Phlogistinator

Pictogram info.png  When activating the Mmmph buff, blocks 75% of incoming damage for the taunt's duration.

The Gas Jockey's Gear
The Gas Jockey's Gear

Pictogram minus.png  10% bullet vulnerability on wearer.

Chargin' Targe
Chargin' Targe

Pictogram plus.png  50% fire damage resistance on wearer.
Pictogram plus.png  40% explosive damage resistance on wearer.

Splendid Screen
Splendid Screen

Pictogram plus.png  20% fire damage resistance on wearer
Pictogram plus.png  15% explosive damage resistance on wearer

The Expert's Ordnance
The Expert's Ordnance

Pictogram plus.png  10% fire damage resistance on wearer.

Fists of Steel
Fists of Steel

Pictogram plus.png  40% damage resistance from ranged sources while active.
Pictogram minus.png  100% damage vulnerability from melee sources while active.

The Hibernating Bear
The Hibernating Bear

Pictogram plus.png  5% Critical hit damage resistance on wearer.

Southern Hospitality
Southern Hospitality

Pictogram minus.png  20% fire damage vulnerability on wearer.

Bushwacka
Bushwacka

Pictogram minus.png  20% fire damage vulnerability on wearer.

Dead Ringer
Dead Ringer

Pictogram info.png  When used, blocks 90% of incoming damage. The resistance is applied to both the triggering hit and for the normal, non-extended Cloak duration.

Pain Train
Pain Train

Pictogram minus.png  10% bullet damage vulnerability on wearer.

Update history

December 17, 2010 Patch

  • [Undocumented] Melee weapons no longer deal bullet damage.

February 14, 2011 Patch

  • [Undocumented] Melee weapons no longer count as bullet weapons when accounting for damage vulnerabilities.

See also