Game score: Difference between revisions
Jump to navigation
Jump to search
Note:This entity cannot be used to affect the scores of teams/players in Left 4 Dead / Left 4 Dead 2.
m (link) |
(Cleanup) |
||
Line 1: | Line 1: | ||
{{ | {{base point|game_score}} | ||
==Entity Description== | ==Entity Description== | ||
[[ | [[File:{{PAGENAME}}.png|left]] | ||
An [[entity]] that modifies the points of the player who activates it([[!activator]]). | 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. | In code it is represented by class CGameScore, defined in maprules.cpp. | ||
{{note|This entity cannot be used to affect the scores of teams/players in [[Left 4 Dead]]. | {{note|This entity cannot be used to affect the scores of teams/players in [[Left 4 Dead]] / [[Left 4 Dead 2]].}} | ||
==Keyvalues== | == Keyvalues == | ||
{{KV|Points to add (+/-)|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 Targetname}} | |||
==Flags== | == Flags == | ||
*1 : Allow Negative | * 1 : Allow Negative | ||
*2 : Team Points | * 2 : Team Points | ||
==Inputs== | == Inputs == | ||
{{IO|ApplyScore|Add score to player.}} | |||
{{I Targetname}} | |||
==Outputs== | == Outputs == | ||
{{O Targetname}} |
Revision as of 20:53, 7 June 2011
Entity Description
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.

Keyvalues
- 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
ortarget
).
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.