C_CSGameRules
Fields
Name | Type | Description |
---|---|---|
m_bFreezePeriod | bool | Is timeout active |
m_bIsValveDS | bool | Is player on a Valve server |
m_fRoundStartTime | float | Round start time |
m_gamePhase | int | Game phase |
m_iNumConsecutiveCTLoses | int | Number of consecutive CT loses |
m_iNumConsecutiveTerroristLoses | int | Number of consecutive T loses |
m_iRoundTime | int | Round time |
m_timeUntilNextPhaseStarts | float | Time until next phase starts |
m_bWarmupPeriod | bool | Is warmup active |
Functions
IsCasual
This function has no parameters.
Return value
Name | Type | Description |
---|---|---|
state | bool |
local state = EntityList.GetGameRules():IsCasual()
IsCompetitive
This function has no parameters.
Return value
Name | Type | Description |
---|---|---|
state | bool |
local state = EntityList.GetGameRules():IsCompetitive()
IsWingman
This function has no parameters.
Return value
Name | Type | Description |
---|---|---|
state | bool |
local state = EntityList.GetGameRules():IsWingman()
IsDeathMatch
This function has no parameters.
Return value
Name | Type | Description |
---|---|---|
state | bool |
local state = EntityList.GetGameRules():IsDeathMatch()
IsGuardian
This function has no parameters.
Return value
Name | Type | Description |
---|---|---|
state | bool |
local state = EntityList.GetGameRules():IsGuardian()
IsDangerZone
This function has no parameters.
Return value
Name | Type | Description |
---|---|---|
state | bool |
local state = EntityList.GetGameRules():IsDangerZone()