Game score: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(removed the {{PAGENAME}} only because that was an exceedingly dumb use of it)
Line 10: Line 10:


== Keyvalues ==
== Keyvalues ==
{{KV|Points to add (+/-)|integer|Number of points to add or substract.}}
{{KV|Points to add (+/-) (points)|integer|Number of points to add or substract.}}
{{KV|Master (Obsolete)|string|Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.}}
{{KV|Master (Obsolete)|string|Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.}}
{{KV Targetname}}
{{KV Targetname}}

Revision as of 08:15, 26 January 2020

Modified Score of !activator (myself)

Template:Base point

Entity description

Game score.png

An entity that modifies the points of the player who activates it (!activator).

In code it is represented by class CGameScore, defined in maprules.cpp.

Note.pngNote:This entity cannot be used to affect the scores of teams/players in Left 4 Dead / Left 4 Dead 2.

Keyvalues

Points to add (+/-) (points) ([todo internal name (i)]) <integer>
Number of points to add or substract.
Master (Obsolete) ([todo internal name (i)]) <string>
Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Flags

  • 1 : Allow Negative
  • 2 : Team Points

Inputs

ApplyScore
Add score to player.


Outputs