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 |
---|---|---|---|
nav_test_find_random_connected_dist_max | This command sets the maximum distance for finding a randomly connected navigation area in testing scenarios. |
Examples, Generator & More | nav_test_find_random_connected_dist_max
<Maximum Distance>
|
nav_test_find_random_connected_dist_min | This command sets the minimum distance for finding a randomly connected navigation area in test mode. |
Examples, Generator & More | nav_test_find_random_connected_dist_min
<Distance>
|
nav_test_force_npc_repath | Forces the non-playable characters (NPCs) to repath, used for debugging the navigation of bots in the game. |
Examples, Generator & More | nav_test_force_npc_repath
<0 / 1>
|
nav_test_npc_area | This command is used to test if non-playable characters (NPCs) can navigate to a specified area in the game. |
Examples, Generator & More | nav_test_npc_area
<0 / 1>
|
nav_test_npc_collision | 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. |
Examples, Generator & More | nav_test_npc_collision
<0 / 1>
|
nav_test_npc_collision_range | This command is used to set the range at which the navigation testing for NPC collision detection occurs, marked as a cheat command. |
Examples, Generator & More | nav_test_npc_collision_range
<Range>
|
nav_test_npc_collision_show_geometry | Toggles the display of NPC collision geometry in navigation meshes, which is useful for debugging navigation paths. |
Examples, Generator & More | nav_test_npc_collision_show_geometry
<0 / 1>
|
nav_test_path | 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. |
Examples, Generator & More | nav_test_path
<0 / 1>
|
nav_test_path_expansion_search | 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. |
Examples, Generator & More | nav_test_path_expansion_search
<0 / 1>
|
nav_test_path_lock_goal | Locks the pathfinding goal to the current intersection point. Useful for debugging navigation paths in game. |
Examples, Generator & More | nav_test_path_lock_goal
<0 / 1>
|
nav_test_path_lock_start | Locks the pathfinding start point to the current intersection point. This is used mainly for debugging and testing navigation paths in the game environment. |
Examples, Generator & More | nav_test_path_lock_start
<0 / 1>
|
nav_test_path_move | This command, when enabled, allows for testing path moves in the game. It is primarily used for debugging and optimizing navigation paths. |
Examples, Generator & More | nav_test_path_move
<0 / 1>
|
nav_test_path_opt | Enable path optimization for paths during navigation editing. |
Examples, Generator & More | nav_test_path_opt
<0 / 1>
|
nav_test_path_opt_transitions | 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. |
Examples, Generator & More | nav_test_path_opt_transitions
<0 / 1>
|
nav_test_path_return | 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. |
Examples, Generator & More | nav_test_path_return
<0 / 1>
|
nav_test_path_space | 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. |
Examples, Generator & More | nav_test_path_space
<0 / 1 / 2>
|
nav_test_smooth_extern_push | Controls the behavior of AI navigation smoothing for external pushes, generally used for testing or debugging AI pathfinding. |
Examples, Generator & More | nav_test_smooth_extern_push
<0 / 1>
|
nav_test_smooth_in_speed | This command adjusts the speed at which the navigation mesh smoothing process occurs in CS2, primarily used for debugging and developing navigation meshes. |
Examples, Generator & More | nav_test_smooth_in_speed
<Speed>
|
nav_test_smooth_in_yaw | This command, intended for debugging, visually demonstrates how navigation meshes are smoothly integrated within the Y-axis in the game world when enabled. |
Examples, Generator & More | nav_test_smooth_in_yaw
<0 / 1>
|
nav_test_smooth_path_speed | 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. |
Examples, Generator & More | nav_test_smooth_path_speed
<Speed>
|