Skip to content
/SLASHPLAY

How to set the allowed game modes on an L4D2 server

Add sv_gametypes "coop,versus" to left4dead2/cfg/server.cfg to allow only Campaign and Versus; the server reads it at the next map load.

sv_gametypes

The game modes this server allows, as a comma-separated list. The default lists every standard mode.

sv_gametypes "<mode>,<mode>"

Examples

sv_gametypes "coop,versus"

Only Campaign and Versus.

Arguments

modeRequired
A game mode name, such as coop, versus or realism.

What it does

The game's own help says it's usually set on the launch command line. Narrow it when the server should only host some modes.

Good to know

  • Typed in the Console tab it lasts until the server restarts. To keep it, add sv_gametypes "coop,versus" to left4dead2/cfg/server.cfg, which the server runs at every map load.

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 left4dead2/cfg/server.cfg. New to this? Start a L4D2 server first.

Your own
L4D2 server.

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