// ---------------------------------------------------------------------------
// ClanMod 1.82b1 Config Pack v1.82b1 [18 February, 2004]
// ---------------------------------------------------------------------------
// This file is part of ClanMod (See README for more information).
// Copyright 2002 - 2004 UnitedAdmins (www.unitedadmins.com)
// Project originally created by OLO (http://olo.counter-strike.pl)
// ---------------------------------------------------------------------------
// Please read the manual carefully before altering this file!
// The Manual is located at docs.unitedadmins.com
// ---------------------------------------------------------------------------

cm_cfgmodversion "1.82b1 DoD"
cm_log "[CLANMOD] Loaded the Day of Defeat MOD Specific Configs, version: &cm_cfgmodversion&"

// ---------------------------------------------------------------------------
// Aliases for server commands and cvars.
// cm_alias "alias" "server command" "admin level & alias flags"
// ---------------------------------------------------------------------------
// Console Based Aliases (commands)
// ---------------------------------------------------------------------------

cm_alias "cm_tcm" "toggle_dodclanmatch" S
cm_alias "cm_smc" "mp_clan_restartround  1" S

// ---------------------------------------------------------------------------
// Server Configuration Variables (CVARs)
// ---------------------------------------------------------------------------

cm_cvar mp_clan_readyrestart "1" "1" S
cm_cvar mp_clan_timer "5" "60" S

// -------------------------------Allies--------------------------------------
cm_cvar Allies_settings 1.00 1.00 O
cm_cvar mp_limitallies30cal "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc 
cm_cvar mp_limitalliesbar "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc 
cm_cvar mp_limitalliescarbine "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc 
cm_cvar mp_limitalliesgarand "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc 
cm_cvar mp_limitalliesgreasegun "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc 
cm_cvar mp_limitalliesspring "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc 
cm_cvar mp_limitalliesthompson "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc

// --------------------------------Axis---------------------------------------
cm_cvar Axis_settings 1.00 1.00 O
cm_cvar mp_limitaxisfg42 "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc 
cm_cvar mp_limitaxisfg42s "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc
cm_cvar mp_limitaxisk43 "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc
cm_cvar mp_limitaxiskar "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc
cm_cvar mp_limitaxismg34 "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc
cm_cvar mp_limitaxismg42 "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc
cm_cvar mp_limitaxismp40 "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc
cm_cvar mp_limitaxismp44 "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc
cm_cvar mp_limitaxisscopedkar "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc

// -------------------------------British-------------------------------------

cm_cvar Brit_settings 1.00 1.00 O
cm_cvar mp_limitbritassault "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc
cm_cvar mp_limitbritlight "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc 
cm_cvar mp_limitbritmg "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc
cm_cvar mp_limitbritsniper "-1" "0" "1" "2" "3" "4" "5" "6" "7" Sc

// ---------------------------------------------------------------------------
// Maps you want in the Admin Vote Menu
// Example: cm_map <mapname> <flags>
// ---------------------------------------------------------------------------

cm_map dod_anzio      MV "Anzio"
cm_map dod_avalanche  MV "Avalanche"
cm_map dod_caen       MV "Caen"
cm_map dod_charlie    MV "Charlie"
cm_map dod_chemille   MV "Chemille"
cm_map dod_donner     MV "Donner"
cm_map dod_flash      MV "Flash"
cm_map dod_flugplatz  MV "Flugplatz"
cm_map dod_forest     MV "Forest"
cm_map dod_glider     MV "Glider"
cm_map dod_jagd       MV "Jagd"
cm_map dod_kalt       MV "Kalt"
cm_map dod_kraftstoff MV "Krafstoff"
cm_map dod_merderet   MV "Merderet"
cm_map dod_switch     MV "Switch"
cm_map dod_vicenza    MV "Vicenza"
cm_map dod_zalec      MV "Zalec"


// ---------------------------------------------------------------------------
// Commands for Custom Command Menu's
// ---------------------------------------------------------------------------

