cs_gamerules

From Valve Developer Community
Jump to: navigation, search

Stub

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

Info.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.
Class hierarchy
CCSGameRulesProxy
CGameRulesProxy
CBaseEntity
cs_gamerules.cpp

cs_gamerules is an entity available in Counter-Strike: Source Counter-Strike: Source and Left 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.

Icon-Important.pngImportant:This is a preserved entity in Counter-Strike: SourceCounter-Strike: Global Offensive.
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non preserved entities may have undesirable effects.

This entity is also present in Left 4 Dead Left 4 Dead and Left 4 Dead 2 Left 4 Dead 2, alongside terror_gamerules with its own additional game rules.