Point gamestats counter: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(its position in the world irrelevant so it's logical entity) |
||
(8 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{CD|CPointGamestatsCounter|file1=GameStats.cpp}} | ||
{{ | {{this is a|logical entity|name=point_gamestats_counter}} A generic game statistics counter. In most games only prints incremented statistic into console or file if the game is started with launch options -gamestatslogging or -gamestatsloggingtofile respectively. | ||
== Keyvalues == | |||
{{KV Targetname}} | |||
{{KV|Name of statistic counter|intn=name|string}} | |||
{{KV EnableDisable}} | |||
== Inputs == | |||
{{I|SetName|Changes name of statistic counter|param=string}} | |||
{{I|Increment|Increments named statistic counter by specified value|param=float}} | |||
{{I EnableDisable}} |
Latest revision as of 07:35, 29 April 2025
![]() |
---|
CPointGamestatsCounter |
![]() |
point_gamestats_counter
is a logical entity available in all Source games. A generic game statistics counter. In most games only prints incremented statistic into console or file if the game is started with launch options -gamestatslogging or -gamestatsloggingtofile respectively.
Keyvalues
- 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
- Name of statistic counter (name) <string>
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Inputs
- SetName <string >
- Changes name of statistic counter
- Increment <float >
- Increments named statistic counter by specified value
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.