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 Fileshl2mp/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 Deathmatch

Gravity Gun Settings

HL2:DM's defining feature — tune the gravity gun and physics:

SettingDefaultDescription
sv_gravity600World gravity (lower = floatier)
phys_pushscale1Force multiplier for physics objects
physcannon_maxforcevariesGravity gun pull force
physcannon_maxmassvariesMax mass the gravity gun can lift
physcannon_tracelengthvariesGravity gun grab range
physcannon_mega_enabled01 = 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

PortProtocolPurpose
27015UDP + TCPGame + RCON
27020UDPSourceTV

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

On this page