CGameRulesProxy
Jump to navigation
Jump to search
Code classes:
CGameRulesProxy
CBaseEntity
(all ents)
CGameRulesProxy
is a base class for all "gamerules" entities. It lets the developers set arbitrary rules for maps and the whole game, and for handling many events. The games that use this class all make their own game-specific derivative of it. Some games allow players to place the gamerules entity in Hammer, but even if the mapper doesn't place it, the entity will still get created once the map loads due to it being quite important. In some games, the entity is replaced by a class which isn't tied to any entity shortly after the entity spawns.
ConVars/Commands[edit | edit source]
ConVar/Command | Parameters or default value | Parameter Type | Effect |
---|---|---|---|
skill | - | Arbitrary number | Controls the difficulty of the game (for Half-Life 2). |