Skip to content
/SLASHPLAY

How to set the number of bots in Half-Life 2: Deathmatch

Type hl2mp_bot_quota 6 in the Console tab, and add it to hl2mp/cfg/server.cfg to keep six bots after a restart.

hl2mp_bot_quota

Sets how many bots the server keeps in the game. 0 by default.

hl2mp_bot_quota <bots>

Examples

hl2mp_bot_quota 6

Keeps six bots.

hl2mp_bot_quota 0

No bots.

Arguments

botsRequired
Number of bots.

What it does

The server adds or removes bots to match it, following hl2mp_bot_quota_mode. hl2mp_bot_add and hl2mp_bot_kick change it too.

Good to know

  • To keep it after a restart, add hl2mp_bot_quota 6 to hl2mp/cfg/server.cfg in the file manager (Advanced, then Files).
  • Bots move on a navigation mesh. The stock maps ship without one, so on a new map run sv_cheats 1 and nav_generate first.

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.