//***************************************************************************************************************************
// COD5 - ACE Server Config Setup and Init.
//***************************************************************************************************************************
// Server Configuration for File Call of Duty 5 Multiplayer.
// Updated : January 09 2009 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 ""
sets _Location ""
sets _Irc ""
sets _Mod "^1ACE 5.6"
sets ModUpdate "24-04-2009"
sets _Maps "COD4 Stock and Custom"
set scr_motd "Shoot To Kill....Really!!"
//set g_motd "Shoot To Kill....Really!!"

// Keywords (maybe a server search function?)
set sv_keywords ""

//***************************************************************************************************************************
// Common Server Settings.
//***************************************************************************************************************************
// Linux or Windows server, only set to 1 if your server is Linux.
// 0 = windows, 1 = linux. default = 0 (windows).
set ace_islinuxserver "0"

// Log Settings.
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 g_logsync "2"         // 0 = No log, 1 = buffered, 2 = continuous, 3 = append.

// Network options.
//set net_ip ""         // Set your servers IP address.
//set net_port ""         // Set your port number.
set com_hunkMegs "1024"
set net_noipx "1"              // Allow ONLY tcp/ip protocol, player/server communications.

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

// Password Settings.
set rcon_password ""   // RCON must supply pw to use.
set sv_privatePassword ""      // 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 ui_maxclients "32"
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.

// Client Download Settings, 0 = off, 1 = on. Used for MODs and custom maps.
set sv_allowdownload "1"
seta sv_wwwDownload "1"
seta sv_wwwBaseURL "http://"
seta sv_wwwDlDisconnected "0"

// Server rate.
set sv_maxRate "25000" 

// FPS.
set sv_fps "20"

set sv_connectTimeout "300"

// Drop inactive players.
set sv_timeout "300"
set g_inactivity "0"
set g_inactivityspectator "0"
set sv_reconnectlimit "3"

// Anti Cheat Settings.
set sv_disableClientConsole "0"

set ace_disableClientConsole "0"  // This one DOES work, 0 = console enabled, 1 = console disabled, default = 0
set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"

seta sv_punkbuster "1"
wait
pb_sv_enable

// Temporary Ban duration, in seconds.
set sv_kickBanTime "0"

// In-Game Voice Chat
set sv_voice "0"
set sv_voiceQuality "3"
set voice_deadChat "0"
set voice_global "0"
set voice_localEcho "0"
set g_voiceChatTalkingDuration "500"
set g_deadChat "0"

// Client Voting
set g_voteAbstainWeight "0.5"

// Client Side Stuff  -- Don't know what these do right now
set sv_clientside "0"
set sv_clientArchive "1"
set sv_clientSideBullets "1"
set sv_clientSideVehicles "1"
set g_client_side_lights "1"


//***************************************************************************************************************************
// Misc.
//***************************************************************************************************************************
set sv_allowAnonymous "0"
set g_antilag "1"
set g_smoothClients "1"
set g_compassShowEnemies "0"
set scr_drawfriend "1"


//***************************************************************************************************************************
// Gameplay.
//***************************************************************************************************************************
set scr_game_allowkillcam "0"
set scr_game_onlyheadshots "0"
set scr_game_deathpointloss "0"
set scr_game_suicidepointloss "0"

// When your Dead
set scr_game_spectatetype "1"   // 0 - 3 (Disabled, team/players only, free, real free).

// When your spectating
set scr_game_spectatetype_spectators "3"   // 0 - 2 (Disabled, free, real free).

// Freelook guids, these players can free spectate anytime regardless of the 2 settings above (separate each GUID with a semicolon).
set ace_game_spectate_freelook_guids "74fe2df4d53095329a4d6ffced676dca"

set scr_game_graceperiod "0"
set scr_game_matchstarttime "0"
set scr_game_playerwaittime "0"

// Announcer
set scr_allowannouncer "1"

// Battle Chatter Settings
set scr_allowbattlechatter "1"
set bcmp_incoming_grenade_probability "50"
set bcmp_kill_inform_probability "50"
set bcmp_killstreak_incoming_probability "50"
set bcmp_perk_call_probability "50"
set bcmp_sniper_kill_probability "25"
set bcmp_toss_grenade_probability "50"
set bcmp_weapon_delay "2000"
set bcmp_weapon_fire_probability "90"

set g_speed "190"
set g_gravity "800"

// Gravity, this one overrides the stock dvar so you can set the gravity on a map now..and it will hold.
// 0 Or commented out gives the stock 800, vallues are between 0 - 1000.
set ace_gravi "800"

// enable/disable ingame music, 0 = disable, 1 = enable, default = 1
set ace_enable_music "0"

//***************************************************************************************************************************
// Testclients. (PunkBuster MUST be OFF if you want to use this!!!) GIVES CONSOLE ERRORS !!!!!!
//***************************************************************************************************************************
//set scr_testclients "10"

// Freeze the testclientss they dont walk around, 0 = off, 1 = on, default = 0.
sv_botsRandomInput "1"

// Enable/disable bots shooting
sv_botsPressAttackBtn "1"

// Kicks the testclients at game-end, this way you have new bots on a new map untill the maxclientdvar has been reached
// 0 = off, 1 = on, default = 1.
set ace_botkick "1"


//***************************************************************************************************************************
// Init & Exec CFG Files.
//***************************************************************************************************************************
exec configs/admin.cfg
wait
exec configs/messages.cfg
wait
exec configs/monitoring.cfg
wait
exec configs/playercontrol.cfg
wait
exec configs/healthcontrol.cfg
wait
exec configs/weaponcontrol.cfg
wait
exec configs/gametypes.cfg
wait
exec configs/maprotation.cfg

