Skip to content
/SLASHPLAY

How to set sv_pure in Half-Life 2: Deathmatch

Type sv_pure 2 in the Console tab, then changelevel dm_lockdown; the new mode applies from that map.

sv_pure

Controls which custom files players may use, from -1 (no rules) to 2 (only the game's own files).

sv_pure <-1|0|1|2>

Examples

sv_pure 2

Only the game's own files from the next map.

sv_pure

Prints the help and the current mode.

Arguments

-1|0|1|2Required
-1 no rules, 0 rules in cfg/pure_server_minimal.txt, 1 cfg/pure_server_full.txt then cfg/pure_server_whitelist.txt, 2 cfg/pure_server_full.txt.

What it does

Run it without a value to print the modes and the current one; a fresh server prints Current sv_pure value is 0. A new value applies from the next map.

Good to know

  • The server prints the current mode and the rules for each value when you type sv_pure alone.
  • A change applies when the next map loads: follow it with changelevel.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to hl2mp/cfg/server.cfg. New to this? Start a HL2DM server first.

Your own
HL2DM server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.