#base robot_giant.pop
#base robot_standard.pop
//Made by https://steamcommunity.com/id/tabbyseraph/
//v14

//Starting  $900
//Total     W1 [$ 900]  W2 [$1800]  W3 [$2700]  W4 [$3600]  W5 [$4500]  W6 [$5400]
//w/ Bonus  W1          W2 [$1900]  W3 [$2900]  W4 [$3900]  W5 [$4900]  W6 [$5900]
//Dropped   W1 [$ 900]  W2 [$ 900]  W3 [$ 900]  W4 [$ 900]  W5 [$ 900]  W6 [$ 600]

WaveSchedule
{
	Advanced 1
	StartingCurrency 900
	RespawnWaveTime 5
	CanBotsAttackWhileInSpawnRoom no
	
	Templates
	{
		T_TFBot_Soldier_Minigiant
		{
    		Class Soldier
    		Name "Mini-Giant Soldier"
    		ClassIcon soldier
    		Skill Hard
    		Health 700
    		Scale 1.4
    		Tag bot_giant
    		Attributes HoldFireUntilFullReload
    		ItemAttributes
    			{
        			ItemName "TF_WEAPON_ROCKETLAUNCHER"
       				"faster reload rate" 0.8
        			"fire rate bonus" 0.8
    			}
    		CharacterAttributes
    			{
        			"move speed bonus" 0.85
        			"damage force reduction" 0.5
        			"airblast vulnerability multiplier" 0.5
        			"override footstep sound set" 3
    			}
		}
		T_TFBot_Soldier_Minigiant_NoReload
		{
    		Class Soldier
    		Name "Mini-Giant Soldier "
    		ClassIcon soldier_infinite_crit
   		 Skill Hard
   		 Health 700
   		 Scale 1.4
    		Tag bot_giant
    		Attributes HoldFireUntilFullReload
    		ItemAttributes
    				{
        				ItemName "TF_WEAPON_ROCKETLAUNCHER"
        				"faster reload rate" -0.8  // Valor alto para simular que não recarrega
        				"fire rate bonus" 0.6w	
    				}
    				CharacterAttributes
    				{
        				"move speed bonus" 0.85
        				"damage force reduction" 0.5
        				"airblast vulnerability multiplier" 0.5
       					"override footstep sound set" 3
   		 		}
		}
		T_TFBot_Soldier_Minigiant_BuffBanner
		{
		Class Soldier
		Name "Mini-Giant Buff Banner Soldier"
		ClassIcon soldier_buff_giant
		Skill Hard
		Health 700
		Scale 1.4
		Tag bot_giant
		Attributes	"SpawnWithFullCharge"
		Attributes HoldFireUntilFullReload		
		Item "The Buff Banner"
		ItemAttributes	
			{
        			ItemName "TF_WEAPON_ROCKETLAUNCHER"
        			"faster reload rate" 0.8
        			"fire rate bonus" 0.8
			}
		CharacterAttributes
			{
        			"move speed bonus" 0.85
        			"damage force reduction" 0.5
        			"airblast vulnerability multiplier" 0.5
                		"override footstep sound set" 3
        			"increase buff duration" 9.0
        	
    			}
		}
		T_TFBot_Heavy
		{
			Class Heavyweapons
			Name "Heavy"
			ClassIcon heavy
			Skill Normal
			WeaponRestrictions PrimaryOnly
			MaxVisionRange 1600
		}
		T_TFBot_Heavyweapons_Shotgun_Minigiant
		{
			Template T_TFBot_Heavyweapons_Shotgun
			Scale 1.45
			Health 1200
			Item "Copper's Hard Top"
			ItemAttributes
			{
				ItemName "TF_WEAPON_SHOTGUN_HWG"
				"damage bonus" 0.6
			}
		}
		T_TFBot_Demoman_Knight_nocrit
		{
			Class Demoman
			Name "Demoknight"
			ClassIcon demoknight
			Skill Hard
			Item "The Chargin' Targe"
			Item "The Eyelander"
			WeaponRestrictions MeleeOnly
		}
		T_TFBot_Pyro_Crit_Deflector
		{
			Class Pyro
			Name "Deflector Pyro"
			ClassIcon pyro_reflect_daan
			Skill Hard
			WeaponRestrictions PrimaryOnly
			Attributes AlwaysCrit
			Item "Traffic Cone"
			Item "Das Metalmeatencasen"
			Item "The Degreaser"
			ItemAttributes
			{
				ItemName "The Degreaser"
				"mult airblast refire time" 0.5
				"afterburn duration penalty" 0.33
			}
		}
		T_TFBot_Pyro_Neon
		{
			Class Pyro
			Name "Neon Pyro"
			ClassIcon pyro_neon
			Skill Expert
			WeaponRestrictions MeleeOnly
			Item "The Neon Annihilator"
			Item "Pyro in Chinatown"
		}
		T_TFBot_Soldier_Direct_Hit
		{
			Class Soldier
			Name "Direct Hit Soldier"
			ClassIcon soldier_directhit
			WeaponRestrictions PrimaryOnly
			Item "The Direct Hit"
			Item "Tyrantium Helmet"
			Skill Hard
		}
	}
	Mission
	{
		Objective DestroySentries
		InitialCooldown 20
		Where	spawnbot_mission_sentry_buster_left
		Where	spawnbot_mission_sentry_buster_right
		BeginAtWave 1
		RunForThisManyWaves 6
		CooldownTime 30
		DesiredCount 1
		TFBot
		{ Template T_TFBot_SentryBuster }
	}
	Mission
	{
		Objective	Engineer
		Where		spawnbot_right
		Where		spawnbot_left
		BeginAtWave	4
		RunForThisManyWaves	1
		InitialCooldown	60
		CooldownTime	80
		DesiredCount	1
		TFBot
		{
			TeleportWhere	spawnbot
			TeleportWhere	spawnbot_secondary
			TeleportWhere	flankers_right
			TeleportWhere	flankers_left
			Template	T_TFBot_Engineer_Sentry_Teleporter
			Attributes TeleportToHint
		}
	}
	Mission
	{
		Objective	Engineer
		Where		spawnbot_right
		Where		spawnbot_left
		BeginAtWave	5
		RunForThisManyWaves	1
		InitialCooldown	60
		CooldownTime	80
		DesiredCount	1
		TFBot
		{
			TeleportWhere	spawnbot
			TeleportWhere	spawnbot_secondary
			TeleportWhere	flankers_right
			TeleportWhere	flankers_left
			Template	T_TFBot_Engineer_Sentry_Teleporter
			Attributes TeleportToHint
		}
	}
	Mission
	{
		Objective	Engineer
		Where		spawnbot_right
		Where		spawnbot_left
		BeginAtWave	6
		RunForThisManyWaves	1
		InitialCooldown	60
		CooldownTime	80
		DesiredCount	1
		TFBot
		{
			TeleportWhere	spawnbot
			TeleportWhere	spawnbot_secondary
			TeleportWhere	flankers_right
			TeleportWhere	flankers_left
			Template	T_TFBot_Engineer_Sentry_Teleporter
			Attributes TeleportToHint
		}
	}
	Mission
	{
		Objective Sniper
		InitialCooldown 30
		Where	spawnbot_mission_sniper
		BeginAtWave 1
		RunForThisManyWaves 2
		CooldownTime 50
		DesiredCount 2
		TFBot
		{ Template T_TFBot_Sniper }
	}
	Mission
	{
		Objective Spy
		InitialCooldown 60
		Where	spawnbot_mission_spy
		BeginAtWave 3
		RunForThisManyWaves 1
		CooldownTime 40
		DesiredCount 2
		TFBot
		{ Template T_TFBot_Spy }
	}
	Mission
	{
		Objective Spy
		InitialCooldown 50
		Where	spawnbot_mission_spy
		BeginAtWave 4
		RunForThisManyWaves 1
		CooldownTime 30
		DesiredCount 2
		TFBot
		{ Template T_TFBot_Spy }
	}
	Mission
	{
		Objective Sniper
		InitialCooldown 30
		Where	spawnbot_mission_sniper
		BeginAtWave 5
		RunForThisManyWaves 2
		CooldownTime 30
		DesiredCount 2
		TFBot
		{ Template T_TFBot_Sniper_Sydney_Sleeper }
	}
	
	Wave	// Wave1 ////////////////////////////////////////////////////////////////////////////////////////////////////
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		WaveSpawn
		{
			Name "1a"		
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 18
			SpawnCount 2
			MaxActive 6
			WaitBetweenSpawns 5
			TotalCurrency 150
			TFBot
			{
				Template T_TFBot_Scout_Scattergun_SlowFire
				Name "Scout"
				Skill Normal
			}
		}
		WaveSpawn
		{
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 16
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 6
			WaitBetweenSpawns 4
			TotalCurrency 150
			TFBot
			{ Template T_TFBot_Demoman }
		}
		WaveSpawn
		{
			Support Limited
			Where	flankers_left
			Where	flankers_right
			TotalCount 8
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 14
			WaitBetweenSpawns 7
			TotalCurrency 0
			TFBot
			{
				Template T_TFBot_Demoman_Knight
			}
		}
		WaveSpawn
		{
			Name "1a"
			Where	spawnbot_middle
			TotalCount 3
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 14
			WaitBetweenSpawns 12
			TotalCurrency 0
			TFBot
			{
				Template T_TFBot_Soldier_Minigiant
				Tag nav_middle_bot
			}
		}
		WaveSpawn
		{
			Where	flankers_left
			Where	flankers_right
			TotalCount 8
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 13
			WaitBetweenSpawns 5
			TotalCurrency 150
			TFBot
			{
				Class Soldier
				Skill Hard
				Tag flank_frontleft
			}
		}
		WaveSpawn
		{
			Name "1b"
			WaitForAllDead "1a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 10
			SpawnCount 1
			MaxActive 3
			WaitBetweenSpawns 5
			TotalCurrency 150
			TFBot
			{ Template T_TFBot_Heavy }
		}
		WaveSpawn
		{
			WaitForAllDead "1a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 7
			SpawnCount 1
			MaxActive 4
			WaitBetweenSpawns 4
			TotalCurrency 150
			TFBot
			{ Template T_TFBot_Demoman }
		}
		WaveSpawn
		{
			Support 1
			WaitForAllDead "1a"
			Where	flankers_left
			Where	flankers_right
			SpawnCount 1
			MaxActive 4
			WaitBeforeStarting 7
			WaitBetweenSpawns 6
			TotalCurrency 0
			TFBot
			{ Template T_TFBot_Demoman_Knight }
		}
		WaveSpawn
		{
			WaitForAllDead "1a"
			WaitBeforeStarting 28
			Where	flankers_left
			Where	flankers_right
			TotalCount 12
			SpawnCount 4
			MaxActive 8
			WaitBetweenSpawns 12
			TotalCurrency 150
			Squad
			{
				ShouldPreserveSquad 0
				TFBot
				{ Template T_TFBot_Giant_Soldier }
				TFBot
				{ Template T_TFBot_Medic_QuickFix }
				TFBot
				{ Template T_TFBot_Medic_QuickFix }
				TFBot
				{ Template T_TFBot_Medic_QuickFix }
			}
		}
	}
	
	Wave	// Wave2 ////////////////////////////////////////////////////////////////////////////////////////////////////
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		WaveSpawn
		{
			Name "2a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 25
			SpawnCount 5
			MaxActive 10
			WaitBetweenSpawns 10
			TotalCurrency 100
			TFBot
			{
				Class Soldier
				WeaponRestrictions PrimaryOnly
			}
		}
		WaveSpawn
		{
			Name "22a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 3
			SpawnCount 1
			MaxActive 3
			WaitBeforeStarting 30
			WaitBetweenSpawns 7
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Heavyweapons_Shotgun_Minigiant }
		}
		WaveSpawn
		{
			Name "2b"
			Where	flankers_left
			Where	flankers_right
			TotalCount 30
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 2
			WaitBetweenSpawns 4
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Sniper_Huntsman }
		}
		WaveSpawn
		{
			Name "22b"
			WaitForAllSpawned "22a"
			Where	spawnbot_left
			Where	spawnbot_right
			WaitBeforeStarting 15
			TotalCount 3
			SpawnCount 1
			MaxActive 3
			WaitBetweenSpawns 10
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Giant_Demoman }
		}
		WaveSpawn
		{
			Name "2c"
			WaitForAllDead "22b"
			TotalCount 1
			WaitBeforeStarting 2
			TotalCurrency 150
			FirstSpawnOutput
			{
				Target boss_spawn_relay
				Action trigger
			}
			Tank
			{
				Name "tankboss"
				Health 25000
				Speed 50
				StartingPathTrackNode tank_path_b_1
				Skin 0
				OnKilledOutput
				{
					Target boss_dead_relay
					Action trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action trigger
				}
			}
		}
		WaveSpawn
		{
			WaitForAllDead "2b"
			Support 1
			Where	flankers_left
			Where	flankers_right
			SpawnCount 1
			MaxActive 3
			WaitBetweenSpawns 4
			TotalCurrency 0
			TFBot
			{ Template T_TFBot_Pyro_Neon }
		}
		WaveSpawn
		{
			Name "2d"
			WaitForAllDead "22b"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 20
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 32
			WaitBetweenSpawns 10
			TotalCurrency 100
			TFBot
			{
				Template T_TFBot_Scout_Jumping_Sandman
				Name "Jumping Scout"
			}
		}
		WaveSpawn
		{
			Name "2e"
			WaitForAllDead "22b"
			Support Limited
			Where	flankers_left
			Where	flankers_right
			TotalCount 14
			SpawnCount 2
			MaxActive 4
			WaitBeforeStarting 24
			WaitBetweenSpawns 6
			TotalCurrency 0
			TFBot
			{
				Template T_TFBot_Soldier_Direct_Hit
				Tag flank_frontleft
				Tag flank_upperleft
			}
		}
		WaveSpawn
		{
			Name "2e"
			WaitForAllDead "22a"
			Where	flankers_left
			Where	flankers_right
			TotalCount 51
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 12
			WaitBetweenSpawns 6
			TotalCurrency 100
			TFBot
			{
				Template T_TFBot_Scout_Scattergun_SlowFire
				Name "Scout"
				Skill Normal
			}
		}
		WaveSpawn
		{
			Name "2e"
			WaitForAllDead "22a"
			Where	spawnbot_middle
			TotalCount 3
			SpawnCount 1
			MaxActive 3
			WaitBeforeStarting 12
			WaitBetweenSpawns 15
			TotalCurrency 100
			TFBot
			{
				Template T_TFBot_Soldier_Minigiant
				Tag nav_middle_bot
			}
		}
		WaveSpawn
		{
			WaitForAllDead "2e"
			Support 1
			Where	spawnbot_left
			Where	spawnbot_right
			Where	flankers_left
			Where	flankers_right
			SpawnCount 1
			MaxActive 4
			WaitBeforeStarting 3
			WaitBetweenSpawns 7
			TotalCurrency 0
			TFBot
			{ Template T_TFBot_Soldier_Direct_Hit }
		}
		WaveSpawn
		{
			WaitForAllDead "2c"
			WaitForAllDead "22b"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 9
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 50
			WaitBetweenSpawns 13
			TotalCurrency 150
			Squad
			{
				ShouldPreserveSquad 1
				TFBot
				{ Template T_TFBot_Giant_Soldier_RocketPush }
				TFBot
				{ Template T_TFBot_Medic }
				TFBot
				{ Template T_TFBot_Medic }
			}
		}
	}
	
	Wave	// Wave3 ////////////////////////////////////////////////////////////////////////////////////////////////////
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		WaveSpawn
		{
			Name "2a"
			Where	flankers_left
			Where	flankers_right
			TotalCount 36
			SpawnCount 4
			MaxActive 12
			WaitBetweenSpawns 8
			TotalCurrency 150
			TFBot
			{
				Class Pyro
				ClassIcon pyro_dragon_fury_swordstone
				Name "Fury Pyro"
				Skill Expert
				Item "The Dragon's Fury"
				Item "Pyromancer's Mask"
				MaxVisionRange 1600
			}
		}
		WaveSpawn
		{
			Name "2b"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 50
			SpawnCount 2
			MaxActive 8
			WaitBetweenSpawns 4
			TotalCurrency 150
			TFBot
			{
				Class Soldier
				WeaponRestrictions PrimaryOnly
				Skill Hard
			}
		}
		WaveSpawn
		{
			WaitForAllDead "2a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 12
			SpawnCount 2
			MaxActive 6
			WaitBetweenSpawns 6
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Soldier_Extended_Buff_Banner }
		}
		WaveSpawn
		{
			WaitForAllDead "2a"
			Where	spawnbot_middle
			Support Limited
			TotalCount 4
			SpawnCount 1
			MaxActive 2
			WaitBetweenSpawns 10
			TotalCurrency 0
			TFBot
			{
				Template T_TFBot_Demoman_Samurai
				Tag nav_middle_bot
			}
		}
		WaveSpawn
		{
			Name "2c"
			WaitForAllDead "2b"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 3
			SpawnCount 1
			MaxActive 3
			WaitBetweenSpawns 9
			TotalCurrency 150
			TFBot
			{ Template T_TFBot_Giant_Pyro }
		}
		WaveSpawn
		{
			WaitForAllDead "2b"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 22
			SpawnCount 2
			MaxActive 8
			WaitBetweenSpawns 4
			TotalCurrency 150
			TFBot
			{
				Class Pyro
				ClassIcon pyro_dragon_fury_swordstone
				Name "Fury Pyro"
				Skill Expert
				Item "The Dragon's Fury"
				Item "Pyromancer's Mask"
				MaxVisionRange 1600
			}
		}
		WaveSpawn
		{
			WaitForAllDead "2b"
			Where	spawnbot_left
			Where	spawnbot_right
			Support 1
			SpawnCount 2
			MaxActive 4
			WaitBeforeStarting 5
			WaitBetweenSpawns 10
			TotalCurrency 0
			TFBot
			{ Template T_TFBot_Soldier_Extended_Concheror }
		}
		WaveSpawn
		{
			WaitForAllDead "2c"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 3
			SpawnCount 1
			MaxActive 3
			WaitBetweenSpawns 7
			TotalCurrency 200
			TFBot
			{ Template T_TFBot_Giant_Soldier_Spammer_Reload }
		}
		WaveSpawn
		{
			WaitForAllDead "2c"
			Where	flankers_left
			Where	flankers_right
			Support 1
			SpawnCount 2
			MaxActive 6
			WaitBetweenSpawns 7
			TotalCurrency 0
			TFBot
			{
				Template T_TFBot_Scout_Scattergun_SlowFire
				Name "Scout"
				Skill Normal
			}
		}
	}
	
	Wave	// Wave4 ////////////////////////////////////////////////////////////////////////////////////////////////////
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		WaveSpawn
		{
			Name "4a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			TotalCurrency 50
			TFBot
			{ Template T_TFBot_Giant_Scout_Fast }
		}
		WaveSpawn
		{
			Name "4a"
			Where	spawnbot_middle
			SpawnCount 2
			TotalCount 8
			MaxActive 6
			WaitBeforeStarting 6
			WaitBetweenSpawns 19
			TotalCurrency 100
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Soldier_Minigiant_BuffBanner
					Tag nav_middle_bot
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
				}
			}
		}
		WaveSpawn
		{
			Name "4a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 14
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 1
			WaitBetweenSpawns 6
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Heavy }
		}
		WaveSpawn
		{
			Where	flankers_left
			Where	flankers_right
			TotalCount 28
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 6
			WaitBetweenSpawns 3
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Scout_FAN }
		}
		WaveSpawn
		{
			WaitForAllDead "4a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 6
			WaitBetweenSpawns 3
			TotalCurrency 50
			TFBot
			{ Template T_TFBot_Giant_Scout_Fast }
		}
		WaveSpawn
		{
			Name "4b"
			WaitForAllDead "4a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 18
			SpawnCount 3
			MaxActive 9
			WaitBeforeStarting 7
			WaitBetweenSpawns 6
			TotalCurrency 100
			Squad
			{
				TFBot
				{ Template T_TFBot_Heavyweapons_Shotgun_Minigiant }
				TFBot
				{ Template T_TFBot_Medic_BigHeal }
				TFBot
				{ Template T_TFBot_Medic_BigHeal }
			}
		}
		WaveSpawn
		{
			Name "4b"
			WaitForAllDead "4a"
			Where	flankers_left
			Where	flankers_right
			TotalCount 21
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 7
			WaitBetweenSpawns 6
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Soldier_Extended_Battalion }
		}
		WaveSpawn
		{
			WaitForAllDead "4b"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Giant_Scout_Fast }
		}
		WaveSpawn
		{
			Name "4c"
			WaitForAllDead "4b"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 21
			SpawnCount 3
			MaxActive 9
			WaitBeforeStarting 7
			WaitBetweenSpawns 5
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Heavy }
		}
		WaveSpawn
		{
			WaitForAllDead "4b"
			Where	flankers_left
			Where	flankers_right
			TotalCount 12
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 7
			WaitBetweenSpawns 7
			TotalCurrency 100
			TFBot
			{ Template T_TFBot_Soldier_Extended_Battalion }
		}
		WaveSpawn
		{
			WaitForAllDead "4b"
			Where	flankers_left
			Where	flankers_right
			TotalCount 6
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 25
			WaitBetweenSpawns 15
			TotalCurrency 100
			Squad
			{
				TFBot
				{ Template T_TFBot_Giant_Heavyweapons_Deflector }
				TFBot
				{ Template T_TFBot_Medic }
			}
		}
		WaveSpawn
		{
			WaitForAllSpawned "4c"
			Support 1
			Where	spawnbot_left
			Where	spawnbot_right
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 5
			WaitBetweenSpawns 8
			TotalCurrency 0
			TFBot
			{ Template T_TFBot_Demo_Burst }
		}
	}
	
	Wave	// Wave5 ////////////////////////////////////////////////////////////////////////////////////////////////////
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		WaveSpawn
		{
			Name "3a"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 24
			SpawnCount 2
			MaxActive 8
			WaitBetweenSpawns 4
			TotalCurrency 75
			TFBot
			{ Template T_TFBot_Demo_Burst }
		}
		WaveSpawn
		{
			Name "3a"
			Where	flankers_left
			Where	flankers_right
			TotalCount 22
			SpawnCount 2
			MaxActive 6
			WaitBetweenSpawns 5
			TotalCurrency 75
			TFBot
			{
				Template T_TFBot_Scout_Scattergun_SlowFire
				ClassIcon scout_crit
				Name "Scout"
				Skill Hard
				Attributes AlwaysCrit
			}
		}
		WaveSpawn
		{
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 4
			SpawnCount 1
			MaxActive 4
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 75
			TFBot
			{ Template T_TFBot_Giant_Scout }
		}
		WaveSpawn
		{
			Name "3b"
			WaitForAllDead "3a"
			Where	flankers_left
			Where	flankers_right
			TotalCount 5
			SpawnCount 1
			MaxActive 5
			WaitBetweenSpawns 8
			TotalCurrency 75
			TFBot
			{ Template T_TFBot_Giant_Demo_Burst }
		}
		WaveSpawn
		{
			WaitForAllDead "3a"
			Where	spawnbot_left
			Where	spawnbot_right
			Support Limited
			TotalCount 10
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 4
			WaitBetweenSpawns 7
			TotalCurrency 75
			TFBot
			{ Template T_TFBot_Soldier_Extended_Buff_Banner }
		}
		WaveSpawn
		{
			WaitForAllDead "3a"
			Where	flankers_left
			Where	flankers_right
			TotalCount 22
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 5
			WaitBetweenSpawns 7
			TotalCurrency 75
			TFBot
			{
				Class Soldier
				WeaponRestrictions PrimaryOnly
				Skill Hard
				Tag flank_frontleft
			}
		}
		WaveSpawn
		{
			Name "3c"
			WaitForAllDead "3b"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 5
			SpawnCount 5
			MaxActive 5
			TotalCurrency 75
			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 }
			}
		}
		WaveSpawn
		{
			WaitForAllDead "3b"
			Where	spawnbot_middle
			TotalCount 5
			SpawnCount 1
			MaxActive 5
			WaitBeforeStarting 3
			WaitBetweenSpawns 10
			TotalCurrency 75
				TFBot
				{ Template T_TFBot_Soldier_Minigiant_NoReload }
		}
		WaveSpawn
		{
			WaitForAllDead "3b"
			Where	flankers_left
			Where	flankers_right
			Support Limited
			TotalCount 8
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 3
			WaitBetweenSpawns 10
			TotalCurrency 0
			TFBot
			{ Template T_TFBot_Pyro_Crit_Deflector }
		}
		WaveSpawn
		{
			Name "3d"
			WaitForAllDead "3c"
			TotalCount 2
			WaitBeforeStarting 2
			WaitBetweenSpawns 5
			TotalCurrency 150
			FirstSpawnOutput
			{
				Target boss_spawn_relay
				Action trigger
			}
			Tank
			{
				Name "tankboss"
				Health 12500
				Speed 75
				StartingPathTrackNode tank_path_b_1
				Skin 0
				OnKilledOutput
				{
					Target boss_dead_relay
					Action trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action trigger
				}
			}
		}
		WaveSpawn
		{
			WaitForAllSpawned "3d"
			TotalCount 1
			WaitBeforeStarting 5
			TotalCurrency 75
			FirstSpawnOutput
			{
				Target boss_spawn_relay
				Action trigger
			}
			Tank
			{
				Name "tankboss"
				Health 15000
				Speed 75
				StartingPathTrackNode tank_path_b_1
				Skin 1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action trigger
				}
			}
		}
		WaveSpawn
		{
			WaitForAllSpawned "3d"
			Where	flankers_left
			Where	flankers_right
			Support 1
			SpawnCount 2
			MaxActive 6
			WaitBetweenSpawns 6
			TotalCurrency 0
			TFBot
			{ Template T_TFBot_Pyro_Neon }
		}
		WaveSpawn
		{
			WaitForAllSpawned "3d"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 24
			SpawnCount 4
			MaxActive 8
			WaitBeforeStarting 5
			WaitBetweenSpawns 7
			TotalCurrency 75
			TFBot
			{ Template T_TFBot_Scout_FAN }
		}
		WaveSpawn
		{
			WaitForAllSpawned "3d"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 45
			TotalCurrency 75
			TFBot
			{
				Template T_TFBot_Giant_Demo_Spammer_Reload_Chief
				Health 17500
				Scale 1.85
				Name "Giant Burst Fire Demo Chief"
				ClassIcon demo_burst_crit
			}
		}
	}
	
	Wave	// Wave6 ////////////////////////////////////////////////////////////////////////////////////////////////////
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		WaveSpawn
		{
			Name "4"
			Where	flankers_left
			Where	flankers_right
			TotalCount 8
			SpawnCount 2
			MaxActive 8
			WaitBeforeStarting 17
			WaitBetweenSpawns 7
			TotalCurrency 70
			TFBot
			{ Template T_TFBot_Scout_FAN }
		}
		WaveSpawn
		{
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 6
			SpawnCount 2
			MaxActive 4
			WaitBetweenSpawns 15
			TotalCurrency 90
			TFBot
			{ Template T_TFBot_Giant_Soldier_RocketShotgun }
		}
		WaveSpawn
		{
			Name "4a"
			WaitForAllSpawned "4"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 27
			SpawnCount 3
			MaxActive 9
			WaitBetweenSpawns 7
			TotalCurrency 90
			Squad
			{
				TFBot
				{
					Template T_TFBot_Heavyweapons_Shotgun_Minigiant
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Soldier_RocketShotgun
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_Soldier_RocketShotgun
					Skill Expert
				}
			}
		}
		WaveSpawn
		{
			WaitForAllSpawned "4"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 32
			SpawnCount 2
			MaxActive 6
			WaitBetweenSpawns 4
			TotalCurrency 90
			TFBot
			{
				Template T_TFBot_Scout_FAN
				ClassIcon scout_fan_giant
				Attributes AlwaysCrit
			}
		}
		WaveSpawn
		{

			Where	flankers_left
			Where	flankers_right
			Support 1
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 3
			WaitBetweenSpawns 6
			TotalCurrency 0
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Pyro_Neon
					Tag flank_frontleft
					Tag flank_upperleft
				}
				TFBot
				{ Template T_TFBot_Pyro_Neon }
				TFBot
				{
					Template T_TFBot_Pyro_Neon
					Tag flank_frontright
					Tag flank_upperright
				}
			}
		}
		WaveSpawn		//fix for missing icon
		{
			WaitForAllDead "4c"
			Where	flankers_left
			Where	flankers_right
			Support 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 9999
			TotalCurrency 0
			TFBot
			{ Template T_TFBot_Pyro_Neon }
		}
		WaveSpawn
		{
			Where	flankers_left
			Where	flankers_right
			WaitForAllDead "4a"
			TotalCount 2
			SpawnCount 2
			MaxActive 2
			TotalCurrency 90
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons_BrassBeast
					ClassIcon heavy_brass_nys
					ItemAttributes
					{
						ItemName "The Brass Beast"
						"damage bonus"	1.75
					}
				}
				TFBot
				{ Template T_TFBot_Giant_Medic }
			}
		}
		WaveSpawn
		{
			Where	spawnbot_left
			Where	spawnbot_right
			WaitForAllDead "4a"
			TotalCount 2
			SpawnCount 2
			MaxActive 2
			TotalCurrency 90
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons_BrassBeast
					ClassIcon heavy_brass_nys
					ItemAttributes
					{
						ItemName "The Brass Beast"
						"damage bonus"	1.75
					}
				}
				TFBot
				{ Template T_TFBot_Giant_Medic }
			}
		}
		WaveSpawn
		{
			Name "4b"
			Where	spawnbot_left
			Where	spawnbot_right
			WaitForAllDead "4a"
			TotalCount 14
			SpawnCount 2
			MaxActive 6
			WaitBetweenSpawns 6
			TotalCurrency 90
			TFBot
			{
				Template T_TFBot_Sniper_Huntsman
				Item "Teufort Knight"
				Attributes AlwaysCrit
				ItemAttributes
				{
					ItemName "The Huntsman"
					"damage bonus" 0.4
					"fire rate bonus" 0.3
					"Reload time decreased" 0.3
				}
			}
		}
		WaveSpawn
		{
			Name "4b"
			Where	spawnbot_left
			Where	spawnbot_right
			WaitForAllDead "4a"
			TotalCount 16
			SpawnCount 2
			MaxActive 8
			WaitBeforeStarting 8
			WaitBetweenSpawns 4
			TotalCurrency 90
			TFBot
			{ Template T_TFBot_Soldier_Direct_Hit }
		}
		WaveSpawn
		{
			Name "4c"
			WaitForAllDead "4b"
			Where	spawnbot_left
			Where	spawnbot_right
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			TotalCurrency 90
			TFBot
			{
				Template T_TFBot_Chief_Soldier_Atomic
				Name "Regen Crits"
				Scale 1.85
				Health 30000
				ItemAttributes
				{
					ItemName "The Black Box"
					"damage bonus" 1.25
					"use large smoke explosion" 0
					"fire rate bonus" 2
					"faster reload rate" 0.6
					"fire rate bonus" 0.6
					"Projectile speed increased" 1.2
					"heal on hit for rapidfire" 150
				}
			}
		}
		WaveSpawn
		{
			WaitForAllDead "4b"
			Where	flankers_left
			Where	flankers_right
			Support 1
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 10
			WaitBetweenSpawns 15
			TotalCurrency 0
			TFBot
			{ Template T_TFBot_Soldier_Extended_Buff_Banner }
		}
		WaveSpawn
		{
			WaitForAllDead "4b"
			Where	spawnbot_middle
			Support 1
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 10
			WaitBetweenSpawns 15
			TotalCurrency 0
			TFBot
			{
				Template T_TFBot_Soldier_Extended_Buff_Banner
				Tag nav_middle_bot
			}
		}
	}	
}