//**************************************************************************************************
// | ___ \       / _|                   | |  | |            |  _  \                        |___  /
// | |_/ /  ___ | |_  ___   _ __  ___   | |_ | |__    ___   | | | | __ _ __      __ _ __      / / 
// | ___ \ / _ \|  _|/ _ \ | '__|/ _ \  | __|| '_ \  / _ \  | | | |/ _` |\ \ /\ / /| '_ \    / /  
// | |_/ /|  __/| | | (_) || |  |  __/  | |_ | | | ||  __/  | |/ /| (_| | \ V  V / | | | | ./ /___
// \____/  \___||_|  \___/ |_|   \___|   \__||_| |_| \___|  |___/  \__,_|  \_/\_/  |_| |_| \_____/
//
//**************************************************************************************************
// author   : Zod. Original BTD mod: Before The Dawn Development Crew
// website  : http://btdz.servegame.com
//
// mod      : Before The Dawn Zombotron
// version  : 16
// update   : Marc 23, 2017
//**************************************************************************************************

//**************************************************************************************************
// C O L O U R     C O D E S
//**************************************************************************************************
// 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
//**********************************************************************************************************
// If dvars are missing, deleted or fall outside max values.. The settings will revert to the default values.
// All default values have been scripted into the mod.
//**********************************************************************************************************

//******************************************************************************
// Public Information
//******************************************************************************
sets sv_hostname "Zombotron 17 alpha"
//sets sv_hostname "GameTrackerClaimServer"
sets _Admin ""
sets _Email ""
sets _Website ""
sets _Location ""
sets _Irc ""
sets _Mod "BTD Zombotron"
sets _ModVer "v17"
sets _ModUpdate "May 19, 2017"
sets _Maps "Stock"
sets scr_motd "Created by dS'Blood"

//******************************************************************************
// Common Server Settings
//******************************************************************************

// Log Settings
set g_logsync "2"         // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "0"           // 0 = NO log, 1 = log file enabled (This can get VERY large!)
set g_log "games_mp.log"  // Name of log file, default is games_mp.log
set sv_log_damage "0"

// Password Settings
set rcon_password ""		// RCON must supply pw to use

set sv_privatePassword "private_pw"	// 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 ""
set g_password ""

// Player slots setup
//set sv_maxclients "10"		// MAX server player slots, this is TOTAL player slots
//set ui_maxclients "10"		// Same as max slots
set sv_privateclients "0"	// 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 "200"		// MAX player ping on CONNECT, any higher and player isnt allowed to connect
set g_antilag "1"

// Client Download Settings. (0=off/1=on)
// If you do not have a seperate re-direct server, all required files are downloaded from the game server
// at a very low bit rate like 20kb a second
set sv_allowdownload "1"
seta sv_wwwDownload "1"
seta sv_wwwBaseURL ""
seta sv_wwwDlDisconnected "0"

// Rate
// [Server bandwidth (bits)] / ([Num Clients] x 8 ) = [sv_maxrate]
set sv_maxRate "25000" 

// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"
set sv_reconnectlimit "6"

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

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

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

// Voting
set g_allowVote "0"

set scr_teambalance "0" // Do not change

//******************************************************************************
// Misc
//******************************************************************************
// gameplay
set scr_game_allowkillcam		0
set scr_killcam_time			5 // Time to show killcam
set scr_killcam_posttime		2 // How much longer after death cam continues
set scr_game_spectatetype		2 // 2 allow floating spectate mode. 1 is fixed spectate mode.

// player
set scr_player_maxhealth 		150
set scr_player_suicidespawndelay	0
set scr_player_healthregentime 	5
set scr_player_forcerespawn 		1
set scr_player_sprinttime		10
set scr_drawfriend			0
//set g_speed "190"
set btd_g_speed "190" // Replaces g_speed

set scr_showperksonspawn		1
set scr_deleteexplosivesonspawn	1
set scr_intermission_time		20

//**************************************************************************************************
// G E N E R A L     M O D     S E T T I N G S
//**************************************************************************************************

// Set infinite amount of ammo for players. (0 = Disabled, 1 = Enabled | Default = Disabled)
// Players ammo is restocked upon weapon reload.
set btd_infinite_ammo "1"

