Mp falldamage: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Edited syntax to match ConVar name)
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:mp_falldamage}}
{{CVar}}
This boolean ConVar available in all Source Engine games enables/disables realistic fall-damage on the server.
This boolean ConVar available in all Source Engine games enables/disables realistic fall-damage on the server.


Line 7: Line 7:


{{Syntax|mp_falldamage 0/1}}
{{Syntax|mp_falldamage 0/1}}
[[Category:Console Variables]]

Revision as of 13:14, 27 June 2023

Template:CVar 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: mp_falldamage 0/1