Mp falldamage: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{DISPLAYTITLE:mp_falldamage}}
{{DISPLAYTITLE:mp_falldamage}}
[[Category:Glossary]] [[Category:Console Variables]]
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 9: Line 7:


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

Revision as of 00:30, 9 April 2023

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