//************************************************************
//COD2 - WW2X Server Config Setup and Init
//************************************************************
//Server Configuration for File Call of Duty 2 Multiplayer
//Updated : 06 October 2007 by Wildcard
//Email   : wildcard@wildcardsonline.nl
//Support WebSite: http://www.wildcardonline.nl
//This config file controls the server settings

//*************************************************************** ********** 
//Color Codes 
//************************************************************ ************* 
// Colors for text. Do not clear the comment in front of the color codes. 
// Useful for your server name, motd msg's - Information and ref use only 
// 
// ^1 = Red* 
// ^2 = Green* 
// ^3 = Yellow* 
// ^4 = Blue* 
// ^5 = Cyan* 
// ^6 = pink/Magenta* 
// ^7 = White* 
// ^0 = Black* 


//************************************************************************* 
//Public Information 
//*************************************************************************
sets sv_hostname ""
sets _Admin ""
sets _Email ""
sets _Website "http://"
sets _Location "Germany"
sets _Mod "^3WW2^1X ^31.8c"
sets _ModVer "v1.8c"
sets _ModUpdate "06-10-2007"
sets _Maps "COD2 Stock & Custom"
set scr_motd ""

//***********************************************************************************************************
// ADMINS ATTENTION!!!! -- WINDOWS SERVERS SHOULD HAVE THIS COMMENTED OUT!!!!!
// LINUX SERVERS MUST SET THIS TO 1 OR 2 !!!!
// This setting allows you to control the localized string messages spam messages in the console log a bit.
// If set to 1 then less names are shown...thus less spam (warning messages) in the console log.
// If set to 2 then more names are shown...thus more spam (warning messages) in the console log.
// 0 = off (windows servers only), 1 = less spam, 2 = more spam, default = 0
//************************************************************************************************************
set wwx_is_linux "2"

//************************************************************
// Common/general Server Settings
//************************************************************
// Network options
set net_ip ""      // Set your servers IP address
set net_port ""          // Set your port number
set com_hunkMegs "512"
set net_noipx "1"             // Allow ONLY tcp/ip protocol, player/server communications

// Server Network Mode
//set dedicated "2"             // 0 = Listen, 1 = LAN, 2 = Internet

// Master servers
set sv_master1 "cod2master.activision.com" 
set sv_master2 "cod2authorize.activision.com"
set sv_master3 "cod2master.infinityward.com"
set sv_master3 "cod2update.activision.com"
set sv_master4 "master.gamespy.com:28960" 
set sv_master5 "master0.gamespy.com" 
set sv_master6 "master1.gamespy.com" 
set sv_master7 "clanservers.net" 
set sv_gamespy "1" 

// Password Settings
set rcon_password "mas87982tho"	// RCON must supply pw to use
set sv_privatePassword "HOlleOtzeK"	// Private slots, non-public slots

// The following can be used to lock out the server so that only those
// players that have been provide the password can connect.  Good for
// matches, practices, etc.
set g_password ""                   

// Player slots setup
set sv_maxclients "22"		// MAX server player slots, this is TOTAL player slots
set sv_privateclients "2"	// Number of private player slots, maxclients - privateclients = public slots 

// Ping 
set sv_minPing "0"            // MIN player ping on CONNECT, any lower and player isnt allowed to connect
set sv_maxping "150"          // MAX player ping on CONNECT, any higher and player isnt allowed to connect
 
// Rate 
set sv_maxRate "25000" 

// FPS
//set sv_fps "20"

//Map/Team/Player Settings 
set scr_teambalance "1" 
set g_deadChat "1" 
set sv_allowAnonymous "0"
set scr_friendlyfire "0" 
set scr_freelook "0" 
set scr_spectateenemy "0" 
set g_forceteamspectate "0" 
set sv_invulnerabletime "5" 
set g_teamswitchdelay "25"  
set g_antilag "1"

// Drop inactive players 
set sv_timeout "300" 
set sv_zombietime "1" 
set g_inactivity "180" 
set g_inactivityspectator "300" 

// AntiFlooding Settings 
set sv_floodProtect "1" 
set sv_reconnectlimit "3"

// Anti Cheat Settings 
set sv_disableClientConsole "0" 
set cl_autocmd "0" 
set sv_cheats "0" 
set sv_pure "1" 
set g_banIPs ""
set g_no_script_spam "1"

// Temporary Ban duration, in seconds 
set sv_kickBanTime "3600" 

// Killcam 
set scr_roundcam "0" 
set scr_killcam "0"

// Allow Voting 
// It is recommended if you have friendly fire on 
// that you also enable voting so that players can kick team-killers. 
set scr_allow_vote "1" 
set g_allowvote "0" 
set g_oldVoting "1"

// Log Settings
set g_logsync "2"		       // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1"			 // 0 = NO log, 1 = log file enabled
set g_log "games_mp.log"	// Name of log file, default is games_mp.log 
set sv_log_damage "1" 

// In-game voice communication system
set sv_voice "0" 
set sv_voiceQuality "1"
set voice_deadChat "0" 
set voice_global "0" 
set voice_localEcho "0" 
set winvoice_mic_mute "1"

// Client Download Settings. (0=off/1=on) Used for MODS, Custom Maps
set sv_allowdownload "1"
//set sv_dl_maxRate "84000"	 // Max download speed 42000 = 12kb
seta sv_wwwDownload "1"
seta sv_wwwBaseURL "http://"
seta sv_wwwDlDisconnected "1"

//***************************************************************************************************
// some Custom Maps
//***************************************************************************************************
seta chelm_random "0"
seta chelm_flak "0"

//***************************************************************************************************
// diagnostics
//***************************************************************************************************
// server devmode 0 - 2
set developer "0"

// test bots (can crash the server on next map!)
//set scr_testclients "15"

// freeze the bots to the ground?, easier when testing!
//set scr_botfreeze "1"

// debug bot weapons
//set wwx_debugbots "1"

//***********************************************************************
// Init & Exec CFG Files
//***********************************************************************
pb_sv_enable
wait
set scr_drm_cfg_1 "weaponcontrol.cfg"
set scr_drm_cfg_2 "ambientfx.cfg"
set scr_drm_cfg_3 "clancontrol.cfg"
set scr_drm_cfg_4 "miscfeatures.cfg"
set scr_drm_cfg_5 "mapcontrol.cfg"
set scr_drm_cfg_6 "healthcontrol.cfg"
set scr_drm_cfg_7 "monitoring.cfg"
set scr_drm_cfg_8 "playercontrol.cfg"
set scr_drm_cfg_9 "ranksystem.cfg"
set scr_drm_cfg_10 "wmdcontrol.cfg"
set scr_drm_cfg_11 "gametypes.cfg"
set scr_drm_cfg_12 "redirect.cfg"
exec maprotation.cfg
