How to Configure Your Half-Life 2: Deathmatch Server
Complete HL2:DM server.cfg reference — gravity gun settings, physics tuning, team deathmatch, GSLT, and SourceMod.
HL2:DM's gameplay centers on physics objects and the gravity gun. The unique server settings revolve around physics tuning.
server.cfg
mapcycle.txt
Editing server.cfg
Open Files
In the XGamingServer Panel, click Files → hl2mp/cfg/ → open server.cfg.
Key Settings
hostname "My HL2:DM Server"
sv_password ""
rcon_password "YourPassword"
sv_lan 0
mp_timelimit 20
mp_fraglimit 50
mp_teamplay 0 // 1 = Team DeathmatchGravity Gun Settings
HL2:DM's defining feature — tune the gravity gun and physics:
| 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) |
Super gravity gun mode enables the powered-up version seen at the end of Half-Life 2 — it can pick up anything including heavy objects and ragdolls.
Team Deathmatch
Set mp_teamplay 1 for team-based play (Combine vs Rebels) instead of free-for-all.
GSLT
Create at Steam Game Server Management with App ID 320. Add via Startup tab.
Admin — MetaMod + SourceMod
Same setup as other Source games. See CS:GO guide.
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