// Base Template
#base robot_standard.pop
#base robot_giant.pop
#base robot_click.pop
#base robot_click_giant.pop
#base robot_bro.pop
#base robot_hole.pop

WaveSchedule
{
	StartingCurrency	1500
	CanBotsAttackWhileInSpawnRoom	No
	RespawnWaveTime	6
	
	//////////////
	// ASSETS
	//////////////
	
	Templates
	{
	}
	
	/////////////
	// MISSIONS 
	/////////////
	
	// Sentry Buster (Appear 1~5 waves)
	Mission
	{
		Objective DestroySentries
		Where spawnbot
		BeginAtWave 1
        RunForThisManyWaves 5
		
		InitialCooldown	30
		CooldownTime 30
		
		DesiredCount	1

		TFBot
		{
			Template T_TFBot_SentryBuster
			Tag	bot_sentrybuster
		}
	}
	
	// Wave 1
	// Sniper
	Mission
	{
		Objective Sniper
		Where spawnbot
		BeginAtWave	1
		RunForThisManyWaves	1
		
		InitialCooldown	60
		CooldownTime 40
		
		DesiredCount	2
		
		TFBot
		{
			Template	T_TFBot_Sniper_Sydney_Sleeper
		}
	}
	
	// Wave 2
	// Sniper
	Mission
	{
		Objective Sniper
		Where spawnbot
		BeginAtWave	2
		RunForThisManyWaves	1
		
		InitialCooldown	60
		CooldownTime 50
		
		DesiredCount	2
		
		TFBot
		{
			Template	T_TFBot_Sniper_Sydney_Slow
		}
	}
	
	// Wave 4
	// Spy
	Mission
	{
		Objective Spy
		Where spawnbot
		BeginAtWave	4
		RunForThisManyWaves	1
		
		InitialCooldown	60
		CooldownTime 40
		
		DesiredCount	2
		
		TFBot
		{
			Template	T_TFBot_Spy_Super_Sapper
		}
	}
	
	// Wave 4
	// Engi
	Mission
	{
		Objective Engineer
		Where spawnbot
		BeginAtWave	4
		RunForThisManyWaves	1
		
		InitialCooldown	60
		CooldownTime 50
		
		DesiredCount	2
		
		TFBot
		{
			Template	T_TFBot_Engineer_Sentry_Teleporter_Armored
			TelePortWhere	spawnbot
			TelePortWhere	spawnbot_flank
			Attributes	IgnoreFlag
		}
	}
	
	// Wave 6
	// Sniper
	Mission
	{
		Objective Sniper
		Where spawnbot
		BeginAtWave	6
		RunForThisManyWaves	1
		
		InitialCooldown	60
		CooldownTime 50
		
		DesiredCount	3
		
		TFBot
		{
			Template	T_TFBot_Sniper_Crocostyle_Explosive
		}
	}
	
	//////////
	// WAVES
	//////////
	
	///////////////////////////////////////////////////////////////////////
	// Wave 1
	// Starting Currency		: 1500
	// Total (in this wave) 	: 1200 + 100 (bonus)
	// Total (when wave ends) 	: 1500 + 1200 + 100 (bonus) = 2800
	///////////////////////////////////////////////////////////////////////
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		// Main 1
		// Bomb Carrier
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave1_Main1
			
			TotalCount	36
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	8
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Scout_Fast
			}
		}
		
		// Direct Spammer
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave1_Main1
			
			TotalCount	40
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	5
			WaitBetweenSpawns	10
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Soldier_Direct_Normal
			}
		}
		
		// Penetration Heavy
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave1_Main1
			
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	20
			WaitBetweenSpawns	30
			
			TotalCurrency	300
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavy_Fire
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Regen
				}
			}
		}
		
		// Main 2
		// Demo
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave1_Main1
			
			Name	Wave1_Main2
			
			TotalCount	24
			MaxActive	10
			SpawnCount	6
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			
			TotalCurrency	100
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Demo_Burst
				}
				TFBot
				{
					Template	T_TFBot_Medic_Quickheal
				}
			}
		}
		
		// Giant Pyro
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave1_Main1
			
			Name	Wave1_Main2
			
			TotalCount	9
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	15
			WaitBetweenSpawns	25
			
			TotalCurrency	300
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Pyro
					Attributes	AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Engi
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave1_Main1
			
			Name	Wave1_Engi
			
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	50
			
			TotalCurrency	0
			
			Support	1
			
			TFBot
			{
				Template	T_TFBot_Engineer_Sentry_Battle_TeleIn
			}
		}
		
		// Main 3
		// Flame Heavy
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave1_Main2
			
			Name	Wave1_Main3
			
			TotalCount	24
			MaxActive	8
			SpawnCount	8
			WaitBeforeStarting	20
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Heavy_Fire
			}
		}
		
		// Flame Heavy
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave1_Main2
			
			Name	Wave1_Support1
			
			TotalCount	24
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	12
			
			TotalCurrency	200
			
			Support	1
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Heavyweapons_Fist
				}
				TFBot
				{
					Template	T_TFBot_Heavyweapons_Fist
				}
				TFBot
				{
					Template	T_TFBot_Soldier_Extended_Concheror
				}
				TFBot
				{
					Template	T_TFBot_Soldier_Extended_Concheror
				}
			}
		}
	}
	
	//////////
	// WAVES
	//////////
	
	///////////////////////////////////////////////////////////////////////
	// Wave 2
	// Starting Currency		: 2800
	// Total (in this wave) 	: 1300 + 100 (bonus)
	// Total (when wave ends) 	: 2700 + 1300 + 200 (bonus) = 4200
	///////////////////////////////////////////////////////////////////////
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		// Main 1
		// Samurai
		WaveSpawn
		{
			Where	spawnbot_flank
			
			Name	Wave2_Main1
			
			TotalCount	12
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Demoman_Samurai
			}
		}
		
		// Scatter Demo
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave2_Main1
			
			TotalCount	42
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	8
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Demo_Scatter
			}
		}
		
		// Spammer Crit
		WaveSpawn
		{
			Where	spawnbot_flank
			
			Name	Wave2_Main1
			
			TotalCount	12
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	25
			
			TotalCurrency	200
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Spammer
					Attributes	AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Giant Flame Huntsman
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave2_Main1
			
			TotalCount	8
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	25
			
			TotalCurrency	200
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Sniper_Flame
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Main 2
		// Tank 1
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave2_Main1
			
			Name	Wave2_Tank1
			
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	30
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			Tank
			{
				Health	25000
				Name	Tank
				Speed	75
				StartingPathTrackNode	"tank_path_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		
		// Giant Blaster Pusher
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave2_Main1
			
			Name	Wave2_Pusher
			
			TotalCount	8
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	20
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Giant_Scout_Blaster_Pusher
			}
		}
		
		// Engi
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave2_Main1
			
			Name	Wave2_Engi
			
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	50
			
			TotalCurrency	0
			
			Support	1
			
			TFBot
			{
				Template	T_TFBot_Engineer_Sentry_Teleporter
				Attributes	IgnoreFlag
				TelePortWhere	spawnbot
				TelePortWhere	spawnbot_flank
			}
		}
		
		// Main 3
		// Giant Mafia
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave2_Pusher
			
			Name	Wave2_Main3
			
			TotalCount	6
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	30
			
			TotalCurrency	200
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavy_Tomislav
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Kritzkrieg
				}
			}
		}
		
		// Conch Spammer
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave2_Pusher
			
			Name	Wave2_Support1
			
			TotalCount	60
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			
			TotalCurrency	100
			
			Support	1
			
			TFBot
			{
				Template	T_TFBot_Soldier_Spammer_Conch
			}
		}
		
		// Main 4
		// Tank 2
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave2_Main3
			
			Name	Wave2_Tank2
			
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			Tank
			{
				Health	20000
				Name	Tank
				Speed	75
				StartingPathTrackNode	"tank_path_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		
		// Loch
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave2_Main3
			
			Name	Wave2_Support2
			
			TotalCount	20
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			
			TotalCurrency	100
			
			Support	1
			
			TFBot
			{
				Template	T_TFBot_Demoman_Knight
				Attributes	AlwaysCrit
			}
		}
	}
	
	//////////
	// WAVES
	//////////
	
	///////////////////////////////////////////////////////////////////////
	// Wave 3
	// Starting Currency		: 4200
	// Total (in this wave) 	: 1400 + 100 (bonus)
	// Total (when wave ends) 	: 4000 + 1400 + 300 (bonus) = 5700
	///////////////////////////////////////////////////////////////////////
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		// Main 1
		// Giant Loch Burst
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave3_Loch
			
			TotalCount	18
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	25
			
			TotalCurrency	200
			
			TFBot
			{
				Template	T_TFBot_Giant_Demo_Loch_Burst
			}
		}
		
		// Blast Pusher
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave3_Main1
			
			TotalCount	45
			MaxActive	5
			SpawnCount	5
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			
			TotalCurrency	150
			
			TFBot
			{
				Template	T_TFBot_Soldier_Spammer_Buff
			}
		}
		
		// Giant Public
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave3_FAN
			
			TotalCount	14
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	15
			WaitBetweenSpawns	20
			
			TotalCurrency	150
			
			TFBot
			{
				Template	T_TFBot_Giant_Scout_FAN
				Attributes	AlwaysCrit
			}
		}
		
		// Backburner
		WaveSpawn
		{
			Where	spawnbot_flank
			
			Name	Wave3_Main1
			
			TotalCount	32
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	10
			
			TotalCurrency	150
			
			TFBot
			{
				Template	T_TFBot_Pyro_Backburner
			}
		}
		
		// Main 2
		// Armored Engi
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave3_Main1
			
			Name	Wave3_Engi
			
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	60
			
			TotalCurrency	0
			
			Support	1
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Engineer_Sentry_Tele_Battle_Armored
					Attributes	IgnoreFlag
					TelePortWhere	spawnbot
					TelePortWhere	spawnbot_flank
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Tank 1
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave2_Main3
			
			Name	Wave3_Tank1
			
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			
			TotalCurrency	150
			
			Tank
			{
				Health	30000
				Name	Tank
				Speed	75
				StartingPathTrackNode	"tank_path_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		
		// Hunter Shotgun
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave3_Main1
			
			Name	Wave3_Main2
			
			TotalCount	36
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	8
			
			TotalCurrency	300
			
			TFBot
			{
				Template	T_TFBot_Heavy_Shotgun_Hunter
				Attributes	AlwaysCrit
			}
		}
		
		// Heavy Shotgun Scout
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave3_Main1
			
			Name	Wave3_Main2
			
			TotalCount	30
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	12
			
			TotalCurrency	200
			
			TFBot
			{
				Template	T_TFBot_Heavy_Shotgun_Armored
				Attributes	AlwaysCrit
			}
		}
	}
	
	//////////
	// WAVES
	//////////
	
	///////////////////////////////////////////////////////////////////////
	// Wave 4
	// Starting Currency		: 5700
	// Total (in this wave) 	: 1600 + 100 (bonus)
	// Total (when wave ends) 	: 5400 + 1600 + 400 (bonus) = 7400
	///////////////////////////////////////////////////////////////////////
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		// Main 1
		// Scatter Soldier
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave4_Main1
			
			TotalCount	40
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			
			TotalCurrency	150
			
			TFBot
			{
				Template	T_TFBot_Heavy_HealonHit
			}
		}
		
		// Giant Conch Spammer
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave4_Main1
			
			TotalCount	8
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	25
			
			TotalCurrency	300
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Spammer_Conch
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Giant Stun Spammer
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave4_Main1
			
			TotalCount	8
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	25
			
			TotalCurrency	300
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Stun_Spammer
					Attributes	AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Shield
				}
			}
		}
		
		// Main 2
		// SMG Critboost
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave4_Main1
			
			Name	Wave4_Main2
			
			TotalCount	36
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	8
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Sniper_SMG_Critboost
			}
		}
		
		// Tanker
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave4_Main1
			
			Name	Wave4_Main2
			
			TotalCount	10
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	12
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Soldier_Tanker
			}
		}
		
		// FAN Pusher
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave4_Main1
			
			Name	Wave4_Main2
			
			TotalCount	32
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Scout_FAN_Pusher
			}
		}
		
		// Main 3
		// Giant Dragon Heal
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave4_Main2
			
			Name	Wave4_Main3
			
			TotalCount	6
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	20
			
			TotalCurrency	200
			
			TFBot
			{
				Template	T_TFBot_Giant_Pyro_Dragon_Heal
			}
		}
		
		// Giant Dragon Heal
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave4_Main2
			
			Name	Wave4_Main3
			
			TotalCount	12
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	30
			
			TotalCurrency	200
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavy_Dragon
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Giant Dragon Heal
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave4_Main2
			
			Name	Wave4_Main3
			
			TotalCount	52
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	8
			
			TotalCurrency	150
			
			TFBot
			{
				Template	T_TFBot_Scout_FAN_Pusher
			}
		}
	}
	
	//////////
	// WAVES
	//////////
	
	///////////////////////////////////////////////////////////////////////
	// Wave 5
	// Starting Currency		: 7400
	// Total (in this wave) 	: 1800 + 100 (bonus)
	// Total (when wave ends) 	: 7000 + 1800 + 500 (bonus) = 9300
	///////////////////////////////////////////////////////////////////////
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		// Main 1
		// FastBuild Engi
		WaveSpawn
		{
			Where	spawnbot_flank
			
			Name	Wave5_Engi1
			
			TotalCount	4
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	60
			
			Support 1
			
			TotalCurrency	0
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Engineer_Sentry_Tele_Battle_FastBuild
					Attributes	IgnoreFlag
					TelePortWhere	spawnbot
					TelePortWhere	spawnbot_flank
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Goldgun
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave5_Goldgun
			
			TotalCount	32
			MaxActive	16
			SpawnCount	16
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			
			TotalCurrency	150
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Heavy_Brassbeast_Hyper
					Attributes	AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Tank 1
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave5_Tank1
			
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	20
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			Tank
			{
				Health	40000
				Name	Tank
				Speed	75
				StartingPathTrackNode	"tank_path_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		
		// Giant Sticky Burst
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave5_Goldgun
			
			Name	Wave5_Main1
			
			TotalCount	6
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	30
			
			TotalCurrency	150
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Demo_Sticky_Burst
					Attributes	AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Regen
				}
			}
		}
		
		// Giant Spammer Hyper
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave5_Goldgun
			
			Name	Wave5_Main1
			
			TotalCount	6
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	30
			
			TotalCurrency	150
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Spammer_Crit
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Scorch Spammer
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave5_Goldgun
			
			Name	Wave5_Main1
			
			TotalCount	6
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	30
			
			TotalCurrency	150
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Pyro_ScorchShot_Spammer
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		
		// Giant SMG Critboost
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave5_Goldgun
			
			Name	Wave5_Main1
			
			TotalCount	16
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			
			TotalCurrency	150
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Sniper_SMG_Critboost
				}
				TFBot
				{
					Template	T_TFBot_Soldier_Shotgun_Expert
					Attributes	AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Soldier_Shotgun_Expert
					Attributes	AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Soldier_Shotgun_Expert
					Attributes	AlwaysCrit
				}
			}
		}
		
		// Main 2	
		// Tank 1
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave5_Main1
			
			Name	Wave5_Tank2
			
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	15
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			Tank
			{
				Health	40000
				Name	Tank
				Speed	75
				StartingPathTrackNode	"tank_path_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		// Samurai
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave5_Main1
			
			Name	Wave5_Samurai1
			
			TotalCount	16
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	15
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Demoman_Samurai
				Attributes	AlwaysCrit
			}
		}
		
		// Penetration Deflector Pusher
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave5_Main1
			
			Name	Wave5_Samurai1
			
			TotalCount	16
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	15
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Soldier_Samurai
				Attributes	AutoJump
				AutoJumpMin	10
				AutoJumpMax	10
				Attributes	AlwaysCrit
			}
		}
		
		// Main 3
		// Gaspasser
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave5_Samurai1
			
			Name	Wave5_Main3
			
			TotalCount	12
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	25
			
			TotalCurrency	250
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Pyro_Gaspasser_Explove
				}
				TFBot
				{
					Template	T_TFBot_Giant_Sniper_Huntsman_Penetration_Hyper
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic
				}
			}
		}
		
		// TankBuster
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave5_Samurai1
			
			Name	Wave5_Main3
			
			TotalCount	30
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			
			TotalCurrency	150
			
			TFBot
			{
				Template	T_TFBot_Soldier_TankBuster
			}
		}
		
		// Hyper Scout
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave5_Samurai1
			
			Name	Wave5_Main3
			
			TotalCount	6
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	15
			WaitBetweenSpawns	20
			
			TotalCurrency	150
			
			TFBot
			{
				Template	T_TFBot_Giant_Scout_Hyper
			}
		}
	}
	
	//////////
	// WAVES
	//////////
	
	///////////////////////////////////////////////////////////////////////
	// Wave 6
	// Starting Currency		: 9000
	// Total (in this wave) 	: 1700 + 100 (bonus)
	// Total (when wave ends) 	: 8500 + 1700 + 600 (bonus) = 10800
	///////////////////////////////////////////////////////////////////////
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		// Main 1
		// Hyper Demoknight
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave6_Main1
			
			TotalCount	60
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Demoknight_Hyper
			}
		}
		
		// Tank 1
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave6_Tank1
			
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	15
			WaitBetweenSpawns	0
			
			TotalCurrency	200
			
			Tank
			{
				Health	45000
				Name	Tank
				Speed	75
				StartingPathTrackNode	"tank_path_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		
		// Hyper Natascha
		WaveSpawn
		{
			Where	spawnbot_flank
			
			Name	Wave6_Main1
			
			TotalCount	42
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	10
			
			TotalCurrency	150
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Heavy_Natascha_Hyper
				}
				TFBot
				{
					Template	T_TFBot_Medic_Long_Quickfix
				}
			}
		}
		
		// Giant Hyper Barrage
		WaveSpawn
		{
			Where	spawnbot
			
			Name	Wave6_Main1
			
			TotalCount	12
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	15
			WaitBetweenSpawns	0
			
			TotalCurrency	200
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Barrage_Hyper
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Regen
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic
				}
			}
		}
		
		// Main 2
		// Hyper Engi
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave6_Main1
			
			Name	Wave6_Engi1
			
			TotalCount	4
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	60
			
			TotalCurrency	0
			
			Support	1
			
			TFBot
			{
				Template	T_TFBot_Engineer_Sentry_Teleporter_Hyper
				Attributes	IgnoreFlag
				TelePortWhere	spawnbot
				TelePortWhere	spawnbot_flank
			}
		}
		
		// Tank 2
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave6_Main1
			
			Name	Wave6_Tank2
			
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	20
			WaitBetweenSpawns	0
			
			TotalCurrency	150
			
			Tank
			{
				Health	40000
				Name	Tank
				Speed	75
				StartingPathTrackNode	"tank_path_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		
		// Hyper Burst Fire
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave6_Main1
			
			Name	Wave6_Main2
			
			TotalCount	52
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	8
			
			TotalCurrency	100
			
			TFBot
			{
				Template	T_TFBot_Soldier_Burst_Expert
			}
		}
		
		// Hyper Heal-On-Kill 
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave6_Main1
			
			Name	Wave6_Main2
			
			TotalCount	9
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	0
			
			TotalCurrency	200
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavy_Deflector_Healonkill_Hyper
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Uber
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Uber
				}
			}
		}
		
		// Hyper Pyro
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave6_Main1
			
			Name	Wave6_Main2
			
			TotalCount	8
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	0
			
			TotalCurrency	150
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Pyro_Hyper
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Shield_Extended_Quickheal
				}
			}
		}
		
		// Main 3
		// Hyper Loch
		WaveSpawn
		{
			Where	spawnbot_flank
			
			WaitForAllDead	Wave6_Main2
			
			Name	Wave6_Main3
			
			TotalCount	20
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			Support	1
			
			TFBot
			{
				Template	T_TFBot_Demo_Loch_Tankbuster
				Attributes	AlwaysCrit
			}
		}
		
		// Hyper Soda
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave6_Main2
			
			Name	Wave6_Main3
			
			TotalCount	20
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			Support	1
			
			TFBot
			{
				Template	T_TFBot_Pyro_Dragon_Hyper
				Attributes	AlwaysCrit
			}
		}
		
		// Hyper Super Bonk
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave6_Main2
			
			Name	Wave6_Main3
			
			TotalCount	12
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	20
			
			TotalCurrency	150
			
			TFBot
			{
				Template	T_TFBot_Giant_Scout_Fast_Bonk
			}
		}
		
		// Tank 3
		WaveSpawn
		{
			Where	spawnbot
			
			WaitForAllDead	Wave6_Main2
			
			Name	Wave6_Tank3
			
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	30
			WaitBetweenSpawns	0
			
			TotalCurrency	100
			
			Tank
			{
				Health	40000
				Name	Tank
				Speed	75
				StartingPathTrackNode	"tank_path_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
	}