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
Automatically re-zooms sniper rifles after firing a shot. When enabled, the player's sniper scope will automatically re-zoom after each shot without needing to manually zoom in again.
Name | Description |
---|---|
0 / 1 |
Whether to enable or disable sniper auto re-zoom. |
Determines whether the team counter displays the number of players instead of avatars.
Name | Description |
---|---|
0 / 1 |
Enable or disable displaying player count instead of avatars |
This command controls whether the introduction sequence for versus mode is played.
Name | Description |
---|---|
0 / 1 |
Enable or disable the versus mode introduction sequence. |
Enables or disables the commentary mode, which provides developer insights on various aspects of the game.
Name | Description |
---|---|
0 / 1 |
Desired state of the commentary mode. |
Adjusts the scale of the map preview in the Counter-Strike 2 interface.
Name | Description |
---|---|
Scale |
The scaling factor for the map preview. |
Adjusts how far into the distance the viewmodel can render. Primarily used for debugging purposes.
Name | Description |
---|---|
Render Distance |
The distance in units at which the viewmodel stops rendering. |
This command adjusts the maximum visible distance for viewmodels, affecting how far away models can appear in-game.
Name | Description |
---|---|
Distance |
The maximum distance (in units) that viewmodels will be visible. |
Adjusts the proximity of the viewmodel to the screen on the Z-axis. Useful for fine-tuning how weapons and hands are displayed in the player's view.
Name | Description |
---|---|
Z-axis proximity |
The proximity of the viewmodel to the screen on the Z-axis. |
This command is used to draw the behavior tree of the specified bot, aiding in understanding and debugging the bot's decision-making processes. It is particularly useful for developers and testers.
Name | Description |
---|---|
Bot ID |
The specific ID of the bot whose behavior tree is to be drawn. |
This command is used to visualize the hiding spots for bots within the game. It is a developer tool mainly used for testing and debugging AI behaviors in various maps.
Name | Description |
---|---|
0 / 1 |
This toggles the visibility of bot hiding spots on the map. |
This command, when enabled, visualizes the next hiding spot a bot plans to check. Useful for understanding bot movement and pathfinding in relation to hiding spots.
Name | Description |
---|---|
0 / 1 |
Enables or disables the visualization of the next hiding spot bots will check. |
This command is used to execute a cfg (configuration) file over a period of time instead of all at once. It is particularly useful for applying settings that could potentially disrupt gameplay if loaded instantly.
Name | Description |
---|---|
File Name |
Name of the cfg file to be executed. |
Sets an additional frame rate limit while in tools mode and when a window other than the game window has focus. This allows for lower frame rates in tools mode without affecting the main game's fps_max setting. If set to 0, there is no specific limit for tools mode.
Name | Description |
---|---|
Frames per second |
The maximum number of frames per second to be displayed in tools mode when the game window is not in focus. Setting this to 0 removes the limit. |
Sets the maximum frame rate for the game UI. A setting of 0 removes the limit.
Name | Description |
---|---|
Frame rate limit |
Maximum frame rate for the game UI. 0 for no limit. |
This command allows the server hostname to be shown in the client's status information.
Name | Description |
---|---|
0 / 1 |
Enable or disable the display of server hostname in client status. |
This console command changes the distance between separate flame spawns when using molotov and incendiary grenades.
Name | Description |
---|---|
Spacing |
The distance you want between flame spawns. The default value for this command is 42. |
This command sets the deadzone for the x-axis of a joystick, determining the minimum movement required on the x-axis to be recognized as input.
Name | Description |
---|---|
Deadzone Value |
The minimum movement required on the x-axis to detect input. |
Determines if the joystick's X-axis movements are interpreted as relative inputs. Primarily affects how camera or character movement is handled in relation to the joystick's horizontal movements.
Name | Description |
---|---|
0 / 1 |
Determines whether the joystick's X-axis is relative. |
Sets the deadzone for the Y-axis on a joystick, which is the threshold below which joystick movements are ignored.
Name | Description |
---|---|
Deadzone Value |
The threshold value for the Y-axis deadzone, ranging from 0 to 1. |
This command sets the Y-axis of the joystick to operate in either relative or absolute mode for movement.
Name | Description |
---|---|
0 / 1 |
Sets the joystick's Y-axis mode. |