Half-Life 2: Deathmatch

From Valve Developer Community
(Redirected from Half-Life 2 Deathmatch)
Jump to navigation Jump to search
English (en)Español (es)Русский (ru)Tiếng Việt (vi)中文 (zh)Translate (Translate)
Half-Life 2: Deathmatch
Software Cover - Half-Life 2 Deathmatch.jpg
Developer(s)
Publisher(s)
Valve
Release date(s)
November 30, 2004 
Windows
November 30, 2004
Mac OS X
July 12, 2010
Linux
March 14, 2013
Genre(s)
First-person shooter
Mode(s)
Platform(s)
Engine
Steam AppID
320
Written in
C++
Mod support
Yes (custom folder and sourcemods)
SDK
Yes
Distribution
Steam
Links
Icon-callout-cleanup.png
This article or section needs to be cleaned up to conform to a higher standard of quality because:
Reason 
Significantly longer than most other main game pages; move long chunks of specialized information to subpages, leaving condensed chunks with {{main}}.

Half-Life 2: Deathmatch Half-Life 2: Deathmatch is Valve's multiplayer game based on Half-Life 2, released through Steam on November 30, 2004. It supports free-for-all deathmatch and Combine-versus-Resistance team deathmatch.

Unlike a conventional arena shooter, much of the game's combat revolves around the physics system inherited from Half-Life 2. The Gravity Gun allows players to pick up and launch suitable physics objects, explosives, and other props as weapons.

A normal player kill awards one frag. Suicides and deaths credited to the world or environment subtract one frag.

Half-Life 2: Deathmatch is included in the Steam library with a current purchase of Half-Life 2. Its standalone Steam application uses AppID 320.

The original release ran on Source 2004. Current versions run on Team Fortress 2 engine branch and include later branch features and updates such as 64-bit executables, Steam Networking, high-resolution UI scaling, improved prediction, VScript, and other engine improvements.

Gameplay

Game modes

Half-Life 2: Deathmatch supports two primary modes:

  • Deathmatch - Free-for-all. Each player competes independently for frags.
  • Team Deathmatch - Combine and Rebels compete as opposing teams. It is enabled with mp_teamplay 1.

The internal multiplayer team names are:

Team Internal name Description
Unassigned Unassigned Player is on a deathmatch team. This is the default for Deathmatch mode.
Spectator Spectator Non-playing spectator team.
Combine Combine Combine player models and team.
Rebels Rebels Resistance/Rebel player models and team.

Default spawn equipment

Players receive a mixture of weapons and reserve ammunition whenever the normal multiplayer spawn loadout is granted.

Equipment Spawn state Maximum reserve Notes
HEV suit Equipped — Enables the player's suit and armor systems.
Crowbar / Stunstick 1 — Rebel/citizen player models receive the crowbar. Combine/Metrocop player models receive the stunstick.
Gravity Gun 1 — Always included in the normal spawn loadout.
Pistol 18 loaded + 150 reserve 150 The reserve ammunition is already at its normal maximum.
SMG1 45 loaded + 45 reserve 225 No SMG grenades are supplied at spawn.
Frag grenades 2 5 The player begins with two usable grenades.
Buckshot 6 reserve 30 The shotgun itself is not included in the spawn loadout.
.357 ammunition 6 reserve 12 The .357 Magnum itself is not included in the spawn loadout.
Note.pngNote: The exact active weapon immediately after spawning may depend on the normal weapon-selection logic. The table describes the equipment and ammunition granted by the multiplayer spawn code.

Pickups and respawning

Weapons and items placed in a multiplayer map can respawn after being collected.

The current default respawn periods are:

Object type Default respawn time Console variable
Weapons 20 seconds sv_hl2mp_weapon_respawn_time
Items 30 seconds sv_hl2mp_item_respawn_time

These values can be changed by the server.

By default, hl2mp_allow_pickup 0 prevents players from directly picking up physics objects with the normal use key. Physics props are instead manipulated with the Gravity Gun. Servers can set hl2mp_allow_pickup 1 to permit normal +use pickup behavior.

Health and suit items

The default multiplayer skill configuration supplies the following amounts:

Item Entity Default amount
Health vial item_healthvial +10 health
Health kit item_healthkit +25 health
Suit battery item_battery +15 suit power
Health charger item_healthcharger 50 total charge
Suit charger item_suitcharger 30 total charge

Damage hitgroups

