Template:Archived page history/Console variable/en: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Language subpage}} A '''console variable''', frequently shortened to '''cvar''', is a runtime variable which can be modified by the user in the developer console, in...")
 
(ConVar is a source-specific term)
Line 2: Line 2:
A '''console variable''', frequently shortened to '''cvar''', is a runtime [[variable]] which can be modified by the user in the [[developer console]], in addition to being modifiable by game code.
A '''console variable''', frequently shortened to '''cvar''', is a runtime [[variable]] which can be modified by the user in the [[developer console]], in addition to being modifiable by game code.


Cvars are represented by the C++ class [[ConVar]]. For a list of cvars, see [[:Category:Console variables]].
In {{idtech2}} and {{goldsrc}}, cvars use the C struct [[cvar_t]]. {{source}} replaces this with the C++ class [[ConVar]].  
 
For a list of cvars, see [[:Category:Console variables]].

Revision as of 16:05, 9 September 2023

Flag-white.pngEnglish (en)

A console variable, frequently shortened to cvar, is a runtime variable which can be modified by the user in the developer console, in addition to being modifiable by game code.

In id Tech 2 and GoldSrc, cvars use the C struct cvar_t. Source replaces this with the C++ class ConVar.

For a list of cvars, see Category:Console variables.