// Info on the flu by settings: http://openwarfaremod.com/owforum/viewtopic.php?f=82&t=3971
set btd_flyby_enable "1"
set btd_flyby_roll "1"
set btd_flyby_delay "120"
set btd_flyby_number "3"
set btd_flyby_numberandom "0"
set btd_flyby_model "1"
set btd_flyby_modelrandom "1"
set btd_flyby_contrails "2"
set btd_flyby_contrails_random "1"


//**************************************************************************************************
// S P E C I A L     W E A P O N S     S E T T I N G S
//**************************************************************************************************

// Eanble the special weapons section of the player menu. (1 = enabled, 0 = disabled | Default = enabled)
set btd_special_weapons_menu "1"

// Limit access to special weapons to grace period only. (1 = enabled, 0 = disabled | Default = enabled)
set btd_special_weapons_grace_only "1"


//**************************************************************************************************
// P L A Y E R
//**************************************************************************************************

// Auto promote players on spawn (1 = on, 0 = off | Default = off)
set btd_auto_promotion "0"

// Promote players to this level+1 (Range = 10 - 64 | Default = 19)
set btd_auto_promotion_rank "0"

// Chance that players will make a pain sound when hurt
set btd_painsounds "75"

// Chance that players will make a death sound when they die
set btd_deathsounds "75"

// The range of the players knife
set player_meleerange 185

// change player health, off uses the games settings ie h/c = 30, normal = 100 & o/s = 200
// (0 = Game Health, 1 = Custom | Default = Custom)
set btd_customhealth "1"

// player health (Range = 50 - 500 | Default = 100)
set btd_playerhealth "250"

// player health regen per second(0 = Off, Range = 1 - 100)
set btd_healthregen "20"

// Allow playes the ability to discard weapon in hand via mod menu (1 = on, 0 = off | Default = 0)
set btd_can_discard_weapons "0"

// Disable the gaining of XP points. (1 = on, 0 = off | Default = 0)
set btd_disable_xpgains "0"

// Take away any hardpoints the player may have earned when the player dies. (1 = enabled, 0 = disabled | Default = enabled)
set btd_remove_hardpoint_on_death "0"


//**************************************************************************************************
// A M M O     D R O P     S E T T I N GS
//**************************************************************************************************

// Note some maps have very few chopper drop spawns. (i always added a minimum of 10)
// The points are chosen randomly and might drop near zom spawns. didnt want to make it too easy for players

// Enable ammo drops (0 = Off, 1 = On | Default = Off)
set btd_ammo_drops "1"

// Enable ammo drops to be droped in via helicopters (0 = Off, 1 = On | Default = On)
set btd_ammo_drops_choppers "1"

// Enable ammo drop location indicators (0 = Off, 1 = On | Default = On)
set btd_ammo_drops_locations "1"

// Allow ammo drops to heal players (0 = Off, 1 = On | Default = On)
set btd_ammo_drops_heal "1"

// Number of ammo drops (Range = 1 - 3 | Default = 2)
set btd_ammo_drops_number "3"

//**************************************************************************************************
// S P E C I A L     W E A P O N S     S E T T I N G S
//**************************************************************************************************
// These are used in case you wish to change out the special weapons files for your own modified
// weapons so that the various menus will reflect the proper weapon names.

set btd_special1_weap_name "^1M^021 ^1Sile^0nced"
set btd_special2_weap_name "^1P^0o^1PP^0i^1N ^1S^0hotty"
set btd_special3_weap_name "^1HaC^0kEr ^1M^04"
set btd_special4_weap_name "^1S^0moking ^1A^0ce ^1P^090"
set btd_special5_weap_name "^1Death ^0Dealer"
set btd_special6_weap_name "^1Mi^0ni^1gu^0n"

// Rank required to unlock special weapons. Ranks start at zero so the actual rank set here is 1 over the number set.
set btd_special1_rank "39"
set btd_special2_rank "44"
set btd_special3_rank "49"
set btd_special4_rank "54"
set btd_special5_rank "59"
set btd_special6_rank "64"


//**************************************************************************************************
// G A M E     M O D E
//**************************************************************************************************

