UTIL_ScaleForGravity
Jump to navigation
Jump to search



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