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 selects a navigation area in the game with a specific ID. It is used for debugging and modifying the game's navigation mesh.
Name | Description |
---|---|
Area ID |
The identifier of the navigation area to select. |
This command selects a navigation space block that matches the given ID. It is used especially in map development or debugging navigation paths.
Name | Description |
---|---|
Block ID |
The ID of the navigation space block to select. |
This command restricts area selection in the navigation mesh to areas that can accommodate an entity with the specified hull size category. This is useful for level design or debugging pathfinding for different types of entities.
Name | Description |
---|---|
Hull Size Category |
Specifies the size category of the hull for which area selection in the navigation mesh will be restricted. |
This command is used to select navigation areas that have a specific attribute within the game map. Useful for map developers or during debugging.
Name | Description |
---|---|
Attribute |
The specific attribute of navigation areas to select. |
Sets the font used for displaying area information in the navigation mesh (when debugging or analyzing navigation).
Name | Description |
---|---|
Font Name |
The name of the font to be used. |
This command sets the font size of the area information displayed when using the 'nav_show_area_info' command in CS2. A value of -1 resets it to the default font size.
Name | Description |
---|---|
Font Size |
The font size for the area information text. -1 resets to default. |
Adjusts the vertical offset for the area information text displayed on the navigation mesh for debugging.
Name | Description |
---|---|
Vertical Offset |
The amount by which to vertically adjust the navigation mesh area info text. |
Enables or disables the display of navigational area vertices in the game, which is useful for map development and debugging.
Name | Description |
---|---|
0 / 1 |
Enable or disable the display of nav area vertices. |
Toggles the visualization of water-related information in navigation areas for debugging purposes.
Name | Description |
---|---|
0 / 1 |
Whether to enable or disable the visualization of water-related information in navigation areas. |
This command sets the speed at which the navigation mesh is drawn in smooth mode, affecting how quickly the outlines of the navigation areas are rendered when inspected.
Name | Description |
---|---|
Speed |
The draw speed of navigation meshes in smooth mode. |
This command controls the relaxation smoothing for the navigation mesh. Used for debugging path-finding.
Name | Description |
---|---|
0 / 1 |
Turns the navigation mesh relaxation smoothing on or off. |
Sets the rotation speed of the yaw when smoothing spring navigations.
Name | Description |
---|---|
Speed |
The rotation speed of the yaw in units. |
This command sets the threshold for smooth spring yaw adjustments when navigating.
Name | Description |
---|---|
Threshold |
The threshold value for smooth spring yaw adjustments. |
Controls whether the navigation smoothing optimization is used. This is mainly a development tool related to AI pathfinding.
Name | Description |
---|---|
0 / 1 |
Disable or enable the navigation smoothing optimization. |
This command is used to debug navigation spaces by displaying string pull effects when set to enabled.
Name | Description |
---|---|
0 / 1 |
Enables or disables the display of navigation space string pulls for debugging purposes. |
Enables or disables the debug tracing of navigation spaces in-game, useful for developers or map creators to troubleshoot pathfinding issues.
Name | Description |
---|---|
0 / 1 |
Enable or disable the debug tracing. |
This command is used to debug the navigation transition calculations in the game, allowing developers to analyze and optimize pathfinding.
Name | Description |
---|---|
0 / 1 |
Enables or disables the debug mode for navigation transition calculations. |
This command visually represents changes in water volumes in navigation spaces, useful for debugging map features related to water.
Name | Description |
---|---|
0 / 1 |
Toggles the drawing of changes in water volumes. 0 turns it off, 1 turns it on. |
This command determines whether the navigation paths should factor in water levels during their calculation, affecting how NPCs navigate through water in the game.
Name | Description |
---|---|
0 / 1 |
Set whether to include water levels in navigation path calculations or not. |
This command calculates the nearest point on the navigation mesh (navmesh) to a designated trace point, utilizing the selection from nav_select_hull. It's primarily used for debugging purposes to test navigation meshes in CS2.
Name | Description |
---|---|
0 / 1 |
Sets whether to enable or disable the calculation of the nearest point on the navmesh to the trace point. |