Have you ever wondered how to calculate what damage a player will take from falling a certain height when designing your maps? Well, wonder no more!
Base fall damage in TF2 is calculated using the formula (5V)/300, where V is the players velocity in Hammer Units per second. To calculate velocity, we can use the formula A√(2X/A), where A is the acceleration and X is the distance. Since gravity accelerates players in TF2 by 800 HU downwards per second, we can plug that in as 800√(X/400). Plugging that into our earlier formula, we get (4000√(X/400))/300, which we can then simplify to (2√X)/3, with X as the height in Hammer Units. However, we are not done yet, as this simply gives us the percentage of damage, so to get the exact damage to player health, we must first divide it by 100 and multiply it by player max heath, giving us the formula H(2√(X)/300, where H is player max health and X is the height in HU. However however, we are still not done, as damage deviates randomly by ±20%, so multiply this number by 0.8 to get the minimum damage, and 1.2 to get the maximum. Also keep in mind that fall damage doesn't kick in until the player is traveling over 650 units per second, which will be your speed if you've fallen over about 264 HU, meaning that the player needs to fall at least 265 HU to take fall damage.
Now, you probably didn't read all of that, so here's all of the formulas you need:
Hope this helped, and happy mapping!
Base fall damage in TF2 is calculated using the formula (5V)/300, where V is the players velocity in Hammer Units per second. To calculate velocity, we can use the formula A√(2X/A), where A is the acceleration and X is the distance. Since gravity accelerates players in TF2 by 800 HU downwards per second, we can plug that in as 800√(X/400). Plugging that into our earlier formula, we get (4000√(X/400))/300, which we can then simplify to (2√X)/3, with X as the height in Hammer Units. However, we are not done yet, as this simply gives us the percentage of damage, so to get the exact damage to player health, we must first divide it by 100 and multiply it by player max heath, giving us the formula H(2√(X)/300, where H is player max health and X is the height in HU. However however, we are still not done, as damage deviates randomly by ±20%, so multiply this number by 0.8 to get the minimum damage, and 1.2 to get the maximum. Also keep in mind that fall damage doesn't kick in until the player is traveling over 650 units per second, which will be your speed if you've fallen over about 264 HU, meaning that the player needs to fall at least 265 HU to take fall damage.
Now, you probably didn't read all of that, so here's all of the formulas you need:
Code:
Damage Percent: P=(2√X)/3 for X>264.0625
Average Damage: D=H*(P/100), or D=H*(2√X)/300
Max Damage: 1.2*D
Min Damage: 0.8*D
X = Height in Hammer Units
H = Max player health
Hope this helped, and happy mapping!
Fall Damage on the TF2 Wiki: https://wiki.teamfortress.com/wiki/Fall_damage
Gravity on the VDC: https://developer.valvesoftware.com/wiki/Gravity
Gravity on the VDC: https://developer.valvesoftware.com/wiki/Gravity
Last edited: