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

cvarlist

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

cvarlist is a console command available in all GoldSrc GoldSrc and Source Source games.

Warning.pngWarning:The {{{engine}}} parameter is inconsistent with the name defined by the {{gldsrc}} template. This can most likely be fixed by setting the value of the {{{engine}}} parameter to GoldSrc.
Warning.pngWarning:The {{{engine1}}} parameter is inconsistent with the name defined by the {{src}} template. This can most likely be fixed by setting the value of the {{{engine1}}} parameter to Source.

This console command generates a list of all console commands for the game it is run from. Parameters allow the generation of a partial list and saving the list to a file.

Not all games have this command, however, or even if, it might be non-functional.

Syntax

GoldSrc GoldSrc:

cvarlist              : List all cvars
cvarlist ?            : Shows this help
cvarlist <prefix>     : List cvars starting with 'prefix'
cvarlist log <prefix> : Logs cvars to file "cvarlist.txt" in the gamedir

Source Source:

cvarlist
cvarlist <prefix>
cvarlist <prefix> log <filename>
PlacementTip.pngExample:For instance, Source cvarlist ai log ai_commands.txt will display a list of all console commands beginning with "ai", and will record that list to "ai_commands.txt" in the game's root directory.


Icon-Bug.pngBug:All (or most) console variables will have its description cut off if it is longer than ~128 characters. However, this is not an issue if the help command was used instead. This issue affects most Source 1 games, but was fixed in some games such as Counter-Strike: Source, and in all Source 2 games such as Counter-Strike 2.

From Postal III Postal III - console.log:

cl_clock_correction_adjustment_max_amount : 200  : , "cheat"  : Sets the maximum number of milliseconds per second it is allowed to correct the client clock. It will only correct this amount

From Counter-Strike: Global Offensive Counter-Strike: Global Offensive - using cvarlist log command:

"cl_clock_correction_adjustment_max_amount","200 ",,,,"CHEAT",,,,,,,,,,,,,,,,,"Sets the maximum number of milliseconds per second it is allowed to correct the client clock. It will only correct this amount "

From Counter-Strike: Source Counter-Strike: Source - console.log:

cl_clock_correction_adjustment_max_amount : 200  : , "cheat"  : Sets the maximum number of milliseconds per second it is allowed to correct the client clock. It will only correct this amount if the difference between the client and server clock is equal to or larger than cl_clock_correction_adjustment_max_offset.

See also