Sturmbot.org

Single player mode for Day of Defeat

For dod (goldsource) only

 

 

Guide to the commands

Warning: Not all cvars are set to default, most are but you should check each one.

If the default is not used you will see "recommended" (in some cases more than two may be recommended) for cvars that are most common for dod servers.

This guide is used for a dod server.cfg generator, go there now.

This is in case you are not sure and want a quick server.cfg. You should always research each cvar.

See below for a guide...

Name of your server: <type text> <hostname> ( def. "0" ). The name of your server that shows in the server search

Rcon password: <type text> (Optional) <rconpassword> ( def. "0" ) Password for server admin access from the console or HLSW. Leave out if no RCON required.

Server password: <type text> (Optional) <sv_password> ( def. "0" )  Password for clients joining your server. Private = password required. Public = leave the password out ("0").

Server contact email: <type text> (Optional) <sv_contact> ( def. "0" )Server Contact email. Place in the Admin's email. If you want no contact = leave the email address out.

Region (Select your region): <sv_region> This console variable is queried by the server browser to determine what part of the world the server is in. Its "depreciated" in VALVe but websites like gametracker.com still reference it.

Internet or LAN server: <sv_lan>  ( def. "0" )  "0" is both Internet and LAN and recommended. When set to "1" it will lock to LAN only. 

 


RCON bans and logs.

RCON failed login Ban time : <sv_rcon_banpenalty> Def ="0" Min "0". Max infinity.  Number of minutes to ban users who fail rcon authentication.

RCON min failed login before Ban : <sv_rcon_minfailures>  ( def. "5" ) min. 1 max. 20. Number of times a user can fail rcon authentication in sv_rcon_minfailuretime before being banned.

RCON max failed login before Ban : <sv_rcon_maxfailures> ( def. "10" ) min. 1 max. 20. Max number of times a user can fail rcon authentication before being banned.

Failed RCON login tries track time : <sv_rcon_minfailuretime> ( Recommended. "10" ) min. 1. max infinity. Number of seconds to track failed rcon authentications.

 

Server bans and logs.

Server Logging : <mp_logfile> ( Recommended "on" )  Toggles logging during multiplayer games -  "1" is on, "0" is off.

Server Ban Logging : <sv_logbans> ( def. "0" )  "1" is on and recommended. Log server bans in the server logs.

Server Logging to 1 file : <sv_log_onefile> ( def. "0" )  "0" is off and recommended. Log server information to only one file.

Attack Logging : <mp_logdetail> ( def. "0" ) min. 0 max. 3. Logs attacks.  Values are: 0=off, 1=enemy, 2=teammate, 3=both and recommended.

Other commands added by default to this section are ...

// execute ban files
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip

 


Server Downloads and Client files.

Learn more about "fast downloads" or as Steam calls it... "HTTP Fast Download" server here. Basically it is a web server on the net that the client can download files from instead of the game sever.

Fast download url: <type text> (Optional) <sv_downloadurl> Def= no text. No URL here means you have not got a fast downloads server. 

Make sure the two commands below are set on "1" for a fast download server if you use it...

Server downloads: <sv_allowdownload> Def = "1" is on, "0" is off. Allow clients to download files.

Server uploads: <sv_allowupload> Def = "1" is on, "0" is off. Allow clients to upload their custom decals to the server.

 


Bandwidth Rates

Note (a disclaimer of  sorts): Values marked "Popular" are for a loose guide only. You should see your game server provider for more information as these settings depend on slot amounts, hardware and data center speed! Example page on what a game server provider will say is here.

So where to go and learn? Ask other admins at the Steam forums. I have tried to give the most popular choices...up to you in the end! 

I took a survey July 2012 for most of these to see what people are using, (in CSS and DoD:S), the results are here. Should be OK for HL1 dod too.

Basically the servers surveyed were mostly 16-32 slot servers so the choices I have were most popular among the admins/game server providers. Just use the advanced search to see for yourself after playing on a good server.

 Note: 18 Aug 2012 :The default client rate is now 30000 after being 9999 for a long time. make sure your server is set up correctly!

