// Blastaway (Advanced 1)
// Hanami Mission Set 1 (Payday 2 names)
// By Tindall Berry

#base robot_giant.pop
#base robot_standard.pop
#base robot_hanami.pop
population
{
	StartingCurrency	1100
	RespawnWaveTime	4
	CanBotsAttackWhileInSpawnRoom	no
	FixedRespawnWaveTime	Yes
	Advanced	1
	Mission // Sentry Busters
	{
		Objective	DestroySentries
		Where	spawnbot_mission_sentrybuster
		BeginAtWave	1
		RunForThisManyWaves	7
		InitialCooldown	30
		CooldownTime	45
		DesiredCount	1
		RandomChoice
		{
			TFBot
			{
				Template	T_TFBot_Hanami_SentryBuster
			}
			TFBot
			{
				Template	T_TFBot_Hanami_SentryBuster
			}
			TFBot
			{
				Template	T_TFBot_Hanami_SentryBuster
			}
			TFBot
			{
				Template	T_TFBot_Hanami_SentryBuster
			}
			TFBot
			{
				Template	T_TFBot_Hanami_SentryBuster
			}
			TFBot
			{
				Template	T_TFBot_Hanami_SentryBuster_Bomber
			}
			TFBot
			{
				Template	T_TFBot_Hanami_SentryBuster_Bomber
			}
			TFBot
			{
				Template	T_TFBot_Hanami_SentryBuster_Charge
			}
			TFBot
			{
				Template	T_TFBot_Hanami_SentryBuster_Charge
			}
		}
	}
	Mission // Wave 2 Snipers
	{
		Objective	Sniper
		Where	spawnbot_mission_sniper
		BeginAtWave	2
		RunForThisManyWaves	1
		InitialCooldown	40
		CooldownTime	40
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Hanami_Sniper
		}
	}
	Mission // Wave 4 Heal on Kill Snipers
	{
		Objective	Sniper
		Where	spawnbot_mission_sniper
		BeginAtWave	4
		RunForThisManyWaves	1
		InitialCooldown	45
		CooldownTime	45
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Hanami_Sniper_HealOnKill
		}
	}
	Mission // Wave 5 Sleeper Snipers
	{
		Objective	Sniper
		Where	spawnbot_mission_sniper
		BeginAtWave	5
		RunForThisManyWaves	1
		InitialCooldown	45
		CooldownTime	20
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Hanami_Sniper_Sleeper
		}
	}
	Mission // Wave 6 Machina Snipers
	{
		Objective	Sniper
		Where	spawnbot_mission_sniper
		BeginAtWave	6
		RunForThisManyWaves	1
		InitialCooldown	90
		CooldownTime	30
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Hanami_Sniper_ShootingStar
		}
	}
	Mission // Wave 7 Razorback Snipers
	{
		Objective	Sniper
		Where	spawnbot_mission_sniper
		BeginAtWave	7
		RunForThisManyWaves	1
		InitialCooldown	20
		CooldownTime	30
		DesiredCount	3
		TFBot
		{
			Template	T_TFBot_Hanami_Sniper_Razorback
		}
	}
	Mission // Wave 1 Spies
	{
		Objective	Spy
		Where	spawnbot_mission_spy
		BeginAtWave	1
		RunForThisManyWaves	1
		InitialCooldown	20
		CooldownTime	30
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Hanami_Spy
		}
	}
	Mission // Wave 3 Spies
	{
		Objective	Spy
		Where	spawnbot_mission_spy
		BeginAtWave	3
		RunForThisManyWaves	1
		InitialCooldown	30
		CooldownTime	40
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Hanami_Spy
		}
	}
	Mission // Wave 5 Kunai Spies
	{
		Objective	Spy
		Where	spawnbot_mission_spy
		BeginAtWave	5
		RunForThisManyWaves	1
		InitialCooldown	35
		CooldownTime	30
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Hanami_Spy_Kunai
		}
	}
	Mission // Wave 7 Eternal Reward Spies
	{
		Objective	Spy
		Where	spawnbot_mission_spy
		BeginAtWave	7
		RunForThisManyWaves	1
		InitialCooldown	45
		CooldownTime	40
		DesiredCount	3
		TFBot
		{
			Template	T_TFBot_Hanami_Spy_YER
		}
	}
	Mission // Wave 1 Engineers
	{
		Objective	Engineer
		Where	spawnbot
		BeginAtWave	1
		RunForThisManyWaves	1
		InitialCooldown	60
		CooldownTime	60
		DesiredCount	1
		TFBot
		{
			Template	T_TFBot_Hanami_Engineer_Teleport
			ClassIcon	engineer
			TeleportWhere	spawnbot
			TeleportWhere	spawnbot_flank
			TeleportWhere	spawnbot_river
			TeleportWhere	spawnbot_river_slow
			TeleportWhere	spawnbot_invasion
		}
	}
	Mission // Wave 3 Engineers
	{
		Objective	Engineer
		Where	spawnbot
		BeginAtWave	3
		RunForThisManyWaves	1
		InitialCooldown	60
		CooldownTime	60
		DesiredCount	1
		TFBot
		{
			Template	T_TFBot_Hanami_Engineer_Teleport
			ClassIcon	engineer
			TeleportWhere	spawnbot
			TeleportWhere	spawnbot_flank
			TeleportWhere	spawnbot_river
			TeleportWhere	spawnbot_river_slow
			TeleportWhere	spawnbot_invasion
		}
	}
	Mission // Wave 7 Engineers
	{
		Objective	Engineer
		Where	spawnbot
		BeginAtWave	7
		RunForThisManyWaves	1
		InitialCooldown	60
		CooldownTime	60
		DesiredCount	1
		TFBot
		{
			Template	T_TFBot_Hanami_Engineer_Teleport
			ClassIcon	engineer
			TeleportWhere	spawnbot
			TeleportWhere	spawnbot_flank
			TeleportWhere	spawnbot_river
			TeleportWhere	spawnbot_river_slow
			TeleportWhere	spawnbot_invasion
		}
	}
