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
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.
Name | Description |
---|---|
0 / 1 |
Toggle the rendering of only shadow casters. |
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.
Name | Description |
---|---|
Key name |
The name of the key to search for within the VM. |
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.
Name | Description |
---|---|
Disable / Enable |
Turns the periodic sound event trigger caused by the ray cast off or on. |
This command restores shattered glass back to its original state.
Determines the lifetime of glass shards produced by shattering glass in-game.
Name | Description |
---|---|
Lifetime (seconds) |
The duration in seconds that glass shards remain in the game world. |
Specifies the size of the subdivisions for shattered glass effects.
Name | Description |
---|---|
Subdivision Size |
The size of the subdivisions for the shattered glass effect. |
This command adjusts the size of the Voronoi cells for shattering glass effects in Counter-Strike 2.
Name | Description |
---|---|
Voronoi Size |
The size of the Voronoi cells used in glass shattering effects. |
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.
Name | Description |
---|---|
0 / 1 |
Specifies whether to enable or disable the silence of all DSP mixes. |
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.
Name | Description |
---|---|
Sound Event Name |
The name of the sound event to break on when started. |
Toggles the debug rendering of the CEngineSoundServicesDebugVisualizerRel.
Name | Description |
---|---|
0 / 1 |
Toggles the visualizer on or off. |
This command retrieves the physics surface properties for all materials used in the game. It is typically used for debugging purposes.
Enables the visual presentation of sound events and their 3D positions in the game.
Name | Description |
---|---|
0 / 1 |
Enable or disable the visualization of sound events. |
Toggles the debugging of sound occlusion, providing visual feedback and information on the processing of sounds considering occlusion.
Name | Description |
---|---|
0 / 1 |
Enables or disables the sound occlusion debugging. |
Pauses a specific sound event currently playing in the game.
Name | Description |
---|---|
Sound Event Name |
The name of the sound event to be paused. |
Pauses or unpauses the Sound Operator System (SOS), which is responsible for handling dynamic sound effects and music in-game.
Name | Description |
---|---|
0 / 1 |
Determines whether to pause (1) or unpause (0) the Sound Operator System. |
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.
Name | Description |
---|---|
Volume |
The volume level for tool sounds. |
When enabled, displays all incoming updates to vmix inputs, useful for debugging audio issues.
Name | Description |
---|---|
0 / 1 |
Specifies whether to show or hide vmix input updates. |
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.
Name | Description |
---|---|
Spawngroup ID |
The ID of the spawngroup to activate. |
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.
This command is used to load a specific named spawn group within the game. It requires cheats to be enabled to use.
Name | Description |
---|---|
Spawn Group Name |
The name of the spawn group to be loaded. |