#base robot_giant.pop
#base robot_standard.pop

WaveSchedule
{

	StartingCurrency		800
	RespawnWaveTime 		7
	CanBotsAttackWhileInSpawnRoom no
	Advanced	1

	Mission // sentry buster
	{
		Objective DestroySentries

		InitialCooldown 30
		Where spawnbot_single_flag
		BeginAtWave 1
		RunForThisManyWaves 6

		CooldownTime 30            

            TFBot
			{
				Template T_TFBot_SentryBuster
            }
	}
	
	Mission // space snipers
	{
		Objective Sniper
		
		InitialCooldown 135
		Where spawnbot_mission_sniper
		BeginAtWave 2
		RunForThisManyWaves 1
		DesiredCount 2
		
		CooldownTime 25
		
			TFBot
			{
				Class Sniper
				Name "Space Sniper"
				ClassIcon sniper
				Skill Hard
				Item "Shooting Star"
				Item "The Razorback"
				Item "The Virtual Viewfinder"
				MaxVisionRange 2500
			}
	}
	
	Mission // low volume spys
	{
		Objective Spy
		
		InitialCooldown 15
		Where spawnbot_mission_spy
		BeginAtWave 3
		RunForThisManyWaves 2
		DesiredCount 2
		
		CooldownTime 40
		
			TFBot
			{
				Class Spy
				Name Spy
				Skill Expert
			}
	}
	
	Mission // regular snipers
	{
		Objective Sniper
		
		InitialCooldown 30
		Where spawnbot_mission_sniper
		BeginAtWave 5
		RunForThisManyWaves 1
		DesiredCount 2
		
		CooldownTime 30
		
			TFBot
			{
				Class Sniper
				Name Sniper
				Skill Hard
				MaxVisionRange 2500
			}
	}
	
	Mission // croc snipers
	{
		Objective Sniper
		InitialCooldown 25
		Where spawnbot_mission_sniper
		BeginAtWave 6
		RunForThisManyWaves 1
		DesiredCount 2
		
		CooldownTime 40
		
			TFBot
			{
				Class Sniper
				Name "Croc-o-Sniper"
				Skill Hard
				ClassIcon sniper_sydneysleeper
				Item "The Sydney Sleeper"
				Item "Darwin's Danger Shield"
				Item "The Bushwacka"
				Item "Ol' Snaggletooth"
				MaxVisionRange 3000
			}
	}
	
	Mission // tryhard spys
	{
		Objective Spy
		InitialCooldown 60
		Where spawnbot_mission_spy
		BeginAtWave 6
		RunForThisManyWaves 1
		DesiredCount 4
		
		CooldownTime 47
		
			TFBot
			{
				Class Spy
				Name "Kunai Spy"
				Skill Expert
				Item "Conniver's Kunai"
				Item "The Diamondback"
			}
	}
	
	Mission // engineers
	{
		Objective Engineer
		InitialCooldown 150
		Where spawnbot
		BeginAtWave 6
		RunForThisManyWaves 1
		DesiredCount 1
		
		CooldownTime 50
		
			TFBot
			{
				Template T_TFBot_Engineer_Sentry_Teleporter
				Name "Engineer Gaming"
				Item "Golden Wrench"
				TeleportWhere spawnbot
				TeleportWhere spawnbot_invasion
				TeleportWhere spawnbot_left
				TeleportWhere spawnbot_right
			}
	}
	
	//WAVE 1 //Currency 700 (rn) ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes
		
		WaveSpawn //WAVE 1a-1: Shotgun and Flare Pyros
		{
			Name "1a-1"
			Where spawnbot
			TotalCount 30
			MaxActive 12
			SpawnCount 6
			WaitBetweenSpawns 10
			WaitBeforeStarting 0
			TotalCurrency 150

			RandomChoice
			{			
				TFBot
				{
					Class Pyro
					Name "Shotgun Pyro"
					ClassIcon heavy_shotgun
					Skill Normal
					WeaponRestrictions SecondaryOnly
					
					ItemAttributes
						{
							ItemName "TF_WEAPON_SHOTGUN_PYRO"
							"faster reload rate" 0.1
							"fire rate bonus" 2.5
							"bullets per shot bonus" 3
							"damage bonus" 0.33
						}
				}
				
				TFBot
				{
					Template T_TFBot_Pyro_Flaregun
				}
			}
		}
		
		WaveSpawn //WAVE 1a-2: Hyper League Scouts
		{
			Name "1a-2"
			WaitForAllSpawned "1a-1"
			Where spawnbot
			TotalCount 24
			MaxActive 8
			SpawnCount 4
			WaitBetweenSpawns 9
			WaitBeforeStarting 8
			TotalCurrency 100
			
				TFBot
				{
					Template T_TFBot_Scout_Sandman_FastCharge
				}
		}
		
		WaveSpawn //WAVE 1a-2: Burst-Fire Demos, Left
		{
			Name "1a-2"
			WaitForAllDead "1a-1"
			Where spawnbot_left
			TotalCount 4
			MaxActive 4
			SpawnCount 2
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			TotalCurrency 25
			
				TFBot
				{
					Template T_TFBot_Demo_Burst
				}
		}
		
		WaveSpawn //WAVE 1a-2: Burst-Fire Demos, Right
		{
			Name "1a-2"
			WaitForAllDead "1a-1"
			Where spawnbot_right
			TotalCount 4
			MaxActive 4
			SpawnCount 2
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			TotalCurrency 25
			
				TFBot
				{
					Template T_TFBot_Demo_Burst
				}
		}
		
		WaveSpawn //WAVE 1a-2: Pyros
		{
			Name "1a-2"
			WaitForAllDead "1a-1"
			Where spawnbot
			TotalCount 12
			MaxActive 6
			SpawnCount 3
			WaitBetweenSpawns 12
			WaitBeforeStarting 4
			TotalCurrency 50
			
				TFBot
				{
					Class Pyro
					Skill Hard
				}
		}
		
		WaveSpawn //WAVE 1b: Giant Crit Soldier
		{
			Name "1b"
			WaitForAllDead "1a-2"
			Where spawnbot
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBetweenSpawns 30
			WaitBeforeStarting 30
			TotalCurrency 150
			
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Crit
				}
		}
		
		WaveSpawn //WAVE 1b: Burst-Fire Demos, Left
		{
			Name "1b"
			WaitForAllDead "1a-2"
			Where spawnbot_left
			TotalCount 4
			MaxActive 2
			SpawnCount 2
			WaitBetweenSpawns 85
			WaitBeforeStarting 20
			TotalCurrency 25
			
				TFBot
				{
					Template T_TFBot_Demo_Burst
				}
		}
		
		WaveSpawn //WAVE 1b: Burst-Fire Demos, Right
		{
			Name "1b"
			WaitForAllDead "1a-2"
			Where spawnbot_right
			TotalCount 4
			MaxActive 2
			SpawnCount 2
			WaitBetweenSpawns 85
			WaitBeforeStarting 20
			TotalCurrency 25
			
				TFBot
				{
					Template T_TFBot_Demo_Burst
				}
		}
		
		WaveSpawn //WAVE 1s-Pyros: Main
		{
			Name "1s-Pyros"
			WaitForAllDead "1a-2"
			Where spawnbot
			TotalCount 40
			MaxActive 8
			SpawnCount 4
			WaitBetweenSpawns 12
			WaitBeforeStarting 10
			TotalCurrency 100
			
			Support 1
			
				TFBot
				{
					Class Pyro
					Skill Normal
				}
		}
		
		WaveSpawn //WAVE 1s-Pyros: TopLeft, Flare Gun
		{
			Name "1s-Pyros"
			WaitForAllDead "1a-2"
			Where spawnbot_left
			TotalCount 10
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawns 5
			WaitBeforeStarting 45
			TotalCurrency 25
			
			Support 1
			
				TFBot
				{
					Template T_TFBot_Pyro_Flaregun
				}
		}
		
		WaveSpawn //WAVE 1s-Pyros: TopRight, Flare Gun
		{
			Name "1s-Pyros"
			WaitForAllDead "1a-2"
			Where spawnbot_right
			TotalCount 10
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawns 5
			WaitBeforeStarting 45
			TotalCurrency 25
			
			Support 1
			
				TFBot
				{
					Template T_TFBot_Pyro_Flaregun
				}
		}
		
		
	}
	
	
	//WAVE 2 //Currency 900 (rn) ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes
		
		WaveSpawn //WAVE 2a-1: 30 total, 10 active, Scout (1/2 of wave)
		{
			Name "2a-1"
			Where spawnbot
			TotalCount 30
			MaxActive 10
			SpawnCount 5
			WaitBetweenSpawns 7
			WaitBeforeStarting 0
			TotalCurrency 75
	
				TFBot
				{
					Class Scout
					Name "Squire"
					ClassIcon scout
					Skill Hard
					Item "Three-Rune Blade"
					Item "The Glasgow Great Helm"
					WeaponRestrictions MeleeOnly
				}
		}		
		WaveSpawn //WAVE 2a-1: 18 total, 6 active, Demoknight first
		{
			Name "2a-1"
			Where spawnbot
			TotalCount 18
			MaxActive 6
			SpawnCount 3
			WaitBetweenSpawns 7
			WaitBeforeStarting 1
			TotalCurrency 50

			TFBot
			{
				Class Demoman
				Name "Demoknight"
				ClassIcon demoknight
				Skill Hard
				Item "The Chargin' Targe"
				Item "The Eyelander"
				Item "The Glasgow Great Helm"
				WeaponRestrictions MeleeOnly
				ItemAttributes
				{
					ItemName "The Eyelander"
					"critboost on kill" 3
				}
			}
		}	
		WaveSpawn //WAVE 2a-2: 20 total, 8 active, Bowman
		{
			Name "2a-2"
			WaitForAllSpawned "2a-1"
			Where spawnbot_invasion
			TotalCount 16
			MaxActive 8
			SpawnCount 4
			WaitBetweenSpawns 12
			WaitBeforeStarting 3
			TotalCurrency 50
		
				TFBot
				{
					Class Sniper
					Name "Bowman"
					Skill Hard
					ClassIcon sniper_bow
					WeaponRestrictions PrimaryOnly
					Item "The Huntsman"
					Item "The Glasgow Great Helm"

					ItemAttributes
					{
						ItemName "The Huntsman"
						"damage bonus" 0.5
					}
				}
		}		
		WaveSpawn //WAVE 2a-3: 20 total, 12 active, Crossbowman
		{
			Name "2a-2"
			WaitForAllDead "2a-1"
			Where spawnbot
			TotalCount 24
			MaxActive 12
			SpawnCount 4
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			TotalCurrency 75

			TFBot
			{
				Class Medic
				Name "Crossbowman"
				Skill Hard
				ClassIcon medic
				WeaponRestrictions PrimaryOnly
				Item "The Crusader's Crossbow"
				Item "The Glasgow Great Helm"
			}
		}
		WaveSpawn //WAVE 2b-1: 30 total, 10 active, Scout (1/2 of wave)
		{
			Name "2b-1"
			WaitForAllDead "2a-2"
			Where spawnbot
			TotalCount 30
			MaxActive 10
			SpawnCount 5
			WaitBetweenSpawns 7
			WaitBeforeStarting 10
			TotalCurrency 75
		
				TFBot
				{
					Class Scout
					Name "Space Police"
					ClassIcon scout
					Skill Normal
					Item "The C.A.P.P.E.R"
					Item "The Virtual Viewfinder"
					WeaponRestrictions SecondaryOnly
				}
		}		
		WaveSpawn //WAVE 2b-1: 18 total, 6 active, Phlog Pyro
		{
			Name "2b-1"
			WaitForAllDead "2a-2"
			Where spawnbot
			TotalCount 18
			MaxActive 6
			SpawnCount 3
			WaitBetweenSpawns 7
			WaitBeforeStarting 10
			TotalCurrency 50
		
				TFBot
				{
					Class Pyro
					Name "Space Cremator"
					ClassIcon pyro
					Skill Normal
					Item "The Phlogistinator"
					Item "The Virtual Viewfinder"
					WeaponRestrictions PrimaryOnly
					Attributes AlwaysFireWeapon
				}
		}
		WaveSpawn //WAVE 2b-2: 24 total, 12 active, Cow Soldier
		{
			Name "2b-2"
			WaitForAllDead "2b-1"
			Where spawnbot
			TotalCount 24
			MaxActive 12
			SpawnCount 4
			WaitBetweenSpawns 5
			WaitBeforeStarting 8
			TotalCurrency 100
		
				TFBot
				{
					Class Soldier
					Name "Space Soldier"
					ClassIcon soldier
					Skill Normal
					Item "The Cow Mangler 5000"
					Item "The Virtual Viewfinder"
					WeaponRestrictions PrimaryOnly
				}
		}
		WaveSpawn //WAVE 2s-BatScouts: 20 total, 4 active, Bat Scout
		{
			Name "2s-BatScouts"
			WaitForAllSpawned "2b-1"
			Where spawnbot_invasion
			TotalCount 20
			MaxActive 4
			SpawnCount 2
			WaitBetweenSpawns 11
			WaitBeforeStarting 0
			TotalCurrency 40
			
			Support 1
		
				TFBot
				{
					Class Scout
					Name "Space Police"
					ClassIcon scout
					Skill Hard
					Item "Batsaber"
					Item "The Virtual Viewfinder"
					WeaponRestrictions MeleeOnly
				}
		}
		WaveSpawn //WAVE 2s-Engineer: 2 total, 2 active, Engineer telein
		{
			Name "2s-Engineer"
			WaitForAllSpawned "2b-2"
			Where spawnbot
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 66
			WaitBeforeStarting 4
			TotalCurrency 20
			
			Support Limited
		
				TFBot
				{
					Class Engineer
					Name "Space Engineer"
					Skill Expert
					Health 275
					Attributes TeleportToHint
					TeleportWhere spawnbot
					TeleportWhere spawnbot_invasion
					Item "The Pomson 6000"
					Item "The C.A.P.P.E.R"
					Item "The Eureka Effect"
					Item "The Virtual Viewfinder"
				}
		}
		WaveSpawn //WAVE 2c GIANT DEMOKNIGHTS
		{
			Name "2c"
			WaitForAllDead "2b-2"
			Where spawnbot
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 30
			WaitBeforeStarting 30
			TotalCurrency 50
		
				TFBot
				{
					Class Demoman
					ClassIcon demoknight_giant
					Name "Giant Demoknight"
					Skill Expert
					Health 3300
					Item "The Glasgow Great Helm"
					Item "The Chargin' Targe"
					Item "The Eyelander"
					Item "Ali Baba's Wee Booties"
					WeaponRestrictions MeleeOnly
					Attributes MiniBoss
					ItemAttributes
					{
						ItemName "The Eyelander"
						"critboost on kill" 3
					}
					CharacterAttributes
					{
						"move speed bonus" 0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
					}
				}
		}
		WaveSpawn //WAVE 2c GIANT SOLDIERS
		{
			Name "2c"
			WaitForAllDead "2b-2"
			Where spawnbot
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 30
			WaitBeforeStarting 45
			TotalCurrency 50

		
				TFBot
				{
					Class Soldier
					Name "Giant Space Soldier"
					ClassIcon soldier_giant
					Skill Expert
					Health 3800
					Item "The Cow Mangler 5000"
					Item "The Virtual Viewfinder"
					WeaponRestrictions PrimaryOnly
					Attributes HoldFireUntilFullReload
					Attributes MiniBoss
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
					}
				}
		}
		WaveSpawn //WAVE 2c Pyro + Bowman Combo
		{
			Name "2c"
			WaitForAllDead "2b-2"
			Where spawnbot
			TotalCount 24
			MaxActive 8
			SpawnCount 4
			WaitBetweenSpawns 11
			WaitBeforeStarting 10
			TotalCurrency 125

			Squad
			{			
				TFBot
				{
					Class Sniper
					Name "Bowman"
					Skill Hard
					ClassIcon sniper_bow
					WeaponRestrictions PrimaryOnly
					Item "The Huntsman"
					Item "The Glasgow Great Helm"

					ItemAttributes
					{
						ItemName "The Huntsman"
						"damage bonus" 0.5
					}
				}
				TFBot
				{
					Class Sniper
					Name "Bowman"
					Skill Hard
					ClassIcon sniper_bow
					WeaponRestrictions PrimaryOnly
					Item "The Huntsman"
					Item "The Glasgow Great Helm"

					ItemAttributes
					{
						ItemName "The Huntsman"
						"damage bonus" 0.5
					}
				}
				TFBot
				{
					Class Sniper
					Name "Bowman"
					Skill Hard
					ClassIcon sniper_bow
					WeaponRestrictions PrimaryOnly
					Item "The Huntsman"
					Item "The Glasgow Great Helm"

					ItemAttributes
					{
						ItemName "The Huntsman"
						"damage bonus" 0.5
					}
				}
				TFBot
				{
					Class Pyro
					Name "Space Cremator"
					ClassIcon pyro
					Skill Normal
					Item "The Phlogistinator"
					Item "The Virtual Viewfinder"
					WeaponRestrictions PrimaryOnly
					Attributes AlwaysFireWeapon
				}
			}
		}
		WaveSpawn //WAVE 2s-Squires: 20 total, 4 active, Sword Scout
		{
			Name "2s-Squires"
			WaitForAllDead "2b-2"
			Where spawnbot_invasion
			TotalCount 20
			MaxActive 4
			SpawnCount 1
			WaitBetweenSpawns 5
			WaitBeforeStarting 10
			TotalCurrency 40
			
			Support 1
		
				TFBot
				{
					Class Scout
					Name "Squire"
					ClassIcon scout
					Skill Hard
					Item "Three-Rune Blade"
					Item "The Glasgow Great Helm"
					WeaponRestrictions MeleeOnly
				}
		}
	}
	
	//WAVE 3 //Currency 900 (rn) ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes
		
		WaveSpawn //WAVE 3a: Blast Soldiers, to push they fuckers
		{
			Name "3a"
			Where spawnbot
			TotalCount 24
			MaxActive 12
			SpawnCount 4
			WaitBetweenSpawns 12
			WaitBeforeStarting 0
			TotalCurrency 75

				TFBot
				{
					Template T_TFBot_Soldier_RocketPush
				}
		}
		
		WaveSpawn //WAVE 3a: Giant Tomislav Heavies + Uber Medics, to push forward and get better damage against the pushed back players
		{
			Name "3a"
			Where spawnbot
			TotalCount 8
			MaxActive 4
			SpawnCount 1
			WaitBetweenSpawns 36
			WaitBeforeStarting 6
			TotalCurrency 175
			
			Squad
			{
			
				TFBot
				{
					Class Heavyweapons
					Name "Giant Tomislav Heavy"
					ClassIcon heavy_giant
					Skill Expert
					Health 5000
					Item "Tomislav"
					Item "Capone's Capper"
					WeaponRestrictions PrimaryOnly
					MaxVisionRange 1200
					Attributes MiniBoss
					ItemAttributes
					{
						ItemName "Tomislav"
						"damage bonus"	1.5
					}
					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_Medic
				}
				
				TFBot
				{
					Template T_TFBot_Medic
				}
				
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		
		WaveSpawn //WAVE 3b-1: Tank
		{
			Name "3b-1"
			WaitForAllDead "3a"
			TotalCount 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 0
			TotalCurrency 200
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				 Target boss_spawn_relay                                            
				 Action Trigger                         
			}

			Tank
			{
				Health 20000
				Speed 75
				Name "Normal Tank"
				StartingPathTrackNode "boss_path_a1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}			
		}
		
		WaveSpawn //WAVE 3b-2: Giant Charged Soldier with Medics
		{
			Name "3b-2"
			WaitForAllDead "3a"
			Where spawnbot
			TotalCount 7
			MaxActive 7
			SpawnCount 1
			WaitBeforeStarting 60
			TotalCurrency 100
			
			Squad
			{
			
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Crit
				}
				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
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		
		WaveSpawn //WAVE 3b-3: DemoStream
		{
			Name "3b-3"
			WaitForAllDead "3a"
			Where spawnbot
			TotalCount 20
			MaxActive 8
			SpawnCount 2
			WaitBeforeStarting 35
			WaitBetweenSpawns 8
			TotalCurrency 75
			
			TFBot
			{
				Class Demoman
				Skill Normal
			}
		}
		
		WaveSpawn //WAVE 3b-4: Super Scouts, spawns after tank died
		{
			Name "3b-4"
			WaitForAllDead "3b-2"
			WaitForAllSpawned "3b-3"
			Where spawnbot
			TotalCount 3
			MaxActive 2
			SpawnCount 1
			WaitBeforeStarting 20
			WaitBetweenSpawns 10
			TotalCurrency 75
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}
		}
		
		WaveSpawn //WAVE 3b-5: Heavy + Medic pair
		{
			Name "3b-5"
			WaitForAllDead "3b-4"
			WaitForAllSpawned "3b-3"
			Where spawnbot
			TotalCount 24
			MaxActive 8
			SpawnCount 4
			WaitBeforeStarting 10
			WaitBetweenSpawns 8
			TotalCurrency 120
			
			Squad
			{
				TFBot
				{
					Class Heavyweapons
					Name "Tomislav Heavy"
					Skill Normal
					Item "Tomislav"
					Item "Capone's Capper"
				}
				
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		
		WaveSpawn //WAVE 3s-soldier1
		{
			Name "3s-soldier1"
			WaitForAllDead "3a"
			Where spawnbot
			TotalCount 20
			MaxActive 4
			SpawnCount 4
			WaitBeforeStarting 30
			WaitBetweenSpawns 10
			TotalCurrency 40
			
			Support 1
			
			TFBot
			{
				Class Soldier
				Skill Easy
			}
		}
		
		WaveSpawn //WAVE 3s-soldier2
		{
			Name "3s-soldier2"
			WaitForAllDead "3b-3"
			Where spawnbot_invasion
			TotalCount 20
			MaxActive 6
			SpawnCount 4
			WaitBeforeStarting 5
			WaitBetweenSpawns 10
			TotalCurrency 40
			
			Support 1
			
			TFBot
			{
				Class Soldier
				Skill Normal
			}
		}
		
	}
	
	//WAVE 4 //Currency 1000 (rn) ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes
	
		WaveSpawn //WAVE 4a-1: Giant Conch Soldiers and their squad
		{
			Name "4a-1"
			Where spawnbot
			TotalCount 8
			MaxActive 8
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 30
			TotalCurrency 200
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Extended_Concheror
				}
				TFBot
				{
					Template T_TFBot_Scout_Shortstop
				}
				TFBot
				{
					Template T_TFBot_Scout_Shortstop
				}
				TFBot
				{
					Template T_TFBot_Scout_Shortstop
				}
			}
		}
			
		WaveSpawn //WAVE 4a-2: Bread Heavies... lmfao
		{
			Name "4a-2"
			Where spawnbot
			TotalCount 40
			MaxActive 10
			SpawnCount 4
			WaitBeforeStarting 1
			WaitBetweenSpawns 6
			TotalCurrency 100
			
			TFBot
			{
				Class Heavyweapons
				Name "Bread Champion"
				Skill Expert
				ClassIcon heavy_gru
				WeaponRestrictions MeleeOnly
				Item "The Bread Bite"
				Item "Bread Heads"
				
				CharacterAttributes
				{
					"dmg taken increased" 0.5    //to counteract the jungle inferno change and make them stronger for their late stage appearance
				}
			}
		}
		
		WaveSpawn //WAVE 4a-2: Final Shortstop push
		{
			Name "4a-2"
			WaitForAllDead "4a-1"
			Where spawnbot
			TotalCount 6
			MaxActive 6
			SpawnCount 6
			TotalCurrency 50
			
			TFBot
			{
				Template T_TFBot_Scout_Shortstop
			}
		}
		
		WaveSpawn //WAVE 4s-Scouts: Slow Stream of Scout bots throughout the wave
		{
			Name "4s-Scouts"
			Where spawnbot_invasion
			TotalCount 40
			MaxActive 4
			SpawnCount 2
			WaitBeforeStarting 3
			WaitBetweenSpawns 15
			TotalCurrency 80
			
			Support 1
			
			TFBot
			{
				Class Scout
				Skill Hard
			}
		}
		
		WaveSpawn //WAVE 4b: Giant Pyros
		{
			Name "4b"
			WaitForAllDead "4a-2"
			Where spawnbot
			TotalCount 4
			MaxActive 2
			SpawnCount 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 20
			TotalCurrency 100
			
			TFBot
			{
				Template T_TFBot_Giant_Pyro
				Attributes AlwaysCrit
			}
		}
		
		WaveSpawn //WAVE 4b: Groups of Heavies
		{
			Name "4b"
			WaitForAllDead "4a-2"
			Where spawnbot
			TotalCount 30
			MaxActive 10
			SpawnCount 5
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Heavyweapons_Shotgun
					Attributes AlwaysCrit
				}
				TFBot
				{
					Class Heavyweapons
					Skill Normal
				}
				TFBot
				{
					Class Heavyweapons
					Skill Normal
				}
				TFBot
				{
					Class Heavyweapons
					Skill Normal
				}
				TFBot
				{
					Class Heavyweapons
					Skill Normal
				}
			}
		}
		
		WaveSpawn //WAVE 4c: Fast Tank
		{
			Name "4c"
			WaitForAllDead "4b"
			TotalCount 1
			WaitBeforeStarting 22
			WaitBetweenSpawns 0
			TotalCurrency 150
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				 Target boss_spawn_relay                                            
				 Action Trigger                         
			}

			Tank
			{
				Health 15000
				Speed 100
				Name "Fast Tank"
				StartingPathTrackNode "boss_path_a1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}			
		}
		
		WaveSpawn //WAVE 4c: Slow Tank
		{
			Name "4c"
			WaitForAllDead "4b"
			TotalCount 1
			WaitBeforeStarting 30
			WaitBetweenSpawns 0
			TotalCurrency 200
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				 Target boss_spawn_relay                                            
				 Action Trigger                         
			}

			Tank
			{
				Health 40000
				Speed 50
				Name "Slow Tank"
				StartingPathTrackNode "boss_path_a1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}			
		}
		
		WaveSpawn //WAVE 4s-Gnomes: Holiday Punch Heavies to distract players
		{
			Name "4s-Gnomes"
			WaitForAllDead "4b"
			Where spawnbot_invasion
			TotalCount 20
			MaxActive 14
			SpawnCount 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 1
			TotalCurrency 20
			
			Support 1
			
			TFBot
			{
				Template T_TFBot_Heavyweapons_Gnome
				Item "The All-Father"
				Item "Point and Shoot"
			}
		}
		
		WaveSpawn //WAVE 4s-Engineers: Battle Engineers, build teleporters
		{
			Name "4s-Engineers"
			WaitForAllDead "4b"
			Where spawnbot_invasion
			TotalCount 16
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 0
			
			Support 1
			
			TFBot
			{
				Class Engineer
				Name "Engineer"
				Skill Expert
				Health 275
				TeleportWhere spawnbot_invasion
			}
		}
	
	}
	
	//WAVE 5 //Currency 1100 (rn) ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes
		
		WaveSpawn //WAVE 5: 6 super scouts will spawn at 45 second intervals throughout the wave
		{
			Name "5"
			where spawnbot
			TotalCount 6
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 30
			WaitBetweenSpawns 45
			TotalCurrency 150
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}
			
		}
		
		WaveSpawn //WAVE 5a-1: Long sprawl of pyros, no crit
		{
			Name "5a-1"
			Where spawnbot
			TotalCount 48
			MaxActive 12
			SpawnCount 6
			WaitBeforeStarting 0
			WaitBetweenSpawns 7
			TotalCurrency 100
			
			RandomChoice
			{
				TFBot
				{
					Class Pyro
					Skill Hard
					Item "Brigade Helm"
				}
				TFBot
				{
					Class Pyro
					Skill Hard
					Attributes AlwaysFireWeapon
					Item "Old Guadalajara"
				}
			}
		}
		
		WaveSpawn //WAVE 5a-2: Left Bowman Multi Shot
		{
			Name "5a-2"
			Where spawnbot_left
			TotalCount 6
			MaxActive 3
			SpawnCount 3
			WaitBeforeStarting 5
			WaitBetweenSpawns 15
			TotalCurrency 75
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Sniper_Huntsman_Spammer
					ClassIcon sniper_bow_multi
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		
		WaveSpawn //WAVE 5a-2: Right Bowman Multi Shot
		{
			Name "5a-2"
			Where spawnbot_right
			TotalCount 6
			MaxActive 3
			SpawnCount 3
			WaitBeforeStarting 5
			WaitBetweenSpawns 15
			TotalCurrency 75
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Sniper_Huntsman_Spammer
					ClassIcon sniper_bow_multi
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		
		WaveSpawn //WAVE 5a-1: rapid fire soldier with uber medics
		{
			Name "5a-1"
			WaitForAllDead "5a-2"
			Where spawnbot
			TotalCount 5
			MaxActive 5
			SpawnCount 5
			WaitBeforeStarting 10
			WaitBetweenSpawns 0
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		
		WaveSpawn //WAVE 5b-1: Deflector Heavies
		{
			Name "5b-1"
			WaitForAllDead "5a-1"
			Where spawnbot
			TotalCount 48
			MaxActive 12
			SpawnCount 8
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 100
			
			TFBot
			{
				Class Heavyweapons
				Name "Deflector Heavy"
				ClassIcon heavy_deflector
				Skill Hard
				Item "The U-clank-a"
				Item "Deflector"
				WeaponRestrictions PrimaryOnly
				ItemAttributes
				{
					ItemName "Deflector"
					"attack projectiles" 1
				}
			}
		}
		
		WaveSpawn //WAVE 5b-2: Giant Demo + Medic, First Pair
		{
			Name "5b-2"
			WaitForAllDead "5a-1"
			Where spawnbot
			TotalCount 2
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 0
			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_Burst
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
				}
			}
		}
		
		WaveSpawn //WAVE 5b-3: Giant Demo + Medic + Backup soldiers, Second Pair
		{
			Name "5b-3"
			WaitForAllSpawned "5b-2"
			Where spawnbot
			TotalCount 5
			MaxActive 5
			SpawnCount 5
			WaitBeforeStarting 25
			WaitBetweenSpawns 25
			TotalCurrency 80
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_Burst
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
				}
			}
		}
			
		WaveSpawn //WAVE 5b-4: Giant Demo + Medic + Backup soldiers, Third Pair
		{
			Name "5b-4"
			WaitForAllDead "5b-2"
			WaitForAllSpawned "5b-3"
			Where spawnbot
			TotalCount 5
			MaxActive 5
			SpawnCount 5
			WaitBeforeStarting 25
			WaitBetweenSpawns 25
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_Burst
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
				}
			}
		}
		
		WaveSpawn //WAVE 5b-5: Giant Demo + Medic + Backup soldiers, Third Pair
		{
			Name "5b-1"
			WaitForAllDead "5b-3"
			WaitForAllSpawned "5b-4"
			Where spawnbot
			TotalCount 5
			MaxActive 5
			SpawnCount 5
			WaitBeforeStarting 25
			WaitBetweenSpawns 25
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_Burst
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
				}
			}
		}
		
		WaveSpawn //WAVE 5c: Huo-Long Heater Heavy Boss
		{
			Name "5c"
			WaitForAllDead "5b-1"
			Where spawnbot
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 10
			TotalCurrency 150
			
			Squad
			{
				TFBot
				{
					Class Heavyweapons
					Name "Chief Heater Heavy"
					ClassIcon heavy_heater_giant
					Skill Expert
					Health 54000
					Scale 1.8
					WeaponRestrictions PrimaryOnly
					Item "The Huo Long Heatmaker"
					Item "Warhood"
					Attributes MiniBoss
					Attributes UseBossHealthBar
					ItemAttributes
					{
						ItemName "The Huo Long Heatmaker"
						"damage bonus"	1.2
					}
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.3
						"airblast vulnerability multiplier" 0.3
						"override footstep sound set" 2
					}
				}
			}
		}
		
		WaveSpawn //WAVE 5s-Pyros: TopLeft, Flare Gun
		{
			Name "5s-Pyros"
			WaitForAllDead "5"
			WaitForAllSpawned "5c"
			Where spawnbot_left
			TotalCount 10
			MaxActive 3
			SpawnCount 1
			WaitBetweenSpawns 5
			WaitBeforeStarting 20
			TotalCurrency 10
			
			Support 1
			
				TFBot
				{
					Template T_TFBot_ScorchShot_FastShot
					//Attributes AlwaysCrit
				}
		}
		
		WaveSpawn //WAVE 5s-Pyros: TopRight, Flare Gun
		{
			Name "5s-Pyros"
			WaitForAllDead "5"
			WaitForAllSpawned "5c"
			Where spawnbot_right
			TotalCount 10
			MaxActive 3
			SpawnCount 1
			WaitBetweenSpawns 5
			WaitBeforeStarting 20
			TotalCurrency 10
			
			Support 1
			
				TFBot
				{
					Template T_TFBot_ScorchShot_FastShot
					//Attributes AlwaysCrit
				}
		}
		
	}
	
	
	//WAVE 6 //Currency 1200 (rn) ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes
		
		WaveSpawn //WAVE 6a-1: First Two TankS
		{
			Name "6a-1"
			TotalCount 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 100
			TotalCurrency 200
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				 Target boss_spawn_relay                                            
				 Action Trigger                         
			}

			Tank
			{
				Health 20000
				Speed 75
				Name "Normal Tank"
				StartingPathTrackNode "boss_path_a1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}			
		}
		
		WaveSpawn //WAVE 6a-1: Pairs of Giant Soldiers
		{
			Name "6a-1"
			where spawnbot
			TotalCount 8
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 40
			TotalCurrency 150

				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer
				}
		}
		
		WaveSpawn //WAVE 6a-1: Giant Dragons Fury Pyro. Health on hit.?? maybe
		{
			Name "6a-1"
			Where spawnbot_left
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 30
			TotalCurrency 25
			
			TFBot
			{
				Class Pyro
				Name "Giant Dragon's Fury Pyro"
				ClassIcon pyro_giant
				Skill Expert
				Health 3300
				Item "The Dragon's Fury"
				Item "Dead of Night"
				WeaponRestrictions PrimaryOnly
				Attributes MiniBoss
				ItemAttributes
				{
					ItemName "The Dragon's Fury"
					"damage bonus"	1.5
				}
				CharacterAttributes
				{
					"move speed bonus"	0.5
					"damage force reduction" 0.6
					"airblast vulnerability multiplier" 0.6
					"override footstep sound set" 6
				}
			}
		}
		
		WaveSpawn //WAVE 6a-2: Crit FAN scouts
		{
			Name "6a-2"
			Where spawnbot_invasion
			TotalCount 12
			MaxActive 6
			SpawnCount 1
			WaitBeforeStarting 20
			WaitBetweenSpawns 0
			TotalCurrency 25
			
			TFBot
			{
				Template T_TFBot_Scout_FAN
				Attributes AlwaysCrit
			}
		}
		
		WaveSpawn //WAVE 6a-3: Machine Pistol scouts
		{
			Name "6a-1"
			WaitForAllDead "6a-2"
			Where spawnbot
			TotalCount 42
			MaxActive 6
			SpawnCount 6
			WaitBeforeStarting 5
			WaitBetweenSpawns 10
			TotalCurrency 75
			
			TFBot
			{
				Class Scout
				Skill Expert
				Name "Machine Pistol Scout"
				Item "Pretty Boy's Pocket Pistol"
				Item "Brimmed Bootlegger"
				WeaponRestrictions SecondaryOnly
				ItemAttributes
				{
					ItemName "Pretty Boy's Pocket Pistol"
					"clip size bonus" 2.0
					"fire rate bonus" 0.75
					"faster reload rate" 1.4
				}
			}
		}
		
		WaveSpawn //WAVE 6b-1: Giant Soldier paired with Giant Kritz Medics
		{
			Name "6b-1"
			WaitForAllDead "6a-1"
			where spawnbot_single_flag
			TotalCount 4
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 20
			WaitBetweenSpawns 40
			TotalCurrency 100
			
			Squad
			{

				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer
				}
				
				TFBot
				{
					Class Medic
					Skill Expert
					Name "Giant Kritzkrieg Medic"
					Health 4500
					Item "The Kritzkrieg"
					Item "The Gentleman's Ushanka"
					ClassIcon medic_giant
					Attributes "SpawnWithFullCharge"
					Attributes "MiniBoss"
					Attributes "AlwaysCrit"
					
					ItemAttributes
					{
						ItemName "The Kritzkrieg"
						"ubercharge rate bonus" 1000
					}
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.6
						"airblast vulnerability multiplier" 0.6
						"heal rate bonus" 200
						"bot medic uber health threshold" 5000
					}
					
				}
			}
		}
		
		WaveSpawn //WAVE 6b-2: Loch n Load Spammers
		{
			Name "6b-2"
			WaitForAllDead "6a-1"
			Where spawnbot
			TotalCount 27
			MaxActive 3
			SpawnCount 3
			WaitBeforeStarting 20
			WaitBetweenSpawns 12
			TotalCurrency 50
			
				TFBot
				{
					Class Demoman
					//ClassIcon demo_spammer  --  apparently this does not exist in the base game.
					Skill Expert
					Name "Machine Bomber Demo"
					Item "The Loch-n-Load"
					Item "Conjurer's Cowl"

					ItemAttributes
					{
						ItemName "The Loch-n-Load"
						"clip size bonus" 100.0
						"fire rate bonus" 0.25
						"damage bonus" 0.5
						"faster reload rate" 0.001
						"projectile spread angle penalty" 2
					}
				}
		}
		
		WaveSpawn //WAVE 6b-3: Pyros of varying variety. Covers small bots for the rest of the wave.
		{
			Name "6b-3"
			WaitForAllDead "6a-1"
			Where spawnbot
			TotalCount 80
			MaxActive 5
			SpawnCount 4
			WaitBeforeStarting 29
			WaitBetweenSpawns 6
			TotalCurrency 200
			
			RandomChoice
			{
				TFBot
				{
					Class Pyro
					Skill Expert
				}
				TFBot
				{
					Class Pyro
					Skill Expert
				}
				TFBot
				{
					Class Pyro
					Skill Hard
					Name "Phlog Pyro"
					Item "The Phlogistinator"
					Attributes AlwaysFireWeapon
				}
				TFBot
				{
					Template T_TFBot_Pyro_Flaregun
					Skill Hard
				}
				TFBot
				{
					Class Pyro
					Skill Hard
					Name "Backburner Pyro"
					Item "The Backburner"
					Health 160 //so this thing just isnt a direct upgrade yknow
				}
				TFBot
				{
					Class Pyro
					Skill Hard
					Name "Dragon's Fury Pyro"
					Item "The Dragon's Fury"
				}
			}
		}
		
		WaveSpawn //WAVE 6b-4: Huo-Long Heavies with Giant Kritz Medics
		{
			Name "6b-4"
			WaitForAllDead "6b-1"
			where spawnbot_single_flag
			TotalCount 6
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 20
			WaitBetweenSpawns 50
			TotalCurrency 200
			
			Squad
			{

				TFBot
				{
					Template T_TFBot_Heavyweapons_Heater
				}
				
				TFBot
				{
					Class Medic
					Skill Expert
					Name "Giant Kritzkrieg Medic"
					Health 4500
					Item "The Kritzkrieg"
					Item "The Gentleman's Ushanka"
					ClassIcon medic_giant
					Attributes "SpawnWithFullCharge"
					Attributes "MiniBoss"
					Attributes "AlwaysCrit"
					
					ItemAttributes
					{
						ItemName "The Kritzkrieg"
						"ubercharge rate bonus" 1000
					}
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.6
						"airblast vulnerability multiplier" 0.6
						"heal rate bonus" 200
						"bot medic uber health threshold" 5000
					}
				}
				
				//TFBot
				//{
				//	Class Medic
				//	Skill Expert
				//	Name "Giant Kritzkrieg Medic"
				//	Health 4500
				//	Item "The Kritzkrieg"
				//	Item "The Gentleman's Ushanka"
				//	ClassIcon medic_giant
				//	Attributes "SpawnWithFullCharge"
				//	Attributes "MiniBoss"
				//	Attributes "AlwaysCrit"
				//	
				//	ItemAttributes
				//	{
				//		ItemName "The Kritzkrieg"
				//		"ubercharge rate bonus" 1000
				//	}
				//	CharacterAttributes
				//	{
				//		"move speed bonus"	0.5
				//		"damage force reduction" 0.6
				//		"airblast vulnerability multiplier" 0.6
				//		"heal rate bonus" 200
				//		"bot medic uber health threshold" 5000
				//	}
				//}
			}
		}
		
		WaveSpawn //WAVE 6b-4: Crit Bowmen
		{
			Name "6b-4"
			WaitForAllDead "6b-2"
			where spawnbot_invasion
			TotalCount 24
			MaxActive 4
			SpawnCount 2
			WaitBeforeStarting 20
			WaitBetweenSpawns 6
			TotalCurrency 50
			
			TFBot
			{
				Template T_TFBot_Sniper_Huntsman
				Attributes AlwaysCrit
			}
			
		}
		
		WaveSpawn //WAVE 6b-5: FINAL TANK
		{
			Name "6b-5"
			WaitForAllDead "6b-4"
			TotalCount 1
			WaitBeforeStarting 30
			WaitBetweenSpawns 0
			TotalCurrency 100
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				 Target boss_spawn_relay                                            
				 Action Trigger                         
			}

			Tank
			{
				Health 40000
				Speed 75
				Name "Armored Tank"
				Skin 1
				StartingPathTrackNode "boss_path_a1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}			
		}
		
		WaveSpawn //WAVE 6b-5: FINAL GIANT
		{
			Name "6b-5"
			WaitForAllSpawned "6b-3"
			Where spawnbot_right
			TotalCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0
			TotalCurrency 25
			
			TFBot
			{
				Class Pyro
				Name "Giant Dragon's Fury Pyro"
				ClassIcon pyro_giant
				Skill Expert
				Health 3300
				Item "The Dragon's Fury"
				Item "Dead of Night"
				WeaponRestrictions PrimaryOnly
				Attributes MiniBoss
				ItemAttributes
				{
					ItemName "The Dragon's Fury"
					"damage bonus"	1.5
				}
				CharacterAttributes
				{
					"move speed bonus"	0.5
					"damage force reduction" 0.6
					"airblast vulnerability multiplier" 0.6
					"override footstep sound set" 6
				}
			}
		}
		
		
		WaveSpawn //WAVE 6s-buff: Buff banner soldier mission. Infrequent.
		{
			Name "6s-buff"
			where spawnbot_invasion
			TotalCount 20
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 20
			WaitBetweenSpawnsAfterDeath 35
			
			Support 1
			
			TFBot
			{
				Template T_TFBot_Soldier_Extended_Buff_Banner
			}
		}
		
	}

	
}