4 min readUpdated Aug 15, 2026

HL2DM Console Commands List

Half-Life 2: Deathmatch runs on the Source engine, which means a far larger console than the original Half-Life. Alongside the usual mp_ and sv_ settings you get physics variables, the gravity gun rules and the sk_ skill values that set weapon damage.

Search the full list below, then add what you need to your Half-Life 2: Deathmatch server. Each entry shows the default value, what it does and whether it runs on the server or the client.

Category

1,827 commands in total

CommandDefaultDescription
Erases current game stats and writes out a blank stats fileCommandServer
Shutdown and restart the engine.CommandServer
Default: 0Turn on achievement debug msgs.ServerCheatReplicated
Add an IP address to the ban list.CommandServer
Default: 10No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0Used to debug actbusy behavior. Usage: 1: Constantly draw lines from NPCs to the actbusy nodes they've chosen to actbusy at. 2: Whenever an NPC makes a decision to use an actbusy, show which actbusy they've chosen. 3: Selected NPCs (with npc_select) will report why they're not choosing actbusy nodes. 4: Display debug output of actbusy logic. 5: Display safe zone volumes and info.ServerCheat
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0Debug the NPC dynamic interaction system.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0Show random expression decisions for NPCs.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0NPC Line-Of-Sight debug mode. If 1, solid entities that block NPC LOC will be highlighted with white bounding boxes. If 2, it'll show non-solid entities that would do it if they were solid.ServerCheat
Default: 0No description is published for this one.Server
Debug the attempted connection between two nodesCommandServer
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.ServerCheatReplicated
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Bi-passes all AI logic routines and puts all NPCs into their idle animations. Can be used to get NPCs out of your way and to test effect of AI logic routines on frame...CommandServer
Default: 0No description is published for this one.ServerCheat
Drop an ai_hint at the player's current eye position.CommandServer
No description is published for this one.CommandServer
Default: 1No description is published for this one.Server
Default: 5No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0Maximum frametime to still play background expressions.Server
Default: 0Disable npc background expressions when you can't see them.Server
Default: 720No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 50frametime limit for min efficiency AIE_NORMAL (in sec's).Server
Controls which connections are shown when ai_show_hull or ai_show_connect commands are used Arguments: NPC name or classname,CommandServer
Default: 0No description is published for this one.ServerCheat
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.ServerReplicated
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 8No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0No description is published for this one.Server
Cycles through the various hull sizes. Currently selected hull size is written to the screen. Controls which connections areCommandServer
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Toggles node display. First call displays the nodes for the given network as green objects. Second call displays the nodes and their IDs. Nodes are color coded as follows: Green - ground node Cyan - air node Magenta - climb node Grey - node not available for selected hull size Orange - node currently...CommandServer
Default: 0No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 120No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0No description is published for this one.ServerArchived
If NPC is stepping through tasks (see ai_step ) will resume normal processing.CommandServer
Default: 0No description is published for this one.Server
Set how high AI bumps up ground walkers when checking stepsCommandServer
Default: 0Shows that bones that are setup every thinkServer
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.ServerReplicated
Default: -1No description is published for this one.ServerReplicated
Default: 0No description is published for this one.Server
Default: 1000No description is published for this one.Server
Displays the allowed connections between each node for the currently selected hull type. Hulls are color code as follows: Green - ground movement Blue - jumping movement Cyan - flying movement Magenta - climbing movement Red - connection...CommandServer
Displays the allowed connections between each node for the currently selected hull type. Hulls are color code as follows: Green - ground movement Blue - jumping movement Cyan - flying movement Magenta - climbing movement Red - connection...CommandServer
Displays the allowed connections between each node for the currently selected hull type. Hulls are color code as follows: Green - ground movement Blue - jumping movement Cyan - flying movement Magenta - climbing movement Red - connection...CommandServer
Toggles graph connection display for the node that the player is looking at. Nodes that are connected to the selected node by the net graph will be drawn in red with magenta lines connecting to the selected node. Nodes that are not connected via the net graph from the selected node will be drawn in blue.CommandServer
Draw a grid on the floor where looking.CommandServer
Displays all hints as small boxes Blue - hint is available for use Red - hint is currently being used by an NPC Orange -CommandServer
Displays the allowed hulls between each node for the currently selected hull type. Hulls are color code as follows: Green -CommandServer
Default: 0No description is published for this one.Server
Highlight the specified nodeCommandServer
Default: 0No description is published for this one.Server
Toggles visibility display for the node that the player is looking at. Nodes that are visible from the selected node will be drawn in red with yellow lines connecting to the selected node. Nodes that are not visible from the selected node will be drawn in blue.CommandServer
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 3No description is published for this one.Server
Default: 0No description is published for this one.Server
NPCs will freeze after completing their current task. To complete the next task, use 'ai_step' again. To resume processing normally use...CommandServer
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Test AI LOS from the player's POVCommandServer
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.ServerArchived
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.ServerCheat
Generate a report to the console.CommandServer
Generate a report to the console.CommandServer
Changes the density of air for drag computations.CommandServer
Default: 5000Amount of stress in kg that would kill the airboat driver.Server
Alias a command.CommandServer
Default: 1Toggle the 3-way animation blending code.ServerReplicated
Default: 1No description is published for this one.Server
Default: 1Allow AsyncBegin/EndRead()Server
Default: 0Set the async filesystem mode (0 = async, 1 = synchronous)Server
No description is published for this one.CommandServer
Default: 0Force async reads to serialize for profilingServer
Default: 0Simulate a delay of up to a set msec per file operationServer
No description is published for this one.CommandServer
Default: 0No description is published for this one.Server
Default: 2160No description is published for this one.Server
Default: 0No description is published for this one.Server
Add a user ID to the ban list.CommandServer
Add an IP address to the ban list.CommandServer
Ends gathering of info.CommandServer
Starts gathering of info. Arguments: filename to write results intoCommandServer
Bind a key.CommandServer
Bind this key but only on Mac, not win32CommandServer
Performs a bind <key> 'increment var <cvar> 0 1 1'CommandServer
Default: 0No description is published for this one.Server
bloodCommandServer
Default: 0Bot uses usercmd of player by index.Server
Default: 0No description is published for this one.Server
Default: 1No description is published for this one.Server
Toggle. Player takes damage but won't die. (Shows red cross when health is zero)CommandServer
Turn a budget group on/offCommandServer
Automatically swaps the current weapon for the bug bait and back again.CommandServer

Or search above to jump straight to the one you need.

Values marked Server belong in your hl2mp/cfg/server.cfg. Values marked Clientare typed into each player’s own console.

How to Use HL2DM Server Commands

The Source engine reads hl2mp/cfg/server.cfg when the server starts and on every map change.

  1. 1
    Log in to Bropanel and select your HL2DM server.
  2. 2
    In the sidebar, open Files.
  3. 3
    Open hl2mp/cfg/server.cfg.
  4. 4
    Add one command per line, such as mp_timelimit 30.
  5. 5
    Save the file and restart your server.

Note the cfg folder in that path. Half-Life 1 reads valve/server.cfg with no cfg folder, which trips up a lot of people moving between the two. The config files guide covers the rest.

Most Used HL2DM Server Commands

CommandDefaultWhat it does
hostnameemptySets the server name shown in the browser.
sv_passwordemptyLocks the server behind a password.
rcon_passwordemptySets the admin password for rcon.
sv_downloadurlemptyPoints clients at your FastDL host.
mp_timelimit0Minutes of game time per map.
mp_fraglimit0Kills that end the map. 0 turns it off.
mp_teamplay0Set to 1 to turn on team play.
mp_friendlyfire0Set to 1 to let teammates damage each other.
mp_falldamage0Set to 1 for realistic fall damage.
mp_weaponstay0Set to 1 so weapons respawn straight away.
mp_forcerespawn1Set to 0 to make players respawn manually.
mp_flashlight0Set to 1 to allow flashlights.
mp_footsteps1Set to 0 to silence footsteps.
mp_allowNPCs1Set to 0 to stop NPCs spawning.
mp_chattime10Seconds of chat after the map ends.
sv_gravity600World gravity. Lower than most Source games.
sv_alltalk0Set to 1 so both teams hear each other.
sv_cheats0Set to 1 to unlock cheat commands.
sv_lan0Set to 1 for a LAN only server.

Physics and Gravity Gun Settings

HL2DM is built around physics props, so these matter more here than in most shooters.

CommandWhat it does
physcannon_mega_enabledTurns the supercharged gravity gun on.
physcannon_maxmassHeaviest object the gravity gun can pick up.
physcannon_tracelengthHow far the gravity gun reaches.
sv_turbophysicsCheaper physics simulation. Reduces server load.
props_break_max_piecesCaps how many pieces a broken prop makes.
phys_pushscaleMultiplier on how hard physics pushes players.

Search physcannon or phys_ in the list above to see the rest with their defaults.

How to Open the Console in HL2DM

  1. 1
    Open Half-Life 2: Deathmatch and go to Options.
  2. 2
    Select the Keyboard tab and click Advanced.
  3. 3
    Tick Enable developer console (~).
  4. 4
    Click OK, then press the ~ key in game.

FAQ