CS2 Console Commands List

  • Page 51

Below is Total CS' searchable list of all CS2 console commands. Each command in our database has detailed documentation, with help and argument explanation (hover over a command to view). Click on a command's name to visit its individual page, on which you can find more information including working examples and its default setting or value.

Type the name of a command into the search box to instantly filter our entire database of commands. Toggle between different views by pressing the "Card View" and "Table View" buttons.

If you are looking for a more specific selection of commands, you may prefer to sort by category.

Updated for CS2: We've updated our list to include over 1,000 console commands that were added in CS2.

We're the only website that has a complete list of all Counter-Strike 2 commands with complete documentation and examples. CS:GO Commands are hidden from this list by default. If you're playing on CS:GO, check the "Show CS:GO Commands" box to show commands that exist in Counter-Strike: Global Offensive.

How to Use CS:GO & CS2 Commands
  1. Enable the developer console:

    Go to Settings > Game Settings and set "Enable Developer Console" to "Yes".

  2. Press ` or ~ on your keyboard.

  3. Enter a command and hit ENTER on your keyboard to run it!

Are you still stuck? More Help
IPS

Commands List

nav_test_find_random_connected_dist_max <Maximum Distance>

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.

Examples, Generator & More
nav_test_find_random_connected_dist_min <Distance>

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.

Examples, Generator & More
nav_test_force_npc_repath <0 / 1>

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.

Examples, Generator & More
nav_test_npc_area <0 / 1>

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.

Examples, Generator & More
nav_test_npc_collision <0 / 1>

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.

Examples, Generator & More
nav_test_npc_collision_range <Range>

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.

Examples, Generator & More
nav_test_npc_collision_show_geometry <0 / 1>

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.

Examples, Generator & More
nav_test_path <0 / 1>

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.

Examples, Generator & More
nav_test_path_expansion_search <0 / 1>

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.

Examples, Generator & More
nav_test_path_lock_goal <0 / 1>

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.

Examples, Generator & More
nav_test_path_lock_start <0 / 1>

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.

Examples, Generator & More
nav_test_path_move <0 / 1>

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.

Examples, Generator & More
nav_test_path_opt <0 / 1>

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.

Examples, Generator & More
nav_test_path_opt_transitions <0 / 1>

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.

Examples, Generator & More
nav_test_path_return <0 / 1>

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.

Examples, Generator & More
nav_test_path_space <0 / 1 / 2>

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.

Examples, Generator & More
nav_test_smooth_extern_push <0 / 1>

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.

Examples, Generator & More
nav_test_smooth_in_speed <Speed>

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.

Examples, Generator & More
nav_test_smooth_in_yaw <0 / 1>

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.

Examples, Generator & More
nav_test_smooth_path_speed <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.

Name Description
Speed

The speed in units per second for smooth path testing. A value of -1 disables the testing.

Examples, Generator & More