//Hyperion v9

//spawnbot_mission_sentrybuster
//spawnbot_mission_sniper
//spawnbot_mission_spy
//spawnbot
//spawnbot_low
//spawnbot_high
//tank_path_a_1 outside
//tank_path_b_1 cave

#base robot_giant.pop
#base robot_standard.pop

WaveSchedule													
{

	StartingCurrency 600
	RespawnWaveTime 4
	CanBotsAttackWhileInSpawnRoom no

	Mission	// Sentry Busters - all
	{
		Objective DestroySentries

		InitialCooldown 15
		Where spawnbot_mission_sentrybuster
		BeginAtWave 1
		RunForThisManyWaves 7
		CooldownTime 30

            TFBot
			{
				Template T_TFBot_SentryBuster
            }
	}

	Mission	// Sniper wave 1-4
	{
		Objective Sniper

		InitialCooldown 20
		Where spawnbot_mission_sniper
		BeginAtWave 1
		RunForThisManyWaves 4
		CooldownTime 30
		DesiredCount 2

		TFBot
		{
			Template T_TFBot_Sniper
			Skill Expert
			CharacterAttributes
			{
				"damage bonus"	1.0
			}
		}
	}
	
	Mission	// Sniper wave 5-6
	{
		Objective Sniper

		InitialCooldown 20
		Where spawnbot_mission_sniper
		BeginAtWave 5
		RunForThisManyWaves 2
		CooldownTime 30
		DesiredCount 4

		TFBot
		{
			Template T_TFBot_Sniper_Sydney_Sleeper
			Skill Expert
		}
	}	
	
	Mission // Spy wave 2-3
	{
		Objective Spy  

		InitialCooldown 10
		Where spawnbot_mission_spy
		BeginAtWave 2
		RunForThisManyWaves 2
		CooldownTime 45
		DesiredCount 3

		TFBot
		{
			Class Spy
			Skill Expert
			Name Spy
		}
	}
	Mission // Spy wave 6
	{
		Objective Spy  

		InitialCooldown 15
		Where spawnbot_mission_spy
		BeginAtWave 6
		RunForThisManyWaves 1
		CooldownTime 45
		DesiredCount 3

		TFBot
		{
			Class Spy
			Skill Expert
			Name Spy
		}
	}
	

	Wave //01 $700 +100 added
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}

		Checkpoint Yes
	
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave01_01a"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			
			TotalCount 12
			SpawnCount 2
			MaxActive 4
			
			TotalCurrency 100

			Squad
			{
				TFBot
				{
					Template T_TFBot_Heavyweapons_Fist
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave01_01b"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			
			TotalCount 18
			SpawnCount 3
			MaxActive 6
			
			TotalCurrency 100
			TFBot
			
			{
				Template T_TFBot_Heavyweapons_Fist
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Where spawnbot_high
			Name "wave01_01c"
			
			WaitBetweenSpawns 10
			WaitBeforeStarting 0
			
			TotalCount 48
			SpawnCount 6
			MaxActive 16
			
			TotalCurrency 100
			
			TFBot
			
			{
				Template T_TFBot_Scout_Bonk
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Where spawnbot_low
			Name "wave01_01s"
			
			WaitBetweenSpawns 8
			WaitBeforeStarting 30
			WaitForAllDead "wave01_01c"
			
			TotalCount 20
			SpawnCount 2
			MaxActive 8
			Support 1
			
			TotalCurrency 75	
			
			TFBot
			{
				Class Scout
				Attributes AlwaysCrit
				WeaponRestrictions MeleeOnly
				Skill Normal
				ClassIcon scout_bat
			}
		}
		
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave01_02"
			
			WaitBetweenSpawns 40
			WaitBeforeStarting 60
			
			TotalCount 8
			SpawnCount 2
			MaxActive 5
			
			TotalCurrency 200	
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Pyro
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_Giant_Demoman
					Skill Expert
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave01_03"
			
			WaitBetweenSpawns 8
			WaitBeforeStarting 0
			WaitForAllDead "wave01_01a"
			WaitForAllDead "wave01_01b"
			
			TotalCount 20
			SpawnCount 2
			MaxActive 20
			
			TotalCurrency 125	
			
			TFBot
			{
				Class Soldier
				Skill Expert
			}
		}
	}
	Wave //02 $750 +100 added
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}

		Checkpoint Yes
		
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave02_01a"
			
			WaitBetweenSpawns 10
			WaitBeforeStarting 20
			
			TotalCount 3
			SpawnCount 1
			MaxActive 2
			
			TotalCurrency 100
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave02_01aa"
			
			WaitBetweenSpawns 10
			WaitBeforeStarting 20
			
			TotalCount 3
			SpawnCount 1
			MaxActive 2
			
			TotalCurrency 100
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}
		}
		
		WaveSpawn
		{
			Where spawnbot
			Name "wave02_01b"
			
			WaitBetweenSpawns 10
			WaitBeforeStarting 0
			
			TotalCount 36
			SpawnCount 6
			MaxActive 12
			
			TotalCurrency 100
			
			TFBot
			{
				Class Demoman
				Skill Normal
			}
		}
		
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave02_02"
			
			WaitBetweenSpawns 18
			WaitBeforeStarting 0
			WaitForAllDead "wave02_01a"
			
			TotalCount 20
			SpawnCount 5
			MaxActive 11
			
			TotalCurrency 150
			
			Squad
			{
				TFBot
				{
					Class Soldier
					Skill Expert
				}
				TFBot
				{
					Class Soldier
					Skill Expert
				}
				TFBot
				{
					Class Soldier
					Skill Expert
				}			
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Concheror
					Skill Expert
				}
			}
		}
		
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave02_03a"
			
			WaitBetweenSpawns 40
			WaitBeforeStarting 15
			WaitForAllSpawned "wave02_01a"
			
			TotalCount 16
			SpawnCount 4
			MaxActive 8
			
			TotalCurrency 150
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demoman
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		
		WaveSpawn
		{
			Where spawnbot_high
			Where spawnbot_low
			Name "wave02_03b"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			WaitForAllSpawned "wave02_01b"
			
			TotalCount 24
			SpawnCount 4
			MaxActive 10
			Support 1
			
			TotalCurrency 150
			
			Squad
			{
				TFBot
				{
					Class Pyro
					Skill Hard
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickFix
				}
			}
		}
	}
	
	Wave //03 $800 +100 added
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}

		Checkpoint Yes
		
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave03_01a"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			
			TotalCount 2
			SpawnCount 2
			MaxActive 2
			
			TotalCurrency 100
			
			TFBot
			{
				Template T_TFBot_Giant_DemoMan_PrinceTavish
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Where spawnbot_high
			Name "wave03_01b"
			
			WaitBetweenSpawns 4
			WaitBeforeStarting 1
			
			TotalCount 16
			SpawnCount 1
			MaxActive 8
			
			TotalCurrency 100
			
			TFBot
			{
				Class Soldier
				Skill Expert
				Name "Direct Hit Soldier"
				Item "The Direct Hit"
				ClassIcon soldier_directhit_ver2
				Attributes AlwaysCrit
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave03_01c"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 15
			
			TotalCount 12
			SpawnCount 3
			MaxActive 6
			
			TotalCurrency 75
			
			TFBot
			{
				Class Heavyweapons
				Skill Expert
				ClassIcon heavy_deflector
				Item "Deflector"
				
				ItemAttributes
				{
					ItemName "Deflector"
					"attack projectiles" 1	// force ability to shoot down projectiles
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave03_01c"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 15
			
			TotalCount 12
			SpawnCount 3
			MaxActive 6
			
			TotalCurrency 75
			
			TFBot
			{
				Class Heavyweapons
				Skill Expert
				ClassIcon heavy_deflector
				Item "Deflector"
				
				ItemAttributes
				{
					ItemName "Deflector"
					"attack projectiles" 1	// force ability to shoot down projectiles
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Where spawnbot_high
			Name "wave03_01d"
			
			WaitBetweenSpawns 10
			WaitBeforeStarting 10
			WaitForAllSpawned "wave03_01c"
			
			TotalCount 8
			SpawnCount 4
			MaxActive 8
			
			TotalCurrency 50
			
			TFBot
			{
				Class Heavyweapons
				Skill Expert
				ClassIcon heavy_deflector
				Item "Deflector"
				
				ItemAttributes
				{
					ItemName "Deflector"
					"attack projectiles" 1	// force ability to shoot down projectiles
				}
			}
		}
		
		WaveSpawn //TANK
		{
			Name "wave03_02a"
			TotalCount 1
			WaitBeforeStarting 40
			TotalCurrency 100
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}

			Tank
			{
				Health 25000
				Speed 75
				Name "tankboss"
				StartingPathTrackNode "tank_path_a_1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}

			}			
		}
		
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave03_02b"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			WaitForAllSpawned "wave03_01c"
			
			TotalCount 8
			SpawnCount 2
			MaxActive 4
			
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier
				}
				TFBot
				{
					Template T_TFBot_Medic
					Health 300
					Scale 1.2
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Where spawnbot_low
			Name "wave03_02c"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			WaitForAllSpawned "wave03_02b"
			
			TotalCount 25
			SpawnCount 5
			MaxActive 8
			
			TotalCurrency 25
			
			TFBot
			{
				Template T_TFBot_Scout_Sandman_FastCharge
				Attributes AlwaysCrit
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Where spawnbot_low
			Name "wave03_02c"
			
			WaitBetweenSpawns 15
			WaitBeforeStarting 0
			WaitForAllSpawned "wave03_02b"
			
			TotalCount 25
			SpawnCount 4
			MaxActive 8
			
			TotalCurrency 25
			
			TFBot
			{
				Template T_TFBot_Demo_Burst
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave03_02e"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 20
			WaitForAllSpawned "wave03_02b"
			
			TotalCount 4
			SpawnCount 2
			MaxActive 8
			
			TotalCurrency 25
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier
				}
				TFBot
				{
					Template T_TFBot_Medic
					Health 300
					Scale 1.2
				}
			}
		}
		
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave03_03"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			WaitForAllDead "wave03_01c"
			
			TotalCount 30
			SpawnCount 4
			MaxActive 5
			Support 1
			
			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Demoman_Knight
					Skill Expert
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Demoman_Knight
					Skill Expert
					Attributes AlwaysCrit
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave03_04"
			
			WaitBetweenSpawns 45
			WaitBeforeStarting 30
			WaitForAllSpawned "wave03_02b"
			
			TotalCount 8
			SpawnCount 4
			MaxActive 8
			
			TotalCurrency 75
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
	}
	
	Wave //04 $800 +100 added
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}

		Checkpoint Yes
		
		WaveSpawn
		{
			Where spawnbot_low
			Where spawnbot_high
			Name "wave04_01"
			
			WaitBetweenSpawns 4
			WaitBeforeStarting 0
			
			TotalCount 30
			SpawnCount 5
			MaxActive 10
			
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_ScorchShot_FastShot
					Attributes AlwaysCrit
					Attributes AlwaysFireWeapon
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_ScorchShot_FastShot
					Attributes AlwaysCrit
					Attributes AlwaysFireWeapon
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_Scout_SunStick
				}
				TFBot
				{
					Template T_TFBot_Scout_SunStick
				}
				TFBot
				{
					Template T_TFBot_Scout_SunStick
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Where spawnbot_low
			Name "wave04_02a"
			
			WaitBetweenSpawns 10
			WaitBeforeStarting 0
			WaitForAllSpawned "wave04_01"
			
			TotalCount 8
			SpawnCount 1
			MaxActive 4
			
			TotalCurrency 100
			

			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}

		}
		WaveSpawn
		{
			Where spawnbot_mission_spy
			Name "wave04_02b"
			
			WaitBetweenSpawns 0
			WaitBeforeStarting 0
			WaitForAllSpawned "wave04_01"
			
			TotalCount 64
			SpawnCount 8
			MaxActive 12
			
			TotalCurrency 100
			
			TFBot
			{
				Name "Shpee"
				Class Spy
				Skill Expert
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Where spawnbot_low
			Name "wave04_02c"
			
			WaitBetweenSpawns 10
			WaitBeforeStarting 20
			
			TotalCount 24
			SpawnCount 2
			MaxActive 6
			
			TotalCurrency 50
			

			TFBot
			{
				Template T_TFBot_Soldier_Extended_Concheror
			}

		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave04_03a"
			
			WaitBetweenSpawns 40
			WaitBeforeStarting 20
			WaitForAllSpawned "wave04_02a"
			
			TotalCount 12
			SpawnCount 6
			MaxActive 12
			
			TotalCurrency 150
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave04_03bb"
			
			WaitBetweenSpawns 12
			WaitBeforeStarting 10
			WaitForAllSpawned "wave04_02b"
			
			TotalCount 32
			SpawnCount 8
			MaxActive 12
			
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Sniper_Huntsman_Spammer
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Demo_Burst
				}
				TFBot
				{
					Template T_TFBot_Demo_Burst
				}	
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave04_04a"
			
			WaitBetweenSpawns 40
			WaitBeforeStarting 30
			WaitForAllSpawned "wave04_02b"
			
			TotalCount 2
			SpawnCount 2
			MaxActive 2
			
			TotalCurrency 150
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Where spawnbot_low
			Name "wave04_04b"
			
			WaitBetweenSpawns 10
			WaitBeforeStarting 90
			WaitForAllSpawned "wave04_02b"
			
			TotalCount 8
			SpawnCount 2
			MaxActive 4
			
			TotalCurrency 50
			
			Support 1

			TFBot
			{
				Class Heavyweapons
				Skill Hard
				Name "Natascha Heavy"
				Item "Natascha"
				ClassIcon heavy_natascha_nys
				Attributes AlwaysCrit
			}

		}
	}
	Wave //05 $800 +100 added
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}

		Checkpoint Yes
		
		WaveSpawn //TANK
		{
			Name "wave05_01a"
			TotalCount 1
			
			WaitBetweenSpawns 60
			WaitBeforeStarting 0
			
			TotalCurrency 75
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}

			Tank
			{
				Health 18000
				Speed 75
				Name "tankboss1"
				StartingPathTrackNode "tank_path_a_1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}

			}			
		}
		WaveSpawn //TANK
		{
			Name "wave05_01b"
			TotalCount 1
			
			WaitBetweenSpawns 60
			WaitBeforeStarting 30
			
			TotalCurrency 75
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}

			Tank
			{
				Health 18000
				Speed 75
				Name "tankboss2"
				StartingPathTrackNode "tank_path_b_1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}

			}			
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave05_02a"
			
			WaitBetweenSpawns 12
			WaitBeforeStarting 0
			
			TotalCount 18
			SpawnCount 3
			MaxActive 12
			
			TotalCurrency 75
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Soldier_RocketShotgun
				}
				TFBot
				{
					Class Heavyweapons
				}
				TFBot
				{
					Template T_TFBot_Demo_Burst
				}
				
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave05_02aa"
			
			WaitBetweenSpawns 12
			WaitBeforeStarting 0
			
			TotalCount 30
			SpawnCount 3
			MaxActive 12
			
			TotalCurrency 75
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Soldier_RocketShotgun
				}
				TFBot
				{
					Class Heavyweapons
				}
				TFBot
				{
					Template T_TFBot_Demo_Burst
				}
				
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave05_03a"
			
			WaitBetweenSpawns 30
			WaitBeforeStarting 5
			WaitForAllSpawned "wave05_01a"
			WaitForAllSpawned "wave05_01b"
			WaitForAllSpawned "wave05_02a"
			
			TotalCount 8
			SpawnCount 2
			MaxActive 4
			
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer_Reload
				}
				TFBot
				{
					Class Medic
					Name "Kritzkrieg Medic"
					Health 40 //was 40-makes them use the ubercharge as soon as they jump in
					ClassIcon medic_kritz
					Skill Normal
					Attributes SpawnWithFullCharge
					Attributes AlwaysCrit
					Item "The Kritzkrieg"
					ItemAttributes
					{
					ItemName "The Kritzkrieg"
					//imitate (nearly) infinite ubercharge
					"heal rate bonus" 20
					"ubercharge rate bonus" 100
					"uber duration bonus" 200 
					}
					ItemAttributes
					{
					ItemName "TF_WEAPON_SYRINGEGUN_MEDIC"
					"damage penalty" 0.1
					}
					CharacterAttributes
					{
					"heal rate bonus" 0.1
					//because of their 40hp instead of 150 lets give them +400% resistance. imitates a 200hp medic.
					"dmg taken from bullets reduced" 0.2
					"dmg taken from fire reduced" 0.2
					"dmg taken from blast reduced" 0.2
					"dmg taken from crit reduced" 0.2
					"bot medic uber health threshold" 500
					"move speed bonus"	10
					}
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Where spawnbot_high
			Name "wave05_03b"
			
			WaitBetweenSpawns 15
			WaitBeforeStarting 25
			WaitForAllSpawned "wave05_01a"
			WaitForAllSpawned "wave05_01b"
			WaitForAllSpawned "wave05_02a"
			
			TotalCount 10
			SpawnCount 2
			MaxActive 6
			
			TotalCurrency 80
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demoman
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Where spawnbot_high
			Name "wave05_03bb"
			
			WaitBetweenSpawns 15
			WaitBeforeStarting 25
			WaitForAllSpawned "wave05_01a"
			WaitForAllSpawned "wave05_01b"
			WaitForAllSpawned "wave05_02a"
			WaitForAllSpawned "wave05_03b"
			
			TotalCount 10
			SpawnCount 2
			MaxActive 6
			
			TotalCurrency 20
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demoman
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave05_03c"
			
			WaitBetweenSpawns 10
			WaitBeforeStarting 10
			WaitForAllDead "wave05_02a"
			
			TotalCount 60
			SpawnCount 4
			MaxActive 14
			
			TotalCurrency 50
			
			TFBot
			{
				Template T_TFBot_Scout_Melee
				Attributes AlwaysCrit
				ClassIcon scout_bat
			}
		}
		WaveSpawn //TANK
		{
			Name "wave05_04a"
			TotalCount 1
			
			WaitBetweenSpawns 60
			WaitBeforeStarting 60
			WaitForAllSpawned "wave05_03b"
			
			TotalCurrency 100
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}

			Tank
			{
				Health 20000
				Speed 75
				Name "tankboss3"
				StartingPathTrackNode "tank_path_a_1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}

			}			
		}
		WaveSpawn //TANK
		{
			Name "wave05_04b"
			TotalCount 1
			
			WaitBetweenSpawns 60
			WaitBeforeStarting 90
			WaitForAllSpawned "wave05_03b"
			
			TotalCurrency 100
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}

			Tank
			{
				Health 20000
				Speed 75
				Name "tankboss4"
				StartingPathTrackNode "tank_path_b_1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}

			}			
		}
		WaveSpawn
		{
			Where spawnbot_high
			Where spawnbot_low
			Name "wave05_05"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			WaitForAllSpawned "wave05_03b"
			
			TotalCount 30
			SpawnCount 5
			MaxActive 10
			
			TotalCurrency 50
			
			Support 1
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Heavy_IronFist_Airblast
				}
				TFBot
				{
					Template T_TFBot_Heavy_IronFist_Airblast
				}
				TFBot
				{
					Template T_TFBot_Heavy_IronFist_Airblast
				}
				TFBot
				{
					Template T_TFBot_Heavy_IronFist_Airblast
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
					Attributes AlwaysCrit
				}
			}
		}
	}
	
	Wave //06 $850 +100 added
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}

		Checkpoint Yes
		
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave06_01a"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 1
			
			TotalCount 8
			SpawnCount 4
			MaxActive 8
			
			TotalCurrency 75
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer
					Health 5000
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave06_01b"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			
			TotalCount 3
			SpawnCount 2
			MaxActive 3
			
			TotalCurrency 75
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_FAN
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Where spawnbot_low
			Name "wave06_01c"
			
			WaitBetweenSpawns 8
			WaitBeforeStarting 1
			
			TotalCount 40
			SpawnCount 4
			MaxActive 10
			
			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Class Heavyweapons
					Skill Expert
					ClassIcon heavy_deflector
					Item "Deflector"
					
					ItemAttributes
					{
						ItemName "Deflector"
						"attack projectiles" 1	// force ability to shoot down projectiles
					}
				}
				TFBot
				{
					Class Heavyweapons
					Skill Expert
					ClassIcon heavy_deflector
					Item "Deflector"
					
					ItemAttributes
					{
						ItemName "Deflector"
						"attack projectiles" 1	// force ability to shoot down projectiles
					}
				}
				TFBot
				{
					Class Heavyweapons
					Skill Expert
					ClassIcon heavy_deflector
					Item "Deflector"
					
					ItemAttributes
					{
						ItemName "Deflector"
						"attack projectiles" 1	// force ability to shoot down projectiles
					}
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Concheror
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave06_02a"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 20
			WaitForAllSpawned "wave06_01a"
			
			TotalCount 8
			SpawnCount 4
			MaxActive 8
			
			TotalCurrency 75
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer
					Health 5000
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave06_02b"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 30
			WaitForAllSpawned "wave06_01a"
			
			TotalCount 8
			SpawnCount 4
			MaxActive 8
			
			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_RapidFire
					Health 5000
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Where spawnbot_low
			Name "wave06_02c"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 10
			WaitForAllSpawned "wave06_01a"
			
			TotalCount 3
			SpawnCount 2
			MaxActive 3
			
			TotalCurrency 75

			TFBot
			{
				Template T_TFBot_Giant_Scout_FAN
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Where spawnbot_low
			Name "wave06_02d"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 10
			WaitForAllSpawned "wave06_01a"
			
			TotalCount 30
			SpawnCount 5
			MaxActive 10
			
			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Class Pyro
					Attributes AlwaysFireWeapon
					Skill Hard
				}
				TFBot
				{
					Template T_TFBot_Medic_SlowRecharge
					ClassIcon ""
				}
				TFBot
				{
					Class Pyro
					Attributes AlwaysFireWeapon
					Skill Hard
				}
				TFBot
				{
					Template T_TFBot_Medic_SlowRecharge
					ClassIcon ""
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Concheror
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Name "wave06_03a"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 20
			WaitForAllSpawned "wave06_02a"
			
			TotalCount 8
			SpawnCount 4
			MaxActive 8
			
			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_RapidFire
					Health 5000
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_low
			Where spawnbot_high
			Name "wave06_03b"
			
			WaitBetweenSpawns 30
			WaitBeforeStarting 30
			WaitForAllSpawned "wave06_02b"
			
			TotalCount 8
			SpawnCount 2
			MaxActive 4
			
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons_HealOnKill
					
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.3
						"airblast vulnerability multiplier" 0.3
						"override footstep sound set" 2
					}
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave06_03c"
			
			WaitBetweenSpawns 20
			WaitBeforeStarting 10
			WaitForAllSpawned "wave06_02a"
			
			TotalCount 3
			SpawnCount 2
			MaxActive 3
			
			TotalCurrency 50

			TFBot
			{
				Template T_TFBot_Giant_Scout_FAN
			}
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave06_03d"
			
			WaitBetweenSpawns 5
			WaitBeforeStarting 10
			WaitForAllSpawned "wave06_02a"
			
			TotalCount 30
			SpawnCount 2
			MaxActive 10
			
			TotalCurrency 50
			
			Support Limited
			
			TFBot
			{
				Class Heavyweapons
				Name "Shotgun Heavy"
				ClassIcon heavy_shotgun
				Skill Expert
				Health 450
				Scale 1.2
				WeaponRestrictions SecondaryOnly
				MaxVisionRange 1200
				//Attributes HoldFireUntilFullReload
				
				ItemAttributes
				{
					ItemName "TF_WEAPON_SHOTGUN_HWG"
					"fire rate bonus" 2.5
					"bullets per shot bonus" 5
					"damage penalty" 0.5
					"faster reload rate" 0.1
				}
				CharacterAttributes
				{
					"damage force reduction" 0.3
					"airblast vulnerability multiplier" 0.3
					"override footstep sound set" 2
				}
			}
		}
		WaveSpawn //TANK
		{
			Name "wave06_04a"
			TotalCount 1
			
			WaitBetweenSpawns 60
			WaitBeforeStarting 0
			WaitForAllSpawned "wave06_03a"
			
			TotalCurrency 100
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}

			Tank
			{
				Health 50000
				Speed 75
				Name "tankboss"
				StartingPathTrackNode "tank_path_a_1"
				Skin 1
				
				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}

			}			
		}
		WaveSpawn
		{
			Where spawnbot_high
			Name "wave06_04b"
			
			WaitBetweenSpawns 5
			WaitBeforeStarting 10
			WaitForAllSpawned "wave06_03a"
			
			TotalCount 4
			SpawnCount 2
			MaxActive 4
			
			TotalCurrency 50
			
			Support 1

			TFBot
			{
				Class Sniper
				Name "Bowman Rapid Fire"
				Item "The Huntsman"
				ClassIcon sniper_bow
				Skill Expert
				Attributes AlwaysCrit
				
				ItemAttributes
				{
					ItemName "The Huntsman"
					"fire rate bonus" 0.6
				}
			}
		}
	}
	
	Wave //07 boss $500
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}

		Checkpoint Yes
		
		WaveSpawn
		{
			Where spawnbot
			Name "wave07_01"
			
			WaitBetweenSpawns 30
			WaitBeforeStarting 0
			
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			
			TotalCurrency 0
			
			TFBot
			{
				Name "The Lob Slob" //lel
				Class Demoman
				Skill Expert
				WeaponRestrictions PrimaryOnly
				Health 30000
				Scale 1.9
				Item "The Iron Bomber"
				Attributes MiniBoss
				Attributes UseBossHealthBar
				
				CharacterAttributes
				{
					"move speed bonus"	0.5
					"damage force reduction" 0.01
					"airblast vulnerability multiplier" 0.01
					"override footstep sound set" 3
					"airblast vertical vulnerability multiplier" 0.01
				}
				ItemAttributes
				{
					ItemName "The Iron Bomber"
					"damage bonus" 1.5
					"faster reload rate" 0.1
					"fire rate bonus" 0.1
					"clip size upgrade atomic" 0.25
					"Projectile speed increased" 1.2
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot
			Name "wave07_01s"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 0
			
			TotalCount 100
			SpawnCount 1
			MaxActive 20
			Support 1
			
			TotalCurrency 500
			
			RandomChoice
			{
				TFBot
				{
					Name "Blast Vaccinator"
					Class Medic
					Skill Expert
					ClassIcon medic_blast
					WeaponRestrictions SecondaryOnly
					Item "The Vaccinator"
					Item "Medic Goggles"
					Attributes SpawnWithFullCharge
					Attributes VaccinatorBlast
					ItemAttributes
					{
						ItemName "The Vaccinator"
						"heal rate bonus" 5
						"medigun blast resist deployed" 2
						"medigun blast resist passive" 2
						"medigun charge is resists" 4
						"uber duration bonus" 200
						"ubercharge rate bonus" 200
					}
					CharacterAttributes
					{
						"bot medic uber health threshold" 500
						"move speed bonus"	10
					}
				}
				TFBot
				{
					Name "Bullet Vaccinator"
					Class Medic
					Skill Expert
					ClassIcon medic_bullet
					WeaponRestrictions SecondaryOnly
					Item "The Vaccinator"
					Item "Medic Goggles"
					Attributes SpawnWithFullCharge
					Attributes VaccinatorBullets
					ItemAttributes
					{
						ItemName "The Vaccinator"
						"heal rate bonus" 5
						"medigun bullet resist deployed" 2
						"medigun bullet resist passive" 2
						"medigun charge is resists" 3
						"uber duration bonus" 200
						"ubercharge rate bonus" 200
					}
					CharacterAttributes
					{
						"bot medic uber health threshold" 500
						"move speed bonus"	10
					}

				}
				TFBot
				{
					Name "Fire Vaccinator"
					Class Medic
					Skill Expert
					ClassIcon medic_fire
					WeaponRestrictions SecondaryOnly
					Item "The Vaccinator"
					Item "Medic Goggles"
					Attributes SpawnWithFullCharge
					Attributes VaccinatorFire
					ItemAttributes
					{
						ItemName "The Vaccinator"
						"heal rate bonus" 5
						"medigun charge is resists" 5
						"medigun fire resist deployed" 2
						"medigun fire resist passive" 2
						"uber duration bonus" 200
						"ubercharge rate bonus" 200
					}
					CharacterAttributes
					{
						"bot medic uber health threshold" 500
						"move speed bonus"	10
					}
				}
				TFBot
				{
					Class Medic
					Name "Kritzkrieg Medic"
					Health 40 //was 40-makes them use the ubercharge as soon as they jump in
					ClassIcon medic_kritz
					Skill Normal
					Attributes SpawnWithFullCharge
					Attributes AlwaysCrit
					Item "The Kritzkrieg"
					ItemAttributes
					{
					ItemName "The Kritzkrieg"
					//imitate (nearly) infinite ubercharge
					"heal rate bonus" 5
					"ubercharge rate bonus" 100
					"uber duration bonus" 200 
					}
					ItemAttributes
					{
					ItemName "TF_WEAPON_SYRINGEGUN_MEDIC"
					"damage penalty" 0.1
					}
					CharacterAttributes
					{
					"heal rate bonus" 0.1
					//because of their 40hp instead of 150 lets give them +400% resistance. imitates a 200hp medic.
					"dmg taken from bullets reduced" 0.2
					"dmg taken from fire reduced" 0.2
					"dmg taken from blast reduced" 0.2
					"dmg taken from crit reduced" 0.2
					"bot medic uber health threshold" 500
					"move speed bonus"	10
					}
				}
			}
		}
	}
}