cm_cmd "List Players" "cm_listplayer" JSbm
cm_cmd "List Admins" "cm_listadmin" Obm
cm_cmd "List Tasks" "cm_listtask" Obm
cm_cmd "Show help" "cm_help" JSbl
cm_cmd "Show rules" "cm_rules" JSbl
cm_cmd "    " " " Sbm
cm_cmd "separator1" "separator1" Sbhs
cm_cmd "Show timeleft" "cm_timeleftcmd" JSbl
cm_cmd "Show nextmap" "cm_nextmapcmd" JSbl
cm_cmd "Forgive TK" "cm_forgivetkcmd" JSbl
cm_cmd "Vote for map" "cm_votemapcmd" JSbl
cm_cmd "Show current time" "cm_thetimecmd" JSbl
cm_cmd "Vote for FF" "cm_vote 'Set FF on?' 'Yes, FF on' 'mp_friendlyfire 1' 'No, FF off' 'mp_friendlyfire 0'" Sds
cm_cmd "      " " " Sds

// ---------------------------------------------------------------------------
// Commands for speech see docs/speech.txt for list of available sounds
// ---------------------------------------------------------------------------

cm_cmd "Hey! Stop that!" "spk 'barney/donthurtem'" Weo
cm_cmd "Don't ask me" "spk 'barney/dontaskme'" Weo
cm_cmd "Don't think so" "spk 'barney/dontguess'" Weo
cm_cmd "Yup" "spk 'barney/yup'" Weo
cm_cmd "Nope" "spk 'barney/nope'" Weo
cm_cmd "Maybe" "spk 'barney/maybe'" Weo
cm_cmd "Seeya" "spk 'barney/seeya'" Weo
cm_cmd "Man that sounded bad" "spk 'barney/soundsbad'" Weo
cm_cmd "Hello and die" "spk 'vox/hello and die'" Weo
cm_cmd "Move!" "spk 'hgrunt/move! _comma yessir!'" Weo
cm_cmd "You will definitely pay!" "spk 'hgrunt/c2a2_hg_chat5a'" Weo
cm_cmd "Laughter" "spk 'hgrunt/c2a3_hg_laugh'" Weo
cm_cmd "Silence!" "spk 'hgrunt/silence!'" Weo
cm_cmd "You talk too much" "spk 'barney/youtalkmuch'" Weo
cm_cmd "You thinkin?" "spk 'barney/thinking'" Weo
cm_cmd "Open fire Gordon!" "spk 'barney/openfire'" Weo
cm_cmd "Couldnt make a bigger mess" "spk 'barney/bigmess'" Weo
cm_cmd "I have a Bad feeling" "spk 'barney/badfeeling'" Weo
cm_cmd "Yes sir!" "spk 'hgrunt/yessir!'" Weo
cm_cmd "No sir" "spk 'barney/nosir'" Weo

// ---------------------------------------------------------------------------
// Client Commands for Custom Command Menu's
// ---------------------------------------------------------------------------

cm_cmd "Show 'em the Rules!" "cm_rules;developer 1;echo '** READ THE RULES &name& **';developer 0;say 'Dont Shoot! I'm busy reading the server rules'" Efl
cm_cmd "Bury Player" "cm_bury &steamid& ESf
cm_cmd "Un-Bury Player" "cm_unbury &steamid&" ESf
cm_cmd "Gag Player" "cm_gag &steamid&" ESf
cm_cmd "Un-Gag Player" "cm_ungag &steamid&" ESf
cm_cmd "Mute VoiceComm" "voice_enable 0;developer 1;echo '** You have been muted for abusing VoiceComm **';developer 0;say 'I have been muted for abusing VoiceComm';spk 'hgrunt/silence!'" Efl
cm_cmd "UnMute VoiceComm" "voice_enable 1;developer 1;echo '** You have been unmuted (restart HL to regain VoiceComm) **';developer 0;say 'I have been unmuted'" Efl
cm_cmd "Slay Player" "cm_slay '&name&';cm_clexec '&name&' 'spk hgrunt/c2a2_hg_chat5a'" Ef 
cm_cmd "Slay (Lightning)" "cm_slay '&name&' l;cm_clexec '&name&' 'spk hgrunt/c2a2_hg_chat5a'" Ef 
cm_cmd "Slay (Explosion)" "cm_slay '&name&' e;cm_clexec '&name&' 'spk hgrunt/c2a2_hg_chat5a'" Ef
cm_cmd "Drop Weapon!" "cm_clexec '&name&' drop" Ef
cm_cmd "Name Me Change Name" "cm_clexec '&name&' 'name Change_Name'" ESf
cm_cmd "Name Me Llama" "cm_clexec '&steamid&' 'name I_am_a_Llama'" ESf
cm_cmd "Name Me Camper" "cm_clexec '&steamid&' 'name I_am_a_Camper'" ESf Ef
cm_cmd "SlayTeam 1 (Lightning)" "cm_slay 1 tl" Ods 
cm_cmd "SlayTeam 1 (Explosion)" "cm_slay 1 te" Ods 
cm_cmd "SlayTeam 2 (Lightning)" "cm_slay 2 tl" Ods 
cm_cmd "SlayTeam 2 (Explosion)" "cm_slay 2 te" Ods 
cm_cmd "SlayAll (Lightning)" "cm_slay * l" Ods 
cm_cmd "SlayAll (Explosion)" "cm_slay * e" Ods

