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 0

GSLT 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:

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)

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 1

Plugins

Install MetaMod:Source + SourceMod for admin management.

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