/////////////////
//WAVES
//POPFILE PAYOUT
//START $1100
//DROP W1 $600 / W2 $700 / W3 $700 / W4 $900 / W5 $700 / W6 $1000 / W7 $900
//START: $1100 / DROP: $5700 / TOTAL: $6600 / TOTAL PLUS BONUS: $7200
/////////////////	

//WAVE 1  /////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// 4 Giant Sandman Scouts, (60)
// A - 35 Heavyweight Champs, (140)
// A - 2 Squads; 1 Giant Detonator Pyro, 1 Quick Fix Medic, (100)
// B1 - 24 Heavies, (120)
// B2 - 2 Squads; 1 Giant Detonator Pyro, 1 Quick Fix Medic, (100)
// C - 1 Giant Booster Heavy, (50)
// Support - Lightweight Champs, (30)
// Spy mission active
// Engineer mission active
// Cash at start is $1100
// Total cash in this wave is $600
// Running Total cash plus bonus cash is $1800
///////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_1bomb_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // 4 Giant Sandman Scouts
		{
			TotalCurrency	60
			TotalCount	4
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	60
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Scout_Giant_Sandman
			}
		}
		WaveSpawn // A - 35 Heavyweight Champs
		{
			Name	Wave1a
			TotalCurrency	140
			TotalCount	35
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	5
			WaitBetweenSpawns	10
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Heavy_KGB
			}
		}
		WaveSpawn // A - 2 Squads; 1 Giant Detonator Pyro, 1 Quick Fix Medic
		{
			Name	Wave1a
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	20
			WaitBetweenSpawns	25
			Where	spawnbot_flank
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Pyro_Giant_Detonator
					ClassIcon	pyro_flare_giant
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_QuickFix
				}
			}
		}
		WaveSpawn // B1 - 24 Heavies
		{
			Name	Wave1b1
			WaitForAllDead	Wave1a
			TotalCurrency	120
			TotalCount	24
			MaxActive	8
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Where	spawnbot
			FirstSpawnOutput
			{
				Target	bomb2_spawn_relay
				Action	Trigger
			}
			TFBot
			{
				Template	T_TFBot_Hanami_Heavy
				Skill	Easy
			}
		}
		WaveSpawn // B2 - 2 Squads; 1 Giant Detonator Pyro, 1 Quick Fix Medic
		{
			Name	Wave1b2
			WaitForAllDead	Wave1a
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	30
			Where	spawnbot_river_slow
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Pyro_Giant_Detonator
					ClassIcon	pyro_flare_giant
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_QuickFix
				}
			}
		}
		WaveSpawn // C - 1 Giant Booster Heavy
		{
			Name	Wave1c
			WaitForAllSpawned	Wave1b2
			TotalCurrency	50
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	35
			WaitBetweenSpawns	0
			Where	spawnbot_river_slow
			TFBot
			{
				Template	T_TFBot_Hanami_Heavy_Giant_Booster
			}
		}
		WaveSpawn // Support - Lightweight Champs
		{
			TotalCurrency	30
			TotalCount	10
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	30
			WaitBetweenSpawnsAfterDeath	5
			Support	1
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Heavy_GRU
			}
		}
	}
