CGlobalVarsBase

Usage:

game.globalVars.{field}

Usage: game.globalVars.{field}

An instance of this type provides a way to read several global variables that are used by the game. Changing any of the values is not and will never be supported.

m_flRealTime

Field

Type: float

Time passed since the game start, in seconds.


m_iFrameCount

Field

Type: int

Amount of frames rendered since the game start.


m_flAbsFrameTime

Field

Type: float

Absolute (averaged) frame time. It is calculated over a set of previous frame times, and should not be used for anything that requires accurate frame time like animation.


m_iMaxClients

Field

Type: int

Maximum amount of clients on the current server.


m_iTicksThisFrame

Field

Type: int

Amount of ticks passed during the currently rendered frame. Any value above 1 might indicate a stall during rendering.


m_flRenderFrameTime

Field

Type: float

Time, in which a previous frame was rendered. May be used for animation or by any other means that require accurate frame time.


m_flCurTime

Field

Type: float

Time passed since the server's game start. This does not indicate the accurate time on the server, although in several events it might be synced by the software.


m_flTickFraction

Field

Type: float

Current tick's fractional value.


m_iTickCount

Field

Type: int

Ticks passed since the server's game start.


m_szMapPath

Field

Type: string

Relative path to current loaded map's file.


m_szMapName

Field

Type: string

Name of the currently loaded map.

Last updated