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

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: clean up, replaced: {{Language subpage → {{langsp)
m (→‎top: clean up, replaced: {{goldsrc → {{gldsrc)
Line 2: Line 2:
A '''console variable''', frequently shortened to '''cvar''', and occasionally '''[[ConVar]]''', 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''', and occasionally '''[[ConVar]]''', is a runtime [[variable]] which can be modified by the user in the [[developer console]], in addition to being modifiable by game code.


:In {{idtech2|2}} and {{goldsrc|2}}, cvars use the C struct [[cvar_t]].
:In {{idtech2|2}} and {{gldsrc|2}}, cvars use the C struct [[cvar_t]].
:{{source|2}} replaces this with the C++ class [[ConVar]].  
:{{source|2}} replaces this with the C++ class [[ConVar]].  


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

Revision as of 13:23, 4 January 2024

Flag-white.pngEnglish (en)

A console variable, frequently shortened to cvar, and occasionally ConVar, 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 id Tech 2 and GoldSrc GoldSrc, cvars use the C struct cvar_t.
Source Source replaces this with the C++ class ConVar.

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