UTIL ScaleForGravity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page.)
 
m (Category.)
Line 8: Line 8:
==Examples==
==Examples==
{{todo|Add examples.}}
{{todo|Add examples.}}
[[Category:UTIL]]

Revision as of 13:11, 9 August 2021

A UTIL function that returns the passed gravity in relation to the world gravity (more specifically desiredGravity / (sv_gravity * TFGameRules()->GetGravityMultiplier()(only in Team Fortress 2)).

Usage

float UTIL_ScaleForGravity( float desiredGravity )

Examples

Todo: Add examples.