The default HL2DM skill configuration uses the following player hitgroup multipliers:

Hitgroup Multiplier
Head 3.0×
Chest 1.0×
Stomach 1.0×
Arms 1.0×
Legs 1.0×
Note.pngNote: These multipliers should not be interpreted as applying identically to every possible damage source. Explosions, physics impacts, environmental damage, and special entities have their own damage processing.

Bots

Current versions of Half-Life 2: Deathmatch contain native NextBot-based multiplayer bots.

The principal server commands are:

Command Purpose
hl2mp_bot_add Adds one or more bots.
hl2mp_bot_kick Removes bots.
hl2mp_bot_kill Kills matching bots without removing them.

For example:

hl2mp_bot_add
hl2mp_bot_add rebels hard 3
hl2mp_bot_kick all

hl2mp_bot_add supports team arguments such as combine and rebels, and difficulty arguments including easy, normal, hard, and expert. A count, bot name, and other supported arguments such as noquota may also be supplied.

Weapons

The values in the following table are based on the current Half-Life 2: Deathmatch weapon scripts and multiplayer game code in Source SDK 2013.

Base damage is the nominal damage produced by the weapon before applicable hitgroup modifiers, armor processing, explosion falloff, physics calculations, or other game rules are applied.

Weapon Entity Primary fire Secondary fire Base damage Magazine Maximum reserve Notes
Crowbar weapon_crowbar Melee swing — 25 — — Default Rebel/citizen melee weapon.
Stunstick weapon_stunstick Melee swing — 40 — — Default Combine/Metrocop melee weapon.
Gravity Gun weapon_physcannon Punt / launch Pull / hold Variable — — Damage primarily depends on the launched object, its mass and velocity, and the resulting physics impact.
Pistol weapon_pistol Semi-automatic — 8 18 150 Headshots can receive the normal player hitgroup multiplier.
.357 Magnum weapon_357 Semi-automatic — 75 6 12 High-damage precision weapon.
SMG1 weapon_smg1 Automatic fire Launch SMG grenade 5 primary
100 grenade
45 225 bullets
3 grenades
Secondary ammunition is stored separately as SMG1_Grenade.
AR2 weapon_ar2 Automatic fire Launch energy ball 11 primary
Special secondary
30 60 bullets
3 energy balls
The secondary attack launches a Combine energy ball with special collision and dissolve behavior rather than behaving as an ordinary fixed-damage bullet.
Shotgun weapon_shotgun Single shot Double shot 9 per pellet 6 30 Primary fires 7 pellets, for 63 raw damage if every pellet connects. Secondary consumes two shells and fires 12 pellets, for 108 raw damage if every pellet connects.
Crossbow weapon_crossbow Fire bolt Toggle zoom 100 1 10 Secondary attack toggles the weapon's zoom.
Frag grenade weapon_frag Overhand throw Lob / roll 150 — 5 Grenades use a timed fuse and radial blast damage.
RPG weapon_rpg Fire rocket Toggle laser 150 — 3 Rockets can be guided using the weapon's laser designator.
S.L.A.M. weapon_slam Place / throw Detonate Mode-dependent — 5 Primary behavior depends on placement state and surface. The weapon script does not define one universal direct-damage value for every S.L.A.M. use.
Note.pngNote: The shotgun totals of 63 and 108 are simple pellet-count × base-damage totals before hitgroups, armor, pellet spread, or other damage processing. They do not mean every shot will inflict those exact values during normal play.

The Crowbar, Stunstick, and S.L.A.M. were added to Half-Life 2: Deathmatch in the February 17, 2005 update. The same update also released Half-Life 2: Deathmatch game source code through the Source SDK.

Update history

The game has received several significant engine and gameplay updates since its original 2004 release.

Date Major changes
November 30, 2004 Initial Windows release of Half-Life 2: Deathmatch.
February 17, 2005 Added dm_steamlab, the Crowbar, Stunstick, and S.L.A.M.; Half-Life 2: Deathmatch source code was also released through the Source SDK.
November 15, 2024 Half-Life 2 20th Anniversary update. The HL2DM maps received a full HDR lighting and tonemapping pass, additional spawn points and map fixes. Valve also fixed several multiplayer issues involving player models, S.L.A.M.s, the SMG viewmodel, the Gravity Gun, and weapon rendering.
February 18, 2025 Added official 64-bit support, borderless-window support, bicubic lightmaps, radial fog, Steam Networking, high-resolution UI scaling, scoreboard avatars, hl2mp_allow_pickup, Game Recording events, updated HUD/UI behavior, extensive networking and prediction fixes, and other engine improvements. The hard player limit was raised to 100 and the default maximum player count was raised to 24.
August 24, 2026 Added security and stability improvements, fixed some custom-map assets failing to load on Linux, and fixed .357 view snapping using a community-contributed fix.

