echo ####################################################################################
echo L4D2 Training v1.0 | by GregariousJB                    
echo ####################################################################################
echo ##################### TO PLAY AS INFECTED: ########################################
echo ####################################################################################
echo 1. Type in console: map [mapname] versus
echo 2. Then enter: exec train.cfg (or hit your PAGEDOWN key)
echo 3. Use keys F6 - F12 to choose the type of Infected you want
echo PAGEDOWN = Load this config / Show this menu
echo F6 = Hunter
echo F7 = Smoker (Right-click to release Survivor)
echo F8 = Boomer (DEL = Delete all common infected)
echo F9 = Spitter
echo F10 = Charger
echo F11 = Jockey
echo F12 = Tank
echo . = No Clip (fly around the map)
echo P = Teleport Survivors to cursor
echo ####################################################################################
echo ##################### TO PLAY AS SURVIVOR: ########################################
echo ####################################################################################
echo Hit your 'M' key to switch back and forth between Infected or Survivor
echo Choose a specific Survivor: sb_takecontrol [coach/nick/rochelle/ellis]
echo Give yourself a specific weapon: give [weapon/item name]
echo To practice solo fighting Special Infected: z_spawn [boomer/spitter] etc.
echo 6 = Quick-spawn Hunter at cursor
echo 7 = Quick-spawn Smoker at cursor
echo 8 = Quick-spawn Charger at cursor
echo 9 = Quick-spawn Tank at cursor
echo 0 = Quick-spawn Witch at cursor
echo BACKSPACE = Delete all Infected (if you get incapped/trapped)
echo DEL = Delete ALL Infected and Survivor bots
echo ####################################################################################
echo NOTE: To switch back to Infected, use the 'M' key or hit PAGEDOWN, not F6-F12
echo NOTE: To turn off godmode for Survivors, in console enter: god 0
echo ####################################################################################

//### Binds ###
bind PGDN "exec train" 						// Quick-start this script
bind p "warp_all_survivors_here"			// Teleport Survivors to cursor
bind l "z_spawn witch"						// Quick-spawn Witch at cursor
bind k "z_spawn tank"						// Quick-spawn Tank at cursor
bind backspace "nb_delete_all infected"		// Remove annoying Common Infected or Special Infected if you've been incapped
bind del "nb_delete_all"					// Delete ALL Infected and Survivor bots
bind . "clipON"								// No Clip toggle

bind f6 "spawn.hunter"						// "Spawn as Infected" keys
bind f7 "spawn.smoker"
bind f8 "spawn.boomer"
bind f9 "spawn.spitter"
bind f10 "spawn.charger"
bind f11 "spawn.jockey"
bind f12 "spawn.tank"				

bind 6 "z_spawn hunter"						//Quick-spawn Infected at cursor
bind 7 "z_spawn smoker"
bind 8 "z_spawn charger"
bind 9 "z_spawn tank"
bind 0 "z_spawn witch"


//### This starts the player off as a Hunter and gives Suvivor bots Auto Shotguns for the player to use if he switches teams ###
sv_cheats 1; jointeam 3; wait 5; z_spawn hunter auto; kick Hunter; kick (1)Hunter; sb_give autoshotgun; say GregariousJB's L4D2 Trainer Loaded!


//### Misc Convenient Features ###
god 1 										// Survivors are immune all damage
director_force_versus_start					// Automatically opens the saferoom door
director_no_mobs 1							// Turns off zombie hordes
director_no_specials 1						// Turns off auto spawn of Special Infected
director_no_bosses 1						// Turns off auto spawn of Tanks and Witches
sb_all_bot_team 1							// Prevents the server from shutting down
vs_max_team_switches 99						// Makes it possible to switch teams 99 times
sb_dont_shoot 1								// Suvivor bots won't shoot you (but they will still push/melee you)
sv_infinite_ammo 1							// Your weapon never runs out of ammo


//### Infected Recharge Times ###
z_vomit_interval 2							// Seconds between Boomer vomit
survivor_it_duration 2						// Seconds until vomit is removed from Survivor
z_spit_interval 1							// Seconds between Spitter spit
z_charge_interval 1							// Seconds between Charger charge
tongue_miss_delay 1							// Seconds between Smoker pull (if target was missed)
tongue_hit_delay 1							// Seconds between Smoker pull (if target was pulled)
tongue_allow_voluntary_release 1			// Allows player to right-click to released a pulled Survivor
z_tank_throw_interval 2						// Seconds between Tank's thrown boulder

//### No Clip Toggle ###
alias clipON "noclip; say NOCLIP ON; bind . clipOFF"
alias clipOFF "noclip; say NOCLIP OFF; bind . clipON"

//### Infected Spawn Script ###
alias spawn.hunter "kill; z_spawn hunter auto; kick Hunter; kick (1)Hunter"
alias spawn.smoker "kill; z_spawn smoker auto; kick Smoker; kick (1)Smoker"
alias spawn.boomer "kill; z_spawn boomer auto; kick Boomer; kick (1)Boomer"
alias spawn.spitter "kill; z_spawn spitter auto; kick Spitter; kick (1)Spitter"
alias spawn.charger "kill; z_spawn charger auto; kick Charger; kick (1)Charger"
alias spawn.jockey "kill; z_spawn jockey auto; kick Jockey; kick (1)Jockey"
alias spawn.tank "kill; z_spawn tank auto; kick Tank; kick (1)Tank"