@ -1,151 +1,198 @@
////////////////////////////////////////////////////////////
/// ///
/// ///
/// Call of Duty 4 X Standard Configuration ///
/// ///
/// Author: Daedalus, Created: 08.01.2017 ///
/// Provides a general starting point for your ///
/// CoD4X server configuration. Also contains ///
/// features only available on CoD4X 1.8+ servers ///
/// ///
////////////////////////////////////////////////////////////
// Meta Information, not required
// ************************************************************************** //
// //
// Call of Duty 4 X - server.cfg //
// Version 260426 //
// //
// ************************************************************************** //
// ................................ Metadata ................................ //
// Optional server metadata used by some admin tools.
sets _Admin "Admin"
sets _Email ""
sets _Website ""
sets _Location ""
sets _Maps ""
sets _Gametype ""
/////////////////////////////////
// Basics
// .................................. Basic ................................. //
// sv_hostname - Name shown in the server browser.
set sv_hostname "SERVERNAME"
// Message of the day, which getting shown to every player on his 1st spawn
// g_motd - Message shown to each player on first spawn.
set g_motd ""
// 0 = Listen, 1 = LAN, 2 = Internet ( you probably want 2 )
// dedicated - 0 = listen, 1 = LAN dedicated, 2 = internet dedicated.
set dedicated "2"
// password for remote access, leave empty to deactivate, min 8 characters
// rcon_password - Remote console password. Leave empty to disable.
set rcon_password "ADMINPASSWORD"
// join password, leave empty to deactivate
// g_password - Join password. Leave empty to disable.
set g_password ""
//Private Clients, number of slots that can only be changed with a password
// sv_privateClients - Reserved slots available only with private password.
set sv_privateClients "2"
// the password to join private slots
// sv_privatePassword - Password for reserved slots.
set sv_privatePassword "mypassword"
// cdkey validation
// sv_authorizemode - 1 = legal clients only, 0 = allow cracked clients, -1 = mixed fallback.
set sv_authorizemode "0"
// 0 = show modded server as not ranked, 1 = shows server as ranked altough it is modded
// sv_authtoken - CoD4X master-list auth token. Uncomment and set for public listing.
// set sv_authtoken "REPLACE_WITH_YOUR_COD4MASTER_TOKEN"
// sv_showasranked - 0 = show modded server as unranked, 1 = show as ranked.
set sv_showasranked 0
// ............................. Server Logging ............................. //
// Log File
// 0 = No log, 1=buffered, 2=continuous, 3= append
// g_logsync - Log write mode.
// 0 = no log, 1 = buffered, 2 = continuous, 3 = append
set g_logsync "2"
// 0 = No log, 1 = log file enabled
// logfile - 0 = disabled, 1 = enabled.
set logfile "1"
// Name of log file, default is games_mp.log
// g_log - Log file name. Default is games_mp.log.
set g_log "games_mp.log"
// sv_log_damage - Include damage events in logs.
set sv_log_damage "1"
// writes an xml serverstatus to disc, leave empty to disable
// sv_statusfile - XML server status output. Leave empty to disable.
set sv_statusfile "serverstatus.xml"
// Networking
// not necessary to be set
// ................................ Network ................................ //
// net_ip - Bind address.
// set net_ip "0.0.0.0"
// network port
// net_port - Network port.
// set net_port 28960
// sv_maxRate - Maximum client rate.
// set sv_maxRate 25000
// minimal ping [ms] for a player to join the server
// sv_minPing - Minimum ping in ms allowed to join.
set sv_minPing "0"
// maximal ping [ms] for a player to join the server
// sv_maxPing - Maximum ping in ms allowed to join.
set sv_maxPing "350"
// Seconds to keep a client on server without a new clientmessage
// sv_timeout - Seconds before timing out a client with no new message.
set sv_timeout 40
// Seconds to wait for a client which is loading a map without a new clientmessage
// sv_connectTimeout - Seconds to wait while a client is loading.
set sv_connectTimeout 90
// Seconds to keep a disconnected client on server to transmit the last message
// sv_zombieTime - Seconds to keep a disconnected client for final message handling.
set sv_zombieTime 2
// Seconds to disallow a prior connected client to reconnect to the server
// sv_reconnectlimit - Seconds before a prior client can reconnect.
set sv_reconnectlimit 5
// Floodprotection is enabled by default!
// sv_floodProtect, sv_maxRate,
// Flood protection is enabled by default.
// sv_floodProtect, sv_maxRate
// ............................... Compatibility ............................ //
// Variables you should not touch :)
//Server-FPS (do not change!)
// sv_fps - Server FPS. Do not change.
// set sv_fps "20"
//Punkbuster, PB is not supported on CoD4x
// sv_punkbuster - PunkBuster is not supported on CoD4X.
// set sv_punkbuster "0"
//check IWD-data 0 = off, 1 = on
// sv_pure - IWD integrity checks.
// 0 = off, 1 = on
// set sv_pure "1"
//0 = off, 1 = on // Anti lag checks for weapon hits
// set g_antilag "1"
// 1 = use player stats file for mods (normal behaviours), 0 = use player stats file of basegame (DANGEROUS!!! as it can overwrite your stats)
// set ModStats 1
// g_antilag - Anti-lag checks for weapon hits.
// 0 = off, 1 = on
// set g_antilag "1"
// ModStats - Legacy template variable for mod stats behavior.
// 1 = per-mod stats, 0 = basegame stats
// set ModStats 1
// Variables I have no clue what they are doing :D
// Anonymous //0 = off 1 = on
// sv_allowAnonymous - Allow anonymous clients.
// 0 = off, 1 = on
set sv_allowAnonymous "0"
// ................................ Gameplay ................................ //
//////////////////////
// Gameplay
// sv_mapRotation - Automatic map and gametype rotation.
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"
// Maps
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant" // maps that will be played automatically
// 0 = sv_mapRotation is randomized, 1 = sequential order of sv_mapRotation
// sv_randomMapRotation - 0 = random order, 1 = sequential order.
// set sv_randomMapRotation 1
// Dead can chat // 0 = off, 1 = on
// g_deadChat - Dead players can use text chat.
// 0 = off, 1 = on
set g_deadChat "1"
// Dead can use voicechat //0 = off, 1 = on
// voice_deadChat - Dead players can use voice chat.
// 0 = off, 1 = on
set voice_deadChat "0"
//Gravity //Standard 800
// g_gravity - Player gravity. Default is 800.
set g_gravity "800"
//deactivate console for clients //0 = no, 1 = yes
// sv_disableClientConsole - Disable client console.
// 0 = no, 1 = yes
set sv_disableClientConsole "0"
//auto-teambalance //0 = no, 1 = yes
// scr_teambalance - Automatic team balancing.
// 0 = no, 1 = yes
set scr_teambalance "1"
//friendly-fire //0 = off, 1 = on, //2 = reflect damage, 3 = shared damage
// scr_team_fftype - Friendly fire mode.
// 0 = off, 1 = on, 2 = reflect damage, 3 = shared damage
set scr_team_fftype "0"
// spectator // 0 = off, 1 = only Team/player, 2 = free
// scr_game_spectatetype - Spectator mode.
// 0 = off, 1 = team/player, 2 = free
set scr_game_spectatetype "2"
//Hardcore Mode //0 = off 1 = on
// scr_hardcore - Hardcore mode.
// 0 = off, 1 = on
set scr_hardcore 0
//Oldschool Mode //0 = off, 1 = on
// scr_oldschool - Oldschool mode.
// 0 = off, 1 = on
set scr_oldschool "0"
// 1 = player collision between friendly players, 0 = collision between friendly players is disabled
// g_friendlyPlayerCanBlock - Collision between teammates.
// 0 = off, 1 = on
set g_friendlyPlayerCanBlock 1
// same for FFA (non team based) gamemode
// g_FFAPlayerCanBlock - Collision in free-for-all modes.
// 0 = off, 1 = on
set g_FFAPlayerCanBlock 1
// Less interesting Gameplay stuff
set scr_drawfriend "1" //show team mates //0 = off, 1 = on
set scr_enable_scoretext "1" //hit-message //0 = no, 1 = yes
set scr_game_allowkillcam "1" //Killcam //0 = no, 1 = yes // Allow to play killcam after you got killed
set scr_game_deathpointloss "0" //points-distraction when hit //0 = no, 1 = yes
set scr_game_suicidepointloss "0" //points-distraction suicide //0 = no, 1 = yes
set scr_game_matchstarttime "10" //time until match starts
set scr_game_playerwaittime "10" //respawn-delay
set scr_player_forcerespawn "-1" //force respawn //0 = no, 1 = yes // forgot what -1 did but i believe it was different xD
set scr_player_healthregentime "5" //health regeneration (in seconds)
set scr_player_maxhealth "100" //Max health
set scr_player_sprinttime "4" //Sprint-time
set scr_game_onlyheadshots "0" //headshots only //0 = no, 1 = yes
set scr_teamKillPunishCount "3" //Teamkiller kick after x Teamkills
set scr_team_teamkillspawndelay "20" //teamkill spawn delay (in seconds)
set scr_team_teamkillpointloss "1" //pointloss after Teamkill //0 = no, 1 = yes
set scr_enable_hiticon "1" //Hit-Symbol //0 = off, 1 = on
//Game-Modes
//Death Match (dm)
// Additional gameplay settings.
set scr_drawfriend "1" // Show teammates. 0 = off, 1 = on
set scr_enable_scoretext "1" // Show hit message. 0 = no, 1 = yes
set scr_game_allowkillcam "1" // Allow killcam after death. 0 = no, 1 = yes
set scr_game_deathpointloss "0" // Deduct points on death. 0 = no, 1 = yes
set scr_game_suicidepointloss "0" // Deduct points on suicide. 0 = no, 1 = yes
set scr_game_matchstarttime "10" // Seconds until match starts
set scr_game_playerwaittime "10" // Respawn delay in seconds
set scr_player_forcerespawn "-1" // Force respawn behavior. Engine/mod dependent
set scr_player_healthregentime "5" // Health regeneration delay in seconds
set scr_player_maxhealth "100" // Maximum health
set scr_player_sprinttime "4" // Sprint time in seconds
set scr_game_onlyheadshots "0" // Headshots only. 0 = no, 1 = yes
set scr_teamKillPunishCount "3" // Kick after this many team kills
set scr_team_teamkillspawndelay "20" // Spawn delay after team kill in seconds
set scr_team_teamkillpointloss "1" // Deduct points for team kill. 0 = no, 1 = yes
set scr_enable_hiticon "1" // Show hit icon. 0 = off, 1 = on
// ................................. Game Modes ............................. //
// Deathmatch (dm)
set scr_dm_scorelimit "1000"
set scr_dm_timelimit "15"
set scr_dm_roundlimit "1"
@ -153,7 +200,7 @@ set scr_dm_numlives "0"
set scr_dm_playerrespawndelay "3"
set scr_dm_waverespawndelay "0"
//Team Death M atch (war)
// Team Deathm atch (war)
set scr_war_scorelimit "2000"
set scr_war_timelimit "10"
set scr_war_roundlimit "1"
@ -161,7 +208,7 @@ set scr_war_numlives "0"
set scr_war_playerrespawndelay "3"
set scr_war_waverespawndelay "0"
//Domination (dom)
// Domination (dom)
set scr_dom_scorelimit "250"
set scr_dom_timelimit "0"
set scr_dom_numlives "0"
@ -169,12 +216,12 @@ set scr_dom_playerrespawndelay "3"
set scr_dom_roundlimit "1"
set scr_dom_waverespawndelay "0"
//HQ (koth)
// Headquarters (koth)
set scr_koth_scorelimit "250"
set scr_koth_timelimit "15"
set koth_kothmode "0" //Classic HQ-Mode 0 = off, 1 = on
set koth_kothmode "0" // Classic HQ mode. 0 = off, 1 = on
set koth_capturetime "20"
set koth_spawntime "3" //0 = immediately , x = time in seconds
set koth_spawntime "3" // 0 = immediate, x = seconds
set scr_koth_numlives "0"
set scr_koth_playerrespawndelay "3"
set scr_koth_roundlimit "1"
@ -185,7 +232,7 @@ set koth_delayPlayer "3"
set koth_destroytime "10"
set koth_spawnDelay "3"
//Sabotage (sab)
// Sabotage (sab)
set scr_sab_scorelimit "2"
set scr_sab_timelimit "10"
set scr_sab_roundswitch "1"
@ -198,7 +245,7 @@ set scr_sab_playerrespawndelay "5"
set scr_sab_roundlimit "0"
set scr_sab_waverespawndelay "0"
//Search and d estroy (sd)
// Search and D estroy (sd)
set scr_sd_scorelimit "9"
set scr_sd_timelimit "2.5"
set scr_sd_roundswitch "4"
@ -211,22 +258,33 @@ set scr_sd_playerrespawndelay "0"
set scr_sd_roundlimit "0"
set scr_sd_waverespawndelay "0"
set g_gametype "war" // gamemode, one of [war, dm, sd, sab, koth]
// g_gametype - Active gametype. One of war, dm, sd, sab, or koth.
set g_gametype "war"
// ............................. Optional Features .......................... //
// Optional CoD4X features.
// set sv_autodemorecord 1 // Record player demos server-side into the demos folder
// set sv_demoCompletedCmd "" // Command to execute when a demo is saved
// set sv_screenshotArrivedCmd "" // Command to execute when a screenshot arrives
// set sv_legacyguidmode 0 // 1 = old 32-char GUIDs, 0 = CoD4X GUID format
// Amazing Stuff
//set sv_autodemorecord 1 // Records demos of players on the serverside, demos are stored in "demos" folder
//set sv_demoCompletedCmd "" // program to execute when a demo has been saved
//set sv_screenshotArrivedCmd "" // program to execute when a screenshot was taken
//set sv_legacyguidmode 0 // 1 = old 32 character guids are used, 0 = new cod4x guid format is used ( like steamids )
// CoD4X v15.9+ banlist support moved to plugins.
// loadplugin simplebanlist
// loadplugin legacybanlist
///////////////////////////
// Setup for custom maps when running a mod
// seta sv_wwwDownload "1" // enable download redirection
// seta sv_wwwBaseURL "http://someserver/cod4dl/" // defines url to download from
// seta sv_wwwDlDisconnected "0" // disconnect clients while downloading
///////////////////////////
// ............................... Custom Maps .............................. //
// Setup for custom maps when running a mod.
// seta sv_wwwDownload "1" // Enable download redirection
// seta sv_wwwBaseURL "http://someserver/cod4dl/" // URL to download from
// seta sv_wwwDlDisconnected "0" // Disconnect clients while downloading
set sv_nosteamnames 1 // 1 = Use names from steam if steam is available
// sv_nosteamnames - Use CoD4X names when Steam is available.
// 0 = off, 1 = on
set sv_nosteamnames 1
map_rotate // required to load the first map of the rotation, alternatively use "map mp_killhouse" or pass "+set map mp_killhouse" as commandline argument
// Startup command.
// Required to load the first map in rotation. Alternatives include map mp_killhouse
// or setting +map mp_killhouse in launch parameters.
map_rotate