// hardcore and oldschool can not be enabled at the same time
set scr_hardcore "0"
set scr_oldschool "0"

// Loadout for oldschool and trader player slot 1 ( any sub machine gun (no attachments) )
// (Values = see weapons folder for weapon names | Default = "mp5_mp")
set btd_oldschool_primary "mp5_mp"

// Loadout for oldschool and trader player slot 2 ( pistol only , not same as first slot )
// (Values = see weapons folder for weapon names | Default = "usp_mp")
set btd_oldschool_secondary "usp_mp"

// Loadout for oldschool and trader player special grenade ("", "smoke", "flash")
set btd_oldschool_secondary_grenade "smoke"


//**************************************************************************************************
// A N T I     C A M P     S Y S T E M
//**************************************************************************************************

// anti camp system (0 = off, 1 = teleport, 2 = timer, 3 = both)
set btd_anticamp "0"

// time untill punishment takes place. (Range 10 - 300 | Default = 45)
set btd_camp_max_time "45"

// time to show the warning message. (Range 10 - 300 | Default = 30)
set btd_camp_warn_time "30"

// camping punishment 
// (1 = move to spec, 2 = drop health, 3 = kill player | Default = Kill Player)
set btd_camp_punishment "1"

// amount of health to drop per second (Range 1 - 100 | Default = 5)
set btd_camp_drophealth "15"

// Distance in inches the player has to move to avoid punishment. (Range 24 - 240 | Default = 96)
set btd_camp_distance "96"

// Be aware that the anti-glitch punishment system can kill innocent players if the
// teleport triggers aren't placed well on the map!

// Turn on anti-glitch warning punishment (0 = Off, 1 = On | Default = On)
set btd_antiglitch_warning "0"

// At this number, player is killed for glitching (Range 1 - 12 | Default = 3)
set btd_antiglitch_warning_num "3"


//**************************************************************************************************
// P I C K U P S
//**************************************************************************************************

// allow pickups ( 0 = No, 1 = Yes | Default = Yes )
set btd_pickup_on "1"

// randomly change the pickups when map starts (removes all perk pickups)
// pickups will stay same throughout the map
// options ( 0 = No, 1 = Yes | Default = Yes )
set btd_pickup_random "0"

// spawn time for pickups in seconds (Range = 5 - 300 | Default = 15 )
set btd_pickup_spawn_time "15"

// Enable pickups to spin ( 0 = No, 1 = Yes | Default = Yes )
set btd_pickup_spin "1"

// Enable red and yellow pickup fx ( 0 = No, 1 = Yes | Default = Yes )
set btd_pickup_fx "1"

// Enable corpse under pickup fx ( 0 = No, 1 = Yes | Default = No )
set btd_pickup_bodies "1"

// Time it takes for a weapon that was switched for a pickup to be removed.
// Added to deal with weapon switching exploits. (Range = 0.25 - 10 | Default = 0.5 )
set btd_drop_delete_time "0.5"


//**************************************************************************************************
// N I G H T,     F O G     &     V I S I O N     S E T T I N G S
//**************************************************************************************************

// custom fog settings, value 1 changes the brightness level, value 2 the distance the players can see
// recomend that you only change value 2.

// custom fog defualt setting
// fog can be changed in game via the admin menu with set values or via rcon using the dvar
// prob best for admins to play around with this value and test themselves.
set btd_fog "100 2000"

// Fog color. Red Green Blue. (Range = 0 - 1 | Default 0)
set btd_fog_color "0 0 0"

// the next 2 dvars will only take effect if btd_fog_nightchange is set to 1 and can not be changed in game

// day fog settings
set btd_fog_day "100 6000"

// night fog settings
set btd_fog_night "100 2000"

// the next 6 davrs are the settings for the ingame admin menu
// these cannot be changed in game and are fixed 
// 1 = lighter, 6 = darker

// basicly just play with the two numbers, making sure to leave a space between them.

// fog menu setting 1
set btd_fog_menu1 "100 6000"
// fog menu setting 2
set btd_fog_menu2 "100 4000"
// fog menu setting 3
set btd_fog_menu3 "100 2000"
// fog menu setting 4
set btd_fog_menu4 "100 1000"
// fog menu setting 5
set btd_fog_menu5 "100 500"
// fog menu setting 6
set btd_fog_menu6 "100 250"

