#base robot_standard.pop
#base robot_giant.pop

WaveSchedule
{
	StartingCurrency 450
	RespawnWaveTime 4
	CanBotsAttackWhileInSpawnRoom no
	
	Templates
	{
		//////////==============================================================================================================
		//		  STANDARDS
		//////////==============================================================================================================
		T_TFBot_Scout
		{
			Class Scout
			Name "Scout"
			Skill Normal
			Item "Ye Oiled Baker Boy"
		}
		T_TFBot_Soldier
		{
			Class Soldier
			Name "Soldier"
			Skill Normal
			Item "Armored Authority"
			CharacterAttributes
			{
				"head scale" 0.95					//To make it so that the helmet doesn't clip
			}
		}
		T_TFBot_Pyro_Enhanced
		{
			Class Pyro
			Name "Pyro"
			Skill Hard
			Item "The Scrap Pack"
		}
		T_TFBot_Demoman_Easy
		{
			Class Demoman
			Name "Demo"
			Skill Easy
			Item "The Galvanized Gibus"
		}
		T_TFBot_Demoman
		{
			Class Demoman
			Name "Demo"
			Skill Normal
			Item "The FR-0"
		}
		T_TFBot_Demoman_Hard
		{
			Class Demoman
			Name "Demo"
			Skill Hard
			Item "The Strontium Stove Pipe"
		}
		T_TFBot_Demoman_Expert
		{
			Class Demoman
			Name "Demo"
			Skill Expert
			Item "The BroadBand Bonnet"
		}
		T_TFBot_HeavyWeapons
		{
			Class Heavy
			Name "Heavy"
			Skill Hard
			Item "The Team Captain"
		}
		//////////==============================================================================================================
		//		  SPECIAL STANDARDS
		//////////==============================================================================================================
		T_TFBot_Soldier_MiniCrit
		{
			Class Soldier
			ClassIcon soldier_crit
			Name "MiniCrit Soldier"
			Skill Normal
			Attributes SpawnWithFullCharge
			Item "Rocket Jumper"
			Item "The Buff Banner"
			ItemAttributes
			{
				ItemName "Rocket Jumper"
				"damage penalty" 1
			}
			ItemAttributes
			{
				ItemName "The Buff Banner"
				"increase buff duration" 100.0
			}
		}
		T_TFBot_HeavyWeapons_Deflector
		{
			Template T_TFBot_HeavyWeapons
			Item "The U-Clank-a"
			Item "Deflector"
			ItemAttributes
			{
				ItemName "Deflector"
				"Attack Projectiles" 1
			}
		}
		T_TFBot_Pyro_Dragon_Fury
		{
		    Class Pyro
			ClassIcon pyro_dragon_fury_swordstone
			Name "Dragon's Fury Pyro"
			MaxVisionRange 800
			Skill Hard
			Item "the dragon's fury"
		}
		//////////==============================================================================================================
		//		  GIANTS
		//////////==============================================================================================================
		T_TFBot_Giant_Scout_Enhanced
		{
			Template T_TFBot_Giant_Scout
			Name "Giant Scout"
			Item "Ye Oiled Baker Boy"
			Item "The Back Scatter"
			ItemAttributes
			{
				ItemName "The Back Scatter"
				"damage bonus" 1.5
				"closerange backattack minicrits" 0
				"clip size penalty" 1
				"spread penalty" 1
				"crit mod disabled" 0
			}
			CharacterAttributes
			{
				"airblast vulnerability multiplier" 0
				"airblast vertical vulnerability multiplier" 0
			}
		}
		T_TFBot_Giant_Pyro_Enhanced
		{
			Template T_TFBot_Giant_Pyro
			Name "Giant Pyro"
			Item "The BackBurner"
			Item "Respectless Robo-Glove"
			ItemAttributes
			{
				ItemName "The BackBurner"
				"mod flamethrower back crit" 0
			}
			CharacterAttributes
			{
				"airblast vulnerability multiplier" 0
				"airblast vertical vulnerability multiplier" 0
			}
		}
		T_TFBot_Giant_Demoman_Enhanced
		{
			Template T_TFBot_Giant_Demoman
			ClassIcon demo_spammer
			Name "Giant Rapid-Fire Demo"
			Item "The Loch-n-Load"
			Item "The BroadBand Bonnet"
			ItemAttributes
			{
				ItemName "The Loch-n-Load"
				//////////==============================================================================================================
				//REVERSE ATTRIBUTES
				//////////==============================================================================================================
				"clip size penalty" 1
				"dmg bonus vs buildings" 1
				"Projectile speed increased" 1
				"Blast radius decreased" 1
				"sticky air burst mode" 0
				"grenade no spin" 0
				//////////==============================================================================================================
				//ACTUAL ATTRIBUTES
				//////////==============================================================================================================
				"fire rate bonus" 0.75
				"faster reload rate" 0
			}
			CharacterAttributes
			{
				"airblast vulnerability multiplier" 0
				"airblast vertical vulnerability multiplier" 0
			}
		}
		T_TFBot_Giant_Demo_RapidFire_Enhanced
		{
			Template T_TFBot_Giant_Demo_RapidFire
			Name "Giant Demo"
			Item "The Loch-n-Load"
			Item "The FR-0"
			ItemAttributes
			{
				ItemName "The Loch-n-Load"
				//////////==============================================================================================================
				//REVERSE ATTRIBUTES
				//////////==============================================================================================================
				"clip size penalty" 1
				"dmg bonus vs buildings" 1
				"Projectile speed increased" 1
				"Blast radius decreased" 1
				"sticky air burst mode" 0
				"grenade no spin" 0
				//////////==============================================================================================================
				//ACTUAL ATTRIBUTES
				//////////==============================================================================================================
				"fire rate bonus" 0.5
			}
			CharacterAttributes
			{
				"airblast vulnerability multiplier" 0
				"airblast vertical vulnerability multiplier" 0
			}
		}
		//////////==============================================================================================================
		//		  SPECIAL GIANTS
		//////////==============================================================================================================
		T_TFBot_Giant_Soldier_Spammer_Reload_Heal
		{
		    Class Soldier
			ClassIcon soldier_burstfire_heal
			Name "Giant Burst Box Soldier"
			Health 4200
			Skill Hard
			Attributes MiniBoss
			Attributes HoldFireUntilFullReload
			Tag bot_giant
			Item "the black box"
			ItemAttributes
			{
			    ItemName "the black box"
				"fire rate bonus" 0.1
				"faster reload rate" 0.4
				"Projectile speed decreased" 0.75
				"Blast radius increased" 0.9
				"projectile spread angle penalty" 2
				"clip size upgrade atomic" 7.0
				"heal on hit for rapidfire" 300
			}
			CharacterAttributes
			{
			    "move speed bonus" 0.5
				"airblast vulnerability multiplier" 0.4
				"damage force reduction" 0.4
				"override footstep sound set" 3
			}
		}
		T_TFBot_Giant_Pyro_Dragon_Fury
		{
			Class Pyro
			ClassIcon pyro_dragon_fury_swordstone_giant
			Name "Giant Dragon's Fury Pyro"
			Health 3000
			Skill Hard
			Attributes MiniBoss
			Tag bot_giant
			Item "the dragon's fury"
			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
			}
		}
		T_TFBot_Giant_HeavyWeapons_Heater_Enhanced
		{
			Class Heavy
			ClassIcon heavy_heater
			Name "Giant Heatmaker Heavy"
			Health 5000
			Skill Expert
			Attributes MiniBoss
			MaxVisionRange 1200
			Item "Big Chief"
			Item "The Huo Long Heatmaker"
			ItemAttributes
			{
				ItemName "The Huo Long Heatmaker"
				"damage bonus" 1.2
			}
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"airblast vulnerability multiplier" 0
				"airblast vertical vulnerability multiplier" 0
				"damage force reduction" 0.3
				"override footstep sound set" 2
			}
		}
		T_TFBot_Giant_HeavyWeapons_HealOnKill_Fix
		{
			Class Heavy
			ClassIcon heavy_deflector_healonkill
			Name "Giant Heal-On-Kill Heavy"
			Health 5500
			Skill Expert
			Attributes MiniBoss
			MaxVisionRange 1600
			Item "The Tungsten Toque"
			Item "Deflector"
			ItemAttributes
			{
				ItemName "Deflector"
				"attack projectiles" 1
				"damage bonus" 1.2
				"heal on kill" 5000
			}
			CharacterAttributes
			{
				"move speed bonus" 0.4
				"airblast vulnerability multiplier" 0
				"airblast vertical vulnerability multiplier" 0
				"damage force reduction" 0.3
				"rage giving scale" 0.9
				"override footstep sound set" 2
			}
		}
		//////////==============================================================================================================
		//		  CHIEFS
		//////////==============================================================================================================
		T_TFBot_Chief_HeavyWeapons_Heater
		{
			Class Heavy
			ClassIcon heavy_heater_nys
			Name "Doe's Heater"
			Health 35000
			Skill Expert
			Attributes MiniBoss
			Attributes UseBossHealthBar
			MaxVisionRange 1600
			Scale 1.9
			Item "The Bunsen Brave"
			Item "The Huo Long Heatmaker"
			ItemAttributes
			{
				ItemName "The Huo Long Heatmaker"
				"damage bonus" 1.2
				"damage penalty" 1								//Replaces the Huo Long Heatmaker's damage penalty
				"weapon burn dmg increased" 3.2					//16 afterburn damage instead of 5
				"apply look velocity on damage" -160				//Pulls players into the ring of fire
				"attach particle effect" 13						//Adds the Burning Flames effect to the Heatmaker
			}
			CharacterAttributes
			{
				"move speed bonus" 0.4
				"airblast vulnerability multiplier" 0
				"airblast vertical vulnerability multiplier" 0
				"damage force reduction" 0.3
				"rage giving scale" 0.2
				"health regen" 150
				"override footstep sound set" 2
			}
		}
	}

	Mission
	{
		Objective DestroySentries
		Where spawnbot
		CooldownTime 30
		
		TFBot
		{
			Template T_TFBot_SentryBuster
		}
	}
	Mission
	{
		Objective Sniper
		
		Where spawnbot_mission_sniper
		
		BeginAtWave 1
		RunForThisManyWaves 2
		CooldownTime 60
		InitialCooldown 20
		DesiredCount 2
		
		TFBot
		{
			Template T_TFBot_Sniper_Razorback
		}
	}
	Mission
	{
		Objective Spy
		
		Where spawnbot_mission_spy
		
		BeginAtWave 3
		RunForThisManyWaves 1
		CooldownTime 60
		InitialCooldown 20
		DesiredCount 6
		
		TFBot
		{
			Template T_TFBot_Spy
		}
	}
	Mission
	{
		Objective Engineer
		
		Where spawnbot
		
		BeginAtWave 3
		RunForThisManyWaves 1
		CooldownTime 100
		InitialCooldown 30
		DesiredCount 1
		
		TFBot
		{
			Template T_TFBot_Engineer_Sentry_Teleporter
		}
	}
	Mission
	{
		Objective Sniper
		
		Where spawnbot_mission_sniper
		
		BeginAtWave 5
		RunForThisManyWaves 2
		CooldownTime 60
		InitialCooldown 20
		DesiredCount 3
		
		TFBot
		{
			Template T_TFBot_Sniper_Sydney_Sleeper
		}
	}
	Mission
	{
		Objective Spy
		
		Where spawnbot_mission_sniper
		
		BeginAtWave 6
		RunForThisManyWaves 1
		CooldownTime 60
		InitialCooldown 20
		DesiredCount 6
		
		TFBot
		{
			Template T_TFBot_Spy
		}
	}
	//////////==============================================================================================================
	//		  WAVE 1[$1000]
	//////////==============================================================================================================
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
//First Subwave
		WaveSpawn
		{
			Name "w1-a1"
			TotalCurrency 150
			TotalCount 20
			MaxActive 6
			SpawnCount 2
			WaitBetweenSpawns 1
			WaitBeforeStarting 1
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Demoman_Knight
				Skill Hard
			}
		}
		WaveSpawn
		{
			Name "w1-a1"
			TotalCurrency 100
			TotalCount 2
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawnsAfterDeath 10
			WaitBeforeStarting 1
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Giant_Demo_RapidFire_Enhanced
			}
		}