// ---------------------------------------------------------------------------
// Server Configuration Variables (CVARs)
// ---------------------------------------------------------------------------

cm_cvar sv_password "password" "" "password2" "" "password3" "" Sc
cm_cvar mp_timelimit "0" "25" "30" "35" "40" "45" Sc
cm_cvar cm_info "www.unitedadmins.com" "Match in progress" "Locked! Please Come Back Later" Sc
cm_cvar cm_record "1" "2" S
cm_cvar cm_clientcmd "1" "1" O
cm_cvar cm_enableslap "1" "1" S
cm_cvar cm_teleport "1" "1" O
cm_cvar cm_loadconfig "1" "2" O
cm_cvar sv_allowupload "1" "1" O
cm_cvar mp_consistency "1" "1" S
cm_cvar pausable "1" "1" O
cm_cvar sv_alltalk "1" "1" S
cm_cvar allow_spectators "1" "1" O

// ---------------------------------------------------------------------------
// Commands for Custom Command Menu's
// ---------------------------------------------------------------------------

//ClanMatch Menu
cm_cmd "Pause" "cm_pause" Sas
cm_cmd "Repeat Map" "cm_nextmap &cm_currentmap&" Sas
cm_cmd "      " " " Sas
cm_cmd "Toggle Clan Match" "toggle_dodclanmatch" Sas
cm_cmd "Start Clan Match Countdown" "mp_clan_restartround  1" Sas

// Configuration menu
cm_cmd "Standard Settings" "run_public;exec server.cfg" Scsx

// ---------------------------------------------------------------------------
// Client Commands for Custom Command Menu's
// ---------------------------------------------------------------------------

cm_cmd "Move to Axis" "jointeam 2" Efl
cm_cmd "Move to Allies" "jointeam 1" Efl
cm_cmd "Move to Spectator" "jointeam 3" Efl

// ---------------------------------------------------------------------------
// Load ClanMod Scripts, put // infront to disable loading the script
// ---------------------------------------------------------------------------

// ---------------------------------------------------------------------------
// Additional Commands
// ---------------------------------------------------------------------------

cm_task 1 "cm_say @@@@ The nextmap will be &cm_nextmap&" bfuos "Shows the nextmap before a map change"
cm_mapcfgsdir "addons/clanmod/configs/mods/dod/maps/"

// ------HTML MOTD Window Help Files (Comment out for pre-Steam servers)------
cm_adminhelpfile "addons/clanmod/help/adminhelp_html.txt"
cm_playerhelpfile  "addons/clanmod/help/playerhelp_html.txt"
cm_rulesfile  "addons/clanmod/help/rules_html.txt"


// ---------------------------------------------------------------------------
// cm_locale Management
// ---------------------------------------------------------------------------
alias "cm_locale_load_if" "cm_if cm_locale == 0 than cm_locale_error; cm_if cm_locale == all than cm_locale_all else cm_locale_load"
cm_command "cm_locale_load" "cm_exec configs/mods/&cm_mod&/cm_&cm_locale&.cfg"
cm_command "cm_locale_all" "cm_exec configs/mods/&cm_mod&/cm_eu.cfg;cm_exec configs/mods/&cm_mod&/cm_us.cfg"
alias "cm_locale_error" "cm_log NO cm_locale Defination"
cm_locale_load_if