Max Rate : <sv_maxrate> Def = "0" Max bandwidth rate allowed on server, 0 = unlimited. Note: top 3 Popular choice's are "100000", "25000" and "0".

sv_maxrate 50000 - (Recommended public servers) Consider "100000" (good server-high slots) or "25000" (poor server-low slots)  if not sure .

Min Rate  :  <sv_minrate>  Def = "0" Min bandwidth rate allowed on server, 0 = unlimited.

sv_minrate 7500 - (Recommended public servers) Note: Popular choice's are "20000", "2500" and "0"

Max update rate to clients : <sv_maxupdaterate> Def = "66" Maximum updates per second that the server will allow.

sv_maxupdaterate 66 (def) - (Recommended public servers) Popular choice's are "66", "60" and "100"

Min update rate to clients  : <sv_minupdaterate>  Def = "10" Minimum updates per second that the server will allow.

sv_minupdaterate 20 - (Recommended public servers) Popular choice's are "30", "66" and "10"

 

 


Basic Server Cvars

Most here are for SteamPipe basic cvars. For DoD specific cvars there is a section below. Most are set at the most popular or default

Friendly Fire: <mp_friendlyfire> Def = "0" is off, "1" is on. Select if you want to turn on friendly fire.

All Talk: <sv_alltalk> Def = "0" is off, "1" is on. - Players on both sides can hear all other players, no team restrictions.

Chat time: <mp_chattime> ( def. "10" ) Time in seconds players can chat after the game is over

Voice Enable: <sv_voiceenable> Def = "1" is on, "0" is off. - enable speech in-game

Allow spectators: <mp_allowspectators> Def = "1" is on, "0" is off. - Toggles whether the server allows spectator mode or not

Game Time: <mp_timelimit> Def = "25" (Minutes). - game time per map in minutes

Decal Frequency: <decalfrequency> ( def. "30" ) Time in seconds that players are allowed to spray their decal again.

Flashlight: <mp_flashlight> Def = "0" is off, "1" is on (Recommend). - Allow flash lights to be used by the clients, on or off.

Footsteps (enable): <mp_footsteps> Def = "1" is on, "0" is off. - Enables on or off foot steps. Recommend you leave this ON "1".

Force first person mode: <mp_forcecamera> Def = "1" is on, "0" is off.- Restricts spectator modes for dead players

Cheats: <sv_cheats> Def = "0" is off, "1" is on. - Allow cheats on server. Obviously... don't turn this on a public server.

Fall Damage (On or Off): <mp_falldamage> Def = "0" is off, "1" is on. - when mp_falldamage is non-zero players will get hurt when they fall very high. When it's zero there will be no damage by falling. Info' here.

Fade to black (On or Off): <mp_fadetoblack> Def = "0" is off, "1" is on. - Dead players will have their screen faded to black instead of spectating

Fake Lag (number): <fakelag> Def = "0". Simulates lag, the higher the number, the more simulated lag, just place in an amount. For a normal server leave it on "0". Used for testing mostly, put it in the server.cfg just in case it gets changed the server will reset to the default "0". 

Fake Loss (number): <fakeloss> Def = "0". simulates packet loss - * the higher the value, the more simulated packet loss. Used for testing mostly, put it in the server.cfg just in case it gets changed the server will reset to the default "0". Note sv_cheats must be enabled for this to work.

Pause Server  (On or Off): <pausable> Def = "0" is off, "1" is on. -  Allow "1" or not "0" the players to pause the game using the pause command.

Auto Aim  (On or Off): <sv_aim> Def = "0" is off, "1" is on. - Enables auto-aim (When your crosshair is near a enemy). Only  in Half-Life but dod has this "0" or off by default.

 


Movement speed and feel

 

Gravity: <sv_gravity> Def =800. - World gravity. Note: the settings are there for servers that require increased gravity for certain maps that are set as the only map on the server, otherwise leave this set to 800.

Friction: <sv_friction> - - World friction. The players grip on the floor, determining how slippery the floor is, or how gripped the player is to the floors surface. See here.  I have from (slippery) - 0, 1, 2, 3, 4 and 5 (grippy), values for you to select. Recommended and default is "4".