//Second Subwave
		WaveSpawn
		{
			Name "w1-b1"
			WaitForAllDead w1-a1
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawns 0
			WaitBeforeStarting 8
			Where spawnbot_single_flag
			
			TFBot
			{
				Template T_TFBot_Giant_HeavyWeapons
			}
		}
		WaveSpawn
		{
			Name "w1-b1"
			WaitForAllDead w1-a1
			TotalCurrency 150
			TotalCount 18
			MaxActive 6
			SpawnCount 2
			WaitBetweenSpawns 2
			WaitBeforeStarting 0
			Where spawnbot_left
			Where spawnbot_right
			
			TFBot
			{
				Template T_TFBot_Pyro_Flaregun
				Item "The Scrap Pack"
			}
		}
		WaveSpawn
		{
			Name "w1-b1"
			WaitForAllDead w1-a1
			TotalCurrency 150
			TotalCount 24
			MaxActive 8
			SpawnCount 2
			WaitBetweenSpawns 1
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Scout
			}
		}
//Last Subwave
		WaveSpawn
		{
			Name "w1-c1"
			WaitForAllDead w1-b1
			TotalCurrency 150
			TotalCount 14
			MaxActive 7
			SpawnCount 1
			WaitBetweenSpawns 0.5
			WaitBeforeStarting 0
			Where spawnbot_invasion
			
			TFBot
			{
				Template T_TFBot_HeavyWeapons_Fist
				Health 800
				Item "Big Steel Jaw of Summer fun"
				CharacterAttributes
				{
					"head scale" 0.85					//Serves no actual purpose, just cosmetic
				}
			}
		}
		WaveSpawn
		{
			Name "w1-c1"
			WaitForAllDead w1-b1
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawns 0
			WaitBeforeStarting 4
			Where spawnbot_single_flag
			
			TFBot
			{
				Template T_TFBot_Giant_Demoman_Enhanced
			}
		}
