CS2 Console Commands List

  • Page 29

Below is Total CS' searchable list of all CS2 console commands. Each command in our database has detailed documentation, with help and argument explanation (hover over a command to view). Click on a command's name to visit its individual page, on which you can find more information including working examples and its default setting or value.

Type the name of a command into the search box to instantly filter our entire database of commands. Toggle between different views by pressing the "Card View" and "Table View" buttons.

If you are looking for a more specific selection of commands, you may prefer to sort by category.

Updated for CS2: We've updated our list to include over 1,000 console commands that were added in CS2.

We're the only website that has a complete list of all Counter-Strike 2 commands with complete documentation and examples. CS:GO Commands are hidden from this list by default. If you're playing on CS:GO, check the "Show CS:GO Commands" box to show commands that exist in Counter-Strike: Global Offensive.

How to Use CS:GO & CS2 Commands
  1. Enable the developer console:

    Go to Settings > Game Settings and set "Enable Developer Console" to "Yes".

  2. Press ` or ~ on your keyboard.

  3. Enter a command and hit ENTER on your keyboard to run it!

Are you still stuck? More Help
Ad

Commands List

repeat_last_console_command

Repeats the last command that was entered into the console. This is useful for quickly re-executing commands without needing to type them again.

Examples, Generator & More
r_flashlighttracedistcutoff <Distance>

This command adjusts the cutoff distance for the flashlight's trace in the game, impacting how the flashlight beam interacts with surfaces and objects.

Name Description
Distance

The cutoff distance for the flashlight's trace effect, impacting how the flashlight beam interacts at distance.

Examples, Generator & More
r_indirectlighting <0 / 1>

This command enables or disables the use of indirect lighting in the game, which can affect the game's visual appearance.

Name Description
0 / 1

Toggle the use of indirect lighting.

Examples, Generator & More
r_muzzleflashlinear <Linear Scale>

Adjusts the linear scale of muzzle flashes. Lower values decrease the size, while higher values increase it.

Name Description
Linear Scale

The scale value to adjust the size of muzzle flashes.

Examples, Generator & More
r_showdebugoverlays <0 / 1>

This command toggles the rendering of debug overlays, which can provide valuable information for developers or players looking to debug specific features within the game.

Name Description
0 / 1

Enable or disable the rendering of debug overlays.

Examples, Generator & More
r_size_cull_threshold_shadow <Threshold value>

Specifies the threshold as a percentage of the sun shadow map size beneath which objects are culled, used as a performance optimization technique.

Name Description
Threshold value

The percentage of the sun shadow map size below which objects are culled.

Examples, Generator & More
sc_disable_shadow_materials <0 / 1>

This command disables the rendering of shadow materials, which can affect the visual appearance of shadows in the game.

Name Description
0 / 1

This argument determines whether shadow materials rendering is disabled or not.

Examples, Generator & More
sc_extended_stats <0 / 1>

Enables or disables the display of extended statistics in the console.

Name Description
0 / 1

Flag to enable or disable extended statistics.

Examples, Generator & More
script_reload

This command reloads all scripts currently in use by the game. It's useful for developers or during debugging to apply changes without restarting the game entirely.

Examples, Generator & More
sellbackall

Attempts to refund all equipment owned by the player, effectively selling it back.

Examples, Generator & More
shatterglass_break

This command simulates the breaking of glass objects within the game environment.

Examples, Generator & More
shatterglass_cleanup <0 / 1>

Determines whether broken glass debris is automatically cleaned up in the game environment, aiding in performance and visual clarity.

Name Description
0 / 1

Enables or disables the automatic cleanup of broken glass.

Examples, Generator & More
shatterglass_cleanup_max <Max Shattered Glass Pieces>

This command determines the maximum amount of shattered glass pieces that can exist in the environment at one time before older pieces are cleaned up to make room for new ones.

Name Description
Max Shattered Glass Pieces

The maximum number of shattered glass pieces allowed before cleanup.

Examples, Generator & More
shatterglass_distort <0 / 1>

This command enables or disables the distortion effect when glass shatters in-game.

Name Description
0 / 1

Whether to enable or disable the distortion effect on glass shattering.

Examples, Generator & More
shatterglass_hit_tolerance <Tolerance Level>

Determines the tolerance level for the shattering of glass upon being hit in the game.

Name Description
Tolerance Level

The numeric value indicating the level of tolerance towards impacts before glass shatters.

Examples, Generator & More
snd_cast

Casts a ray from the player's viewpoint, creating a sound event where the ray intersects with an object in the game world. This command is primarily used for debugging audio issues. The sound can be set to retrigger periodically, and previous sound events can be cleared.

Examples, Generator & More
snd_occlusion_min_wall_thickness <Wall Thickness>

Defines the minimum thickness of walls for sound occlusion calculations in the game.

Name Description
Wall Thickness

Minimum thickness of walls to consider for sound occlusion.

Examples, Generator & More
snd_rear_stereo_scale <Scale>

This command adjusts the scale of stereo sound for rear speakers in a surround sound setup, enhancing or reducing spatial sound effects.

Name Description
Scale

The scale of stereo sound for rear speakers. A higher value enhances spatial sound effects, while a lower value reduces them.

Examples, Generator & More
splitscreen_mode <0 / 1>

This command toggles the splitscreen mode in-game, allowing for multiple views on the same screen, typically used for local multiplayer.

Name Description
0 / 1

Sets the splitscreen mode to either off (0) or on (1).

Examples, Generator & More
status_json

This command is used to print the current game status, including player and server information, in JSON format for easier parsing and automation tasks.

Examples, Generator & More