DoD:S console commands
The 84 settings and 30 commands server owners use, with defaults and examples to copy.
114 commands
- mp_timelimit
Sets how many minutes each map is played before the server moves to the next map. 0 means no time limit.
Default 0
Rounds and match
- mp_winlimit
Ends the map once a team's score reaches this number. 0 means no limit.
Default 0
Rounds and match
- changelevel
Changes to another map and keeps players connected.
Command
Maps
- mp_friendlyfire
Lets teammates hurt each other with bullets and explosives. Off by default.
Default 0 (Off)
Gameplay
- mp_limit_allies_sniper
Sets how many Allies players can be Sniper (scoped Springfield) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_axis_sniper
Sets how many Axis players can be Sniper (scoped Kar98k) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_allies_mg
Sets how many Allies players can be Machine Gunner (.30 cal) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_axis_mg
Sets how many Axis players can be Machine Gunner (MG42) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- dod_bonusround
Lets the winning team keep fighting during the break after a round win, while the losers can't shoot back. On by default.
Default 1 (On)
Rounds and match
- mp_clan_readyrestart
Clan match mode: the game restarts once someone from each team says the ready signal in chat.
Default 0 (Off)
Rounds and match
- mp_restartgame
Restarts the game after the number of seconds you give, resetting scores and the clock.
Default 0
Rounds and match
- sv_alltalk
Lets every player hear every other player's voice chat, whatever their team. Off by default.
Default 0 (Off)
Chat and voice
- kickid
Kicks a player by userid or Steam ID, with an optional message they see.
Command
Admin and bans
- banid
Bans a player by userid or Steam ID for a number of minutes, 0 for permanent. Add kick to remove them now.
Command
Admin and bans
- sv_cheats
Allows cheat commands such as noclip, god and give on the server. Off by default.
Default 0 (Off)
Cheats
- mp_allowrandomclass
Lets players pick Random in the class menu. On by default.
Default 1 (On)
Classes and teams
- dod_bonusroundtime
Sets how many seconds pass after a round win before the next round starts. 15 by default, 5 to 15.
Default 15
Rounds and match
- dod_enableroundwaittime
Turns on the wait timers between rounds. On by default.
Default 1 (On)
Rounds and match
- mp_cancelwarmup
Ends the warmup period when set to 1.
Default 0
Rounds and match
- mp_clan_ready_signal
Sets the word a player from each team types in chat to ready up in clan match mode. ready by default.
Default ready
Rounds and match
- mp_clan_restartround
Restarts the round after the number of seconds you give.
Default 0
Rounds and match
- mp_restartgame_immediate
Restarts the game at once when set to a non-zero value.
Default 0
Rounds and match
- mp_restartwarmup
Starts or restarts the warmup period when set to 1.
Default 0
Rounds and match
- mp_tickpointinterval
Sets how many seconds pass between the points a team earns for holding flags. 30 by default.
Default 30
Rounds and match
- mp_warmup_time
Sets the length of the warmup period in seconds. 0 by default (no warmup).
Default 0
Rounds and match
- restartround
Restarts the current round.
Command
Rounds and match
- mp_allowspectators
Lets players join the Spectator team. On by default.
Default 1 (On)
Classes and teams
- mp_fadetoblack
Fades a player's screen to black when they die, so they can't watch the game until they respawn. Off by default.
Default 0 (Off)
Classes and teams
- mp_forcecamera
Limits what dead players can watch: 0 anyone, 1 only their own team, 2 nothing (a fixed view). 1 by default.
Default 1 (Own team only)
Classes and teams
- mp_limit_allies_assault
Sets how many Allies players can be Assault (Thompson) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_allies_rifleman
Sets how many Allies players can be Rifleman (M1 Garand) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_allies_rocket
Sets how many Allies players can be Rocket (Bazooka) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_allies_support
Sets how many Allies players can be Support (BAR) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_axis_assault
Sets how many Axis players can be Assault (MP40) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_axis_rifleman
Sets how many Axis players can be Rifleman (Karabiner 98k) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_axis_rocket
Sets how many Axis players can be Rocket (Panzerschreck) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limit_axis_support
Sets how many Axis players can be Support (StG 44) at once. -1 means no limit, 0 closes the class.
Default -1
Classes and teams
- mp_limitteams
Sets how many more players one team may have than the other before players are stopped from joining it. 2 by default.
Default 2
Classes and teams
- dod_freezecam
Shows players a freeze frame of their killer when they die. On by default.
Default 1 (On)
Gameplay
- dod_friendlyfiresafezone
Sets the distance, in units, around a player where teammates can't damage them even with friendly fire on. 100 by default.
Default 100
Gameplay
- sv_accelerate
Sets how fast players reach full speed on the ground. 10 by default.
Default 10
Gameplay
- sv_airaccelerate
Sets how much players can steer in the air. 10 by default.
Default 10
Gameplay
- sv_friction
Sets ground friction, how quickly players slow down. 4 by default.
Default 4
Gameplay
- sv_gravity
Sets the world gravity. 800 by default; lower values make players jump higher and fall slower.
Default 800
Gameplay
- sv_maxspeed
Caps how fast players can move. 320 by default.
Default 320
Gameplay
- changelevel_next
Changes to the next map in the map cycle right away.
Command
Maps
- map
Loads a map from scratch. Players are dropped and have to reconnect, so changelevel is usually better.
Command
Maps
- mapcyclefile
Names the map cycle file in dod/cfg. mapcycle.txt by default, with mapcycle_default.txt as the fallback.
Default mapcycle.txt
Maps
- maps
Lists the maps on the server whose names match a filter. Use * for all of them.
Command
Maps
- mp_chattime
Sets how many seconds players can chat on the scoreboard after a map ends, before the next map loads. 10 by default.
Default 10
Maps
- nextlevel
Sets the map the server goes to at the next map change, instead of the next one in the cycle. Empty by default.
Default (empty)
Maps
- exec
Runs a config file from dod/cfg, line by line, as if typed in the console.
Command
Server and access
- hostname
Sets the server name players see in the server browser and on the scoreboard.
Default (empty)
Server and access
- hostport
The port the game server listens on. 27015 by default.
Default 27015
Server and access
- maxplayers
Shows the player limit. A new value only works before a map is running, so it is set on the launch line.
Command
Server and access
- motdfile
Sets which file the message of the day shown to joining players is loaded from. motd.txt by default.
Default motd.txt
Server and access
- net_maxfilesize
Sets the largest file, in MB, players can download from the server itself. 16 by default, 64 at most.
Default 16
Server and access
- plugin_print
Lists the server plugins that are loaded, such as Metamod:Source.
Command
Server and access
- rcon_password
Sets the password for remote console (RCON) access to the server.
Default (empty)
Server and access
- say
Sends a chat message to every player from the server console.
Command
Server and access
- status
Prints the server name, map, player count and every player with their userid, Steam ID, ping and IP.
Command
Server and access
- sv_allowdownload
Lets players download missing files such as custom maps and sounds straight from the server. On by default.
Default 1 (On)
Server and access
- sv_allowupload
Lets players upload their custom spray images to the server so others can see them. On by default.
Default 1 (On)
Server and access
- sv_downloadurl
Sets a web address players download missing custom files from, instead of the slow in-game transfer.
Default (empty)
Server and access
- sv_lan
Makes it a LAN-only server: no Steam authentication and only local-network players can join. 0 by default.
Default 0 (Off)
Server and access
- sv_password
Sets the password players must enter to join. Empty means anyone with the address can join.
Default (empty)
Server and access
- sv_pure
Controls which custom files players may use, from -1 (no rules) to 2 (only the game's own files).
Command
Server and access
- sv_pure_kick_clients
Kicks players whose game files don't match the server's sv_pure rules. 1 by default; 0 only warns them.
Default 1 (On)
Server and access
- sv_region
Sets the region the server reports to the Steam server browser. -1 means the whole world.
Default -1 (World (the default))
Server and access
- sv_setsteamaccount
Logs the server in with a Steam game server login token (GSLT) so it keeps the same Steam ID.
Command
Server and access
- sv_tags
Sets comma-separated tags shown with the server in the server browser. Empty by default.
Default (empty)
Server and access
- sv_visiblemaxplayers
Overrides the player limit the server browser shows. -1 shows the real number of slots.
Default -1
Server and access
- addip
Bans an IP address for a number of minutes, 0 for permanent.
Command
Admin and bans
- kick
Removes a player from the server by name.
Command
Admin and bans
- kickall
Kicks every player on the server, with an optional message.
Command
Admin and bans
- listid
Lists the Steam ID bans in memory, with their slot numbers.
Command
Admin and bans
- listip
Lists the IP bans in memory, with their slot numbers.
Command
Admin and bans
- mp_autokick
Kicks idle players and players who kill teammates. Off by default.
Default 0 (Off)
Admin and bans
- removeid
Lifts a ban by Steam ID, or by its slot number in the listid list.
Command
Admin and bans
- removeip
Lifts an IP ban, by address or by its slot number in the listip list.
Command
Admin and bans
- sv_rcon_banpenalty
Sets how many minutes an address is banned after too many failed RCON logins. 0 means a permanent ban.
Default 0
Admin and bans
- sv_rcon_maxfailures
Sets how many failed RCON logins an address gets in total before it is banned. 10 by default, 1 to 20.
Default 10
Admin and bans
- sv_rcon_minfailures
Sets how many failed RCON logins within sv_rcon_minfailuretime get an address banned. 5 by default.
Default 5
Admin and bans
- sv_rcon_minfailuretime
Sets the window, in seconds, that sv_rcon_minfailures counts failed RCON logins in. 30 by default.
Default 30
Admin and bans
- writeid
Saves the permanent Steam ID bans to dod/cfg/banned_user.cfg.
Command
Admin and bans
- writeip
Saves the permanent IP bans to dod/cfg/banned_ip.cfg.
Command
Admin and bans
- mp_show_voice_icons
Shows an icon over players' heads while they talk on voice chat. On by default.
Default 1 (On)
Chat and voice
- sv_voiceenable
Turns voice chat on or off for the whole server. On by default.
Default 1 (On)
Chat and voice
- sv_client_max_interp_ratio
Sets the highest cl_interp_ratio players may use. 5 by default.
Default 5
Network and rates
- sv_client_min_interp_ratio
Sets the lowest cl_interp_ratio players may use. 1 by default.
Default 1
Network and rates
- sv_maxcmdrate
Caps how many command packets per second a player may send, when sv_mincmdrate is above 0. 66 by default.
Default 66
Network and rates
- sv_maxrate
Caps the bandwidth, in bytes per second, the server sends each player. 0 means no cap.
Default 0
Network and rates
- sv_maxupdaterate
Caps how many updates per second the server sends each player. 66 by default.
Default 66
Network and rates
- sv_mincmdrate
Sets the fewest command packets per second a player must send. 10 by default; 0 means no limit.
Default 10
Network and rates
- sv_minrate
Sets the lowest bandwidth, in bytes per second, a player may use. 3500 by default.
Default 3500
Network and rates
- sv_minupdaterate
Sets the fewest updates per second a player may ask for. 10 by default.
Default 10
Network and rates
- sv_timeout
Sets how many seconds the server waits without hearing from a player before dropping them. 65 by default.
Default 65
Network and rates
- log
Turns server logging on or off. Logs record kills, chat, connections and admin actions.
Command
SourceTV and logs
- mp_logdetail
Sets which attacks are written to the server log: 0 none, 1 against enemies, 2 against teammates, 3 both. 0 by default.
Default 0 (Off)
SourceTV and logs
- sv_logbans
Writes bans to the server log. Off by default.
Default 0 (Off)
SourceTV and logs
- sv_logecho
Also prints log lines in the server console. On by default.
Default 1 (On)
SourceTV and logs
- sv_logfile
Writes the server log to files in the logs folder when logging is on. On by default.
Default 1 (On)
SourceTV and logs
- tv_autorecord
Records every map as a SourceTV demo automatically. Off by default; needs tv_enable 1.
Default 0 (Off)
SourceTV and logs
- tv_delay
Sets the SourceTV broadcast delay in seconds, so spectators can't relay what they see. 30 by default.
Default 30
SourceTV and logs
- tv_enable
Turns on SourceTV, the server's built-in spectator and demo recorder. Off by default; starts at the next map.
Default 0 (Off)
SourceTV and logs
- tv_name
Sets the name the SourceTV spectator bot uses on the scoreboard. SourceTV by default.
Default SourceTV
SourceTV and logs
- tv_record
Starts recording a SourceTV demo to a .dem file. SourceTV must be running.
Command
SourceTV and logs
- tv_stoprecord
Stops the SourceTV demo being recorded and closes the file.
Command
SourceTV and logs
- buddha
You take damage but can't drop below 1 health. Type it again to turn it off. Needs sv_cheats 1.
Command
Cheats
- dod_flagrespawnbonus
Sets how many seconds each extra flag a team holds takes off its respawn time. 1 by default. Needs sv_cheats 1.
Default 1
Cheats
- dod_waverespawnfactor
Multiplies the respawn wave timers. 1 by default; lower values mean shorter waits. Needs sv_cheats 1.
Default 1
Cheats
- give
Gives you an item or weapon by its entity name, for example weapon_bazooka. Needs sv_cheats 1.
Command
Cheats
- god
Makes you take no damage. Type it again to turn it off. Needs sv_cheats 1.
Command
Cheats
- noclip
Lets you fly through walls. Type it again to turn it off. Needs sv_cheats 1.
Command
Cheats
Nothing matches.
Try part of the name, like freeze or money, or a word from what it does.
Questions
How do I run DoD:S commands on my 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 dod/cfg/server.cfg.
How do I keep a setting after a restart?
Settings typed in the console last until the server restarts. Put them in dod/cfg/server.cfg, one per line, and they apply every time the server starts.
Where does this list come from?
SLASHPLAY wrote it from the help output of a fresh Day of Defeat: Source dedicated server, checked against the Valve Developer Community game and entity pages: the settings and commands server owners use, with the game's own defaults.
Try them on
your own server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.