UTIL_ScaleForGravity

From Valve Developer Community
Revision as of 04:24, 23 July 2023 by Hoppler (talk | contribs) (Now this is a stub)
Jump to navigation Jump to search
English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

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.