//Constant Support
		WaveSpawn
		{
			Name "w1-support"
			TotalCurrency 0
			TotalCount 22
			MaxActive 4
			SpawnCount 4
			WaitBetweenSpawns 5
			WaitBeforeStarting 0
			Where spawnbot
			Support 1
			
			TFBot
			{
				Template T_TFBot_Scout_Sandman_FastCharge
			}
		}
	}
	//////////==============================================================================================================
	//		  WAVE 2[$1000]
	//////////==============================================================================================================
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
//First Subwave
		WaveSpawn
		{
			Name "w2-a1"
			TotalCurrency 300
			TotalCount 75
			MaxActive 15
			SpawnCount 3
			WaitBetweenSpawns 0.5
			WaitBeforeStarting 0
			Where spawnbot_invasion
			
			TFBot
			{
				Template T_TFBot_Scout
				Skill Easy
			}
		}
		WaveSpawn
		{
			Name "w2-a1"
			TotalCurrency 100
			TotalCount 6
			MaxActive 3
			SpawnCount 3
			WaitBetweenSpawns 0
			WaitBeforeStarting 0
			Where spawnbot
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_HeavyWeapons_Deflector
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickUber
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickUber
				}
			}
		}
//Second Subwave
		WaveSpawn
		{
			Name "w2-b1"
			WaitForAllDead w2-a1
			TotalCurrency 50
			TotalCount 16
			MaxActive 6
			SpawnCount 2
			WaitBetweenSpawns 1
			WaitBeforeStarting 0
			Where spawnbot
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Soldier
					Skill Hard
					Item "The Direct Hit"
					ItemAttributes
					{
						ItemName "The Direct Hit"
						"apply z velocity on damage" 10
					}
				}
				TFBot
				{
					Template T_TFBot_Medic_Bigheal
					Item "The Surgeon's Stahlhelm"
				}
			}
		}
		WaveSpawn
		{
			Name "w2-b1"
			WaitForAllDead w2-a1
			TotalCurrency 100
			TotalCount 30
			MaxActive 10
			SpawnCount 10
			WaitBetweenSpawns 10
			WaitBeforeStarting 2.5
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Demoman
			}
		}
