Skip to content
/SLASHPLAY

How to add bots in Half-Life 2: Deathmatch

Type hl2mp_bot_add 4 hard in the Console tab of your server page to add four hard bots.

hl2mp_bot_add

Adds one or more bots. Optional arguments set the count, team, difficulty and name, in any order.

hl2mp_bot_add [count] [combine|rebels] [easy|normal|hard|expert] [name] [noquota]

Examples

hl2mp_bot_add

Adds one bot.

hl2mp_bot_add 4 hard

Four hard bots.

hl2mp_bot_add rebels expert 2

Two expert bots on the Rebels.

Arguments

countOptional
How many bots to add, 1 by default.
combine|rebelsOptional
Team, in Team Deathmatch.
easy|normal|hard|expertOptional
Skill; hl2mp_bot_difficulty when left out.
nameOptional
Bot name, only when adding one.
noquotaOptional
Don't count these bots in hl2mp_bot_quota.

What it does

Added bots raise hl2mp_bot_quota unless you add noquota. A name only works when adding one bot.

Good to know

  • 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.
  • Team names only matter in Team Deathmatch (mp_teamplay 1).

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.