//WAVE 2  /////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// 1 Tank, (250)
// A - 5 Squads; 1 Heal on Kill Pyro, 1 Quick Uber Medic, (40)
// B - 3 Squads; 1 Giant Rapid Fire Bowman, 1 Quick Uber Medic, (120)
// B - 28 Heal on Kill Pyros, (140)
// Support - Random Spawned Scouts, Bonk Scouts, (150)
// Sniper mission active
// Cash at start is $1800
// Total cash in this wave is $700
// Running Total cash plus bonus cash is $2600
///////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_1bomb_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // 1 Tank
		{
			TotalCurrency	250
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			Tank
			{
				Health	27500
				Name	"tankboss"
				Speed	75
				StartingPathTrackNode	tank_start_main
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		WaveSpawn // A - 5 Squads; 1 Heal on Kill Pyro, 1 Quick Uber Medic
		{
			Name	Wave2a
			TotalCurrency	40
			TotalCount	10
			MaxActive	10
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	5
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Pyro_HealOnKill
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
			}
		}
		WaveSpawn // B - 3 Squads; 1 Giant Rapid Fire Bowman, 1 Quick Uber Medic
		{
			Name	Wave2b
			WaitForAllSpawned	Wave2a
			TotalCurrency	120
			TotalCount	6
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	40
			Where	spawnbot_river
			FirstSpawnOutput
			{
				Target	bomb2_spawn_relay
				Action	Trigger
			}
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Sniper_Giant_Bow_RapidFire
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
			}
		}
		WaveSpawn // B - 28 Heal on Kill Pyros
		{
			Name	Wave2b
			WaitForAllSpawned	Wave2a
			TotalCurrency	140
			TotalCount	28
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	20
			WaitBetweenSpawns	5
			Where	spawnbot_flank
			TFBot
			{
				Template	T_TFBot_Hanami_Pyro_HealOnKill
			}
		}
		WaveSpawn // Support - Random Spawned Scouts, Bonk Scouts
		{
			TotalCurrency	150
			TotalCount	30
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	60
			WaitBetweenSpawns	5
			Support	1
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Scout
					Skill	Easy
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Scout_Bonk
					ClassIcon	scout_bonk
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Scout_Bonk
					ClassIcon	scout_bonk
				}
			}
		}
	}