Stop Speed: <sv_stopspeed> - Def = "100". - Minimum stopping speed when on ground. Most servers seem to run at 75, there are values from 100-55 to chooses from.

Edge Friction: <edgefriction> - Def = "2". - Sets the amount of friction between players and objects. This is used to add slowdown when jumping off of an edge. When jumping off of a platform that is 70 units from the ground, the effect of edgefriction is greatly increased. When set higher, the force pulling you down is greater, like gravity. Settings are "0" = disabled "1" = slightly less.  "2" normal (def) higher settings will have more friction. 

Air Accelerate <sv_airaccelerate> - Def = 10 - Used in CS surf maps mostly not dod, makes you accelerate faster or slower when in the air. Some servers has the sv_accelerate and sv_airaccelerate set to either higher or lower values. For example they could have sv_airaccelerate set to 1000 instead of 800.

Accelerate <sv_accelerate> - Def = 10 - Used in CS surf maps mostly not dod. Sets the acceleration speed. In HL and dod you can change it and the default value is "10". "5" is used for surf maps. (Its locked in CS only to "5")

Max speed <sv_maxspeed> - Def = 500 - This command sets the maximum speed for each player on the server. A higher value will allow players to reach faster speeds. A lower value will make players be able to reach lower speeds. 320 for CS 1.6 and 500 is the default for dod. I place some options in the dropdown arrow but mostly leave it on "500" for dod.

 


DoD:s specific Gameplay and server settings

The below are commands that may need a reset to your defaults after a map change.

In dod there are weapon limit commands and a separate system for Classes. The developers introduced this in version 1.2, its quite messy and often confusing.

We can think of this as two systems separated by a command for each weapon and a different method that controls the player class.

  • This means there are 23 weapon cvars you can use to limit individually.
  • Adding to that there are 3 more cvars that control class limits by a "mask" (added up value to make the team you want).
  • If that isn't enough there is one that controls the Bazooka, Piat and Panzerschreck weapon from spawning on the ground on certain maps like dod_cean, kalt, jagd.

Both of these systems need a default set in the server.cfg if they are used so the can be reset if a plugin or if a "mapname".cfg (like dod_cean.cfg in the dod folder) has altered the default and it needs default server.cfg values reset.

Considering that you should have these set to the game defaults or the default of your choice in a server.cfg.


 Class Restrictions 

 

 

Allies (US and Brit) classes <mp_alliesclasses> Def = "-1" (allow all classes) others are a mask value you add up.

 

  

Axis (German force) classes <mp_axisclasses> Def = "-1" (allow all classes) others are a mask value you add up.

 

See below for the tables with mask values, its from readme.txt in the dod folder.

In dod 1.3 you set a "mask" value of allowed classes for each team.

US British German
Garand = 1 Enfield = 1 K98 = 1
Carbine = 2 Sten = 2 K43 = 2
Thompson = 4 Sniper = 4 MP40 = 4
GreaseGun = 8 Bren = 8 MP44 = 8
Sniper = 16 PIAT = 16 Sniper = 16
BAR = 32 Random = 64 FG42Bipod = 32
30Cal = 64   FG42Sniper = 64
Bazooka = 128   MG34 = 128
Random = 512   MG42 = 256
    Pschreck = 512
    Random = 2048

Example: The Allied classes.

  • mp_alliesclasses 29 - ( 29 = 1 + 4 + 8 + 16 = garand + thompson + greasegun + sniper )
  • To add the 'random' class, you would find random, see the value 512, and add that to 29 - 541.

These can also be set per map in the "dod_mapname.cfg" configuration files.

That process is not covered here, the job the server.cfg file does is to set a default value for these CVAR's.


Bazooka, Piat and Panzerschreck Weapon Restriction 


Allow Bazookas to spawn = <mp_spawnbazookas> - Def = "-1" is on. "0" = disabled - they will not spawn in maps that have these on the ground.

