This article's documentation is for anything that uses the Source engine. Click here for more information.

Point gamestats counter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
{{CD|CPointGamestatsCounter|file1=GameStats.cpp}}
{{CD|CPointGamestatsCounter|file1=GameStats.cpp}}
{{this is a|e0|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.
{{this is a|point 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 ==
== Keyvalues ==

Revision as of 17:39, 17 May 2024

C++ Class hierarchy
CPointGamestatsCounter
CPointEntity
CBaseEntity
C++ GameStats.cpp

point_gamestats_counter is a point entity available in all Source 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 or target).
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 theEnableinput).

Inputs

SetName <stringRedirectInput/string>
Changes name of statistic counter
Increment <floatRedirectInput/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.