//WAVE 3  /////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// 5 Giant Bonk Scouts, (100)
// A - 40 Pyros, (160)
// 12 Squads; 1 Heater Heavy, 1 Quick Uber Medic, (120)
// A - 15 Steel Gauntlets, (150)
// B - 24 Direct Hit Soldiers, (120)
// Support - Sandman Scouts, (50)
// Spy mission active
// Engineer mission active
// Cash at start is $2600
// Total cash in this wave is $700
// Running Total cash plus bonus cash is $3400
///////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_1bomb_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // 5 Giant Bonk Scouts
		{
			TotalCurrency	100
			TotalCount	5
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	1
			WaitBetweenSpawns	40
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Scout_Giant_Bonk
				ClassIcon	scout_bonk_giant
			}
		}
		WaveSpawn // A - 40 Pyros
		{
			Name	Wave3a
			TotalCurrency	160
			TotalCount	40
			MaxActive	5
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	10
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Pyro
			}
		}
		WaveSpawn // 12 Squads; 1 Heater Heavy, 1 Quick Uber Medic
		{
			TotalCurrency	120
			TotalCount	24
			MaxActive	5
			SpawnCount	4
			WaitBeforeStarting	15
			WaitBetweenSpawns	25
			Where	spawnbot_flank
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Heavy_Heater
					Skill	Easy
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
			}
		}
		WaveSpawn // A - 15 Steel Gauntlets
		{
			Name	Wave3a
			TotalCurrency	150
			TotalCount	15
			MaxActive	4
			SpawnCount	3
			WaitBeforeStarting	25
			WaitBetweenSpawns	25
			Where	spawnbot_river
			FirstSpawnOutput
			{
				Target	bomb2_spawn_relay
				Action	Trigger
			}
			TFBot
			{
				Template	T_TFBot_Hanami_Heavy_SteelFist
				ClassIcon	heavy_steelfist
			}
		}
		WaveSpawn // B - 24 Direct Hit Soldiers
		{
			Name	Wave3b
			WaitForAllSpawned	Wave3a
			TotalCurrency	120
			TotalCount	24
			MaxActive	12
			SpawnCount	4
			WaitBeforeStarting	15
			WaitBetweenSpawns	3
			Where	spawnbot_river
			FirstSpawnOutput
			{
				Target	bomb3_spawn_relay
				Action	Trigger
			}
			TFBot
			{
				Template	T_TFBot_Hanami_Soldier_DirectHit
				ClassIcon	soldier_directhit
			}
		}
		WaveSpawn // Support - Sandman Scouts
		{
			TotalCurrency	50
			TotalCount	16
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	40
			WaitBetweenSpawns	0
			Support	1
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Scout_Sandman
			}
		}
	}
//WAVE 4  /////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// A - 35 Random Spawned Pyros, Bowmen, (105)
// A - 1 Squad; 1 Giant Nuke Demo, 4 Quick Uber Medics, (50)
// B - 1 Tank, (175)
// B - 44 Random Spawned Pyros, Bowmen, (125)
// B - 1 Squad; 1 Giant Nuke Demo, 4 Quick Uber Medics, (50)
// C - 1 Tank, (175)
// C - 30 Conch Soldiers, (150)
// C - 1 Squad; 1 Giant Nuke Demo, 4 Quick Uber Medics, (50)
// Support - Force-a-Nature Scouts, (20)
// Heal on Kill Sniper mission active
// Cash at start is $3400
// Total cash in this wave is $900
// Running Total cash plus bonus cash is $4400
///////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_1bomb_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // A - 35 Random Spawned Pyros, Bowmen
		{
			Name	Wave4a
			TotalCurrency	105
			TotalCount	35
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Pyro
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Pyro
					Skill	Hard
					Attributes	AlwaysFireWeapon
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Sniper_Bow
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Sniper_Bow
				}
			}
		}
		WaveSpawn // A - 1 Squad; 1 Giant Nuke Demo, 4 Quick Uber Medics
		{
			Name	Wave4a
			TotalCurrency	50
			TotalCount	5
			MaxActive	5
			SpawnCount	5
			WaitBeforeStarting	20
			WaitBetweenSpawns	0
			Where	spawnbot
			FirstSpawnOutput
			{
				Target	bomb2_spawn_relay
				Action	Trigger
			}
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Demoman_Giant_Nuke
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
			}
		}
		WaveSpawn // B - 1 Tank
		{
			Name	Wave4b
			WaitForAllDead	Wave4a
			TotalCurrency	175
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	5
			WaitBetweenSpawns	0
			Tank
			{
				Health	20000
				Name	"tankboss"
				Speed	75
				StartingPathTrackNode	tank_start_main
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		WaveSpawn // B - 44 Random Spawned Pyros, Bowmen
		{
			Name	Wave4b
			WaitForAllDead	Wave4a
			TotalCurrency	125
			TotalCount	44
			MaxActive	12
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	2
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Pyro
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Pyro
					Skill	Hard
					Attributes	AlwaysFireWeapon
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Sniper_Bow
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Sniper_Bow
				}
			}
		}
		WaveSpawn // B - 1 Squad; 1 Giant Nuke Demo, 4 Quick Uber Medics
		{
			Name	Wave4b
			WaitForAllDead	Wave4a
			TotalCurrency	50
			TotalCount	5
			MaxActive	5
			SpawnCount	5
			WaitBeforeStarting	35
			WaitBetweenSpawns	0
			Where	spawnbot_flank
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Demoman_Giant_Nuke
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
			}
		}
		WaveSpawn // C - 1 Tank
		{
			Name	Wave4c
			WaitForAllSpawned	Wave4b
			TotalCurrency	175
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			Tank
			{
				Health	20000
				Name	"tankboss"
				Speed	75
				StartingPathTrackNode	tank_start_main
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		WaveSpawn // C - 30 Conch Soldiers
		{
			Name	Wave4c
			WaitForAllDead	Wave4b
			TotalCurrency	150
			TotalCount	30
			MaxActive	12
			SpawnCount	2
			WaitBeforeStarting	5
			WaitBetweenSpawns	1
			Where	spawnbot_river_slow
			FirstSpawnOutput
			{
				Target	bomb3_spawn_relay
				Action	Trigger
			}
			TFBot
			{
				Template	T_TFBot_Hanami_Soldier_Conch
			}
		}
		WaveSpawn // C - 1 Squad; 1 Giant Nuke Demo, 4 Quick Uber Medics
		{
			Name	Wave4c
			WaitForAllDead	Wave4b
			TotalCurrency	50
			TotalCount	5
			MaxActive	5
			SpawnCount	5
			WaitBeforeStarting	30
			WaitBetweenSpawns	0
			Where	spawnbot_river
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Demoman_Giant_Nuke
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber_Quick
				}
			}
		}
		WaveSpawn // Support - Force-a-Nature Scouts
		{
			TotalCurrency	20
			TotalCount	10
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	30
			WaitBetweenSpawnsAfterDeath	5
			Support	1
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Scout_FaN
			}
		}
	}
