cs_gamerules

From Valve Developer Community
Jump to navigation Jump to search

Stub

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

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
Recycle-warning.png
This is a preserved entity in Counter-Strike: SourceCounter-Strike: Global Offensive
If the game has round restart mechanics this entity may not behave as expected.
Class hierarchy
CCSGameRulesProxy
CGameRulesProxy
CBaseEntity
cs_gamerules.cpp

cs_gamerules is a logical entity available in Counter-Strike seriesCounter-Strike series Counter-Strike series and Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It controls game rules and logic, including which team wins due to either eliminating the other, or completing the objective.

Note.pngNote:This entity is also present in Left 4 Dead seriesLeft 4 Dead series but it's just a left-over and does not spawn automatically. Instead terror_gamerules spawns which is a subclass of this.

See also