//Giant Scouts
		WaveSpawn
		{
			Name "w2-giantscouts"
			WaitForAllDead w2-b1
			TotalCurrency 50
			TotalCount 5
			MaxActive 3
			SpawnCount 1
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}
		}
//Last Subwave
		WaveSpawn
		{
			Name "w2-c1"
			WaitForAllDead w2-b1
			TotalCurrency 200
			TotalCount 4
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 7
			WaitBeforeStarting 8
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Giant_Soldier_Spammer
				Item "Armored Authority"
			}
		}
		WaveSpawn
		{
			Name "w2-c1"
			WaitForAllDead w2-b1
			TotalCurrency 100
			TotalCount 24
			MaxActive 8
			SpawnCount 8
			WaitBetweenSpawns 10
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Pyro_Enhanced
				Attributes AlwaysFireWeapon
			}
		}
		WaveSpawn
		{
			Name "w2-support"
			WaitForAllDead w2-b1
			TotalCurrency 0
			TotalCount 10
			MaxActive 5
			SpawnCount 1
			WaitBetweenSpawns 1
			WaitBeforeStarting 3
			Where spawnbot_invasion
			Support 1
			
			TFBot
			{
				Template T_TFBot_Soldier
				Skill Easy
			}
		}
	}
	//////////==============================================================================================================
	//		  WAVE 3[$850]
	//////////==============================================================================================================
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
//First Subwave
		WaveSpawn
		{
			Name "w3-a1"
			TotalCurrency 100
			TotalCount 1
			Where spawnbot
			
			FirstSpawnOutput
			{
				Target boss_spawn_relay
				Action Trigger
			}
			
			Tank
			{
				Name "tankboss"
				Health 26000
				Speed 75
				StartingPathTrackNode boss_path_1
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
			}
		}
		WaveSpawn
		{
			Name "w3-a1"
			TotalCurrency 200
			TotalCount 5
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 8
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Giant_Pyro_Dragon_Fury
			}
		}
		WaveSpawn
		{
			Name "w3-a1"
			TotalCurrency 50
			TotalCount 10
			MaxActive 6
			SpawnCount 2
			WaitBetweenSpawns 5
			WaitBeforeStarting 0
			Where spawnbot
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_HeavyWeapons_Deflector
					ClassIcon heavy_deflector
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Name "w3-a1"
			TotalCurrency 100
			TotalCount 24
			MaxActive 8
			SpawnCount 2
			WaitBetweenSpawns 0.5
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Soldier
				Skill Hard
				Item "The Direct Hit"
				ItemAttributes
				{
					ItemName "The Direct Hit"
					"apply z velocity on damage" 10
				}
			}
		}