//WAVE 5  /////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// A - Chief Burst Fire Soldier, (100)
// B1 - 25 Jumping Scouts, (75)
// B2 - 7 Giant Scouts, (105)
// C1 - 18 Deflector Heavies, (90)
// C2 - 3 Squads; 1 Giant Blast Soldier, 1 Giant Regen Medic, (120)
// D - 24 Burst Fire Demos, (120)
// B Support - Bread Bite Heavies, (90)
// Sleeper Sniper mission active
// Kunai Spy mission active
// Cash at start is $4400
// Total cash in this wave is $700
// Running Total cash plus bonus cash is $5200
///////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_1bomb_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // A - Chief Burst Fire Soldier
		{
			Name	Wave5a
			TotalCurrency	100
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	1
			WaitBetweenSpawns	0
			Where	spawnbot_chief
			TFBot
			{
				Template	T_TFBot_Hanami_Soldier_Chief_BurstFire
			}
		}
		WaveSpawn // B1 - 25 Jumping Scouts
		{
			Name	Wave5b1
			WaitForAllDead	Wave5a
			TotalCurrency	75
			TotalCount	25
			MaxActive	15
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	0.5
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Scout_Jump
				ClassIcon	scout_jumping
			}
		}
		WaveSpawn // B2 - 7 Giant Scouts
		{
			Name	Wave5b2
			WaitForAllDead	Wave5a
			TotalCurrency	105
			TotalCount	7
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	25
			Where	spawnbot
			FirstSpawnOutput
			{
				Target	bomb2_spawn_relay
				Action	Trigger
			}
			TFBot
			{
				Template	T_TFBot_Hanami_Scout_Giant
			}
		}
		WaveSpawn // C1 - 18 Deflector Heavies
		{
			Name	Wave5c1
			WaitForAllSpawned	Wave5b1
			TotalCurrency	90
			TotalCount	18
			MaxActive	9
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where	spawnbot_flank
			TFBot
			{
				Template	T_TFBot_Hanami_Heavy_Deflector
				Skill	Normal
			}
		}
		WaveSpawn // C2 - 3 Squads; 1 Giant Blast Soldier, 1 Giant Regen Medic
		{
			Name	Wave5c2
			WaitForAllSpawned	Wave5b1
			TotalCurrency	120
			TotalCount	6
			MaxActive	3
			SpawnCount	2
			WaitBeforeStarting	5
			WaitBetweenSpawns	45
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Soldier_Giant_Blast
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Giant_Regen
				}
			}
		}
		WaveSpawn // D - 24 Burst Fire Demos
		{
			Name	Wave5d
			WaitForAllSpawned	Wave5c1
			TotalCurrency	120
			TotalCount	24
			MaxActive	12
			SpawnCount	6
			WaitBeforeStarting	10
			WaitBetweenSpawns	5
			Where	spawnbot_river
			FirstSpawnOutput
			{
				Target	bomb3_spawn_relay
				Action	Trigger
			}
			TFBot
			{
				Template	T_TFBot_Hanami_Demoman_BurstFire
			}
		}
		WaveSpawn // B Support - Bread Bite Heavies
		{
			WaitForAllDead	Wave5a
			TotalCurrency	90
			TotalCount	30
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	5
			WaitBetweenSpawns	10
			Support	1
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Heavy_Bread
			}
		}
	}
