UTIL_ScaleForGravity

From Valve Developer Community
Jump to: navigation, search
English (en)
... Icon-Important.png

Stub

This article or section is a stub. You can help by adding to 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 Team Fortress 2 Team Fortress 2 the formula is desiredGravity / (sv_gravity * TFGameRules()->GetGravityMultiplier()).

Declaration

float UTIL_ScaleForGravity( float desiredGravity );

Examples

Blank image.pngTodo: Add examples.