//Second Subwave
		WaveSpawn
		{
			Name "w3-support"
			WaitForAllDead w3-a1
			TotalCurrency 100
			TotalCount 30
			MaxActive 5
			SpawnCount 5
			WaitBetweenSpawns 10
			WaitBeforeStarting 0
			Where spawnbot_invasion
			Support 1
			
			TFBot
			{
				Template T_TFBot_Scout_Melee
				Attributes DisableDodge
				Item "Ye Oiled Baker Boy"
			}
		}
		WaveSpawn
		{
			Name "w3-b1"
			WaitForAllDead w3-a1
			TotalCurrency 100
			TotalCount 30
			MaxActive 10
			SpawnCount 1
			WaitBetweenSpawns 1
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_HeavyWeapons
			}
		}
		WaveSpawn
		{
			Name "w3-b1"
			WaitForAllDead w3-a1
			TotalCurrency 100
			TotalCount 3
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Giant_HeavyWeapons_HealOnKill_Fix
			}
		}
	}
	//////////==============================================================================================================
	//		  WAVE 4[$1000]
	//////////==============================================================================================================
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
//First Subwave
		WaveSpawn
		{
			Name "w4-a1"
			TotalCurrency 100
			TotalCount 24
			MaxActive 8
			SpawnCount 2
			WaitBetweenSpawns 0.5
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Class Pyro
				ClassIcon pyro_dragon_fury_heal
				Name "Dragon's Fury Pyro"
				MaxVisionRange 800
				Skill Hard
				Item "The Dragon's Fury"
				ItemAttributes
				{
					ItemName "The Dragon's Fury"
					"heal on hit for slowfire" 30
				}
			}
		}
		WaveSpawn
		{
			Name "w4-a1"
			TotalCurrency 200
			TotalCount 4
			MaxActive 2
			SpawnCount 2
			WaitBetweenSpawns 15
			WaitBeforeStarting 1.5
			Where spawnbot_single_flag
			
			TFBot
			{
				Template T_TFBot_Giant_Demo_Burst
				Item "The BroadBand Bonnet"
				Attributes AlwaysFireWeapon
			}
		}
