// Made by Mince (STEAM_0:0:41588292)


// START  - 1200$
// WAVE 1 -  700$ + B(100$)
// WAVE 2 - 1000$ + B(100$)
// WAVE 3 -  800$ + B(100$)
// WAVE 4 -  700$ + B(100$)
// WAVE 5 -  600$ + B(100$)
// -------------------
// TOTAL  - 5100$ + B(500$)


#base robot_standard.pop
#base robot_giant.pop
#base robot_custom_weapons_medieval.pop

WaveSchedule
{
	StartingCurrency 1800
	RespawnWaveTime  4
	CanBotsAttackWhileInSpawnRoom no
	MaxRedPlayers 19
	AllowBotExtraSlots 2
	NoReanimators         1                                         
	NoRomevisionCosmetics 1                                         
	BotsAreHumans         1                                         
	ForceHoliday          2                                         
	PrecacheModel         "models/props_eotl/pigeonbomb.mdl"        
	PrecacheModel         "models/props_frontline/tank_turret.mdl"  
	
	// Fix spell hud being hidden
	BotsDropSpells       1  
	GiantsDropRareSpells 1  
	SpellDropRateCommon  0  
	SpellDropRateGiant   0  	
	
	// No cheese pls
	ClassLimit  
	{
		Pyro     2
		Demoman  2
		Heavy    2
		Engineer 1
		Sniper   2
		Spy      0
	}
	
	// Allow use of weapons blocked by tf_logic_medieval
	MedievalMode  0  
	ItemWhitelist    
	{
		Classname "tf_weapon_parachute"
		Classname "tf_wearable"
		Classname "saxxy"
		Classname "tf_powerup_bottle"
		Classname "tf_weapon_spellbook"
		
		Classname "tf_weapon_lunchbox_drink"
		Classname "tf_weapon_jar_milk"
		Classname "tf_weapon_cleaver"
		Classname "tf_weapon_bat"
		Classname "tf_weapon_bat_wood"
		Classname "tf_weapon_bat_fish"
		Classname "tf_weapon_bat_giftwrap"
		
		//Classname "tf_weapon_rocketlauncher" //TESTING ONLY
		Name      "Rocket Jumper"
		Classname "tf_weapon_buff_item"
		Classname "tf_weapon_shovel"
		Classname "tf_weapon_katana"
		
		Name	  "The Detonator"
		Classname "tf_weapon_jar_gas"
		Classname "tf_weapon_flaregun_revenge"
		Classname "tf_weapon_rocketpack"
		Classname "tf_weapon_fireaxe"
		Classname "tf_weapon_breakable_sign"
		Classname "tf_weapon_slap"
		
		Name	  "The Loose Cannon"
		Name      "Sticky Jumper"
		Classname "tf_wearable_demoshield"
		Classname "tf_weapon_bottle"
		Classname "tf_weapon_sword"
		Classname "tf_weapon_stickbomb"
		
		Classname "tf_weapon_lunchbox"
		Classname "tf_weapon_fists"
		
		Classname "tf_weapon_laser_pointer"
		//Classname "tf_weapon_mechanical_arm" // Short Circuit
		Classname "tf_weapon_wrench"
		Classname "tf_weapon_robot_arm" // Gunslinger
		
		Classname "tf_weapon_crossbow"
		Classname "tf_weapon_syringegun_medic"
		Classname "tf_weapon_bonesaw"
		
		Classname "tf_weapon_compound_bow"
		Classname "tf_weapon_razorback"
		Classname "tf_weapon_jar"
		Classname "tf_weapon_club" // Now *this*, is a knife.
		
		Classname "tf_weapon_sapper"
		DefIndex  735 // Sapper
		DefIndex  736 // Sapper (Renamed/Strange)
		Classname "tf_weapon_knife"
		Classname "tf_weapon_pda_spy"
		Classname "tf_weapon_invis"
        ItemSlot "11" //taunt slots
        ItemSlot "12"
        ItemSlot "13"
        ItemSlot "14"
        ItemSlot "15"
        ItemSlot "16"
        ItemSlot "17"
        ItemSlot "18"
	}

	// Weapon Rebalances Section (WIP)
	
	PlayerAttributes  
	{
		Soldier
		{
			"increase buff duration" 2
			"mod rage on hit bonus" 25
			"mod soldier buff range" 1.5
		}
	}
	
	// Scout
	
	ItemAttributes  
	{
		ItemName "Crit-a-Cola"
		"mult dmgtaken from melee" 0.8
	}
	
	ItemAttributes  
	{
		ItemName "Bonk! Atomic Punch"
		"mult dmgtaken from melee" 0.7
		"dmg taken increased" 0.85
	}
	
	ItemAttributes  
	{
		ItemName "The Flying Guillotine"
		"always crit" 1
	}
	
	ItemAttributes  
	{
		ItemName "TF_WEAPON_BAT"
		"minicrits become crits" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Boston Basher"
		"hit self on miss" 0
		"bleeding duration" 20
		"mult bleeding dmg" 2
	}
	
	ItemAttributes  
	{
		ItemName "The Candy Cane"
		"max health additive bonus" 75
	}
	
	// Soldier
	
	ItemAttributes  
	{
		ItemName "The Mantreads"
		"max health additive bonus" 150
		"health regen" 10
		"wet immunity" 1
		"cancel falling damage" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Gunboats"
		"dmg taken increased" 0.85
		"mult dmgtaken from melee" 0.5
		"dmg from ranged reduced" 0.75
	}
	
	ItemAttributes  
	{
		ItemName "Upgradeable TF_WEAPON_SHOVEL"
		"damage bonus" 1.5
	}
	
	ItemAttributes  
	{
		ItemName "The Escape Plan"
		"mult crit when health is below percent" 0.75
	}
	
	ItemAttributes  
	{
		ItemName "The Equalizer"
		"damage bonus" 1.5
		"mult crit when health is below percent" 0.6
	}
	
	// Pyro
	
	ItemAttributes  
	{
		ItemName "The Manmelter"
		"fire rate penalty" 4.2
	}
	
	ItemAttributes  
	{
		ItemName "TF_WEAPON_FIREAXE"
		"bleeding duration" 4
		"mult bleeding dmg" 3
		"melee cleave attack" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Lollichop"
		"bleeding duration" 4
		"mult bleeding dmg" 3
		"melee cleave attack" 1
	}
	
	ItemAttributes  
	{
		ItemName "Sharpened Volcano Fragment"
		"melee cleave attack" 1
	}

	ItemAttributes  
	{
		ItemName "The Gas Passer"
		"weapon burn dmg increased" 3.0
		"weapon burn time increased" 2.0
	}
	
	ItemAttributes  
	{
		ItemName "The Hot Hand"
		"crit from behind" 1
		"speed_boost_on_hit_enemy" 3
		"fire rate bonus" 0.75
		"damage penalty" 1.0
	}
	
	ItemAttributes  
	{
		ItemName "The Homewrecker"
		"melee cleave attack" 1
		"stun on damage" 50 // 1.2 * (50/60) = 1
		"fire rate penalty" 1.5
	}
	
	// Demo
	
	ItemAttributes  
	{
		ItemName "The Ullapool Caber"
		"fire rate penalty" 1.5
		"regenerate stickbomb" 1
		"aoe blast on damage" 12.5 // 1.2 * (12.5/60) = .25
		"cancel falling damage" 1
		"self dmg push force decreased" 0.01
	}
	
	// Heavy
	
	ItemAttributes  
	{
		ItemName "Fists of Steel"
		"damage penalty" 0.8
		"dmg taken increased" 0.75
		"dmg from ranged reduced" 0.5
		"dmg from melee increased" 1
		"mult dmgtaken from melee" 0.25
	}
	
	ItemAttributes  
	{
		ItemName "The Eviction Notice"
		"damage penalty" 0.7
		"dmg taken increased" 0.75
		"move speed bonus" 1.1
		"bleeding duration" 10
		"mod_maxhealth_drain_rate" 0
		"speed_boost_on_hit"  0
		"speed_boost_on_kill" 1
		"mult bleeding dmg" 3
	}
	
	ItemAttributes  
	{
		ItemName "Warrior's Spirit"
		"dmg taken increased" 1.15
		"damage bonus" 2.31 // 150 / 450 crit
		"fire rate penalty" 1.5
		"move speed penalty" 0.75
		"mult crit when health is below percent" 0.5
		"teleport instead of die" 0.5
	}
	
	ItemAttributes  
	{
		ItemName "Gloves of Running Urgently"
		"dmg taken increased" 0.75
		"move speed bonus" 1.3
		"mod_maxhealth_drain_rate" 0
		"speed_boost_on_hit"  1
	}
	
	ItemAttributes  
	{
		ItemName "Festive Gloves of Running Urgently"
		"dmg taken increased" 0.75
		"move speed bonus" 1.3
		"mod_maxhealth_drain_rate" 0
		"speed_boost_on_hit"  1
	}
	
	// Medic
	
	ItemAttributes  
	{
		ItemName "The Overdose"
		"move speed bonus" 1.3
		"fire rate bonus"  0.5
	}
	
	ItemAttributes  
	{
		ItemName "The Blutsauger"
		"aoe heal chance" 285.714 // .105 * (285.714/60) ~ .5
		"mod_maxhealth_drain_rate" 5
	}
	
	ItemAttributes  
	{
		ItemName "Festive Bonesaw 2014"
		"fire rate bonus" 0.7
		"CARD: health regen" 10.0
	}
	
	ItemAttributes  
	{
		SimilarToItem "Upgradeable TF_WEAPON_BONESAW"
		"fire rate bonus" 0.7
		"CARD: health regen" 10.0
	}
	
	ItemAttributes  
	{
		ItemName "The Ubersaw"
		"fire rate penalty" 1.5
		"damage bonus" 1.5
	}
	
	ItemAttributes  
	{
		ItemName "Festive Ubersaw"
		"fire rate penalty" 1.5
		"damage bonus" 1.5
	}
	
	ItemAttributes  
	{
		ItemName "The Vita-Saw"
		"bleeding duration" 10
		"mult bleeding dmg" 3
		"max health additive penalty" 0
	}
	
	ItemAttributes  
	{
		ItemName "The Amputator"
		"max health additive bonus" 100
		"dmg taken increased" 0.9
		"mult dmgtaken from melee" 0.75
		"aoe heal chance" 75 // .8 * (75/60) = 1
	}
	
	ItemAttributes  
	{
		ItemName "The Solemn Vow"
		"damage penalty" 0.015
		"stun on damage" 75 // .8 * (75/60) = 1
		"single wep deploy time increased" 0.4
	}
	
	// WAVE 2 Piss Snipers
	Mission
	{
		Where spawnbot_gate01

		Objective   Sniper
		BeginAtWave 2
		RunForThisManyWaves 1

		InitialCooldown 12
		CooldownTime    12
		DesiredCount    2
		
		TFBot { Template T_TFBot_Sniper_Huntsman_Piss }
	}
	
	// WAVE 4 Crossbow Medics
	Mission
	{
		Where spawnbot_gate02
		Where spawnbot_gate01

		Objective   Sniper
		BeginAtWave 4
		RunForThisManyWaves 1

		InitialCooldown 16
		CooldownTime    16
		DesiredCount    1
		
		TFBot { Template T_TFBot_Medic_Crossbow }
	}

////// WAVE 1 [$700] /////////////////////////////////////////////////////////
	Wave
	{
		InitWaveOutput
		{
			Target wave_initB_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		
		Explanation  
		{
			Line "{7C31B5}Engineers are mages in this mission and are able to cast spells!"
			Line "{7C31B5}Some weapons that aren't typically allowed in medieval mode are also enabled, such as Jarate or The Thermal Thruster!"
		}
		
		// Support Zombie-Arm Scouts [$100]
		WaveSpawn
		{
			Name  "W1-SCOUT-SUPPORT"
			Where spawnbot_gate01_invasion

			Support 1
			RandomSpawn 1
			TotalCount  50
			MaxActive   4
			SpawnCount  4
			TotalCurrency 100

			WaitBetweenSpawns  14

			TFBot
			{ 
				Template T_TFBot_Scout_Arm
				Action Mobber  
			}
		}
		
		// 24 Warrior's Spirit Heavies [$50]
		WaveSpawn
		{
			Name  "W1-WARRIOR-HEAVIES"
			Where spawnbot_gate01_left
			Where spawnbot_gate01_right

			TotalCount 24
			MaxActive  12
			SpawnCount 6
			TotalCurrency 50

			WaitBeforeStarting 2
			WaitBetweenSpawns  8

			TFBot { Template T_TFBot_Heavy_Warrior_Spirit }
		}	
		
		// 2 Giant Shovel Soldiers [$50]
		WaveSpawn
		{
			Name  "W1-G-BUCKET-SOLDIERS"
			Where spawnbot_gate01

			TotalCount 2
			MaxActive  1
			SpawnCount 1
			TotalCurrency 50

			WaitBeforeStarting 5
			WaitBetweenSpawns  10

			TFBot { Template T_TFBot_Giant_Soldier_Bucket }
		}
		
		// Limited Support Jarate Snipers [$0]
		WaveSpawn
		{
			Name  "W1-JARATE-SNIPER-SUPPORT"
			Where spawnbot_limited_a

			Support 1
			MaxActive  5
			SpawnCount 5

			WaitBeforeStarting 2
			WaitBetweenSpawns  3
			WaitForAllDead     "W1-G-BUCKET-SOLDIERS"

			TFBot { Template T_TFBot_Sniper_Jarate }
			
			FirstSpawnOutput
			{
				Target botattributes_random_setinterval_4
				Action Trigger
			}
		}
		
		// 8 Mini-giant Huntsmen [$50]
		WaveSpawn
		{
			Name  "W1-MG-BOWMEN"
			Where spawnbot_gate01

			TotalCount 8
			MaxActive  4
			SpawnCount 2
			TotalCurrency 50

			WaitBeforeStarting 2
			WaitBetweenSpawns  4
			WaitForAllDead     "W1-G-BUCKET-SOLDIERS"

			TFBot { Template T_TFAttrBot_Sniper_Huntsman_Bushwacka }
			
			FirstSpawnOutput
			{
				Target botattributes_random_start_relay
				Action Trigger
			}
			DoneOutput
			{
				Target botattributes_random_stop_relay
				Action Trigger
			}
		}
		
		// DUMMY
		WaveSpawn
		{
			TotalCount 0
			SpawnCount 0

			WaitBeforeStarting 0
			WaitForAllDead     "W1-MG-BOWMEN"

			FirstSpawnOutput
			{
				Target disable_limited_spawns_a
				Action Trigger
			}
		}
		
		// Giant KGB Heavy Squad [$150]
		WaveSpawn
		{
			Name  "W1-G-KGB-HEAVY-MEDICS"
			Where spawnbot_gate01_left

			TotalCount 5
			MaxActive  5
			SpawnCount 5
			TotalCurrency 150

			WaitBeforeStarting 4
			WaitForAllDead     "W1-G-BUCKET-SOLDIERS"

			Squad
			{
				TFBot { Template T_TFBot_Giant_Heavy_KGB }
				
				TFBot
				{ 
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
				TFBot
				{ 
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
				TFBot
				{ 
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
				TFBot
				{ 
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
			}
		}
		
		// 16 Shotgun Heavies [$100]
		WaveSpawn
		{
			Name  "W1-SHOTGUN-HEAVIES"
			Where spawnbot_gate01_invasion

			RandomSpawn 1
			TotalCount  16
			MaxActive   8
			SpawnCount  4
			TotalCurrency 100

			WaitBeforeStarting 4
			WaitBetweenSpawns  3
			WaitForAllDead     "W1-G-KGB-HEAVY-MEDICS"

			TFBot { Template T_TFAttrBot_Heavy_Shotgun }
		}
		
		// Support Axtinguisher Pyros [$0]
		WaveSpawn
		{
			Name  "W1-PYRO-SUPPORT"
			Where spawnbot_gate01

			Support 1
			MaxActive  4
			SpawnCount 4

			WaitBeforeStarting 4
			WaitBetweenSpawns  6
			WaitForAllDead     "W1-G-KGB-HEAVY-MEDICS"
			WaitForAllDead     "W1-MG-BOWMEN"

			TFBot { Template T_TFBot_Pyro_Axtinguisher }
		}
		
		//  Giant Demoknight [$100]
		WaveSpawn
		{
			Name  "W1-G-DEMOKNIGHT_1"
			Where spawnbot_gate01

			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 100

			WaitBeforeStarting 6
			WaitForAllDead     "W1-G-KGB-HEAVY-MEDICS"
			WaitForAllDead     "W1-MG-BOWMEN"

			TFBot { Template T_TFAttrBot_Giant_Demoman_FireSword }
			
			DoneOutput
			{
				Target botattributes2_setdefault_relay
				Action Trigger
			}
		}
		//  Giant Demoknight [$100]
		WaveSpawn
		{
			Name  "W1-G-DEMOKNIGHT_1"
			Where spawnbot_gate01

			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 100

			WaitBeforeStarting 6
			WaitForAllDead     "W1-G-KGB-HEAVY-MEDICS"
			WaitForAllDead     "W1-MG-BOWMEN"

			TFBot { Template T_TFAttrBot_Giant_Demoman_IceSword }
			
			DoneOutput
			{
				Target botattributes1_setdefault_relay
				Action Trigger
			}
		}	
	}
	
////// WAVE 2 [$1000] ////////////////////////////////////////////////////////
	Wave
	{
		InitWaveOutput
		{
			Target wave_initB_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		
		// 16 KGB Heavies [$0]
		WaveSpawn
		{
			Name  "W2-KGB-HEAVIES"
			Where spawnbot_gate01

			TotalCount 16
			MaxActive  8
			SpawnCount 8

			WaitBetweenSpawns  6

			TFBot { Template T_TFBot_Heavyweapons_Heavyweight_Champ }
		}
		
		// 2 Giant Armored Scouts [$0]
		WaveSpawn
		{
			Name  "W2-G-SUPER-SCOUTS"
			Where spawnbot_gate01

			TotalCount 2
			MaxActive  2
			SpawnCount 2

			WaitBeforeStarting 7

			TFBot
			{ 
				Template T_TFBot_Giant_Scout_Baseball_Armored
				Item     "Zombie Scout"
			}
		}
		
		// DUMMY
		WaveSpawn
		{
			TotalCount 0
			SpawnCount 0

			WaitBeforeStarting 6
			WaitForAllDead     "W2-G-SUPER-SCOUTS"

			FirstSpawnOutput
			{
				Target botattributes_random_start_relay
				Action Trigger
			}
		}
		
		// 2 Giant Loose Cannon Demos [$50]
		WaveSpawn
		{
			Name  "W2-G-CANNON_DEMOS"
			Where spawnbot_gate01_left

			TotalCount 2
			MaxActive  2
			SpawnCount 1
			TotalCurrency 50

			WaitBeforeStarting 2
			WaitBetweenSpawns  6
			WaitForAllDead     "W2-G-SUPER-SCOUTS"

			TFBot { Template T_TFAttrBot_Giant_Demoman_Cannon }
			
			DoneOutput
			{
				Target botattributes_random_stop_relay
				Action Trigger
			}
		}
		
		// 12 Milk Scouts [$50]
		WaveSpawn
		{
			Name  "W2-MILK-SCOUTS"
			Where spawnbot_gate01_right

			TotalCount 12
			MaxActive  6
			SpawnCount 3
			TotalCurrency 50

			WaitBetweenSpawns  3
			WaitForAllDead     "W2-G-SUPER-SCOUTS"

			TFBot { Template T_TFBot_Scout_Milk }
		}
		
		// 12 Wrap Assassin Scouts [$50]
		WaveSpawn
		{
			Name  "W2-MUMMY-SCOUTS"
			Where spawnbot_gate01_left

			TotalCount 12
			MaxActive  6
			SpawnCount 3
			TotalCurrency 50

			WaitBetweenSpawns  3
			WaitForAllDead     "W2-G-SUPER-SCOUTS"

			TFBot { Template T_TFBot_Scout_Mummy }
		}
		
		// 48 GRU Heavies [$150]
		WaveSpawn
		{
			Name  "W2-GRU-HEAVIES"
			Where spawnbot_gate01_invasion

			RandomSpawn 1
			TotalCount  48
			MaxActive   12
			SpawnCount  3
			TotalCurrency 150

			WaitBeforeStarting 3
			WaitBetweenSpawns  2
			WaitForAllDead     "W2-G-CANNON_DEMOS"

			TFBot
			{ 
				Template T_TFBot_Heavyweapons_Heavyweight_Champ_Fast
				Item     "Zombie Heavy"
			}
		}
		
		// 4 Giant Piss Huntsman Snipers [$150]
		WaveSpawn
		{
			Name  "W2-G-HUNTSMEN"
			Where spawnbot_gate01

			TotalCount 2
			MaxActive  2
			SpawnCount 1
			TotalCurrency 150

			WaitBeforeStarting 2
			WaitBetweenSpawns  16
			WaitForAllDead     "W2-G-CANNON_DEMOS"

			TFBot { Template T_TFBot_Giant_Sniper_Huntsman_Piss }
		}
		
		// 24 Neon Annihilator Pyros [$75]
		WaveSpawn
		{
			Name  "W2-NEON-PYROS"
			Where spawnbot_gate01

			TotalCount 24
			MaxActive  8
			SpawnCount 4
			TotalCurrency 75

			WaitBeforeStarting 6
			WaitBetweenSpawns  1.5
			WaitForAllDead     "W2-G-CANNON_DEMOS"

			TFBot { Template T_TFBot_Pyro_Neon }
		}
		
		// 16 Demonkights [$75]
		WaveSpawn
		{
			Name  "W2-DEMOKNIGHTS"
			Where spawnbot_gate01_left

			TotalCount 16
			MaxActive  8
			SpawnCount 4
			TotalCurrency 75

			WaitBeforeStarting 2
			WaitBetweenSpawns  3
			WaitForAllDead     "W2-NEON-PYROS"

			TFBot
			{ 
				Template T_TFBot_Demoman_Knight
				Item     "Zombie Demo"
			}
		}
		
		// 18 Three-Rune Blade Scouts [$75]
		WaveSpawn
		{
			Name  "W2-SWORD-SCOUTS"
			Where spawnbot_gate01_invasion

			TotalCount 18
			MaxActive  6
			SpawnCount 3
			TotalCurrency 75

			WaitBeforeStarting 4
			WaitBetweenSpawns  4
			WaitForAllDead     "W2-G-HUNTSMEN"

			TFBot { Template T_TFBot_Scout_Sword }
		}
		
		// 18 KGB Heavies [$75]
		WaveSpawn
		{
			Name  "W2-KGB-HEAVIES"
			Where spawnbot_gate01_invasion

			TotalCount 18
			MaxActive  6
			SpawnCount 3
			TotalCurrency 75

			WaitBeforeStarting 4
			WaitBetweenSpawns  2
			WaitForAllDead     "W2-G-HUNTSMEN"

			TFBot
			{ 
				Template T_TFBot_Heavyweapons_Heavyweight_Champ
				Item     "Zombie Heavy"
			}
		}
		
		// Giant Skeleton Demos Squad [$250]
		// Spoomky scary skelimgtoms
		WaveSpawn
		{
			Name  "W2-G-SKELE-DEMOS-MEDICS"
			Where spawnbot_gate01

			TotalCount 2
			MaxActive  2
			SpawnCount 2
			TotalCurrency 250

			WaitBeforeStarting 8
			WaitBetweenSpawns  12
			WaitForAllDead     "W2-G-HUNTSMEN"

			Squad
			{
				TFBot { Template T_TFBot_Giant_Demoman_Skeleton }
				
				TFBot
				{
					Template T_TFBot_Medic_BigHeal
					Item     "Zombie Medic"
				}
			}
		}
	}
	
////// WAVE 3 [$800] /////////////////////////////////////////////////////////
	Wave
	{
		InitWaveOutput
		{
			Target wave_initA_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}

		// 20 Gatebot Demoknights [$50]
		WaveSpawn
		{
			Name  "W3-GATEBOT-DEMOKNIGHTS"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 20
			MaxActive  10
			SpawnCount 5
			TotalCurrency 50
			WaitBetweenSpawns  4
			StartWaveOutput {
				Target clipfix
				Action Kill
			}
			TFBot { Template T_TFGateBot_Demoman_Knight }
		}
		
		// 3 Giant Wizard Heavies [$100]
		WaveSpawn
		{
			Name  "W3-G-WIZARD-HEAVIES-COMMON"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 3
			MaxActive  1
			SpawnCount 1
			TotalCurrency 100

			WaitBeforeStarting 15
			WaitBetweenSpawns  20

			TFBot { Template T_TFBot_Giant_Heavy_Wizard_Common }
		}
		
		// 36 Huntsman Snipers [$50]
		WaveSpawn
		{
			Name  "W3-HUNTSMAN-SNIPERS"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 32
			MaxActive  4
			SpawnCount 4
			TotalCurrency 50

			WaitBeforeStarting 8
			WaitBetweenSpawns  3

			TFBot
			{
				Template T_TFBot_Sniper_Huntsman
				Item     "Zombie Sniper"
			}
		}
		
		// 22 Zatoichi Soldiers [$50]
		WaveSpawn
		{
			Name  "W3-KATANA-SOLDIERS"
			Where spawnbot_gate02_right
			Where spawnbot_gate01_right

			TotalCount 20
			MaxActive  8
			SpawnCount 4
			TotalCurrency 50

			WaitBeforeStarting 2
			WaitBetweenSpawns  7
			WaitForAllDead     "W3-DEMOKNIGHTS"

			TFBot { Template T_TFBot_Soldier_Zatoichi }
		}
		
		// 8 Crit Medics [$50]
		WaveSpawn
		{
			Name  "W3-CRIT-MEDICS"
			Where spawnbot_gate02_right
			Where spawnbot_gate01_right

			TotalCount 8
			MaxActive  4
			SpawnCount 4
			TotalCurrency 50

			WaitBeforeStarting 2
			WaitBetweenSpawns  7
			WaitForAllDead     "W3-DEMOKNIGHTS"

			TFBot { Template T_TFBot_Medic_Kritz }
		}
		
		// 8 Uber Medics [$50]
		WaveSpawn
		{
			Name  "W3-UBER-MEDICS"
			Where spawnbot_gate02_right
			Where spawnbot_gate01_right

			TotalCount 8
			MaxActive  4
			SpawnCount 4
			TotalCurrency 50

			WaitBeforeStarting 2
			WaitBetweenSpawns  7
			WaitForAllDead     "W3-DEMOKNIGHTS"

			TFBot
			{ 
				Template T_TFBot_Medic
				Item     "Zombie Medic"
			}
		}
		
		// Support Mini Jarate Tanks (7500 HP) [$150]
		WaveSpawn
		{
			Name       "W3-MINI-TANKS"
			Support    1
			TotalCount 4
			MaxActive  1
			SpawnCount 1
			TotalCurrency 150

			WaitBeforeStarting 2
			WaitBetweenSpawns  12
			WaitForAllDead     "W3-KATANA-SOLDIERS"

			Tank
			{
				Name   "small_tank_jarate"
				Health 7500
				Speed  75
				StartingPathTrackNode "boss_path_1"

				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
				
				DisableSmokestack 1
			}
		}
		
		// Support Bushwacka Snipers [$25]
		WaveSpawn
		{
			Name  "W3-BUSHWACKA-SNIPERS"
			Where spawnbot_gate02_right
			Where spawnbot_gate01_right

			Support    1
			TotalCount 36
			MaxActive  6
			SpawnCount 3
			TotalCurrency 25

			WaitBeforeStarting 6
			WaitBetweenSpawns  6
			WaitForAllDead     "W3-KATANA-SOLDIERS"

			TFBot { Template T_TFBot_Sniper_Bushwacka }
		}
		
		// 16 Jumping SMG Snipers [$25]
		WaveSpawn
		{
			Name  "W3-SMG-SNIPERS"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 16
			MaxActive  8
			SpawnCount 4
			TotalCurrency 25

			WaitBeforeStarting 2
			WaitBetweenSpawns  4
			WaitForAllDead     "W3-KATANA-SOLDIERS"

			TFBot { Template T_TFBot_Sniper_Jumping_SMG }
		}
		
		// 16 Gatebot Powerjack Pyros [$0]
		WaveSpawn
		{
			Name  "W3-GATEBOT-POWERJACK-PYROS"
			Where spawnbot_gate02_left
			Where spawnbot_gate01_right

			TotalCount 16
			MaxActive  4
			SpawnCount 4

			WaitBeforeStarting 0
			WaitBetweenSpawns  5
			WaitForAllDead     "W3-KATANA-SOLDIERS"

			TFBot { Template T_TFGateBot_Pyro_Powerjack }
		}
		
		// 32 Powerjack Pyros [$50]
		WaveSpawn
		{
			Name  "W3-POWERJACK-PYROS"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 32
			MaxActive  8
			SpawnCount 8
			TotalCurrency 50

			WaitBeforeStarting 4
			WaitBetweenSpawns  6
			WaitForAllDead     "W3-KATANA-SOLDIERS"

			TFBot { Template T_TFBot_Pyro_Powerjack }
		}
		
		// 2 Giant Wizard Heavies [$100]
		WaveSpawn
		{
			Name  "W3-G-WIZARD-HEAVIES-RARE"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 2
			MaxActive  1
			SpawnCount 1
			TotalCurrency 100

			WaitBeforeStarting 4
			WaitBetweenSpawns  12
			WaitForAllDead     "W3-GATEBOT-POWERJACK-PYROS"

			TFBot { Template T_TFBot_Giant_Heavy_Wizard_Rare }
		}
		
		// 2 Giant Dragon's Fury Pyros [$100]
		WaveSpawn
		{
			Name  "W3-G-FURY-PYROS"
			Where spawnbot_gate02_right
			Where spawnbot_gate01

			TotalCount 3
			MaxActive  1
			SpawnCount 1
			TotalCurrency 100

			WaitBeforeStarting 4
			WaitBetweenSpawns  6
			WaitForAllDead     "W3-GATEBOT-POWERJACK-PYROS"

			TFBot { Template T_TFBot_Giant_Pyro_Fury }
		}
		
		// Support Flaregun Pyros [$0]
		WaveSpawn
		{
			Name  "W3-SUPPORT-FLAREGUN-PYROS"
			Where spawnbot_gate02_invasion
			Where spawnbot_gate01_invasion

			Support    1
			MaxActive  8
			SpawnCount 2

			WaitBeforeStarting 3
			WaitBetweenSpawns  1.5
			WaitForAllDead     "W3-POWERJACK-PYROS"

			TFBot
			{
				Template T_TFBot_Pyro_Flaregun
				Item     "Zombie Pyro"
			}
		}
		
		// Support Sunstick Scouts [$0]
		WaveSpawn
		{
			Name  "W3-SUPPORT-SUNSTICK-SCOUTS"
			Where spawnbot_gate02_invasion
			Where spawnbot_gate01_invasion

			Support    1
			MaxActive  8
			SpawnCount 2

			WaitBeforeStarting 3
			WaitBetweenSpawns  1.5
			WaitForAllDead     "W3-POWERJACK-PYROS"

			TFBot
			{
				Template T_TFBot_Scout_SunStick
				Item     "Zombie Scout"
			}
		}
	}
	
////// WAVE 4 [$700] /////////////////////////////////////////////////////////
	Wave
	{
		InitWaveOutput
		{
			Target wave_initA_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}

		// Giant Cannon Demos Squad [$100]
		WaveSpawn
		{
			Name  "W4-G-CANNON_DEMOS-MEDICS"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 4
			MaxActive  2
			SpawnCount 2
			TotalCurrency 100

			WaitBetweenSpawns  12

			Squad
			{
				TFBot { Template T_TFAttrBot_Giant_Demoman_Cannon }
				
				TFBot
				{
					Template T_TFBot_Giant_Medic_Regen
					Item     "Zombie Medic"
				}
			}
			
			FirstSpawnOutput
			{
				Target botattributes_random_start_relay
				Action Trigger
			}
			
			DoneOutput
			{
				Target botattributes_random_stop_relay
				Action Trigger
			}
		}
		
		// 48 Crit Steelfist Heavies [$50]
		WaveSpawn
		{
			Name  "W4-STEELFIST-HEAVIES"
			Where spawnbot_gate02_right
			Where spawnbot_gate01

			TotalCount 48
			MaxActive  16
			SpawnCount 8
			TotalCurrency 50

			WaitBeforeStarting 4
			WaitBetweenSpawns  12
			WaitForAllDead     ""

			TFBot
			{
				Name "Steelfist Heavy"
				Class Heavy
				ClassIcon heavy_steelfist
				Skill Hard
				Attributes AlwaysCrit
				MaxVisionRange 512
				WeaponRestrictions MeleeOnly
				Item "Zombie Heavy"
				Item "Fists of Steel"
			}
		}
		
		// 1 Sticky Tank (20000 HP) [$100]
		WaveSpawn
		{
			Name       "W4-STICKY-TANK"
			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 100

			WaitBeforeStarting 5
			WaitForAllSpawned  "W4-G-CANNON_DEMOS-MEDICS"

			Tank
			{
				Name   "Sticky Tank"
				Health 20000
				Speed  75
				ClassIcon tank_sticky_hellmet
				StartingPathTrackNode "boss_path_1"

				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
				
				SpawnTemplate "StickyTank"  
			}
		}
		
		// 48 GRU Heavies [$50]
		WaveSpawn
		{
			Name  "W4-GRU-HEAVIES"
			Where spawnbot_gate02_left
			Where spawnbot_gate01_right

			TotalCount 48
			MaxActive  12
			SpawnCount 6
			TotalCurrency 50

			WaitBeforeStarting 2
			WaitBetweenSpawns  2
			WaitForAllDead     "W4-STEELFIST-HEAVIES"

			TFBot
			{
				Template T_TFBot_Heavyweapons_Heavyweight_Champ_Fast
				Item     "Zombie Heavy"
			}
		}
		
		// 16 Gatebot MiniGiant GRU Heavies [$50]
		WaveSpawn
		{
			Name  "W4-MG-GRU-HEAVIES"
			Where spawnbot_gate02_right
			Where spawnbot_gate01

			TotalCount 16
			MaxActive  4
			SpawnCount 4
			TotalCurrency 50

			WaitBeforeStarting 4
			WaitBetweenSpawns  7
			WaitForAllDead     "W4-STEELFIST-HEAVIES"

			TFBot { Template T_TFGateBot_Heavy_GRU }
		}
		
		// 4 Giant Buff Banner Soldiers [$50]
		WaveSpawn
		{
			Name  "W4-G-BUFF-SOLDIERS"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 4
			MaxActive  2
			SpawnCount 1
			TotalCurrency 50

			WaitBeforeStarting 4
			WaitBetweenSpawns  8
			WaitForAllDead     "W4-GRU-HEAVIES"

			TFBot
			{
				Template T_TFBot_Giant_Soldier_Extended_Buff_Banner
				Item     "Zombie Soldier"
				CharacterAttributes { "deploy time decreased" 1.34 }
			}
		}
		
		// 22 Milk Scouts [$25]
		WaveSpawn
		{
			Name  "W4-MILK-SCOUTS"
			Where spawnbot_gate02_invasion
			Where spawnbot_gate01_invasion

			TotalCount 22
			MaxActive  10
			SpawnCount 2
			TotalCurrency 25

			WaitBeforeStarting 7
			WaitBetweenSpawns  2
			WaitForAllDead     "W4-GRU-HEAVIES"

			TFBot { Template T_TFBot_Scout_Milk }
		}
		
		// 50 Random Choice Pickaxe Soldiers [$50]
		WaveSpawn
		{
			Name  "W4-PICKAXE-SOLDIERS"
			Where spawnbot_gate02_invasion
			Where spawnbot_gate01_invasion

			RandomSpawn 1
			TotalCount  50
			MaxActive   15
			SpawnCount  5
			TotalCurrency 50

			WaitBeforeStarting 3
			WaitBetweenSpawns  4
			WaitForAllDead     "W4-GRU-HEAVIES"

			RandomChoice
			{
				TFBot
				{
					Template T_TFGateBot_Soldier_Escape_Plan
					ClassIcon soldier_equalizer
				}
				TFBot { Template T_TFBot_Soldier_Equalizer }
			}
		}
		
		// 3 Giant Fireball Mage Pyros [$50]
		WaveSpawn
		{
			Name  "W4-G-FIREMAGE-PYROS"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 3
			MaxActive  2
			SpawnCount 1
			TotalCurrency 50

			WaitBeforeStarting 4
			WaitBetweenSpawns  8
			WaitForAllDead     "W4-G-BUFF-SOLDIERS"

			TFBot { Template T_TFBot_Giant_Pyro_FireMage }
		}
		
		// 6 MiniGiant Huntsman Snipers [$25]
		WaveSpawn
		{
			Name  "W4-MG-HUNTSMAN-SNIPERS"
			Where spawnbot_gate02_left
			Where spawnbot_gate01_right

			TotalCount 6
			MaxActive  3
			SpawnCount 1
			TotalCurrency 25

			WaitBeforeStarting 2
			WaitBetweenSpawns  4
			WaitForAllDead     "W4-G-BUFF-SOLDIERS"

			TFBot { Template T_TFBot_Sniper_Huntsman_Bleed }
		}
		
		// 16 Wrap Assassin Scouts [$25]
		WaveSpawn
		{
			Name  "W4-WRAP-ASSASSIN-SCOUTS"
			Where spawnbot_gate02_right
			Where spawnbot_gate01_right

			TotalCount 16
			MaxActive  8
			SpawnCount 4
			TotalCurrency 25

			WaitBetweenSpawns  6
			WaitForAllDead     "W4-G-BUFF-SOLDIERS"

			TFBot { Template T_TFBot_Scout_Mummy }
		}
		
		// 20 SunStick Scouts [$25]
		WaveSpawn
		{
			Name  "W4-SUNSTICK-SCOUTS"
			Where spawnbot_gate02_left
			Where spawnbot_gate01

			TotalCount 20
			MaxActive  10
			SpawnCount 5
			TotalCurrency 25

			WaitBeforeStarting 7
			WaitBetweenSpawns  4
			WaitForAllDead     "W4-G-BUFF-SOLDIERS"

			TFBot
			{
				Template T_TFBot_Scout_SunStick
				Item     "Zombie Scout"
			}
		}
		
		// 1 Bear Heavy Boss [$100]
		WaveSpawn
		{
			Name  "W4-G-BEAR-HEAVY"
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 100

			WaitBeforeStarting 5
			WaitForAllDead     "W4-G-FIREMAGE-PYROS"

			TFBot { Template T_TFAttrBot_Chief_Heavy_Bear }
		}
		
		// Support Kritz Medics [$0]
		WaveSpawn
		{
			Name  "W4-SUPPORT-CRIT-MEDICS"
			Where spawnbot_gate02
			Where spawnbot_gate01

			Support    1
			MaxActive  5
			SpawnCount 5

			WaitBeforeStarting 16
			WaitBetweenSpawns  2
			WaitForAllSpawned  "W4-G-BEAR-HEAVY"

			TFBot { Template T_TFBot_Medic_Kritz }
		}
		
		// Support Warrior's Spirit Heavies [$0]
		WaveSpawn
		{
			Name  "W4-SUPPORT-BEAR-HEAVIES"
			Where spawnbot_gate02_invasion
			Where spawnbot_gate01_invasion

			Support     1
			RandomSpawn 1
			MaxActive   8
			SpawnCount  2

			WaitBeforeStarting 20
			WaitBetweenSpawns  2
			WaitForAllSpawned  "W4-G-BEAR-HEAVY"

			TFBot { Template T_TFBot_Heavy_Warrior_Spirit }
		}
	}
	
////// WAVE 5 [$600] /////////////////////////////////////////////////////////
	Wave
	{
		InitWaveOutput
		{
			Target wave_initMain_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}

		// Support Wrap Assassin Scouts [$0]
		WaveSpawn
		{
			Name  "W5-SUPPORT-WRAP-ASSASSIN-SCOUTS"
			Where spawnbot_main_invasion
			Where spawnbot_gate02_invasion
			Where spawnbot_gate01_invasion

			Support 1
			MaxActive  4
			SpawnCount 4

			WaitBeforeStarting 2
			WaitBetweenSpawnsAfterDeath 4

			TFBot { Template T_TFBot_Scout_Mummy }
		}
		
		// Giant Gatebot KGB Heavies Squad [$100]
		WaveSpawn
		{
			Name  "W5-G-GATEBOT-KGB-HEAVIES"
			Where spawnbot_main
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 14
			MaxActive  7
			SpawnCount 7
			TotalCurrency 100

			WaitBeforeStarting 6
			WaitBetweenSpawns  20

			Squad
			{
				TFBot { Template T_TFGateBot_Giant_Heavy_KGB }
				
				TFBot
				{
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
				TFBot
				{
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
				TFBot
				{
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
				TFBot
				{
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
				TFBot
				{
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
				TFBot
				{
					Template T_TFBot_Medic
					Item     "Zombie Medic"
				}
			}
		}
		
		// 70 Crit Shovel Soldiers [$100]
		WaveSpawn
		{
			Name  "W5-CRIT-SHOVEL-SOLDIERS"
			Where spawnbot_main_left
			Where spawnbot_main_right
			Where spawnbot_gate02_left
			Where spawnbot_gate01_right

			RandomSpawn 1
			TotalCount  70
			MaxActive   14
			SpawnCount  7
			TotalCurrency 100

			WaitBeforeStarting 3
			WaitBetweenSpawns  4

			TFBot { Template T_TFBot_Soldier_Shovel_Crit }
		}
		
		// 6 Bison Sunstick Scouts [$50]
		WaveSpawn
		{
			Name  "W5-G-BISON-SUNSTICK-SCOUTS"
			Where spawnbot_main
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 3
			MaxActive  1
			SpawnCount 1
			TotalCurrency 50

			WaitBeforeStarting 10
			WaitBetweenSpawns  10
			WaitForAllDead     "W5-G-GATEBOT-KGB-HEAVIES"

			TFBot { Template T_TFAttrBot_Giant_Scout_BisonStick }
			
			FirstSpawnOutput
			{
				Target botattributes_random_start_relay
				Action Trigger
			}
			
			DoneOutput
			{
				Target botattributes_random_stop_relay
				Action Trigger
			}
		}
		
		// Giant Rocket Huo-long Heavies Squad [$50]
		WaveSpawn
		{
			Name  "W5-G-ROCKET-HEAVIES-MEDICS"
			Where spawnbot_main
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 4
			MaxActive  2
			SpawnCount 2
			TotalCurrency 50

			WaitBeforeStarting 6
			WaitBetweenSpawns  10
			WaitForAllDead     "W5-G-GATEBOT-KGB-HEAVIES"

			Squad
			{
				TFBot { Template T_TFBot_Giant_Heavy_Huolong_Rocket }
				
				TFBot
				{
					Template T_TFBot_Giant_Medic
					Item     "Zombie Medic"
				}
			}
		}
		
		// Limited Support Sword Scouts [$0]
		WaveSpawn
		{
			Name  "W5-SUPPORT-SWORD-SCOUTS"
			Where spawnbot_limited_a

			MaxActive  6
			SpawnCount 3

			WaitBeforeStarting 4
			WaitBetweenSpawns  4
			WaitForAllDead     "W5-G-ROCKET-HEAVIES-MEDICS"

			TFBot { Template T_TFBot_Scout_Sword }
		}
		
		// 48 Steel Gauntlets [$100]
		WaveSpawn
		{
			Name  "W5-MG-GAUNTLETS"
			Where spawnbot_main_invasion
			Where spawnbot_gate02_invasion
			Where spawnbot_gate01_invasion

			TotalCount 48
			MaxActive  12
			SpawnCount 6
			TotalCurrency 100

			WaitBeforeStarting 2
			WaitBetweenSpawns  4
			WaitForAllDead     "W5-G-ROCKET-HEAVIES-MEDICS"

			TFBot
			{
				Template T_TFBot_Heavyweapons_Fist
				Item     "Zombie Heavy"
			}
		}
		
		// 1 Panic Tank (30000 HP) [$100]
		WaveSpawn
		{
			Name       "W5-FAST-TANK"
			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 100

			WaitBeforeStarting 3
			WaitForAllDead     "W5-G-ROCKET-HEAVIES-MEDICS"

			Tank
			{
				Name   "Tank"
				Health 30000
				Speed  75
				MaxTurnRate 200  
				StartingPathTrackNode "boss_path_1"

				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
				
				SpawnTemplate "PanicTank"  
			}
		}
		
		// Wizard Support [$0]
		WaveSpawn
		{
			Name  "W5-G-SUPPORT-WIZARDS-COMMON"
			Where spawnbot_main
			Where spawnbot_gate02
			Where spawnbot_gate01

			Support 1
			MaxActive  1
			SpawnCount 1

			WaitBeforeStarting 6
			WaitBetweenSpawns  40
			WaitForAllSpawned  "W5-G-SOLDIER-BOSS"

			TFBot { Template T_TFBot_Giant_Heavy_Wizard_Common }
		}
		
		// 1 Robot Soldier Boss [$100]
		WaveSpawn
		{
			Name  "W5-G-SOLDIER-BOSS"
			Where spawnbot_main
			Where spawnbot_gate02
			Where spawnbot_gate01

			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 100

			WaitBeforeStarting 4
			WaitForAllDead     "W5-FAST-TANK"
			WaitForAllDead     "W5-MG-GAUNTLETS"

			TFBot { Template T_TFAttrBot_Chief_Soldier_Robot }
			
			FirstSpawnOutput
			{
				Target disable_limited_spawns_a
				Action Trigger
			}
		}
	}
	
	Templates
	{
		T_TFBot_Scout_Mummy
		{
			Name  "Cursed Mummy"
			Class Scout
			ClassIcon scout_bleed_wrap

			Skill Hard
			MaxVisionRange 1024
			WeaponRestrictions MeleeOnly
			Item "The Wrap Assassin"
			Item "Wrap Battler"
			Item "B-ankh!"
			Item "Futankhamun"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
			
			ItemAttributes
			{
				ItemName "The Wrap Assassin"
				"damage penalty" 0.75
				"effect bar recharge rate increased" 0.2
			}
			
			FireWeapon  
			{
				Type        "Secondary"
				Delay       0
				Cooldown    2
				Repeats     0
				IfSeeTarget 1
				Duration    0.1
			}
			
			DamageAppliesCond  
			{
				Name     "TF_COND_MARKEDFORDEATH"
				Duration 2
			}
		}
		
		T_TFBot_Scout_Milk
		{
			Name  "Milk Scout"
			Class Scout
			ClassIcon scout_milk
			Skill Hard
			Attributes AlwaysFireWeapon
			MaxVisionRange 512
			WeaponRestrictions SecondaryOnly
			Item "Zombie Scout"
			Item "Mad Milk"
			Item "The Milkman"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
			
			ItemAttributes
			{
				ItemName "Mad Milk"
				"effect bar recharge rate increased" -2
			}
		}
		
		T_TFBot_Scout_Arm
		{
			Name  "Zombie Arm Scout"
			Class Scout
			ClassIcon scout_bat

			Skill  Hard
			WeaponRestrictions MeleeOnly
			Item "Zombie Scout"
			Item "Unarmed Combat"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Scout_Sword
		{
			Name  "Three-Rune Blade Scout"
			Class Scout
			ClassIcon scout_threerune_daan

			Skill  Hard
			MaxVisionRange 512
			WeaponRestrictions MeleeOnly
			Item "Zombie Scout"
			Item "Three-Rune Blade"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Soldier_Zatoichi
		{
			Name  "Half-Zatoichi Soldier"
			Class Soldier
			ClassIcon demoknight_samurai

			Skill Hard
			MaxVisionRange 512
			WeaponRestrictions MeleeOnly
			Item "Zombie Soldier"
			Item "The Half-Zatoichi"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Soldier_Equalizer
		{
			Name  "Equalizer Soldier"
			Class Soldier
			ClassIcon soldier_equalizer

			Skill Hard
			MaxVisionRange 512
			WeaponRestrictions MeleeOnly
			Item "Zombie Soldier"
			Item "The Equalizer"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Soldier_Shovel_Crit
		{
			Name  "Shovel Soldier"
			Class Soldier
			ClassIcon soldier_shovel

			Skill Hard
			Attributes AlwaysCrit
			MaxVisionRange 512
			WeaponRestrictions MeleeOnly
			Item "Zombie Soldier"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Pyro_Axtinguisher
		{
			Name  "Axtinguisher Pyro"
			Class Pyro
			ClassIcon pyro_axtinguisher

			Skill  Hard
			MaxVisionRange 512
			WeaponRestrictions MeleeOnly
			Item "Zombie Pyro"
			Item "The Axtinguisher"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Pyro_Neon
		{
			Name  "Neon Annihilator Pyro"
			Class Pyro
			ClassIcon pyro_neon

			Skill  Hard
			MaxVisionRange 512
			WeaponRestrictions MeleeOnly
			Item "Zombie Pyro"
			Item "The Neon Annihilator"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Pyro_Powerjack
		{
			Name  "Powerjack Pyro"
			Class Pyro
			ClassIcon pyro_powerjack

			Skill  Hard
			MaxVisionRange 512
			WeaponRestrictions MeleeOnly
			Item "Zombie Pyro"
			Item "The Powerjack"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Heavy_Warrior_Spirit
		{
			Name  "Warrior's Spirit Heavy"
			Class Heavy
			ClassIcon heavy_warrior

			Skill  Hard
			WeaponRestrictions MeleeOnly
			Item "Zombie Heavy"
			Item "Warrior's Spirit"
			Item "The K-9 Mane"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Medic_Kritz
		{
			Name "Kritzkrieg Medic"
			Class Medic
			ClassIcon medic_kritz
			
			Skill Expert
			Attributes SpawnWithFullCharge
			WeaponRestrictions SecondaryOnly
			Item "Zombie Medic"
			Item "The Kritzkrieg"
			Item "Titanium Tyrolean"
			ItemAttributes
			{
				ItemName "The Kritzkrieg"
				"ubercharge rate bonus" 9999
				"uber duration bonus" 9999
			}
			CharacterAttributes
			{
				"bot medic uber health threshold" 9999
				"voice pitch scale" 0.7
			}
		}
		
		T_TFBot_Medic_Crossbow
		{
			Name  "Crossbow Medic"
			Class Medic
			ClassIcon medic_crossbow

			Skill Hard
			Scale  1.35
			Health 500
			MaxVisionRange 2048
			WeaponRestrictions PrimaryOnly
			Item "Zombie Medic"
			Item "The Crusader's Crossbow"

			CharacterAttributes
			{
				"move speed penalty" 0.75
				"voice pitch scale" 0.7
			}
			ItemAttributes
			{
				ItemName "The Crusader's Crossbow"
				"fire rate penalty" 2
				"damage bonus" 1.75
			}
		}
		
		T_TFBot_Sniper_Bushwacka
		{
			Name  "Bushwacka Sniper"
			Class Sniper
			ClassIcon sniper_bushwacka

			Skill Hard
			MaxVisionRange 512
			WeaponRestrictions MeleeOnly
			Item "Zombie Sniper"
			Item "The Bushwacka"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
		}
		
		T_TFBot_Sniper_Jarate
		{
			Name  "Jarate Sniper"
			Class Sniper
			ClassIcon sniper_jarate

			Skill  Normal
			MaxVisionRange 512
			WeaponRestrictions SecondaryOnly
			Item "Zombie Sniper"
			Item "Jarate"
			
			CharacterAttributes { "voice pitch scale" 0.7 }

			ItemAttributes
			{
				ItemName "Jarate"
				"effect bar recharge rate increased" 0.4
			}
		}
		
		T_TFBot_Sniper_Huntsman_Piss
		{
			Name  "Piss Huntsman Sniper"
			Class Sniper
			ClassIcon sniper_bow

			Skill  Hard
			MaxVisionRange 2048
			Item "Zombie Sniper"
			Item "The Huntsman"
			Item "The Bushwacka"
			
			CharacterAttributes { "voice pitch scale" 0.7 }

			DamageAppliesCond  
			{
				Name     "TF_COND_URINE"
				Duration 2
			}
		}
		
		T_TFBot_Sniper_Huntsman_Bleed
		{
			Name  "Bleed Huntsman Sniper"
			Class Sniper
			ClassIcon sniper_bow

			Skill  Hard
			Scale  1.35
			Health 750
			MaxVisionRange 2048
			Item "Zombie Sniper"
			Item "The Huntsman"
			Item "The Bushwacka"
			
			CharacterAttributes { "voice pitch scale" 0.7 }
			
			ItemAttributes
			{
				ItemName "The Huntsman"
				"bleeding duration" 4
			}
		}
		
		T_TFBot_Sniper_Jumping_SMG
		{
			Name  "Jumping SMG Sniper"
			Class Sniper
			ClassIcon sniper_smg_tind

			Skill  Hard
			MaxVisionRange 512
			WeaponRestrictions SecondaryOnly
			Item "Zombie Sniper"
			Item "Marsupial Man"
			Item "Kanga Kickers"
			Item "Roo Rippers"

			CharacterAttributes
			{
				"increased jump height" 4
				"voice pitch scale" 0.7
			}
			ItemAttributes
			{
				ItemName "TF_WEAPON_SMG"
				"fire rate bonus" 1.3
			}
			
			FireWeapon  
			{
				Type        "Jump"
				Duration    0.5
				Delay       6
				Cooldown    2
				Repeats     0
				IfSeeTarget 1
			}
		}
		
		T_TFBot_Giant_Soldier_Bucket
		{
			Name  "Giant Bucket Brain"
			Class Soldier
			ClassIcon soldier_shovel

			Skill  Normal
			Health 3800
			Attributes MiniBoss
			MaxVisionRange 512
			WeaponRestrictions  MeleeOnly
			AimTrackingInterval 3   //Braindead as Braindawg
			Tag  bot_giant
			Item "Zombie Soldier"
			Item "Bucket Hat"

			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.4
				"airblast vulnerability multiplier" 0.4
				"override footstep sound set" 3
				"cancel falling damage" 1
				"voice pitch scale" 0.7
			}
			ItemAttributes
			{
				ItemName "TF_WEAPON_SHOVEL"
				"damage bonus" 1.5
			}
		}
		
		T_TFBot_Giant_Pyro_Fury
		{
			Name  "Giant Dragon's Fury Pyro"
			Class Pyro
			ClassIcon pyro_dragon_fury_swordstone

			Skill  Expert
			Health 3000
			Attributes MiniBoss
			MaxVisionRange 512
			WeaponRestrictions PrimaryOnly
			Tag  bot_giant
			Item "Zombie Pyro"
			Item "The Dragon's Fury"

			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 6
				"cancel falling damage" 1
				"voice pitch scale" 0.7
			}
		}
		
		T_TFBot_Giant_Pyro_FireMage
		{
			Name  "Giant Fire Mage"
			Class Pyro
			ClassIcon pyro_dragon_fury_swordstone

			Skill  Expert
			Health 3000
			Attributes MiniBoss
			MaxVisionRange 2048
			StripItemSlot  0
			StripItemSlot  1
			Tag  bot_giant
			Item "Zombie Pyro"
			Item "Point and Shoot" // Haha Musclemilk clone xd
			Item "TF_WEAPON_SPELLBOOK"

			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 6
				"cancel falling damage" 1
				"voice pitch scale" 0.7
			}
			
			Spell  
			{
				Type     "Fireball"
				Delay    4
				Cooldown 5
				Charges  2
				Limit    4
			}
		}
		
		T_TFBot_Giant_Demoman_Skeleton
		{
			Name  "Giant King Skeleton"
			Class Demoman
			ClassIcon dead // (Filled with lead)

			Skill  Hard
			Health 3300
			Attributes MiniBoss
			MaxVisionRange 1024
			StripItemSlot  0
			StripItemSlot  1
			Tag  bot_giant
			Item "Zombie Demo"
			Item "The Bat Outta Hell"
			Item "Forgotten King's Restless Head"
			Item "Forgotten King's Pauldrons"
			Item "TF_WEAPON_SPELLBOOK"

			CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.5
				"airblast vulnerability multiplier" 0.5
				"override footstep sound set" 4
				"charge recharge rate increased" 0.001
				"cancel falling damage" 1
				"voice pitch scale" 0.7
			}
			
			Spell  
			{
				Type        "Summon Skeletons"
				Delay       6
				Cooldown    18
				Charges     1
				Limit       1
			}
		}
		
		T_TFBot_Giant_Heavy_KGB
		{
			Name  "Giant KGB Heavy"
			Class Heavy
			ClassIcon heavy_champ

			Skill  Expert
			Health 5000
			Attributes MiniBoss
			MaxVisionRange 512
			WeaponRestrictions MeleeOnly
			Tag  bot_giant
			Item "Zombie Heavy"
			Item "The Killing Gloves of Boxing"

			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.3
				"airblast vulnerability multiplier" 0.3
				"override footstep sound set" 2
				"cancel falling damage" 1
				"voice pitch scale" 0.7
			}
		}
		
		T_TFBot_Giant_Heavy_Wizard_Common
		{
			Name  "Giant Common Wizard Heavy"
			Class Heavy
			ClassIcon spellbook_lite

			Skill  Expert
			Scale  1.5 // Help prevent getting stuck from teleport spell
			Health 5000
			Attributes MiniBoss
			MaxVisionRange 2048
			StripItemSlot  0
			StripItemSlot  1
			Tag  bot_giant
			Item "Point and Shoot" // Haha Musclemilk clone xd
			Item "Zombie Heavy"
			Item "TF_WEAPON_SPELLBOOK"

			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.3
				"airblast vulnerability multiplier" 0.3
				"override footstep sound set" 2
				"cancel falling damage" 1
				"voice pitch scale" 0.7
			}
			
			Spell  
			{
				Type     "Common"
				Delay    4
				Cooldown 10
				Charges  2
				Limit    2
			}
		}
		
		T_TFBot_Giant_Heavy_Wizard_Rare
		{
			Name  "Giant Rare Wizard Heavy"
			Class Heavy
			ClassIcon spellbook_lite

			Skill  Expert
			Health 5000
			Attributes MiniBoss
			MaxVisionRange 2048
			StripItemSlot  0
			StripItemSlot  1
			Tag  bot_giant
			Item "Point and Shoot" // Haha Musclemilk clone xd
			Item "Zombie Heavy"
			Item "TF_WEAPON_SPELLBOOK"

			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.3
				"airblast vulnerability multiplier" 0.3
				"override footstep sound set" 2
				"cancel falling damage" 1
				"voice pitch scale" 0.7
			}
			ItemAttributes
			{
				ItemName "Point and Shoot"
				"attach particle effect" 73
			}
			
			Spell  
			{
				Type     "Rare"
				Delay    4
				Cooldown 20
				Charges  1
				Limit    1
			}
		}
		
		T_TFBot_Giant_Heavy_Huolong_Rocket
		{
			Name  "Giant Huolong Rocket Heavy"
			Class Heavy
			ClassIcon heavy_heater

			Skill  Expert
			Health 5000
			Attributes MiniBoss
			MaxVisionRange 1024
			WeaponRestrictions PrimaryOnly
			Tag  bot_giant
			Item "Zombie Heavy"
			Item "The Huo Long Heatmaker"

			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.3
				"airblast vulnerability multiplier" 0.3
				"override footstep sound set" 2
				"cancel falling damage" 1
				"voice pitch scale" 0.7
			}
			ItemAttributes
			{
				ItemName "The Huo Long Heatmaker"
				"override projectile type" 2
				"projectile spread angle penalty" 3
				"fire rate penalty" 2.5
				"damage bonus" 4
			}
		}
		
		T_TFBot_Giant_Sniper_Huntsman_Piss
		{
			Name  "Giant Piss Huntsman Sniper"
			Class Sniper
			ClassIcon sniper_bow

			Skill  Expert
			Health 2500
			Attributes MiniBoss
			MaxVisionRange 2048
			WeaponRestrictions PrimaryOnly
			Tag  bot_giant
			Item "Zombie Sniper"
			Item "The Huntsman"

			CharacterAttributes
			{
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.7
				"override footstep sound set" 5
				"move speed penalty" 0.6
				"cancel falling damage" 1
				"voice pitch scale" 0.7
			}
			
			DamageAppliesCond  
			{
				Name     "TF_COND_URINE"
				Duration 2
			}
		}
		
		T_TFGateBot_Scout_Bonk
		{
			Name "Bonk Scout"
			Class Scout
			ClassIcon scout_bonk
			Health 65
			
			EventChangeAttributes
			{
				Default
				{
					Skill Normal
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Attributes SpawnWithFullCharge
					Attributes IgnoreFlag
					BehaviorModifiers Push
					Tag  nav_prefer_gate1_flank
					Tag  bot_gatebot
					Item "Zombie Scout"
					Item "Bonk! Atomic Punch"
					Item "MvM GateBot Light Scout"
					
					CharacterAttributes { "voice pitch scale" 0.7 }
				}
				
				RevertGateBotsBehavior
				{
					Skill Normal
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Item "Zombie Scout"
					Item "MvM GateBot Light Scout"
					Item "TF_WEAPON_PISTOL_SCOUT" // Prevent them from still having bonk
					
					CharacterAttributes { "voice pitch scale" 0.7 }
					
					ItemAttributes
					{
						ItemName "MvM GateBot Light Scout"
						"item style override" 1
					}
				}
			}
		}
		
		T_TFGateBot_Soldier_Escape_Plan
		{
			Name   "Escape Plan Soldier"
			Class  Soldier
			ClassIcon soldier_escape

			EventChangeAttributes
			{
				Default
				{
					Skill Normal
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Attributes IgnoreFlag
					BehaviorModifiers Push
					Tag  nav_prefer_gate1_flank
					Tag  bot_gatebot
					Item "Zombie Soldier"
					Item "The Escape Plan"
					Item "MvM GateBot Light Soldier"
					
					CharacterAttributes { "voice pitch scale" 0.7 }
				}

				RevertGateBotsBehavior
				{
					Skill Hard
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Item "Zombie Soldier"
					Item "MvM GateBot Light Soldier"
					
					CharacterAttributes { "voice pitch scale" 0.7 }

					ItemAttributes
					{
						ItemName "MvM GateBot Light Soldier"
						"item style override" 1
					}
				}
			}
		}
		
		T_TFGateBot_Pyro_Powerjack
		{
			Name   "Powerjack Pyro"
			Class  Pyro
			ClassIcon pyro_powerjack

			EventChangeAttributes
			{
				Default
				{
					Skill Normal
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Attributes IgnoreFlag
					BehaviorModifiers Push
					Tag  nav_prefer_gate1_flank
					Tag  bot_gatebot
					Item "Zombie Pyro"
					Item "The Powerjack"
					Item "MvM GateBot Light Pyro"

					CharacterAttributes
					{
						"move speed bonus" 1.25
						"voice pitch scale" 0.7
					}
				}

				RevertGateBotsBehavior
				{
					Skill Hard
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Item "Zombie Pyro"
					Item "The Powerjack"
					Item "MvM GateBot Light Pyro"

					CharacterAttributes
					{
						"move speed bonus" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "MvM GateBot Light Pyro"
						"item style override" 1
					}
				}
			}
		}
		
		T_TFGateBot_Demoman_Knight
		{
			Name   "Demoknight"
			Class  Demoman
			ClassIcon demoknight

			EventChangeAttributes
			{
				Default
				{
					Skill Hard
					MaxVisionRange 1024
					WeaponRestrictions MeleeOnly
					Attributes IgnoreFlag
					BehaviorModifiers Push
					Tag  nav_prefer_gate1_flank
					Tag  bot_gatebot
					Item "Zombie Demo"
					Item "MvM GateBot Light Demoman"
					Item "The Chargin' Targe"
					Item "The Eyelander"
					
					CharacterAttributes { "voice pitch scale" 0.7 }

					ItemAttributes
					{
						ItemName "The Eyelander"
						"critboost on kill" 3
					}
				}

				RevertGateBotsBehavior
				{
					Skill Hard
					MaxVisionRange 1024
					WeaponRestrictions MeleeOnly
					Item "Zombie Demo"
					Item "MvM GateBot Light Demoman"
					Item "The Chargin' Targe"
					Item "The Eyelander"
					
					CharacterAttributes { "voice pitch scale" 0.7 }

					ItemAttributes
					{
						ItemName "MvM GateBot Light Demoman"
						"item style override" 1
					}
				}
			}
		}
		
		T_TFGateBot_Heavy_GRU
		{
			Name   "GRU Heavy"
			Class  Heavy
			Scale  1.5
			Health 900
			ClassIcon heavy_gru

			EventChangeAttributes
			{
				Default
				{
					Skill Hard
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Attributes IgnoreFlag
					BehaviorModifiers Push
					Tag  nav_prefer_gate1_flank
					Tag  bot_gatebot
					Item "Zombie Heavy"
					Item "MvM GateBot Light Heavy"
					Item "Gloves of Running Urgently MvM"
					
					CharacterAttributes { "voice pitch scale" 0.7 }
				}

				RevertGateBotsBehavior
				{
					Skill Hard
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Item "Zombie Heavy"
					Item "MvM GateBot Light Heavy"
					Item "Gloves of Running Urgently MvM"
					
					CharacterAttributes { "voice pitch scale" 0.7 }

					ItemAttributes
					{
						ItemName "MvM GateBot Light Heavy"
						"item style override" 1
					}
				}
			}
		}
		
		T_TFGateBot_Giant_Heavy_KGB
		{
			Name   "Giant KGB Heavy"
			Class  Heavy
			Health 5000
			Attributes MiniBoss
			ClassIcon  heavy_champ

			EventChangeAttributes
			{
				Default
				{
					Skill Expert
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Attributes IgnoreFlag
					Attributes MiniBoss
					BehaviorModifiers Push
					Tag  nav_prefer_gate1_flank
					Tag  bot_gatebot
					Tag  bot_giant
					Item "Zombie Heavy"
					Item "MvM GateBot Light Heavy"
					Item "The Killing Gloves of Boxing"

					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.3
						"airblast vulnerability multiplier" 0.3
						"override footstep sound set" 2
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "The Killing Gloves of Boxing"
						"damage bonus" 1.5
					}
				}

				RevertGateBotsBehavior
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Tag  bot_giant
					Item "Zombie Heavy"
					Item "MvM GateBot Light Heavy"
					Item "The Killing Gloves of Boxing"

					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.3
						"airblast vulnerability multiplier" 0.3
						"override footstep sound set" 2
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "MvM GateBot Light Heavy"
						"item style override" 1
					}
					ItemAttributes
					{
						ItemName "The Killing Gloves of Boxing"
						"damage bonus" 1.5
					}
				}
			}
		}
		
		T_TFAttrBot_Heavy_Shotgun
		{
			Name   "Shotgun Heavy"
			Class  Heavy
			ClassIcon heavy_shotgun

			EventChangeAttributes
			{
				Default
				{
					Skill Normal
					MaxVisionRange 1024
					WeaponRestrictions SecondaryOnly
					Item "Zombie Heavy"
					
					CharacterAttributes { "voice pitch scale" 0.7 }

					ItemAttributes
					{
						ItemName "TF_WEAPON_SHOTGUN"
						"damage penalty" 0.5
					}
				}

				BotAttributes1
				{
					Skill Hard
					MaxVisionRange 1024
					WeaponRestrictions SecondaryOnly
					Item "Zombie Heavy"
					
					CharacterAttributes { "voice pitch scale" 0.7 }

					ItemAttributes
					{
						ItemName "TF_WEAPON_SHOTGUN"
						"damage penalty" 0.5
						"fire rate bonus" 0.5
						"Reload time decreased" 0.5 
					}
				}
				
				BotAttributes2
				{
					Skill Hard
					MaxVisionRange 1024
					WeaponRestrictions SecondaryOnly
					Item "Zombie Heavy"
					
					CharacterAttributes { "voice pitch scale" 0.7 }

					ItemAttributes
					{
						ItemName "TF_WEAPON_SHOTGUN"
						"damage penalty" 1
						"fire rate penalty" 2
						"Reload time decreased" 0.75
						"slow enemy on hit major" 2
					}
				}
			}
		}
		
		T_TFAttrBot_Sniper_Huntsman_Bushwacka
		{
			Name   "Huntsman Sniper"
			Class  Sniper
			Scale  1.5
			Health 750
			ClassIcon sniper_bow

			EventChangeAttributes
			{
				Default
				{
					Skill Hard
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_attrbot
					Item "Zombie Sniper"
					Item "The Huntsman"

					CharacterAttributes
					{
						"move speed penalty" 0.75
						"voice pitch scale" 0.7
					}
				}

				BotAttributes1
				{
					Skill Hard
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Tag  bot_attrbot
					Item "Zombie Sniper"
					Item "The Bushwacka"

					CharacterAttributes
					{
						"move speed penalty" 0.75
						"voice pitch scale" 0.7
					}
				}
				
				BotAttributes2
				{
					Skill Hard
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_attrbot
					Item "Zombie Sniper"
					Item "The Huntsman"

					CharacterAttributes
					{
						"move speed penalty" 0.75
						"voice pitch scale" 0.7
					}
				}
				
				BotAttributes3
				{
					Skill Hard
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Tag  bot_attrbot
					Item "Zombie Sniper"
					Item "The Bushwacka"

					CharacterAttributes
					{
						"move speed penalty" 0.75
						"voice pitch scale" 0.7
					}
				}
				
				BotAttributes4
				{
					Skill Hard
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_attrbot
					Item "Zombie Sniper"
					Item "The Huntsman"

					CharacterAttributes
					{
						"move speed penalty" 0.75
						"voice pitch scale" 0.7
					}
				}
			}
		}
		
		T_TFAttrBot_Giant_Scout_BisonStick
		{
			Name   "Giant Bison Scout"
			Class  Scout
			Health 2500
			ClassIcon  soldier_bison
			Attributes MiniBoss
			Action     "Mobber"  

			EventChangeAttributes
			{
				Default
				{
					Skill Expert
					Attributes MiniBoss
					Attributes IgnoreFlag
					WeaponRestrictions SecondaryOnly
					Tag  bot_attrbot
					Tag  bot_giant
					Item "Zombie Scout"
					Item "The C.A.P.P.E.R"

					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "The C.A.P.P.E.R"
						"override projectile type"  13
						"energy weapon penetration" 1
						"fire rate penalty" 2
						"Set DamageType Ignite" 1
					}
				}

				BotAttributes1
				{
					Skill Expert
					Attributes MiniBoss
					Attributes IgnoreFlag
					WeaponRestrictions MeleeOnly
					Tag  bot_attrbot
					Tag  bot_giant
					Item "Zombie Scout"
					Item "Sun-on-a-Stick"

					CharacterAttributes
					{
						"move speed bonus"	1.15
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "Sun-on-a-Stick"
						"damage bonus" 3
						"fire rate penalty" 1.5
					}
				}

				BotAttributes2
				{
					Skill Expert
					Attributes MiniBoss
					Attributes IgnoreFlag
					WeaponRestrictions SecondaryOnly
					Tag  bot_attrbot
					Tag  bot_giant
					Item "Zombie Scout"
					Item "The C.A.P.P.E.R"

					CharacterAttributes
					{
						"move speed bonus"	0.3
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "The C.A.P.P.E.R"
						"override projectile type"  13
						"energy weapon penetration" 1
						"fire rate bonus" 0.75
						"reload time decreased" 0.001
						"Set DamageType Ignite" 1
					}
				}
				
				BotAttributes3
				{
					Skill Expert
					Attributes MiniBoss
					Attributes IgnoreFlag
					WeaponRestrictions SecondaryOnly
					Tag  bot_attrbot
					Tag  bot_giant
					Item "Zombie Scout"
					Item "The C.A.P.P.E.R"

					CharacterAttributes
					{
						"move speed bonus"	0.3
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "The C.A.P.P.E.R"
						"override projectile type"  13
						"energy weapon penetration" 1
						"fire rate bonus" 0.4
						"Set DamageType Ignite" 1
					}
				}

				BotAttributes4
				{
					Skill Expert
					Attributes MiniBoss
					Attributes IgnoreFlag
					WeaponRestrictions MeleeOnly
					Tag  bot_attrbot
					Tag  bot_giant
					Item "Zombie Scout"
					Item "Sun-on-a-Stick"

					CharacterAttributes
					{
						"move speed bonus"	1.25
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "Sun-on-a-Stick"
						"fire rate bonus" 0.6
					}
				}
			}
		}
		
		T_TFAttrBot_Giant_Demoman_FireSword
		{
			Name   "Giant Fiery Demoknight"
			Class  Demoman
			Health 3800
			Attributes MiniBoss
			ClassIcon  demoknight
			
			ChangeAttributes  
			{
				Name    "Attr1"
				Delay   0
				Repeats 1
				IfHealthBelow 1900
			}

			EventChangeAttributes
			{
				Default
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Tag  bot_giant
					Item "Zombie Demo"
					Item "The Eyelander"
					Item "The Dark Age Defender"
					Item "The Glasgow Great Helm"

					CharacterAttributes
					{
						"move speed bonus" 0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"damage penalty" 0.5
					}
				}

				Attr1
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Tag  bot_giant
					Item "Zombie Demo"
					Item "The Eyelander"
					Item "The Dark Age Defender"
					Item "The Glasgow Great Helm"

					CharacterAttributes
					{
						"move speed bonus" 0.25
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"damage penalty" 0.5
					}
					ItemAttributes
					{
						ItemName "The Eyelander"
						"fire rate bonus" 0.6
						"attach particle effect" 1
						"Set DamageType Ignite" 1
					}
				}
			}
		}
		
		T_TFAttrBot_Giant_Demoman_IceSword
		{
			Name   "Giant Icy Demoknight"
			Class  Demoman
			Health 3800
			Attributes MiniBoss
			ClassIcon  demoknight
			
			ChangeAttributes  
			{
				Name    "Attr1"
				Delay   0
				Repeats 1
				IfHealthBelow 1900
			}

			EventChangeAttributes
			{
				Default
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Tag  bot_giant
					Item "Zombie Demo"
					Item "The Eyelander"
					Item "The Dark Age Defender"
					Item "The Glasgow Great Helm"

					CharacterAttributes
					{
						"move speed bonus" 0.25
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"damage penalty" 0.5
					}
				}

				Attr1
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 512
					WeaponRestrictions MeleeOnly
					Tag  bot_giant
					Item "Zombie Demo"
					Item "The Eyelander"
					Item "The Dark Age Defender"
					Item "The Glasgow Great Helm"

					CharacterAttributes
					{
						"move speed bonus" 0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"damage penalty" 0.5
					}
					ItemAttributes
					{
						ItemName "The Eyelander"
						"fire rate penalty" 2
						"damage bonus" 1.3
						"slow enemy on hit major" 2
						"attach particle effect" 135
					}
				}
			}
		}
		
		T_TFAttrBot_Giant_Demoman_Cannon
		{
			Name   "Davy Jones"
			Class  Demoman
			Health 3800
			Attributes MiniBoss
			ClassIcon demo_loosecannon

			EventChangeAttributes
			{
				Default
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_giant
					Item "The Buccaneer's Bicorne"
					Item "Cap'n Calamari"
					Item "Zombie Demo"
					Item "The Loose Cannon"

					CharacterAttributes
					{
						"move speed bonus" 0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "The Loose Cannon"
						"grenade launcher mortar mode" -1
						"fire rate bonus" 1
						"reload rate bonus" 1
					}
				}

				BotAttributes1
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_giant
					Item "The Buccaneer's Bicorne"
					Item "Cap'n Calamari"
					Item "Zombie Demo"
					Item "The Loose Cannon"

					CharacterAttributes
					{
						"move speed bonus" 0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "The Loose Cannon"
						"grenade launcher mortar mode" -1
						"fire rate bonus" 1
						"reload rate bonus" 1
					}
				}
				
				BotAttributes2
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_giant
					Item "The Buccaneer's Bicorne"
					Item "Cap'n Calamari"
					Item "Zombie Demo"
					Item "The Loose Cannon"

					CharacterAttributes
					{
						"move speed bonus" 0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "The Loose Cannon"
						"grenade launcher mortar mode" -1
						"fire rate bonus" 0.5
						"reload rate bonus" 0.5
					}
				}
				
				BotAttributes3
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 2048
					WeaponRestrictions MeleeOnly
					Tag  bot_giant
					Item "The Buccaneer's Bicorne"
					Item "Cap'n Calamari"
					Item "Zombie Demo"
					Item "The Loose Cannon"

					CharacterAttributes
					{
						"move speed bonus" 0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
				}
				
				BotAttributes4
				{
					Skill Expert
					Attributes MiniBoss
					MaxVisionRange 2048
					WeaponRestrictions MeleeOnly
					Tag  bot_giant
					Item "The Buccaneer's Bicorne"
					Item "Cap'n Calamari"
					Item "Zombie Demo"
					Item "The Loose Cannon"

					CharacterAttributes
					{
						"move speed bonus" 0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
						"cancel falling damage" 1
						"voice pitch scale" 0.7
					}
					ItemAttributes
					{
						ItemName "TF_WEAPON_BOTTLE"
						"fire rate bonus" 0.5
					}
				}
			}
		}
		
		T_TFAttrBot_Chief_Heavy_Bear
		{
			Name   "Giant Heavy Bear"
			Class  Heavy
			Scale  2
			Health 30000
			Attributes UseBossHealthBar
			ClassIcon  heavy_warrior_giant
			
			SpawnTemplate "BearHeavyBoss"  
			
			ChangeAttributes  
			{
				Name     "Attr1"
				Delay    0
				Cooldown 0
				Repeats  1
				IfHealthBelow 22500
			}
			
			ChangeAttributes  
			{
				Name     "Attr2"
				Delay    0
				Cooldown 0
				Repeats  1
				IfHealthBelow 15000
			}
			
			ChangeAttributes  
			{
				Name     "Attr3"
				Delay    0
				Cooldown 0
				Repeats  1
				IfHealthBelow 7500
			
			}
			FireInput  
			{
				Target   "heavyboss_lowhealth_relay"
				Action   Trigger
				Delay    0
				Cooldown 0
				Repeats  1
				IfHealthBelow 7500
			}
			Taunt  
			{
				Delay    0
				Cooldown 0
				Repeats  1
				IfHealthBelow 7500
			}
			
			FireInput  
			{
				Target   "heavyboss_melee_sound_timer"
				Action   Disable
				Delay    0
				Cooldown 0
				Repeats  1
				IfHealthBelow 2500
			}

			EventChangeAttributes
			{
				Default
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					MaxVisionRange 2048
					WeaponRestrictions MeleeOnly
					Tag bot_giant
					Item "Zombie Heavy"
					Item "Warrior's Spirit"
					Item "The K-9 Mane"

					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.3
						"airblast vulnerability multiplier" 0.3
						"override footstep sound set" 2
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
					ItemAttributes
					{
						ItemName "Warrior's Spirit"
						"damage bonus" 1.0
					}
				}

				Attr1
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					MaxVisionRange 2048
					WeaponRestrictions MeleeOnly
					Tag bot_giant
					Item "Zombie Heavy"
					Item "Warrior's Spirit"
					Item "The K-9 Mane"

					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.3
						"airblast vulnerability multiplier" 0.3
						"override footstep sound set" 2
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
					ItemAttributes
					{
						ItemName "Warrior's Spirit"
						"fire rate bonus" 0.5
						"damage penalty" 0.75
					}
				}
				
				Attr2
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					Attributes AlwaysCrit
					MaxVisionRange 2048
					WeaponRestrictions MeleeOnly
					Tag bot_giant
					Item "Zombie Heavy"
					Item "Warrior's Spirit"
					Item "The K-9 Mane"

					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.3
						"airblast vulnerability multiplier" 0.3
						"override footstep sound set" 2
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
					ItemAttributes
					{
						ItemName "Warrior's Spirit"
						"fire rate penalty" 2
						"damage bonus" 1.5
					}
				}
				
				Attr3
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					Attributes AlwaysCrit
					Attributes AlwaysFireWeapon
					MaxVisionRange 2048
					WeaponRestrictions MeleeOnly
					Tag bot_giant
					Item "Zombie Heavy"
					Item "Warrior's Spirit"
					Item "The K-9 Mane"

					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.3
						"airblast vulnerability multiplier" 0.3
						"override footstep sound set" 2
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
						"dmg from melee increased" 1.75
					}
					ItemAttributes
					{
						ItemName "Warrior's Spirit"
						"fire rate bonus" 0.5
						"damage penalty" 0.5
					}
				}
			}
		}
		
		T_TFAttrBot_Chief_Soldier_Robot
		{
			Name   "Giant 'Robot' Zombie Soldier"
			Class  Soldier
			Scale  2
			Health 50000
			Attributes UseBossHealthBar
			ClassIcon  soldier_mangler
			RocketCustomModel "models/props_eotl/pigeonbomb.mdl"  
			
			SpawnTemplate "RobotSoldierBoss"  
			
			FireWeapon  
			{
				Type        "Jump"
				Duration    0.5
				Delay       38
				Cooldown    0
				Repeats     1
			}
			
			HomingRockets  
			{
				RocketSpeed 0.25
				TurnPower   50
				MaxAimError 60
				IgnoreDisguisedSpies 1
				IgnoreStealthedSpies 1
			}
			
			FireInput  
			{
				Target   "robotsoldier_spawn_relay"
				Action   Trigger
				Delay    0
				Cooldown 0
				Repeats  1
			}
			
			EventChangeAttributes
			{
				Default
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					Attributes IgnoreEnemies
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_giant
					Item "Zombie Soldier"
					Item "Idiot Box"
					Item "Steel Pipes"
					Item "Shoestring Budget"

					CharacterAttributes
					{
						"no_jump" 1
						"move speed bonus"	0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
				}

				Attr1
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					Attributes AlwaysFireWeapon
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_giant
					Item "Zombie Soldier"
					Item "Idiot Box"
					Item "Steel Pipes"
					Item "Shoestring Budget"

					CharacterAttributes
					{
						"no_jump" 1
						"move speed bonus"	0.0001
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
					
					ItemAttributes
					{
						ItemName "TF_WEAPON_ROCKETLAUNCHER"
						"fire rate penalty" 2
						"damage bonus" 2.5
					}
				}
				
				Attr2Transition // Prevent jumping on attribute change due to no movement speed
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					Attributes HoldFireUntilFullReload
					Attributes IgnoreEnemies
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_giant
					Item "Zombie Soldier"
					Item "Idiot Box"
					Item "Steel Pipes"
					Item "Shoestring Budget"
					Item "The Cow Mangler 5000"
					Item "The B.A.S.E. Jumper"

					CharacterAttributes
					{
						"no_jump" 1
						"move speed penalty" 0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
						"cancel falling damage" 1
						"increased jump height" 4
						"voice pitch scale" 0.7
						"wet immunity" 1
					}				
				}
				Attr2
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_giant
					Item "Zombie Soldier"
					Item "Idiot Box"
					Item "Steel Pipes"
					Item "Shoestring Budget"
					Item "The Cow Mangler 5000"
					Item "The B.A.S.E. Jumper"

					CharacterAttributes
					{
						"move speed penalty" 0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
						"cancel falling damage" 1
						"increased jump height" 4
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
					
					ItemAttributes
					{
						ItemName "The Cow Mangler 5000"
						"projectile spread angle penalty" 5
						"Reload time decreased" 0.05
						"fire rate bonus" 0.05
						"damage penalty"  0.5
					}
				}
				
				BotAttributes1
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					MaxVisionRange 2048
					WeaponRestrictions SecondaryOnly
					Tag  bot_giant
					Tag  bot_attrbot
					Item "Zombie Soldier"
					Item "Idiot Box"
					Item "Steel Pipes"
					Item "Shoestring Budget"
					Item "The Righteous Bison"

					CharacterAttributes
					{
						"move speed penalty" 0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
					
					ItemAttributes
					{
						ItemName "The Righteous Bison"
						"fire rate bonus" 0.3
						"Reload time decreased" 0.3
						"dmg penalty vs players" 1.25
					}
				}
				
				BotAttributes2
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					MaxVisionRange 2048
					WeaponRestrictions MeleeOnly
					Tag  bot_giant
					Tag  bot_attrbot
					Item "Zombie Soldier"
					Item "Idiot Box"
					Item "Steel Pipes"
					Item "Shoestring Budget"
					Item "The Equalizer"

					CharacterAttributes
					{
						"move speed penalty" 0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
					
					ItemAttributes
					{
						ItemName "The Equalizer"
						"damage bonus" 1.25
					}
				}
				
				BotAttributes3
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					MaxVisionRange 2048
					WeaponRestrictions MeleeOnly
					Tag  bot_giant
					Tag  bot_attrbot
					Item "Zombie Soldier"
					Item "Idiot Box"
					Item "Steel Pipes"
					Item "Shoestring Budget"
					Item "The Equalizer"

					CharacterAttributes
					{
						"move speed penalty" 0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
					
					ItemAttributes
					{
						ItemName "The Equalizer"
						"damage bonus" 1.25
						"fire rate bonus" 0.5
					}
				}

				BotAttributes4
				{
					Skill Expert
					Attributes MiniBoss
					Attributes UseBossHealthBar
					MaxVisionRange 2048
					WeaponRestrictions PrimaryOnly
					Tag  bot_giant
					Tag  bot_attrbot
					Item "Zombie Soldier"
					Item "Idiot Box"
					Item "Steel Pipes"
					Item "Shoestring Budget"
					Item "The Cow Mangler 5000"

					CharacterAttributes
					{
						"move speed penalty" 0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
						"cancel falling damage" 1
						"voice pitch scale" 0.7
						"wet immunity" 1
					}
					
					ItemAttributes
					{
						ItemName "The Cow Mangler 5000"
						"damage penalty" 0.75
						"fire rate bonus" 0.5
						"Reload time decreased" 0.5
					}
				}				
			}
		}
	} // Templates
	
	PointTemplates  
	{
		stuckfix //fixes weird clipping 
		{
			prop_dynamic
			{
				"angles" "0 45 0"
				"origin" "6044 4291 528"
				"body" "0"
				"DisableBoneFollowers" "0"
				"disablereceiveshadows" "1"
				"disableshadows" "1"
				"effects" "0"
				"ExplodeDamage" "0"
				"ExplodeRadius" "0"
				"fademaxdist" "1" // 1
				"fademindist" "-1"
				"fadescale" "1"
				"health" "0"
				"MaxAnimTime" "10"
				"maxdxlevel" "0"
				"MinAnimTime" "5"
				"mindxlevel" "0"
				"minhealthdmg" "0"
				"model" "models/props_mining/support_wall001a.mdl"
				"PerformanceMode" "0"
				"physdamagescale" "1.0"
				"pressuredelay" "0"
				"RandomAnimation" "0"
				"renderamt" "255"
				"rendercolor" "255 255 255"
				"renderfx" "0"
				"rendermode" "0"
				"SetBodyGroup" "0"
				"shadowcastdist" "0"
				"skin" "0"
				"solid" "6" // 6
				"spawnflags" "0"
				"StartDisabled" "0"
				"texframeindex" "0"
			}
			prop_dynamic
			{
				"angles" "0 45 0"
				"origin" "6134 4201 528"
				"body" "0"
				"DisableBoneFollowers" "0"
				"disablereceiveshadows" "1"
				"disableshadows" "1"
				"effects" "0"
				"ExplodeDamage" "0"
				"ExplodeRadius" "0"
				"fademaxdist" "1" // 1
				"fademindist" "-1"
				"fadescale" "1"
				"health" "0"
				"MaxAnimTime" "10"
				"maxdxlevel" "0"
				"MinAnimTime" "5"
				"mindxlevel" "0"
				"minhealthdmg" "0"
				"model" "models/props_mining/support_wall001a.mdl"
				"PerformanceMode" "0"
				"physdamagescale" "1.0"
				"pressuredelay" "0"
				"RandomAnimation" "0"
				"renderamt" "255"
				"rendercolor" "255 255 255"
				"renderfx" "0"
				"rendermode" "0"
				"SetBodyGroup" "0"
				"shadowcastdist" "0"
				"skin" "0"
				"solid" "6" // 6
				"spawnflags" "0"
				"StartDisabled" "0"
				"texframeindex" "0"
			}
			prop_dynamic
			{
				"angles" "0 45 0"
				"origin" "6224 4111 528"
				"body" "0"
				"DisableBoneFollowers" "0"
				"disablereceiveshadows" "1"
				"disableshadows" "1"
				"effects" "0"
				"ExplodeDamage" "0"
				"ExplodeRadius" "0"
				"fademaxdist" "1" // 1
				"fademindist" "-1"
				"fadescale" "1"
				"health" "0"
				"MaxAnimTime" "10"
				"maxdxlevel" "0"
				"MinAnimTime" "5"
				"mindxlevel" "0"
				"minhealthdmg" "0"
				"model" "models/props_mining/support_wall001a.mdl"
				"PerformanceMode" "0"
				"physdamagescale" "1.0"
				"pressuredelay" "0"
				"RandomAnimation" "0"
				"renderamt" "255"
				"rendercolor" "255 255 255"
				"renderfx" "0"
				"rendermode" "0"
				"SetBodyGroup" "0"
				"shadowcastdist" "0"
				"skin" "0"
				"solid" "6" // 6
				"spawnflags" "0"
				"StartDisabled" "0"
				"texframeindex" "0"
			}
			prop_dynamic
			{
				"angles" "0 45 0"
				"origin" "6314 4021 528"
				"body" "0"
				"DisableBoneFollowers" "0"
				"disablereceiveshadows" "1"
				"disableshadows" "1"
				"effects" "0"
				"ExplodeDamage" "0"
				"ExplodeRadius" "0"
				"fademaxdist" "1" // 1
				"fademindist" "-1"
				"fadescale" "1"
				"health" "0"
				"MaxAnimTime" "10"
				"maxdxlevel" "0"
				"MinAnimTime" "5"
				"mindxlevel" "0"
				"minhealthdmg" "0"
				"model" "models/props_mining/support_wall001a.mdl"
				"PerformanceMode" "0"
				"physdamagescale" "1.0"
				"pressuredelay" "0"
				"RandomAnimation" "0"
				"renderamt" "255"
				"rendercolor" "255 255 255"
				"renderfx" "0"
				"rendermode" "0"
				"SetBodyGroup" "0"
				"shadowcastdist" "0"
				"skin" "0"
				"solid" "6" // 6
				"spawnflags" "0"
				"StartDisabled" "0"
				"texframeindex" "0"
			}
			prop_dynamic
			{
				"angles" "0 45 0"
				"origin" "6404 3931 528"
				"body" "0"
				"DisableBoneFollowers" "0"
				"disablereceiveshadows" "1"
				"disableshadows" "1"
				"effects" "0"
				"ExplodeDamage" "0"
				"ExplodeRadius" "0"
				"fademaxdist" "1" // 1
				"fademindist" "-1"
				"fadescale" "1"
				"health" "0"
				"MaxAnimTime" "10"
				"maxdxlevel" "0"
				"MinAnimTime" "5"
				"mindxlevel" "0"
				"minhealthdmg" "0"
				"model" "models/props_mining/support_wall001a.mdl"
				"PerformanceMode" "0"
				"physdamagescale" "1.0"
				"pressuredelay" "0"
				"RandomAnimation" "0"
				"renderamt" "255"
				"rendercolor" "255 255 255"
				"renderfx" "0"
				"rendermode" "0"
				"SetBodyGroup" "0"
				"shadowcastdist" "0"
				"skin" "0"
				"solid" "6" // 6
				"spawnflags" "0"
				"StartDisabled" "0"
				"texframeindex" "0"
			}
		}
		StickyTank
		{
			OnParentKilledOutput // Clean up stickies
			{
				Target tf_projectile_pipe
				Action Kill
				Delay 0.1
			}
			
			OnSpawnOutput
			{
				Target stickytank_init_relay
				Action Trigger
				Delay  0.1
			}
			
			logic_relay
			{
				"targetname" "stickytank_init_relay"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow60Percent stickytank_timer:UpperRandomBound:5:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow60Percent stickytank_timer:LowerRandomBound:5:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow30Percent stickytank_timer:UpperRandomBound:2.5:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow30Percent stickytank_timer:LowerRandomBound:2.5:0:-1,0,-1"
			}
		
			logic_relay
			{
				"targetname" "stickytank_shooter_relay"
				
				"OnTrigger"  "stickytank_mimic,FireOnce,,0,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0,-1"
				"OnTrigger"  "stickytank_mimic,FireOnce,,0.1,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0.1,-1"
				"OnTrigger"  "stickytank_mimic,FireOnce,,0.2,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0.2,-1"
				"OnTrigger"  "stickytank_mimic,FireOnce,,0.3,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0.3,-1"
				"OnTrigger"  "stickytank_mimic,FireOnce,,0.4,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0.4,-1"
				"OnTrigger"  "stickytank_mimic,FireMultiple,4,0.5,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0.5,-1"
				"OnTrigger"  "stickytank_mimic,FireOnce,,0.6,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0.6,-1"
				"OnTrigger"  "stickytank_mimic,FireOnce,,0.7,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0.7,-1"
				"OnTrigger"  "stickytank_mimic,FireOnce,,0.8,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0.8,-1"
				"OnTrigger"  "stickytank_mimic,FireOnce,,0.9,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,0.9,-1"
				"OnTrigger"  "stickytank_mimic,FireMultiple,4,1,-1"
				"OnTrigger"  "stickytank_shoot_sound,PlaySound,,1,-1"
				"OnTrigger"  "stickytank_mimic_crit,FireOnce,,1.5,-1"
				"OnTrigger"  "stickytank_shoot_sound_crit,PlaySound,,1.5,-1"
				"OnTrigger"  "stickytank_mimic_crit,FireMultiple,2,2,-1"
				"OnTrigger"  "stickytank_shoot_sound_crit,PlaySound,,2,-1"
				"OnTrigger"  "!self,EnableRefire,,2,-1"
				"OnTrigger"  "stickytank_mimic_crit,FireMultiple,3,2.5,-1"
				"OnTrigger"  "stickytank_shoot_sound_crit,PlaySound,,2.5,-1"
				"OnTrigger"  "stickytank_mimic_crit,FireMultiple,6,3,-1"
				"OnTrigger"  "stickytank_shoot_sound_crit,PlaySound,,3,-1"
				"OnTrigger"  "stickytank_mimic,DetonateStickies,,7,-1"
				"OnTrigger"  "stickytank_mimic_crit,DetonateStickies,,7,-1"
			}
			logic_timer
			{
				"targetname"       "stickytank_timer"
				"spawnflags"       "0"
				"UpperRandomBound" "10"
				"LowerRandomBound" "7"
				"UseRandomTime"    "1"

				"OnTimer" "stickytank_shooter_relay,Trigger,,0,-1"
			}
			prop_dynamic
			{
				"targetname"    "stickytank_model"
				"model"         "models/props_frontline/tank_turret.mdl"
				"skin"          "2"
				"solid"         "0"
				"spawnflags"    "0"
				"origin"        "-16 -66 108"
				"angles"        "-56.5 0 -90"
			}
			prop_dynamic
			{
				"targetname"    "stickytank_model"
				"model"         "models/props_frontline/tank_turret.mdl"
				"skin"          "2"
				"solid"         "0"
				"spawnflags"    "0"
				"origin"        "-12 66 108"
				"angles"        "-58.5 0 90"
			}
			
			tf_point_weapon_mimic
			{
				"targetname"   "stickytank_mimic"
				"WeaponType"   "3"
				"ModelScale"   "1"
				"SpeedMax"     "525"
				"SpeedMin"     "525"
				"Crits"        "0"
				"Damage"       "75"
				"SpreadAngle"  "25"
				"SplashRadius" "125"
				"FireSound"    "weapons/stickybomblauncher_shoot_crit.wav"
				"origin"       "54 -56 216"
				"angles"       "-58.5 359 180"
			}
			tf_point_weapon_mimic
			{
				"targetname"   "stickytank_mimic_crit"
				"WeaponType"   "3"
				"ModelScale"   "1"
				"SpeedMax"     "525"
				"SpeedMin"     "525"
				"Crits"        "1"
				"Damage"       "75"
				"SpreadAngle"  "25"
				"SplashRadius" "125"
				"FireSound"    "weapons/stickybomblauncher_shoot_crit.wav"
				"origin"       "54 -56 216"
				"angles"       "-58.5 359 180"
			}
			
			tf_point_weapon_mimic
			{
				"targetname"   "stickytank_mimic"
				"WeaponType"   "3"
				"ModelScale"   "1"
				"SpeedMax"     "525"
				"SpeedMin"     "525"
				"Crits"        "0"
				"Damage"       "75"
				"SpreadAngle"  "25"
				"SplashRadius" "125"
				"FireSound"    "weapons/stickybomblauncher_shoot_crit.wav"
				"origin"       "54 56 214"
				"angles"       "-56.5 359 0"
			}

			tf_point_weapon_mimic
			{
				"targetname"   "stickytank_mimic_crit"
				"WeaponType"   "3"
				"ModelScale"   "1"
				"SpeedMax"     "525"
				"SpeedMin"     "525"
				"Crits"        "1"
				"Damage"       "75"
				"SpreadAngle"  "25"
				"SplashRadius" "125"
				"FireSound"    "weapons/stickybomblauncher_shoot_crit.wav"
				"origin"       "54 56 214"
				"angles"       "-56.5 359 0"
			}
			
			ambient_generic
			{
				"targetname" "stickytank_shoot_sound"			
				"health"     "10"
				"message"    "weapons/stickybomblauncher_shoot.wav"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "5000"
				"spawnflags" "48"
				"origin"     "64 0 224"
			}
			ambient_generic
			{
				"targetname" "stickytank_shoot_sound_crit"			
				"health"     "10"
				"message"    "weapons/stickybomblauncher_shoot_crit.wav"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "5000"
				"spawnflags" "48"
				"origin"     "64 0 224"
			}
		}
		
		PanicTank
		{
			OnSpawnOutput
			{
				Target panictank_init_relay
				Action Trigger
			}
			
			logic_relay
			{
				"targetname" "panictank_init_relay"
				
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow90Percent !self:SetSpeed:85:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow70Percent !self:SetSpeed:100:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow50Percent !self:SetSpeed:120:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow30Percent !self:SetSpeed:150:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow20Percent !self:SetSpeed:180:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow10Percent !self:SetSpeed:220:0:-1,0,-1"
			}
		}
		
		ResupplyCabinet
		{
			prop_dynamic
			{
				"targetname"     "locker_model"
				"model"          "models/props_gameplay/resupply_locker.mdl"
				"disableshadows" "1"
				"solid"          "6"
				"origin"         "16 0 0"
				"angles"         "0 0 0"
			}
			
			func_regenerate
			{
				"associatedmodel" "locker_model"
				"filtername"      "filter_red"
				"TeamNum"         "2"
				"spawnflags"      "1"
				"mins"            "0 -64 0"
				"maxs"            "64 64 128"
				
				"OnStartTouch"    "locker_model,SetAnimation,open,0,-1"
				"OnEndTouchAll"   "locker_model,SetAnimation,close,0,-1"
			}
		}
		
		WizardLogic
		{
			NoFixup 1
			
			OnSpawnOutput // filter_tf_class is buggy as fuck
			{
				Target filter_engineer
				Action AddOutput
				Param  "tfclass 9"
				Delay  0
			}
			
			filter_tf_class
			{
				"targetname" "filter_engineer"
				"tfclass"    "9"
				"Negated"    "0"
			}
			filter_multi
			{
				"targetname" "filter_redengineer"
				"Filter01"   "filter_engineer"
				"Filter02"   "filter_red"
				"filtertype" "0"
				"Negated"    "0"	
			}
			filter_multi
			{
				"targetname" "filter_caster"
				"Filter01"   "filter_redengineer"
				"filtertype" "1"
				"Negated"    "0"			
			}
			
			filter_tf_condition
			{
				"targetname" "filter_minify"
				"condition"  "75"
				"Negated"    "0"
			}
			
			trigger_multiple
			{
				"targetname"    "wizard_give_spells_trigger"
				"filtername"    "filter_caster"
				"spawnflags"    "1"
				"StartDisabled" "1"
				"wait"          "0"
				"mins"          "0 0 0"
				"maxs"          "9216 8192 4096"

				"OnStartTouch"  "wizard_give_spell_common,Trigger,,0,-1"	
			}
			trigger_multiple
			{
				"targetname"    "wizard_give_spells_rare_trigger"
				"filtername"    "filter_caster"
				"spawnflags"    "1"
				"StartDisabled" "1"
				"wait"          "0"
				"mins"          "0 0 0"
				"maxs"          "9216 8192 4096"

				"OnStartTouch"  "wizard_give_spell_rare,Trigger,,0,-1"	
			}
			
			trigger_multiple
			{
				"targetname"    "wizard_update_timer_trigger"
				"filtername"    "filter_caster"
				"spawnflags"    "1"
				"StartDisabled" "1"
				"wait"          "0"
				"mins"          "0 0 0"
				"maxs"          "9216 8192 4096"

				"OnStartTouch" "engineer_text_common_label,Display,0,-1"
				"OnStartTouch" "engineer_text_rare_label,Display,0,-1"
				"OnStartTouch" "engineer_text_common_value,Display,0,-1"
				"OnStartTouch" "engineer_text_rare_value,Display,0,-1"
			}
			
			trigger_multiple
			{
				"targetname"    "wizard_no_minify_trigger"
				"filtername"    "filter_minify"
				"spawnflags"    "1"
				"StartDisabled" "1"
				"wait"          "0"
				"mins"          "0 0 0"
				"maxs"          "9216 8192 4096"
				
				"OnStartTouch"  "wizard_give_spell_rare,Trigger,,0.25,-1"
				"OnStartTouch"  "wizard_no_minify,Disable,,0.05,-1"
				"OnStartTouch"  "wizard_no_minify,Enable,,0.04,-1"
				"OnStartTouch"  "teleporter_minify,Teleport,,0.02,-1"
				"OnStartTouch"  "teleporter_minify,Kill,,0.03,-1"
				"OnStartTouch"  "teleporter_minify_maker,ForceSpawnAtEntityOrigin,!activator,0.01,-1"
			}
			trigger_remove_tf_player_condition
			{
				"targetname"    "wizard_no_minify"
				"condition"     "75"
				"spawnflags"    "1"
				"StartDisabled" "1"
				"mins"          "0 0 0"
				"maxs"          "9216 8192 4096"
			}
			
			logic_case
			{
				"targetname" "wizard_spell_case"
				
				"OnCase01" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase02" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase03" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase04" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase05" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase06" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase07" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase08" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase09" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase10" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase11" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase12" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase13" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase14" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase15" "wizard_give_spell_common,Trigger,,0,-1"
				"OnCase16" "wizard_give_spell_rare,Trigger,,0,-1"
			}
			logic_relay
			{
				"targetname" "wizard_give_spell_common"
				
				"OnTrigger"  "wizard_spell_common_maker,ForceSpawn,,0,-1"
				"OnTrigger"  "wizard_teleport_template,ForceSpawnAtEntityOrigin,!activator,0.01,-1"
				"OnTrigger"  "spellbook,Kill,,0.02,-1"
			}
			logic_relay
			{
				"targetname" "wizard_give_spell_rare"
				
				"OnTrigger"  "!activator,RollRareSpell,,0,-1"
			}
			
			// Spawn the tf_spell_pickup at a known safe location
			// (To ensure it doesn't get deleted by the spawn logic for being too high off the ground)
			env_entity_maker
			{
				"targetname"     "wizard_spell_common_maker"
				"EntityTemplate" "wizard_spell_common_template"
				"origin"         "-4900 -5932 -2000"
			}
			
			env_entity_maker
			{
				"targetname"     "wizard_teleport_maker"
				"EntityTemplate" "wizard_teleport_template"
			}
			
			env_entity_maker
			{
				"targetname"     "teleporter_minify_maker"	
				"EntityTemplate" "teleporter_minify_template"
			}
			logic_timer
			{
				"targetname"    "wizard_no_minify_timer"
				"RefireTime"    "0.6"
				"UseRandomTime" "0"
				
				"OnTimer" "wizard_no_minify_trigger,Enable,,0,-1"
				"OnTimer" "wizard_no_minify_trigger,Disable,,0.02,-1"
			}
			
			logic_timer
			{
				"targetname"    "wizard_text_second_timer"
				"RefireTime"    "1"
				"UseRandomTime" "0"

				"OnTimer" "wizard_common_seconds,subtract,1,0,-1"
				"OnTimer" "wizard_rare_seconds,subtract,1,0,-1"
				"OnTimer" "wizard_update_timer_trigger,Enable,,0.01,-1"
				"OnTimer" "wizard_update_timer_trigger,Disable,0.02,-1"
			}
			
			logic_case
			{
				"targetname" "wizard_text_rare_case"
				
				"Case01" "1"
				"Case02" "2"
				"Case03" "3"
				"Case04" "4"
				"Case05" "5"
				"Case06" "6"
				"Case07" "7"
				"Case08" "8"
				"Case09" "9"
				"Case10" "10"
				"Case11" "11"
				"Case12" "12"
				"Case13" "13"
				"Case14" "14"
				"Case15" "15"
				"Case16" "16"
				
				"OnCase01" "engineer_text_rare_value,AddOutput,message 1,0,-1"
				"OnCase02" "engineer_text_rare_value,AddOutput,message 2,0,-1"
				"OnCase03" "engineer_text_rare_value,AddOutput,message 3,0,-1"
				"OnCase04" "engineer_text_rare_value,AddOutput,message 4,0,-1"
				"OnCase05" "engineer_text_rare_value,AddOutput,message 5,0,-1"
				"OnCase06" "engineer_text_rare_value,AddOutput,message 6,0,-1"
				"OnCase07" "engineer_text_rare_value,AddOutput,message 7,0,-1"
				"OnCase08" "engineer_text_rare_value,AddOutput,message 8,0,-1"
				"OnCase09" "engineer_text_rare_value,AddOutput,message 9,0,-1"
				"OnCase10" "engineer_text_rare_value,AddOutput,message 10,0,-1"
				"OnCase11" "engineer_text_rare_value,AddOutput,message 11,0,-1"
				"OnCase12" "engineer_text_rare_value,AddOutput,message 12,0,-1"
				"OnCase13" "engineer_text_rare_value,AddOutput,message 13,0,-1"
				"OnCase14" "engineer_text_rare_value,AddOutput,message 14,0,-1"
				"OnCase15" "engineer_text_rare_value,AddOutput,message 15,0,-1"
				"OnCase16" "engineer_text_rare_value,AddOutput,message 16,0,-1"
			}
			logic_case
			{
				"targetname" "wizard_text_rare_case"
				
				"Case01" "17"
				"Case02" "18"
				"Case03" "19"
				"Case04" "20"
				"Case05" "0"
				
				"OnCase01" "engineer_text_rare_value,AddOutput,message 17,0,-1"
				"OnCase02" "engineer_text_rare_value,AddOutput,message 18,0,-1"
				"OnCase03" "engineer_text_rare_value,AddOutput,message 19,0,-1"
				"OnCase04" "engineer_text_rare_value,AddOutput,message 20,0,-1"
				"OnCase05" "engineer_text_rare_value,AddOutput,message 0,0,-1"
			}
			
			logic_case
			{
				"targetname" "wizard_text_common_case"
				
				"Case01" "1"
				"Case02" "2"
				"Case03" "3"
				"Case04" "0"
				
				"OnCase01" "engineer_text_common_value,AddOutput,message 1,0,-1"
				"OnCase02" "engineer_text_common_value,AddOutput,message 2,0,-1"
				"OnCase03" "engineer_text_common_value,AddOutput,message 3,0,-1"
				"OnCase04" "engineer_text_common_value,AddOutput,message 0,0,-1"
			}
			
			math_counter
			{
				"targetname" "wizard_common_seconds"
				"min" "0"
				"max" "3"
				"startvalue" "3"

				"OutValue" "wizard_text_common_case,InValue,,0,-1"
				"OnHitMin" "!self,SetValue,3,0,-1"
				"OnHitMin" "wizard_give_spells_trigger,Enable,,0,-1"
				"OnHitMin" "wizard_give_spells_trigger,Disable,,0.01,-1"
			}
			math_counter
			{
				"targetname" "wizard_rare_seconds"
				"min" "0"
				"max" "20"
				"startvalue" "20"

				"OutValue" "wizard_text_rare_case,InValue,,0,-1"
				"OnHitMin" "!self,SetValue,20,0,-1"
				"OnHitMin" "wizard_give_spells_rare_trigger,Enable,,0,-1"
				"OnHitMin" "wizard_give_spells_rare_trigger,Disable,,0.01,-1"			
			}
			
			game_text
			{
				"channel" "3"
				"color" "255 50 150"
				"effect" "0"
				"fadein" "0.5"
				"fadeout" "0.5"
				"fxtime" "0.25"
				"holdtime" "9999999999"
				"message" "Next Spell:"
				"spawnflags" "0"
				"targetname" "engineer_text_common_label"
				"x" "0.46"
				"y" "0.91"
			}
			game_text
			{
				"channel" "1"
				"color" "200 50 0"
				"effect" "0"
				"fadein" "0.5"
				"fadeout" "0"
				"fxtime" "0.25"
				"holdtime" "9999999999"
				"message" "Next Rare Spell:"
				"spawnflags" "0"
				"targetname" "engineer_text_rare_label"
				"x" "0.46"
				"y" "0.95"
			}
			
			game_text
			{
				"channel" "2"
				"color" "255 50 150"
				"effect" "0"
				"fadein" "0.5"
				"fadeout" "0.5"
				"fxtime" "0.25"
				"holdtime" "9999999999"
				"message" "3"
				"spawnflags" "0"
				"targetname" "engineer_text_common_value"
				"x" "0.61"
				"y" "0.91"
			}
			game_text
			{
				"channel" "4"
				"color" "200 50 0"
				"effect" "0"
				"fadein" "0.5"
				"fadeout" "0.5"
				"fxtime" "0.25"
				"holdtime" "9999999999"
				"message" "20"
				"spawnflags" "0"
				"targetname" "engineer_text_rare_value"
				"x" "0.61"
				"y" "0.95"
			}
		}
	
		wizard_teleport_template
		{
			// tf_spell_pickup entities spawn attached to world geometry,
			// refusing to float off the ground, this bypasses that spawn logic.
			OnSpawnOutput
			{
				Target "spellbook_teleport"
				Action Teleport
				Delay  0.00
			}
			OnSpawnOutput
			{
				Target "spellbook_teleport"
				Action Kill
				Delay  0.01
			}
			point_teleport
			{
				"targetname" "spellbook_teleport"
				"target"     "spellbook"
				"origin"     "0 0 0"
			}		
		}
		
		wizard_spell_common_template
		{
			NoFixup 1
			
			tf_spell_pickup
			{
				"targetname"            "spellbook"
				"StartDisabled"         "0"
				"AutoMaterialize"       "1"
				"body"                  "0"
				"disablereceiveshadows" "0"
				"disableshadows"        "0"
				"effects"               "0"
				"maxdxlevel"            "0"
				"mindxlevel"            "0"
				"renderamt"             "255"
				"rendercolor"           "255 255 255"
				"renderfx"              "0"
				"rendermode"            "10"
				"SetBodyGroup"          "0"
				"shadowcastdist"        "0"
				"skin"                  "0"
				"TeamNum"               "0"
				"texframeindex"         "0"
				"tier"                  "0"	
			}			
		}
		
		teleporter_minify_template
		{
			NoFixup 1
			
			point_teleport
			{
				"targetname" "teleporter_minify"
				"target"     "!activator"
				"origin"     "0 0 24"		
			}
		}
		
		pyro_dispenser_template
		{
			dispenser_touch_trigger
			{
				"targetname"    "pyro_dispenser_touchtrigger"
				"StartDisabled" "0"
				"wait"          "0"
				"mins"          "-256 -256 -48"
				"maxs"          "256 256 256"
			}
			
			obj_dispenser
			{
				"targetname" "pyro_dispenser"
				"touch_trigger" "pyro_dispenser_touchtrigger"
				"modelscale" "0.01"
				"body" "0"
				"defaultupgrade" "1"
				"disablereceiveshadows" "0"
				"disableshadows" "0"
				"skin" "0"
				"solid" "0"
				"SolidToPlayer" "0"
				"spawnflags" "2"
				"TeamNum" "2"			
			}
		}
		
		BearHeavyBoss
		{
			NoFixup 1
			
			logic_relay
			{
				"targetname" "heavyboss_lowhealth_relay"
				
				"OnTrigger"  "heavyboss_spook_trigger,Enable,,0,-1"
				"OnTrigger"  "heavyboss_shake,StartShake,,0,-1"
				"OnTrigger"  "heavyboss_sound01,PlaySound,,0,-1"
				"OnTrigger"  "heavyboss_spook_trigger,Disable,,0.1,-1"
				"OnTrigger"  "heavyboss_sound02,PlaySound,,1.75,-1"
				"OnTrigger"  "heavyboss_melee_sound_timer,Enable,,3,-1" 
			}
			trigger_stun
			{
				"targetname"    "heavyboss_spook_trigger"
				"filtername"    "filter_red"
				"spawnflags"    "1"
				"StartDisabled" "1"
				"stun_duration" "4"
				"stun_effects"  "1"
				"stun_type"     "2"
				"trigger_delay" "0"
				"move_speed_reduction" "0.4"
				"mins" "-512 -512 -512"
				"maxs" "512 512 512"
			}
			env_shake
			{
				"targetname" "heavyboss_shake"
				"spawnflags" "29"
				"amplitude"  "7"
				"duration"   "4"
				"frequency"  "200"
				"radius"     "1024"
			}
			ambient_generic
			{
				"targetname" "heavyboss_sound01"		
				"health"     "10"
				"message"    "vo/heavy_battlecry03.mp3"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "20000"
				"spawnflags" "49"
				"origin"     "0 0 160"
			}
			
			ambient_generic
			{
				"targetname" "heavyboss_sound02"		
				"health"     "10"
				"message"    "vo/heavy_meleedare05.mp3"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "20000"
				"spawnflags" "49"
				"origin"     "0 0 160"
			}
			
			logic_timer
			{
				"targetname"    "heavyboss_melee_sound_timer"
				"spawnflags"    "0"
				"RefireTime"    "1"
				"StartDisabled" "1"
				"UseRandomTime" "0"
				
				"OnTimer" "heavyboss_melee_sound_case,PickRandom,,0,-1"
			}
			logic_case
			{
				"targetname" "heavyboss_melee_sound_case"
				
				"OnCase01" "heavyboss_sound03,PlaySound,,0,-1"
				"OnCase02" "heavyboss_sound04,PlaySound,,0,-1"
				"OnCase03" "heavyboss_sound05,PlaySound,,0,-1"
				"OnCase04" "heavyboss_sound06,PlaySound,,0,-1"
			}
			ambient_generic
			{
				"targetname" "heavyboss_sound03"		
				"health"     "10"
				"message"    "vo/heavy_meleeing03.mp3"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "20000"
				"spawnflags" "48"
				"origin"     "0 0 160"
			}
			ambient_generic
			{
				"targetname" "heavyboss_sound04"		
				"health"     "10"
				"message"    "vo/heavy_meleeing04.mp3"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "20000"
				"spawnflags" "48"
				"origin"     "0 0 160"
			}
			ambient_generic
			{
				"targetname" "heavyboss_sound05"		
				"health"     "10"
				"message"    "vo/heavy_meleeing05.mp3"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "20000"
				"spawnflags" "48"
				"origin"     "0 0 160"
			}
			ambient_generic
			{
				"targetname" "heavyboss_sound06"		
				"health"     "10"
				"message"    "vo/heavy_meleeing06.mp3"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "20000"
				"spawnflags" "48"
				"origin"     "0 0 160"
			}
		}
		
		RobotSoldierBoss
		{
			NoFixup 1
			
			logic_relay
			{
				"targetname" "robotsoldier_spawn_relay"
				
				"OnTrigger" "pop_interface,ChangeBotAttributes,Attr1,9,-1"
				"OnTrigger" "pop_interface,ChangeBotAttributes,Attr2Transition,34,-1"
				"OnTrigger" "pop_interface,ChangeBotAttributes,Attr2,37.5,-1"
				"OnTrigger" "pop_interface,ChangeBotAttributes,BotAttributes1,42,-1"
				"OnTrigger" "botattributes_random_start_relay,Trigger,,44,-1"
			}
		}
		
		pyro_manmelter_shoottemplate
		{
			KeepAlive 1
			
			OnParentKilledOutput
			{
				Target "pyro_manmelter_sentry_maker"
				Action ForceSpawnAtEntityOrigin
				Param  "projectile"
				Delay  0.00
			}
			
			OnParentKilledOutput
			{
				Target "projectile"
				Action Kill
				Delay  0.01
			}
			
			prop_dynamic
			{
				"targetname" "projectile"
				"DisableBoneFollowers" "1"
				"disableshadows" "1"
				"model" "models/empty.mdl"
				"solid" "0"
				"spawnflags" "0"
				"StartDisabled" "0"	
			}
		}
		
		pyro_manmelter_sentry
		{
			KeepAlive 1
			
			OnSpawnOutput
			{
				Target "pyro_sentry"
				Action AddOutput
				Param  "angles 0 0 0"
				Delay  0.00
			}

			OnSpawnOutput
			{
				Target "pyro_sentry"
				Action AddOutput
				Param "solid 0"
				Delay 0.00
			}
			
			OnSpawnOutput
			{
				Target "pyro_sentry"
				Action RemoveHealth
				Param  696969
				Delay  8.00
			}
			
			obj_sentrygun
			{
				"targetname"            "pyro_sentry"
				"defaultupgrade"        "0"
				"modelscale"            "0.75"
				"spawnflags"            "0"
				"TeamNum"               "2"
				"skin"                  "1"
				"solid"                 "0"
				"SolidToPlayer"         "0"
				"disablereceiveshadows" "1"
				"disableshadows"        "1"
				"origin"                "0 0 0"
				"angles"                "0 0 0"
			}
		}
		
		Misc
		{
			NoFixup 1
			
			OnSpawnOutput
			{
				Target "outputs_relay"
				Action Trigger
			}
			
			env_entity_maker
			{
				"targetname"     "pyro_manmelter_sentry_maker"
				"EntityTemplate" "pyro_manmelter_sentry"				
			}
			
			logic_relay
			{
				"targetname" "outputs_relay"
				"OnTrigger" "pyro_give_dispenser_trigger,Enable,,0.01,-1"
				"OnTrigger" "pyro_check_changed_timer,Enable,,0.02,-1"
				"OnTrigger" "player,AddOutput,targetname ,0,-1"
			}
		}
	} // PointTemplates
	
	SpawnTemplate "Misc"                
	SpawnTemplate "WizardLogic"         
	SpawnTemplate "stuckfix"            
	
	SpawnTemplate  
	{
		Name   "ResupplyCabinet"
		Origin "3424 3404 1120"
		Angles "0 -45 0"
	}
	SpawnTemplate  
	{
		Name   "ResupplyCabinet"
		Origin "3108 3088 1120"
		Angles "0 -45 0"
	}
	
	PlayerSpawnTemplate  
	{
		Name "pyro_dispenser_template"
		Class Pyro
	}
	
	PlayerShootTemplate  
	{
		Name "pyro_manmelter_shoottemplate"
		ItemName "The Manmelter"
		AttachToProjectile 1
	}
} // WaveSchedule