Limitations/Bugs

Icon-Bug.pngBug:Players can get stuck when spawning on top of certain props on maps such as dm_lockdown.

PlacementTip.pngWorkaround: Players can push the obstructing objects using the weapon_physcannon.

For current engine and gameplay bugs, check the Half-Life 2: Deathmatch issues in Valve's Source-1-Games issue tracker before creating duplicate or obsolete reports on the wiki.

Official maps

Todo: Retake screenshots using the 20th Anniversary Update versions of the maps.

Half-Life 2: Deathmatch currently includes eight official maps.

Map list

Note.pngNote: The mapping-contest winners were announced on March 18, 2005. The winning maps themselves were released on April 13, 2005.
Map First official release Notes
dm_lockdown November 30, 2004 Original release map.
dm_overwatch November 30, 2004 Original release map.
dm_steamlab February 17, 2005 First post-release official map, and a re-imagining of the Half-Life Deathmatch map Datacore.
dm_powerhouse April 13, 2005 Mapping-contest second runner-up.
dm_resistance April 13, 2005 Mapping-contest first runner-up.
dm_underpass April 13, 2005 Mapping-contest winner.
dm_runoff April 25, 2005 Post-release official map.
halls3 April 3, 2013 Added during the SteamPipe update.

Dedicated server

Half-Life 2: Deathmatch has a dedicated-server package for Windows and Linux. The current dedicated-server Steam tool uses AppID 232370.

Installation

The server can be installed using SteamCMD without logging into a normal Steam account:

force_install_dir <path>
login anonymous
app_update 232370 validate
quit

The HL2DM game directory is:

hl2mp

The main server configuration file is normally:

hl2mp/cfg/server.cfg

Starting the server

A basic Windows server can be started with:

srcds.exe -game hl2mp -console +map dm_lockdown +maxplayers 24

A basic Linux server can be started with:

./srcds_run -game hl2mp -console +map dm_lockdown +maxplayers 24

Additional command-line parameters and configuration variables can be supplied as required.

Useful multiplayer settings

Console variable Default Purpose
mp_teamplay 0 0 enables free-for-all Deathmatch. 1 enables Combine-versus-Rebels Team Deathmatch.
mp_fraglimit Server-configured Ends or changes the level according to the configured frag limit. A value of 0 disables the frag limit.
mp_timelimit Server-configured Controls the map time limit in minutes. A value of 0 disables the time limit.
sv_hl2mp_weapon_respawn_time 20 Default respawn period for multiplayer weapons, in seconds.
sv_hl2mp_item_respawn_time 30 Default respawn period for multiplayer items, in seconds.
hl2mp_allow_pickup 0 Allows players to pick up compatible physics objects directly with +use when enabled.

Bots on a dedicated server

Native HL2DM bots can also be managed from the dedicated-server console. For example:

hl2mp_bot_add combine normal 4
hl2mp_bot_add rebels normal 4

To remove every bot:

hl2mp_bot_kick all

Notes

The current multiplayer code normally requires the Gravity Gun to manipulate suitable physics props because hl2mp_allow_pickup defaults to 0. This behavior can be changed by the server.

The game originally used the 2004 Source branch and was subsequently migrated through later Source engine versions. Current builds use Team Fortress 2 engine branch.

The February 18, 2025 update introduced the game's supported 64-bit Windows and Linux binaries together with major networking, prediction, and UI changes. This supersedes earlier short-lived or incomplete 64-bit files that had appeared around the 20th Anniversary transition.

The current Source SDK 2013 repository contains the game code for Half-Life 2, Half-Life 2: Deathmatch, and Team Fortress 2 and can be used as a primary reference for the present multiplayer rules, weapons, entities, and engine integration.

Gallery

Below are a few screenshots from the game. To see all screenshots, artwork, and official assets, go to the Half-Life 2: Deathmatch gallery or the category that contains all files and pages related to Half-Life 2: Deathmatch.

See also

External links

Navigation