How to Configure Your Half-Life 2: Deathmatch Server
Complete HL2:DM server.cfg reference — hostname, GSLT, gravity gun settings, and physics tuning.
HL2:DM uses server.cfg in hl2mp/cfg/.
Key Settings
hostname "My HL2:DM Server"
sv_password ""
rcon_password "secretpass"
sv_lan 0
mp_timelimit 20
mp_fraglimit 50
mp_teamplay 0GSLT Required
Create at Steam Game Server Management with App ID 320. Add +sv_setsteamaccount TOKEN to startup.
Gravity Gun Settings
HL2:DM's gameplay centers on physics objects and the gravity gun:
| Setting | Default | Description |
|---|---|---|
sv_gravity | 600 | World gravity (lower = floatier) |
phys_pushscale | 1 | Force multiplier for physics objects |
physcannon_maxforce | varies | Gravity gun pull force |
physcannon_maxmass | varies | Max mass the gravity gun can lift |
physcannon_tracelength | varies | Gravity gun grab range |
physcannon_mega_enabled | 0 | 1 = Super gravity gun (blue, like end of HL2) |
Team Deathmatch
Set mp_teamplay 1 in server.cfg for team-based play instead of free-for-all.
FastDL
sv_downloadurl "https://yoursite.com/fastdl/"
sv_allowdownload 1Plugins
Install MetaMod:Source + SourceMod for admin management.
Ports
| Port | Protocol | Purpose |
|---|---|---|
| 27015 | UDP + TCP | Game + RCON |
| 27020 | UDP | SourceTV |
Related Guides
How is this guide?

40% Off — Limited TimeGet your Half Life 2 Deathmatch server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server