Skip to content
/SLASHPLAY

How to make bots move in Half-Life 2: Deathmatch

Type sv_cheats 1, then nav_generate in the Console tab; bots use the mesh once it is saved.

nav_generate

Builds the navigation mesh bots need for the current map and saves it as a .nav file. Needs sv_cheats 1.

nav_generate

Examples

nav_generate

Builds and saves the mesh for this map.

What it does

Run it once per map before adding bots. It can take a while on big maps and the server is busy until it finishes.

Good to know

  • Type sv_cheats 1 first. The file is saved as hl2mp/maps/<map>.nav, which isn't part of the save on SLASHPLAY unless you take ownership of it in the file manager.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to hl2mp/cfg/server.cfg. New to this? Start a HL2DM server first.

Your own
HL2DM server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.