game_score
Jump to navigation
Jump to search
Code classes:
CGameScore
CRulePointEntity
CRuleEntity
CBaseEntity
(all ents)
game_score
is a point entity present in all Source games. It gives points to a player or team in multiplayer games. Useful for custom gamemodes.
Flags[edit | edit source]
- 1: Allow Negative - If Points to add is a negative number, this will allow the point penalty to put the player at a score lower than 0. Note: This flag is not checked if the points are taken from the entire team.
- 2: Team Points - Applies score change to the entire team. (The big number at the top of the scoreboard.)
Keyvalues[edit | edit source]
- Points to add (+/-)
(points)
<integer>
- How many points to add or subtract.
Inputs[edit | edit source]
- ApplyScore
- Applies the score change to the input's
!activator
(or the activator's team). - AddScoreTerrorist (only available in )
- Applies the score change as rounds won to the terrorist team.
- AddScoreCT (only available in )
- Applies the score change as rounds won to the counter-terrorist team.