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
Enables or disables the recording of additional information in demos, making them 'fat'. Fat demos contain extra data that can be useful for detailed analysis but will result in larger file sizes.
Name | Description |
---|---|
0 / 1 |
Enable or disable fat demo recording. |
The command is involved in handling the output for 'fat' demos in Counter-Strike 2, specifically designating the output file name for such demos.
Name | Description |
---|---|
File name |
The name of the file to which the 'fat' demo output will be saved. |
This command is used to log player touch expansion components for a specified entity or for all entities.
Name | Description |
---|---|
Entity ID |
The index of the entity to log touch expansion for, or -1 for all entities. |
This command adjusts the scalar value used in calculating the split log for Cascaded Shadow Maps (CSM), potentially impacting performance and visual quality of shadows.
Name | Description |
---|---|
Scalar value |
The scalar value to use for calculating CSM split log. |
Toggles visibility of the debug overlay system, used primarily for development and debugging purposes. It helps visualize various engine and game components.
Toggles visibility of the debug overlay system. This is a cheat-protected command that allows developers and players, with cheats enabled, to toggle the state of the debug overlay, which can display various technical information on-screen for debugging purposes.
This command forces the debug overlay to respect the "time to live" (TTL) for overlay elements even when clearing scopes. It is primarily used for debugging purposes.
Name | Description |
---|---|
0 / 1 |
Determines whether to force respect TTL for debug overlay elements. |
This command hides the overlay used for debugging in CS2, making it invisible to the user.
Prints the demo sequence list in your developer console for you to see.
This command allows the server to change the current level to a specified workshop map by its name.
Name | Description |
---|---|
Map Name |
The name of the workshop map to change to. |
This command is used to list all the workshop maps that are available on the current server.
Prints out information on existing particle systems. It provides details such as names and possibly other characteristics of all particle systems currently used or available in the game.
This command controls the bone flexing feature, allowing it to be enabled or disabled to potentially optimize performance.
Name | Description |
---|---|
0 / 1 |
This argument enables or disables the feature. |
Adjusts the behavior of low latency mode by changing the timing of the sleep function in relation to the client's simulation when r_low_latency
is enabled.
Name | Description |
---|---|
0 / 1 |
Disables or enables the adjustment of low latency sleep timing after client simulation. |
This command is used for debugging animation graphs for specified entities. It provides visualization of animation graph states and parameters which can be essential for developers or modders troubleshooting character animations.
Name | Description |
---|---|
Entity ID |
The ID of the entity for which to display the animation graph debug information. |
This command toggles the recording of animation graph replay for specified entities, useful for debugging animations in-game.
Name | Description |
---|---|
Entity ID |
The ID of the entity whose animation graph replay is to be recorded. |
0 / 1 |
Toggle recording off (0) or on (1). |
This command sets a specific variable within the animgraph of the designated entities, allowing for dynamic adjustments in animations.
Name | Description |
---|---|
Entity ID |
The ID of the entity whose animgraph variable is being set. |
Variable Name |
The name of the variable to be set in the entity's animgraph. |
Value |
The new value to set for the specified variable. |
This command calls a function by name on a particular entity in the game world. It's used primarily for debugging or modifying entity behavior directly from the console.
Name | Description |
---|---|
Function Name |
The name of the function to call on the entity. |
Entity ID |
The unique identifier or name of the entity you wish to manipulate. This might vary depending on the entities present in your game session. |
Controls the output unserialization of entities during map load, allowing you to specify whether this information appears on the client, the server, or both.
Name | Description |
---|---|
0 / 1 |
Enables or disables output unserialization of entities. |
Sets damage display mode. When on, you will see the amount of damage dealt over the target's head.
Name | Description |
---|---|
0 / 1 |
Enable or disable damage display mode. |