Normally found in spawns of dod_caen, dod_chemille, dod_forest, dod_jagd, dod_kalt, dod_merderet, dod_vicenza, and dod_zalec.


Axis only MG Weapon Restriction 


Axis MG class combine = <mp_combinemglimits> - Def = "0" is off (don't combine) and "1" is on (combine both MG34 and MG42 into one MG class like the allied teams.)

Setting to 1 will combine the mg34 and mg42 class limits and count either class as being a "machine gunner". New limit is the sum of "mp_limitaxismg34" and "mp_limitaximg42", including negative numbers.

They added this option so no matter what you set in the class limits, the amount of MG's cannot be doubled compared to the US or Brit teams who only have one MG class.


Weapon Restrictions

Allies Weapon Restrictions

 

Garand = <mp_limitalliesgarand> - Def = "-1" is on, "0" = disabled - Class limit for team: Allies class: Rifleman

 

Carbine = <mp_limitalliescarbine> - Def = "-1" is on, "0" = disabled - Class limit for team: Allies class: Staff Sergeant and Folding Carbine (Para maps).

 

Thompson = <mp_limitalliesthompson> - Def = "-1" is on, "0" = disabled - Class limit for team: Allies class: Master Sergeant

 

GreaseGun = <mp_limitalliesgreasegun> - Def = "-1" is on, "0" = disabled - Class limit for team: Allies class: Sergeant

 

Sniper = <mp_limitalliesspring> - Def = "-1" is on, "0" = disabled - Class limit for team: Allies class: Sniper

 

BAR = <mp_limitalliesbar> - Def = "-1" is on, "0" = disabled - Class limit for team: Allies class: Support Infantry

 

30Cal = <mp_limitallies30cal> - Def = "-1" is on, "0" = disabled - Class limit for team: Allies class: Machine Gunner

 

Bazooka = mp_limitalliesbazooka> - Def = "-1" is on, "0" = disabled - Class limit for team: Allies class: Rocket Infantry

 


 

British Class Restrictions

 

Enfield: <mp_limitbritlight> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Rifleman

 

Sten: <mp_limitbritassault> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Sergeant Major

 

Enfield Sniper: <mp_limitbritsniper> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Marksman

 

Bren: <mp_limitbritmg> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Gunner

 

PIAT: <mp_limitbritpiat> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Rocket Infantry

 

 

 


 

Axis Class Restrictions

 

 

K98: <mp_limitaxiskar> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Grenadier

 

K43: <mp_limitaxisk43> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Stosstruppe

 

MP40: <mp_limitaxismp40> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Unteroffizier

 

STG44: <mp_limitaxismp44> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Sturmtruppe

 

K98 Sniper: <mp_limitaxisscopedkar> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Scharfschuetze

 

FG42 Bipod: <mp_limitaxisfg42> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Fallschirmjager FG42 Bipod

 

FG42 Sniper: <mp_limitaxisfg42s> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Fallschirmjager FG42 Sniper

 

MG-Schütze MG34: <mp_limitaxismg34> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: MG-Schütze MG34 

 

MG-Schütze MG42: <mp_limitaxismg42> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: MG-Schütze MG42

 

Panzerschreck: <mp_limitaxispschreck> - Def = "-1" is on, "0" = disabled - Class limit for team: Axis class: Rocket Infantry

 

 


 NOTICE  ... If you have something to add  drop me an email with cvar suggestions!

 

Note: the file made by this page can be edited by a good text editor.

Please do not use Windows notepad the text will look scrambled.

Download NotePad++ if you edit .cfg files.

 

NOTE: You can get the latest full CVAR list in steam games from your game server or local PC anytime you like.
Place... cvarlist log cvarlist.txt ....in console, go to your game directory folder, (dod, tf or cstrike) and open a file called "cvarlist.txt"
You can also have the file formatted in .csv format that spreadsheet programs, (like MS excel or (free) open Office Calc) can open.
Place "cvarlist log cvarlist.csv" in console and look in the game folder for the result...dod, tf or cstrike.

Donations

Enter Amount

Google Ad

dodbits.com Copyright © 2011. All Rights Reserved.