//Second Subwave
		WaveSpawn
		{
			Name "w4-b1"
			WaitForAllDead w4-a1
			TotalCurrency 100
			TotalCount 24
			MaxActive 12
			SpawnCount 12
			WaitBetweenSpawns 20
			WaitBeforeStarting 12
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Soldier_Extended_Buff_Banner
			}
		}
		WaveSpawn
		{
			Name "w4-b1"
			WaitForAllDead w4-a1
			TotalCurrency 100
			TotalCount 24
			MaxActive 6
			SpawnCount 1
			WaitBetweenSpawns 0.5
			WaitBeforeStarting 10
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_HeavyWeapons
			}
		}
		WaveSpawn
		{
			Name "w4-c1"
			WaitForAllSpawned w4-b1
			TotalCurrency 100
			TotalCount 6
			MaxActive 2
			SpawnCount 2
			WaitBetweenSpawns 10
			WaitBeforeStarting 5
			Where spawnbot_invasion
			
			TFBot
			{
				Template T_TFBot_Giant_Soldier_Spammer_Reload_Heal
			}
		}
		WaveSpawn
		{
			Name "w4-c1"
			WaitForAllDead w4-b1
			TotalCurrency 50
			TotalCount 20
			MaxActive 10
			SpawnCount 1
			WaitBetweenSpawns 0.5
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Demoman_Easy
			}
		}
		WaveSpawn
		{
			Name "w4-c1"
			WaitForAllDead w4-b1
			TotalCurrency 250
			TotalCount 10
			MaxActive 10
			SpawnCount 2
			WaitBetweenSpawns 15
			WaitBeforeStarting 0
			Where spawnbot_invasion
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}
		}
	}
	//////////==============================================================================================================
	//		  WAVE 5[$1100]
	//////////==============================================================================================================
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
//First Subwave
		WaveSpawn
		{
			Name "w5-a1"
			TotalCurrency 100
			TotalCount 36
			MaxActive 12
			SpawnCount 2
			WaitBetweenSpawns 1
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Pyro_Enhanced
				Attributes AlwaysCrit
			}
		}
		WaveSpawn
		{
			Name "w5-supers"
			TotalCurrency 200
			TotalCount 4
			MaxActive 2
			SpawnCount 2
			WaitBetweenSpawns 60
			WaitBeforeStarting 20
			Where spawnbot
			
			Squad
			{			
				TFBot
				{
					Template T_TFBot_Giant_HeavyWeapons_Heater_Enhanced
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic_Regen
				}
			}
		}
		WaveSpawn
		{
			Name "w5-supers"
			TotalCurrency 200
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawns 120
			WaitBeforeStarting 20
			Where spawnbot
			
			FirstSpawnOutput
			{
				Target boss_spawn_relay
				Action Trigger
			}
			
			Tank
			{
				Name "tankboss"
				Health 35000
				Speed 75
				StartingPathTrackNode boss_path_1
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
			}
		}
//Second Subwave
		WaveSpawn
		{
			Name "w5-b1"
			WaitForAllDead w5-a1
			TotalCurrency 200
			TotalCount 104
			MaxActive 8
			SpawnCount 4
			WaitBetweenSpawns 0.5
			WaitBeforeStarting 2
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Scout
			}
		}
//Last Subwave
		WaveSpawn
		{
			Name "w5-c1"
			WaitForAllDead w5-supers
			TotalCurrency 60
			TotalCount 4
			MaxActive 3
			SpawnCount 1
			WaitBetweenSpawns 6
			WaitBeforeStarting 10
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Giant_Soldier_Spammer
				Item "Armored Authority"
			}
		}
		WaveSpawn
		{
			Name "w5-c2"
			WaitForAllSpawned w5-c1
			TotalCurrency 110
			TotalCount 6
			MaxActive 3
			SpawnCount 1
			WaitBetweenSpawns 3
			WaitBeforeStarting 3
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Giant_Soldier_Spammer_Reload
				Item "Rebel Rouser"
			}
		}
		WaveSpawn
		{
			Name "w5-c3"
			WaitForAllSpawned w5-c2
			TotalCurrency 30
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 1
			WaitBeforeStarting 0
			Where spawnbot
			
			TFBot
			{
				Template T_TFBot_Giant_Soldier_Spammer_Reload
				Item "Rebel Rouser"
			}
		}
		WaveSpawn
		{
			Name "w5-support"
			WaitForAllDead w5-b1
			TotalCurrency 0
			TotalCount 8
			MaxActive 4
			SpawnCount 4
			WaitBetweenSpawns 8
			WaitBeforeStarting 0
			Where spawnbot
			Support 1
			
			TFBot
			{
				Template T_TFBot_HeavyWeapons
			}
		}
	}
}