//WAVE 6  /////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// A - 8 Squads; 1 Booster Heavy, 1 Uber Medic, (80)
// A - 18 Soldiers, (70)
// A - 1 Squad; 1 Giant Crit Bowman, 1 Giant Quick Fix Medic, (50)
// B - 35 Burst Heal Demos, (140)
// B - 2 Squads; 1 Giant Heal on Kill Heavy, 3 Uber Medics, (160)
// C - 2 Squads; 1 Giant Heal on Kill Heavy, 4 Buff Soldiers, 3 Uber Medics, (320)
// Support - Mitten Heavies, (70)
// Support - Fan O'War Scouts, (110)
// Machina Sniper mission active
// Engineer mission active
// Cash at start is $5200
// Total cash in this wave is $1000
// Running Total cash plus bonus cash is $6300
///////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_1bomb_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // A - 8 Squads; 1 Booster Heavy, 1 Uber Medic
		{
			Name	Wave6a
			TotalCurrency	80
			TotalCount	16
			MaxActive	8
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Heavy_Booster
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber
				}
			}
		}
		WaveSpawn // A - 18 Soldiers
		{
			Name	Wave6a
			TotalCurrency	70
			TotalCount	18
			MaxActive	6
			SpawnCount	6
			WaitBeforeStarting	20
			WaitBetweenSpawns	15
			Where	spawnbot_flank
			LastSpawnOutput
			{
				Target	bomb2_spawn_relay
				Action	Trigger
			}
			TFBot
			{
				Template	T_TFBot_Hanami_Soldier
			}
		}
		WaveSpawn // A - 1 Squad; 1 Giant Crit Bowman, 1 Giant Quick Fix Medic
		{
			Name	Wave6a
			TotalCurrency	50
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	35
			WaitBetweenSpawns	0
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Sniper_Giant_Bow
					Attributes	AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Giant_QuickFix
				}
			}
		}
		WaveSpawn // B - 35 Burst Heal Demos
		{
			Name	Wave6b
			WaitForAllDead	Wave6a
			TotalCurrency	140
			TotalCount	35
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Where	spawnbot
			LastSpawnOutput
			{
				Target	bomb3_spawn_relay
				Action	Trigger
			}
			TFBot
			{
				Template	T_TFBot_Hanami_Demoman_Burst_Heal
			}
		}
		WaveSpawn // B - 2 Squads; 1 Giant Heal on Kill Heavy, 3 Uber Medics
		{
			Name	Wave6b
			WaitForAllDead	Wave6a
			TotalCurrency	160
			TotalCount	8
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	25
			Where	spawnbot_river
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Heavy_Giant_HealOnKill
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber
				}
			}
		}
		WaveSpawn // C - 2 Squads; 1 Giant Heal on Kill Heavy, 4 Buff Soldiers, 3 Uber Medics
		{
			Name	Wave6c
			WaitForAllDead	Wave6b
			TotalCurrency	320
			TotalCount	16
			MaxActive	16
			SpawnCount	8
			WaitBeforeStarting	0
			WaitBetweenSpawns	25
			Where	spawnbot_river
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Heavy_Giant_HealOnKill
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Soldier_Buff
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Soldier_Buff
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Soldier_Buff
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Soldier_Buff
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Uber
				}
			}
		}
		WaveSpawn // Support - Mitten Heavies
		{
			TotalCurrency	70
			TotalCount	24
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	10
			Support	1
			Where	spawnbot_flank
			TFBot
			{
				Template	T_TFBot_Hanami_Heavy_Mittens
			}
		}
		WaveSpawn // Support - Fan O'War Scouts
		{
			TotalCurrency	110
			TotalCount	36
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	30
			WaitBetweenSpawns	15
			Support	1
			Where	spawnbot_river
			TFBot
			{
				Template	T_TFBot_Hanami_Scout_FanOWar
			}
		}
	}
