Cs gamerules: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{stub}}
{{stub}}
{{Ent not in fgd|codeonly=1}}
{{Ent not in fgd|codeonly=1}}
{{Preserved entity}}
{{CD|CCSGameRulesProxy|file1=cs_gamerules.cpp}}
{{CD|CCSGameRulesProxy|file1=cs_gamerules.cpp}}
{{This is a|logical entity|name=cs_gamerules|game=Counter-Strike: Source|game1=Left 4 Dead series}} It controls game rules and logic, including which team wins due to either eliminating the other, or completing the objective.
{{This is a|logical entity|name=cs_gamerules|game=Counter-Strike series|game1=Left 4 Dead series}} It controls game rules and logic, including which team wins due to either eliminating the other, or completing the objective.
{{PreservedEnt|cs_gamerules}}


This entity is also present in {{l4d|4}} and {{l4d2|4}}, alongside [[terror_gamerules]] with its own additional game rules.
{{note|This entity is also present in {{l4ds}} but it's just a left-over and does not spawn automatically. Instead {{ent|terror_gamerules}} spawns which is a subclass of this.}}
 
== See also ==
* {{ent|terror_gamerules}}

Latest revision as of 08:27, 12 May 2025

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.
C++ Class hierarchy
CCSGameRulesProxy
CGameRulesProxy
CBaseEntity
C++ 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