CS2 Server Commands

Commands to enhance cs2 server features of Counter-Strike game

nav_path_optimize_portals

CS2 Only

Command

nav_path_optimize_portals

<0 / 1>

Improves bot navigation by optimizing portals within the navigation mesh, enabling smoother and more efficient pathfinding on complex maps.

Command Details

nav_path_optimizer_debug

CS2 Only

Command

nav_path_optimizer_debug

<0 / 1>

Toggle debug mode for the navigation path optimizer to help analyze AI pathfinding.

Command Details

nav_path_record_enable

CS2 Only

Command

nav_path_record_enable

<0 / 1>

Turns on or off navigation path recording, used to help improve AI and bot pathfinding on navigation meshes.

Command Details

nav_select_allow_blocked

CS2 Only

Command

nav_select_allow_blocked

<0 / 1>

Allows selecting areas marked as blocked when editing the navigation mesh.

Command Details

nav_select_area_id

CS2 Only

Command

nav_select_area_id

<Area ID>

Select a specific navigation area in the game by its ID. Useful for debugging and editing the navigation mesh.

Command Details

nav_select_block_id

CS2 Only

Command

nav_select_block_id

<Block ID>

Selects a navigation mesh block by its ID, useful for map design and debugging navigation paths.

Command Details

nav_select_hull

CS2 Only

Command

nav_select_hull

<Hull Size Category>

Limits navigation mesh area selection to those that fit the specified hull size. This helps level designers and developers test pathfinding for different entity sizes.

Command Details

nav_select_with_attribute

CS2 Only

Command

nav_select_with_attribute

<Attribute>

Select navigation areas on the game map that have a specific attribute. Useful for map developers and debugging.

Command Details

nav_show_area_info_font_size

CS2 Only

Command

nav_show_area_info_font_size

<Font Size>

Sets the font size of the area information shown when using the 'nav_show_area_info' command in CS2. Use -1 to revert to the default font size.

Command Details

nav_smooth_calc_z

CS2 Only

Command

nav_smooth_calc_z

<0 / 1>

Enables or disables smoothing of Z-axis values in navigation mesh calculations to improve pathfinding accuracy on uneven terrain.

Command Details