Mp falldamage: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:sv_falldamage}}
{{DISPLAYTITLE:mp_falldamage}}
[[Category:Glossary]] [[Category:Console Variables]]
[[Category:Glossary]] [[Category:Console Variables]]


This boolean ConVar enables/disables falling-damage on the server.
This boolean ConVar available in all Source Engine games enables/disables realistic fall-damage on the server.


when mp_falldamage is non-zero players will get hurt when they fall very high.
{{Code_class|falldamage|game.cpp}}
When it's zero there will be no damage by falling.


{{Syntax|<code>sv_falldamage <boolean></code>}}
When mp_falldamage is non-zero players will get hurt based on the amount of units per second the player was travelling when falling, when it's zero, the fall damage will always be 10 when falling from a great height.
 
{{Syntax|sv_falldamage 0/1}}

Revision as of 11:41, 2 May 2018


This boolean ConVar available in all Source Engine games enables/disables realistic fall-damage on the server.

C++ In code, it is represented by thefalldamageclass, defined in thegame.cppfile.

When mp_falldamage is non-zero players will get hurt based on the amount of units per second the player was travelling when falling, when it's zero, the fall damage will always be 10 when falling from a great height.

Syntax: sv_falldamage 0/1