//WAVE 7  /////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// 1 Tank, (100)
// A - 40 Cow Mangler Soldiers, (120)
// B - 2 Squads; 1 Giant Heal on Kill Deflector, 1 Giant Uber Medic, (80)
// B - 12 Squads; 1 Bomber Demo, 1 Kritzkrieg Medic, (120)
// C - 1 Tank, (100)
// C - 3 Squads; 1 Giant Phlogistinator Pyro, 1 Giant Uber Medic, (90)
// C - 24 Crit Rapid Fire Bowmen, (120)
// Support - Soldiers, (50)
// D Support - Soldiers, (120)
// Razorback Sniper mission active
// Eternal Reward Spy mission active
// Engineer mission active
// Cash at start is $6300
// Total cash in this wave is $900
// Running Total cash plus bonus cash is $7200
///////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_1bomb_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // 1 Tank
		{
			TotalCurrency	100
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			Tank
			{
				Health	30000
				Name	"tankboss"
				Speed	75
				StartingPathTrackNode	tank_start_main
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		WaveSpawn // A - 40 Cow Mangler Soldiers
		{
			Name	Wave7a
			TotalCurrency	120
			TotalCount	40
			MaxActive	15
			SpawnCount	5
			WaitBeforeStarting	10
			WaitBetweenSpawns	3
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Soldier_Mangler
			}
		}
		WaveSpawn // B - 2 Squads; 1 Giant Heal on Kill Deflector, 1 Giant Uber Medic
		{
			Name	Wave7b
			WaitForAllSpawned	Wave7a
			TotalCurrency	80
			TotalCount	4
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	45
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Heavy_Giant_Deflector_HealOnKill
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Giant_Uber
				}
			}
		}
		WaveSpawn // B - 12 Squads; 1 Bomber Demo, 1 Kritzkrieg Medic
		{
			Name	Wave7b
			WaitForAllSpawned	Wave7a
			TotalCurrency	120
			TotalCount	24
			MaxActive	12
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	5
			Where	spawnbot_flank
			FirstSpawnOutput
			{
				Target	bomb2_spawn_relay
				Action	Trigger
			}
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Demoman_Bomber
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Kritzkrieg
				}
			}
		}
		WaveSpawn // C - Final Tank
		{
			Name	Wave7c
			WaitForAllSpawned	Wave7b
			TotalCurrency	100
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			Tank
			{
				Health	30000
				Name	"tankboss"
				Speed	75
				Skin	1
				StartingPathTrackNode	tank_start_main
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		WaveSpawn // C - 3 Squads; 1 Giant Phlogistinator Pyro, 1 Giant Uber Medic
		{
			Name	Wave7c
			WaitForAllDead	Wave7b
			TotalCurrency	90
			TotalCount	6
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	5
			WaitBetweenSpawns	30
			Where	spawnbot_river
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Hanami_Pyro_Giant_Phlog
				}
				TFBot
				{
					Template	T_TFBot_Hanami_Medic_Giant_Uber
				}
			}
		}
		WaveSpawn // C - 24 Crit Rapid Fire Bowmen
		{
			Name	Wave7c
			WaitForAllDead	Wave7b
			TotalCurrency	120
			TotalCount	24
			MaxActive	9
			SpawnCount	3
			WaitBeforeStarting	15
			WaitBetweenSpawns	5
			Where	spawnbot_river
			FirstSpawnOutput
			{
				Target	bomb3_spawn_relay
				Action	Trigger
			}
			TFBot
			{
				Template	T_TFBot_Hanami_Sniper_Bow_RapidFire
				Attributes	AlwaysCrit
			}
		}
		WaveSpawn // Support - Soldiers
		{
			TotalCurrency	50
			TotalCount	10
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	45
			WaitBetweenSpawnsAfterDeath	5
			Support	1
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Soldier
				Skill	Hard
			}
		}
		WaveSpawn // C Support - Soldiers
		{
			WaitForAllSpawned	Wave7b
			TotalCurrency	120
			TotalCount	24
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	25
			Support	1
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Hanami_Soldier
				Skill	Hard
			}
		}
	}
}