Skip to content
/SLASHPLAY

DoD:S console commands

The 84 settings and 30 commands server owners use, with defaults and examples to copy.

114 commands

  1. 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

  2. mp_winlimit

    Ends the map once a team's score reaches this number. 0 means no limit.

    Default 0

    Rounds and match

  3. changelevel

    Changes to another map and keeps players connected.

    Command

    Maps

  4. mp_friendlyfire

    Lets teammates hurt each other with bullets and explosives. Off by default.

    Default 0 (Off)

    Gameplay

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. mp_restartgame

    Restarts the game after the number of seconds you give, resetting scores and the clock.

    Default 0

    Rounds and match

  12. sv_alltalk

    Lets every player hear every other player's voice chat, whatever their team. Off by default.

    Default 0 (Off)

    Chat and voice

  13. kickid

    Kicks a player by userid or Steam ID, with an optional message they see.

    Command

    Admin and bans

  14. 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

  15. sv_cheats

    Allows cheat commands such as noclip, god and give on the server. Off by default.

    Default 0 (Off)

    Cheats

  16. mp_allowrandomclass

    Lets players pick Random in the class menu. On by default.

    Default 1 (On)

    Classes and teams

  17. 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

  18. dod_enableroundwaittime

    Turns on the wait timers between rounds. On by default.

    Default 1 (On)

    Rounds and match

  19. mp_cancelwarmup

    Ends the warmup period when set to 1.

    Default 0

    Rounds and match

  20. 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

  21. mp_clan_restartround

    Restarts the round after the number of seconds you give.

    Default 0

    Rounds and match

  22. mp_restartgame_immediate

    Restarts the game at once when set to a non-zero value.

    Default 0

    Rounds and match

  23. mp_restartwarmup

    Starts or restarts the warmup period when set to 1.

    Default 0

    Rounds and match

  24. mp_tickpointinterval

    Sets how many seconds pass between the points a team earns for holding flags. 30 by default.

    Default 30

    Rounds and match

  25. mp_warmup_time

    Sets the length of the warmup period in seconds. 0 by default (no warmup).

    Default 0

    Rounds and match

  26. restartround

    Restarts the current round.

    Command

    Rounds and match

  27. mp_allowspectators

    Lets players join the Spectator team. On by default.

    Default 1 (On)

    Classes and teams

  28. 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

  29. 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

  30. 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

  31. 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

  32. 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

  33. 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

  34. 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

  35. 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

  36. 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

  37. 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

  38. 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

  39. dod_freezecam

    Shows players a freeze frame of their killer when they die. On by default.

    Default 1 (On)

    Gameplay

  40. 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

  41. sv_accelerate

    Sets how fast players reach full speed on the ground. 10 by default.

    Default 10

    Gameplay

  42. sv_airaccelerate

    Sets how much players can steer in the air. 10 by default.

    Default 10

    Gameplay

  43. sv_friction

    Sets ground friction, how quickly players slow down. 4 by default.

    Default 4

    Gameplay

  44. sv_gravity

    Sets the world gravity. 800 by default; lower values make players jump higher and fall slower.

    Default 800

    Gameplay

  45. sv_maxspeed

    Caps how fast players can move. 320 by default.

    Default 320

    Gameplay

  46. changelevel_next

    Changes to the next map in the map cycle right away.

    Command

    Maps

  47. map

    Loads a map from scratch. Players are dropped and have to reconnect, so changelevel is usually better.

    Command

    Maps

  48. mapcyclefile

    Names the map cycle file in dod/cfg. mapcycle.txt by default, with mapcycle_default.txt as the fallback.

    Default mapcycle.txt

    Maps

  49. maps

    Lists the maps on the server whose names match a filter. Use * for all of them.

    Command

    Maps

  50. 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

  51. 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

  52. exec

    Runs a config file from dod/cfg, line by line, as if typed in the console.

    Command

    Server and access

  53. hostname

    Sets the server name players see in the server browser and on the scoreboard.

    Default (empty)

    Server and access

  54. hostport

    The port the game server listens on. 27015 by default.

    Default 27015

    Server and access

  55. 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

  56. 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

  57. 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

  58. plugin_print

    Lists the server plugins that are loaded, such as Metamod:Source.

    Command

    Server and access

  59. rcon_password

    Sets the password for remote console (RCON) access to the server.

    Default (empty)

    Server and access

  60. say

    Sends a chat message to every player from the server console.

    Command

    Server and access

  61. status

    Prints the server name, map, player count and every player with their userid, Steam ID, ping and IP.

    Command

    Server and access

  62. 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

  63. 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

  64. sv_downloadurl

    Sets a web address players download missing custom files from, instead of the slow in-game transfer.

    Default (empty)

    Server and access

  65. 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

  66. sv_password

    Sets the password players must enter to join. Empty means anyone with the address can join.

    Default (empty)

    Server and access

  67. 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

  68. 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

  69. 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

  70. 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

  71. sv_tags

    Sets comma-separated tags shown with the server in the server browser. Empty by default.

    Default (empty)

    Server and access

  72. sv_visiblemaxplayers

    Overrides the player limit the server browser shows. -1 shows the real number of slots.

    Default -1

    Server and access

  73. addip

    Bans an IP address for a number of minutes, 0 for permanent.

    Command

    Admin and bans

  74. kick

    Removes a player from the server by name.

    Command

    Admin and bans

  75. kickall

    Kicks every player on the server, with an optional message.

    Command

    Admin and bans

  76. listid

    Lists the Steam ID bans in memory, with their slot numbers.

    Command

    Admin and bans

  77. listip

    Lists the IP bans in memory, with their slot numbers.

    Command

    Admin and bans

  78. mp_autokick

    Kicks idle players and players who kill teammates. Off by default.

    Default 0 (Off)

    Admin and bans

  79. removeid

    Lifts a ban by Steam ID, or by its slot number in the listid list.

    Command

    Admin and bans

  80. removeip

    Lifts an IP ban, by address or by its slot number in the listip list.

    Command

    Admin and bans

  81. 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

  82. 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

  83. 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

  84. 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

  85. writeid

    Saves the permanent Steam ID bans to dod/cfg/banned_user.cfg.

    Command

    Admin and bans

  86. writeip

    Saves the permanent IP bans to dod/cfg/banned_ip.cfg.

    Command

    Admin and bans

  87. 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

  88. sv_voiceenable

    Turns voice chat on or off for the whole server. On by default.

    Default 1 (On)

    Chat and voice

  89. sv_client_max_interp_ratio

    Sets the highest cl_interp_ratio players may use. 5 by default.

    Default 5

    Network and rates

  90. sv_client_min_interp_ratio

    Sets the lowest cl_interp_ratio players may use. 1 by default.

    Default 1

    Network and rates

  91. 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

  92. sv_maxrate

    Caps the bandwidth, in bytes per second, the server sends each player. 0 means no cap.

    Default 0

    Network and rates

  93. sv_maxupdaterate

    Caps how many updates per second the server sends each player. 66 by default.

    Default 66

    Network and rates

  94. 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

  95. sv_minrate

    Sets the lowest bandwidth, in bytes per second, a player may use. 3500 by default.

    Default 3500

    Network and rates

  96. sv_minupdaterate

    Sets the fewest updates per second a player may ask for. 10 by default.

    Default 10

    Network and rates

  97. 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

  98. log

    Turns server logging on or off. Logs record kills, chat, connections and admin actions.

    Command

    SourceTV and logs

  99. 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

  100. sv_logbans

    Writes bans to the server log. Off by default.

    Default 0 (Off)

    SourceTV and logs

  101. sv_logecho

    Also prints log lines in the server console. On by default.

    Default 1 (On)

    SourceTV and logs

  102. 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

  103. tv_autorecord

    Records every map as a SourceTV demo automatically. Off by default; needs tv_enable 1.

    Default 0 (Off)

    SourceTV and logs

  104. 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

  105. 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

  106. tv_name

    Sets the name the SourceTV spectator bot uses on the scoreboard. SourceTV by default.

    Default SourceTV

    SourceTV and logs

  107. tv_record

    Starts recording a SourceTV demo to a .dem file. SourceTV must be running.

    Command

    SourceTV and logs

  108. tv_stoprecord

    Stops the SourceTV demo being recorded and closes the file.

    Command

    SourceTV and logs

  109. buddha

    You take damage but can't drop below 1 health. Type it again to turn it off. Needs sv_cheats 1.

    Command

    Cheats

  110. 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

  111. dod_waverespawnfactor

    Multiplies the respawn wave timers. 1 by default; lower values mean shorter waits. Needs sv_cheats 1.

    Default 1

    Cheats

  112. give

    Gives you an item or weapon by its entity name, for example weapon_bazooka. Needs sv_cheats 1.

    Command

    Cheats

  113. god

    Makes you take no damage. Type it again to turn it off. Needs sv_cheats 1.

    Command

    Cheats

  114. noclip

    Lets you fly through walls. Type it again to turn it off. Needs sv_cheats 1.

    Command

    Cheats

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.