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 |
---|---|---|---|
sc_only_render_shadowcasters | This command is used to toggle the rendering of only shadow casters within the game environment. When enabled, only elements that cast shadows are rendered, which can be useful for debugging lighting and shadow-related issues. |
Examples, Generator & More | sc_only_render_shadowcasters
<0 / 1>
|
script_find | This command is used to search for a specific key within the virtual machine's (VM) scripting environment. It is primarily intended for debugging and development purposes, allowing developers to locate and examine the values of keys in the script. |
Examples, Generator & More | script_find
<Key name>
|
server_snd_cast | This command casts a ray from the player's current position in the game world and initiates a sound event at the location where the ray intersects with an object or terrain. The sound event will repeat at intervals for as long as the command is active. It is primarily used for testing and development purposes within the game environment. |
Examples, Generator & More | server_snd_cast
<Disable / Enable>
|
shatterglass_restore | This command restores shattered glass back to its original state. |
Examples, Generator & More | shatterglass_restore
|
shatterglass_shard_lifetime | Determines the lifetime of glass shards produced by shattering glass in-game. |
Examples, Generator & More | shatterglass_shard_lifetime
<Lifetime (seconds)>
|
shatterglass_subdiv_size | Specifies the size of the subdivisions for shattered glass effects. |
Examples, Generator & More | shatterglass_subdiv_size
<Subdivision Size>
|
shatterglass_voronoi_size | This command adjusts the size of the Voronoi cells for shattering glass effects in Counter-Strike 2. |
Examples, Generator & More | shatterglass_voronoi_size
<Voronoi Size>
|
silence_dsp | When on, silences all DSP mixes. It is primarily a debug tool and flagged as a cheat, meaning it can only be used on servers where cheats are enabled. |
Examples, Generator & More | silence_dsp
<0 / 1>
|
snd_break_on_start_soundevent | This command is used for debugging purposes. It triggers a breakpoint on any sound event that starts and matches the specified name. Useful for developers or testers looking to track down specific sound-related issues in the game. |
Examples, Generator & More | snd_break_on_start_soundevent
<Sound Event Name>
|
snd_enable_sound_services_visualizer | Toggles the debug rendering of the CEngineSoundServicesDebugVisualizerRel. |
Examples, Generator & More | snd_enable_sound_services_visualizer
<0 / 1>
|
snd_get_physics_surface_properties | This command retrieves the physics surface properties for all materials used in the game. It is typically used for debugging purposes. |
Examples, Generator & More | snd_get_physics_surface_properties
|
snd_new_visualize | Enables the visual presentation of sound events and their 3D positions in the game. |
Examples, Generator & More | snd_new_visualize
<0 / 1>
|
snd_occlusion_debug | Toggles the debugging of sound occlusion, providing visual feedback and information on the processing of sounds considering occlusion. |
Examples, Generator & More | snd_occlusion_debug
<0 / 1>
|
snd_sos_pause_soundevent | Pauses a specific sound event currently playing in the game. |
Examples, Generator & More | snd_sos_pause_soundevent
<Sound Event Name>
|
snd_sos_pause_system | Pauses or unpauses the Sound Operator System (SOS), which is responsible for handling dynamic sound effects and music in-game. |
Examples, Generator & More | snd_sos_pause_system
<0 / 1>
|
snd_toolvolume | Controls the volume of sounds in development tools, such as Hammer, the map editor, or Source Filmmaker (SFM), allowing users to adjust how loud these tool-generated sounds are. |
Examples, Generator & More | snd_toolvolume
<Volume>
|
snd_vmix_show_input_updates | When enabled, displays all incoming updates to vmix inputs, useful for debugging audio issues. |
Examples, Generator & More | snd_vmix_show_input_updates
<0 / 1>
|
spawn_group_activate | Activates the specified spawn group in the game, allowing entities within that group to spawn. This command is typically used in development or testing environments to control entity spawning. |
Examples, Generator & More | spawn_group_activate
<Spawngroup ID>
|
spawn_group_list | This command lists all spawn groups available in the game. It is useful for developers or server administrators who are tweaking or debugging spawn settings. |
Examples, Generator & More | spawn_group_list
|
spawn_group_load | This command is used to load a specific named spawn group within the game. It requires cheats to be enabled to use. |
Examples, Generator & More | spawn_group_load
<Spawn Group Name>
|