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 sets the maximum distance for finding a randomly connected navigation area in testing scenarios.
Name | Description |
---|---|
Maximum Distance |
The maximum distance (in units) for finding a randomly connected navigation area. |
This command sets the minimum distance for finding a randomly connected navigation area in test mode.
Name | Description |
---|---|
Distance |
The minimum distance in units that defines how far a randomly connected navigation area should be. |
Forces the non-playable characters (NPCs) to repath, used for debugging the navigation of bots in the game.
Name | Description |
---|---|
0 / 1 |
Determines whether to force NPCs to repath. |
This command is used to test if non-playable characters (NPCs) can navigate to a specified area in the game.
Name | Description |
---|---|
0 / 1 |
Sets whether or not to test NPC navigation to a specified area. |
Toggles the testing mode for NPC collisions with the navigation mesh in-game. This command is useful for developers or map creators to ensure NPCs navigate maps correctly.
Name | Description |
---|---|
0 / 1 |
Toggle NPC collision testing mode. |
This command is used to set the range at which the navigation testing for NPC collision detection occurs, marked as a cheat command.
Name | Description |
---|---|
Range |
The range in units for testing NPC collision. |
Toggles the display of NPC collision geometry in navigation meshes, which is useful for debugging navigation paths.
Name | Description |
---|---|
0 / 1 |
Enable or disable the display of NPC collision geometry. |
This command is used to calculate and then visually draw a path from the player or camera's current position to a specified test position within the navigation mesh in the game. It is typically used for debugging and testing navigation meshes.
Name | Description |
---|---|
0 / 1 |
Enables or disables the feature of calculating and drawing the navigation path. |
This command extends the functionality of nav_test_path by performing an expansion search along the specified path. The value of the console variable sets the distance parameter for the search.
Name | Description |
---|---|
0 / 1 |
Determines whether the path expansion search feature is enabled or disabled. |
Locks the pathfinding goal to the current intersection point. Useful for debugging navigation paths in game.
Name | Description |
---|---|
0 / 1 |
Determines whether the pathfinding goal is locked or not. |
Locks the pathfinding start point to the current intersection point. This is used mainly for debugging and testing navigation paths in the game environment.
Name | Description |
---|---|
0 / 1 |
Determines whether the pathfinding start is locked to the current intersection point. |
This command, when enabled, allows for testing path moves in the game. It is primarily used for debugging and optimizing navigation paths.
Name | Description |
---|---|
0 / 1 |
Enables or disables the test path move functionality. |
Enable path optimization for paths during navigation editing.
Name | Description |
---|---|
0 / 1 |
Determines whether path optimization for nav_edit_path paths is enabled or disabled. |
This command toggles the testing of path optimizations concerning transitions on the navigation mesh. It is used for debugging purposes to analyze how well different navigation paths are optimized during map navigation.
Name | Description |
---|---|
0 / 1 |
Toggles the path optimization testing on or off. |
This command calculates a return path from the cursor's current position to the path that was previously calculated by the nav_test_path command. It is used for debugging navigation paths in map development.
Name | Description |
---|---|
0 / 1 |
Determines whether the return path from cursor position is calculated. |
Determines if the nav_test_path command should test 3D navigation, with options for space to space, and multi-modal space/ground navigation. Marked as a server command that requires sv_cheats to be enabled.
Name | Description |
---|---|
0 / 1 / 2 |
Set to 0 to disable 3D navigation testing, 1 for space to space navigation, and 2 for multi-modal space/ground navigation. |
Controls the behavior of AI navigation smoothing for external pushes, generally used for testing or debugging AI pathfinding.
Name | Description |
---|---|
0 / 1 |
Toggles the smoothing of external pushes in AI navigation testing. |
This command adjusts the speed at which the navigation mesh smoothing process occurs in CS2, primarily used for debugging and developing navigation meshes.
Name | Description |
---|---|
Speed |
The speed at which the navigation mesh is smoothed. |
This command, intended for debugging, visually demonstrates how navigation meshes are smoothly integrated within the Y-axis in the game world when enabled.
Name | Description |
---|---|
0 / 1 |
Enable or disable the visual test for smooth integration of navigation meshes in the Y-axis. |
This command sets the speed of the 'smooth' pathing test in the navigation mesh used by bots. A value of -1 disables smooth path testing.
Name | Description |
---|---|
Speed |
The speed in units per second for smooth path testing. A value of -1 disables the testing. |