Ru/ConVar: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
{{stub}}
{{stub}}


For a description of what a '''Con'''sole '''Var'''iable is, see [[Developer_Console#Commands_and_variables|Commands and variables]].
Описание переменных консоли '''Con'''sole '''Var'''iable is смотрите здесь: [[Developer_Console#Commands_and_variables|Commands and variables]].


Documentation on specific console variables can be found at [[:Category:Console Variables]].
Спецификацию на переменные консоли можно найти здесь [[:Category:Console Variables]].
For creating a new Console Variable see this. [[Developer_Console_Control#Using_the_ConVar_class|Developer Console Control]]
Чтобы создать новую консольную переменную, смотрите это: [[Developer_Console_Control#Using_the_ConVar_class|Developer Console Control]]


<!-- only info on console variables _in general_ should be on this page -->
<!-- only info on console variables _in general_ should be on this page -->

Revision as of 07:50, 31 July 2015

Template:Otherlang2

Неполная

This article or section is a stub. You can help by expanding it.

Описание переменных консоли Console Variable is смотрите здесь: Commands and variables.

Спецификацию на переменные консоли можно найти здесь Category:Console Variables. Чтобы создать новую консольную переменную, смотрите это: Developer Console Control


ConVar( const char *pName, const char *pDefaultValue, int flags, const char *pHelpString, bool bMin, float fMin, bool bMax, float fMax );

The default value given as the second argument of the ConVar constructor is not the value set. To set a value, use:

pName->SetValue([value]);

Good practices

Variables that you wish to be saved should be marked with flag FCVAR_ARCHIVE. Any cheat ConVar defined should not be archived.

See also

Developer Console Control