UTIL_ScaleForGravity

From Valve Developer Community
Revision as of 18:23, 3 November 2021 by Amicdict (talk | contribs)
Jump to navigation Jump to search
English (en)Translate (Translate)

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 Template:Game name the formula is desiredGravity / (sv_gravity * TFGameRules()->GetGravityMultiplier()).

Declaration

float UTIL_ScaleForGravity( float desiredGravity );

Examples

Todo: Add examples.