game_score

From Source Entities
Jump to navigation Jump to search

Code classes:

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.

Note: Known to not work in L4d.pngL4d2-small.png.

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 Csgo-small.png)
Applies the score change as rounds won to the terrorist team.
AddScoreCT  (only available in Csgo-small.png)
Applies the score change as rounds won to the counter-terrorist team.