UTIL_ScaleForGravity
UTIL_ScaleForGravity
is a UTIL function that returns the passed gravity in relation to the world gravity; the formula used is desiredGravity /
, or for Team Fortress 2 the formula is sv_gravity
desiredGravity / (
.
sv_gravity
* TFGameRules()->GetGravityMultiplier())
Declaration
float UTIL_ScaleForGravity( float desiredGravity );
Examples
Todo: Add examples.