// Allow the mod to change fog when night / day is changed in game ( 0 = No, 1 = Yes | Default = No)
// yes will override custom set fog settings but fog can still be changed ingame but will revert when night / day changed
// no will not change the fog settings when night / day is changed but will keep the set value
set btd_fog_nightchange "1"

// Enabled nightness at game start( 0 = Disabled, 1 = Enabled | Default = Enabled )
set btd_night "1"

// set a vision setting here. Default CoD 4 setting is "map"
set scr_setvisionmap "zombie"

//******************************************************************************************************************
// colour numbers used to set the colour of text displayed while sniping
//******************************************************************************************************************
// 1 = Red 
// 2 = Green			
// 3 = Yellow
// 4 = Blue
// 5 = Cyan
// 6 = pink/Magenta
// 7 = White
// 8 = Black
//******************************************************************************************************************

// disable the info text, shows what keys to use to zoom in and out, | 0 = Enable | 1 = Disable |(default = Enable)
set scr_disable_info_text "0"

// disable the zoom factor text, shows what lvl of zoom the player is using | 0 = Enable | 1 = Disable |(default = Enable)
set scr_disable_zoom_text "0"

// colour of the info text  (default = Yellow)
set scr_info_text "3"

// colour of the zoom factor text (default = White)
set scr_zoom_text "7"

// colour of the current highlighted zoom factor text (default = Yellow)
set scr_zoom_highlight_text "3"


//******************************************************************************************************************
// zoom numbers used to set the max and min zoom factors below while sniping
//******************************************************************************************************************
// 1 = 1x
// 2 = 2x			
// 3 = 4x
// 4 = 8x
// 5 = 16x			(16x is the default zoom factor for Call Of Duty 4)
// 6 = 22x
// 7 = 28x
// 8 = 34x
//**************************************************************************************************************************

// if the min_zoom is greater than the max_zoom, or the max_zoom is less than the min_zoom default settings will be applied
// Zoom settings for each sniper rilfe can however be changed, so some rilfes can have a greater zoom than others
// to remove the zoom on a rifle set all 3 values for that rifle to the desired zoom factor

// while the player is alive, all scoped weapons will retain their last zoom factor.
// therefor if the player has 2 scoped weapons both set a differant zoom factors, it might take a few milli seconds
// to update the zoom when switching between those weapons (this should be hardly noticeable tho)

//**************************************************************************************************************************

// start_zoom = the zoom factor when the weapon is first lifted
// min_zoom = the minium zoom factor for that scoped weapon
// max_zoom = the maximun zoom factor for that scoped weapon

// defaults are: Start = 8X, Min = 1X, Max = 22X for all scoped weapons

// ===== M40A3 =====
set scr_m40a3_start_zoom "4"
set scr_m40a3_min_zoom "1"
set scr_m40a3_max_zoom "6"

// ===== M21 =====
set scr_m21_start_zoom "4"
set scr_m21_min_zoom "1"
set scr_m21_max_zoom "7"

// ===== Dragunov =====
set scr_drag_start_zoom "4"
set scr_drag_min_zoom "1"
set scr_drag_max_zoom "7"

// ===== Remington 700 =====
set scr_r700_start_zoom "4"
set scr_r700_min_zoom "1"
set scr_r700_max_zoom "6"

// ===== Barrett M82A1 50.Cal =====
set scr_m82_start_zoom "4"
set scr_m82_min_zoom "1"
set scr_m82_max_zoom "8"


loadplugin "b3hide"
loadplugin "legacybanlist"

//**************************************************************************************************
// L O A D     O T H E R     C O N F I G U R A T I O N     F I L E S
//**************************************************************************************************

exec btdz_admin.cfg
wait
exec btdz_messages.cfg
wait
exec btdz_hardpoints.cfg
wait
exec btdz_trader.cfg
wait
exec btdz_music.cfg
wait
exec btdz_zombies.cfg
wait
exec btdz_gametypes.cfg
wait
exec btdz_maprotation.cfg

