Enable the developer console:
Go to Settings > Game Settings and set "Enable Developer Console" to "Yes".
Press ` or ~ on your keyboard.
Enter a command and hit ENTER on your keyboard to run it!
Commands List
Command | Description | More | Syntax |
---|---|---|---|
sv_metaduplication | This command checks the serializer metadata for any duplications. When 'verbose' is added to the command, it provides a detailed output of the findings, which can be useful for debugging purposes. |
Examples, Generator & More | sv_metaduplication
<0 / 1>
|
sv_phys_debug_callback_entities | This command is used to print all entities that receive touch callbacks in the game. Each eligible entity is listed only once, making it easier for developers or server administrators to debug entity interactions. |
Examples, Generator & More | sv_phys_debug_callback_entities
<0 / 1>
|
sv_phys_sleep_enable | This command enables or disables the sleeping feature for dynamic physics objects in the game. When enabled, objects can go into a 'sleep' state to improve game performance. |
Examples, Generator & More | sv_phys_sleep_enable
<0 / 1>
|
sv_pvs_max_distance | This command sets a maximum range to Potentially Visible Set (PVS) and Potentially Audible Set (PAS) checks, which can influence network optimization and the visibility/audio of objects and entities in the game. |
Examples, Generator & More | sv_pvs_max_distance
<Distance>
|
sv_update_animgraph_movement_in_finish | This command determines if animgraph movement updates should occur in the FinishMove phase, which is part of the game's internal movement and animation processing. |
Examples, Generator & More | sv_update_animgraph_movement_in_finish
<0 / 1>
|
sv_usercmd_queue_spew_threshold | This command sets a threshold for queuing user commands. If the command queue exceeds this threshold, it will issue a warning indicating the backlog of commands has exceeded the set limit. |
Examples, Generator & More | sv_usercmd_queue_spew_threshold
<Threshold>
|
sys_info | This command prints out detailed system information to the console, including CPU, GPU, memory usage, and other system-related statistics. |
Examples, Generator & More | sys_info
|
test_list_entities | Displays a list of entities currently present in the game. This is generally used for debugging purposes to ensure that entities are being created and destroyed as expected. |
Examples, Generator & More | test_list_entities
|
ui_inspect_bkgnd_map_B0B70CFF | Sets the background map used during weapon inspections in the UI. |
Examples, Generator & More | ui_inspect_bkgnd_map_B0B70CFF
<Map Name>
|
ui_mainmenu_bkgnd_movie_B0B70CFF | This command sets the background movie for the main menu in Counter-Strike 2. |
Examples, Generator & More | ui_mainmenu_bkgnd_movie_B0B70CFF
<Movie Name>
|
ui_steam_overlay_notification_position_horz | This command sets the horizontal offset for Steam overlay notifications. |
Examples, Generator & More | ui_steam_overlay_notification_position_horz
<Offset>
|
ui_steam_overlay_notification_position_vert | This command sets the vertical offset for Steam overlay notifications, allowing customization of where notifications appear on the screen. |
Examples, Generator & More | ui_steam_overlay_notification_position_vert
<Vertical Offset>
|
voice_loopback_no_networking | This command toggles the ability to hear your own voice in-game without sending it over the network, useful for testing your microphone or settings locally. |
Examples, Generator & More | voice_loopback_no_networking
<0 / 1>
|
volume_fog_clipmaps_enabled | This command, when enabled, allows the game to utilize volumetric fog, which enhances environmental visual effects. |
Examples, Generator & More | volume_fog_clipmaps_enabled
<0 / 1>
|
volume_fog_clipmap_update | Determines if the volume fog's clipmap should be updated. This command is useful for developers or for debugging purposes. |
Examples, Generator & More | volume_fog_clipmap_update
<0 / 1>
|
volume_fog_disable | This command disables or enables volumetric fog in the game. Volumetric fog adds to the visual depth and atmosphere but may impact performance. |
Examples, Generator & More | volume_fog_disable
<0 / 1>
|
volume_fog_dither_scale | Adjusts the scale of dithering in volumetric fog rendering. It changes the visual quality and potential performance impact of fog. |
Examples, Generator & More | volume_fog_dither_scale
<Dither Scale>
|
volume_fog_enable_jitter | Enables or disables jitter in volume fog rendering, likely creating a more realistic or unstable fog appearance depending on the setting. |
Examples, Generator & More | volume_fog_enable_jitter
<0 / 1>
|
volume_fog_enable_stereo | Enables or disables stereo rendering for volumetric fog. |
Examples, Generator & More | volume_fog_enable_stereo
<0 / 1>
|
volume_fog_enlarge_frusta | This command modifies how the game engine calculates fog volume, specifically affecting the enlargement of frusta (plural of frustum, which are the visible volumes of space in 3D rendering). |
Examples, Generator & More | volume_fog_enlarge_frusta
<Enlarge frusta value>
|