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_select_area_id | 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. |
Examples, Generator & More | nav_select_area_id
<Area ID>
|
nav_select_block_id | This command selects a navigation space block that matches the given ID. It is used especially in map development or debugging navigation paths. |
Examples, Generator & More | nav_select_block_id
<Block ID>
|
nav_select_hull | 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. |
Examples, Generator & More | nav_select_hull
<Hull Size Category>
|
nav_select_with_attribute | This command is used to select navigation areas that have a specific attribute within the game map. Useful for map developers or during debugging. |
Examples, Generator & More | nav_select_with_attribute
<Attribute>
|
nav_show_area_info_font | Sets the font used for displaying area information in the navigation mesh (when debugging or analyzing navigation). |
Examples, Generator & More | nav_show_area_info_font
<Font Name>
|
nav_show_area_info_font_size | 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. |
Examples, Generator & More | nav_show_area_info_font_size
<Font Size>
|
nav_show_area_info_font_voffset | Adjusts the vertical offset for the area information text displayed on the navigation mesh for debugging. |
Examples, Generator & More | nav_show_area_info_font_voffset
<Vertical Offset>
|
nav_show_area_verts | Enables or disables the display of navigational area vertices in the game, which is useful for map development and debugging. |
Examples, Generator & More | nav_show_area_verts
<0 / 1>
|
nav_show_area_water_info | Toggles the visualization of water-related information in navigation areas for debugging purposes. |
Examples, Generator & More | nav_show_area_water_info
<0 / 1>
|
nav_smooth_draw_speed | 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. |
Examples, Generator & More | nav_smooth_draw_speed
<Speed>
|
nav_smooth_relax | This command controls the relaxation smoothing for the navigation mesh. Used for debugging path-finding. |
Examples, Generator & More | nav_smooth_relax
<0 / 1>
|
nav_smooth_spring_yaw_rotation_speed | Sets the rotation speed of the yaw when smoothing spring navigations. |
Examples, Generator & More | nav_smooth_spring_yaw_rotation_speed
<Speed>
|
nav_smooth_spring_yaw_threshold | This command sets the threshold for smooth spring yaw adjustments when navigating. |
Examples, Generator & More | nav_smooth_spring_yaw_threshold
<Threshold>
|
nav_smooth_use_opt | Controls whether the navigation smoothing optimization is used. This is mainly a development tool related to AI pathfinding. |
Examples, Generator & More | nav_smooth_use_opt
<0 / 1>
|
navspace_debug_stringpull | This command is used to debug navigation spaces by displaying string pull effects when set to enabled. |
Examples, Generator & More | navspace_debug_stringpull
<0 / 1>
|
navspace_debug_trace | Enables or disables the debug tracing of navigation spaces in-game, useful for developers or map creators to troubleshoot pathfinding issues. |
Examples, Generator & More | navspace_debug_trace
<0 / 1>
|
navspace_debug_transition_calc | This command is used to debug the navigation transition calculations in the game, allowing developers to analyze and optimize pathfinding. |
Examples, Generator & More | navspace_debug_transition_calc
<0 / 1>
|
navspace_draw_water_changes | This command visually represents changes in water volumes in navigation spaces, useful for debugging map features related to water. |
Examples, Generator & More | navspace_draw_water_changes
<0 / 1>
|
navspace_path_use_water_level_locator | This command determines whether the navigation paths should factor in water levels during their calculation, affecting how NPCs navigate through water in the game. |
Examples, Generator & More | navspace_path_use_water_level_locator
<0 / 1>
|
nav_test_find_nearest_clear | 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. |
Examples, Generator & More | nav_test_find_nearest_clear
<0 / 1>
|