#base robot_giant.pop
#base robot_standard.pop
#base robot_gatebot.pop

WaveSchedule
{
	StartingCurrency	900
	RespawnWaveTime	6
	CanBotsAttackWhileInSpawnRoom	no
	
	Templates
	{	
		Giant_Charged_Soldier_Gate
		{
			Class Soldier
			Name "Giant Charged Soldier"
			ClassIcon soldier_crit
			Health 3800
			
			EventChangeAttributes
			{
				Default
				{
					Tag "bot_gatebot"			
					Tag "nav_prefer_gate1_flank"	
					BehaviorModifiers push		
					Attributes IgnoreFlag 	
					
					Skill Normal
					WeaponRestrictions PrimaryOnly
					
					Attributes 	"AlwaysCrit"
					Attributes 	"MiniBoss"
					Tag	"bot_giant"
					
					ItemAttributes
					{
						ItemName "The Original"
						"faster reload rate" 0.2
						"fire rate bonus" 2
						"Projectile speed increased" 0.5
					}
					
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
					}
					
					Item 	"The Original"
					Item 	"MvM GateBot Light Soldier"
				}
				RevertGateBotsBehavior
				{
					Skill Normal
					WeaponRestrictions PrimaryOnly
					
					Attributes 	"AlwaysCrit"
					Attributes 	"MiniBoss"
					Tag	"bot_giant"
					
					ItemAttributes 
					{
						ItemName "MvM GateBot Light Soldier"
						"item style override" 1
					}
					
					ItemAttributes
					{
						ItemName "The Original"
						"faster reload rate" 0.2
						"fire rate bonus" 2
						"Projectile speed increased" 0.5
					}
					
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
					}
					
					Item 	"The Original"
					Item 	"MvM GateBot Light Soldier"
				}
			}

		}
		
		Super_Scout_Gate
		{
			ClassIcon	scout_giant_fast
			Health	1200
			Name	"Super Scout"
			Class	Scout
					
			EventChangeAttributes
			{
				Default
				{
					Tag "bot_gatebot"			
					Tag "nav_prefer_gate1_flank"	
					BehaviorModifiers push		
					Attributes IgnoreFlag
					
					Skill	Easy
					WeaponRestrictions	MeleeOnly
					Attributes	"MiniBoss"
					Tag	"bot_giant"
							
					CharacterAttributes
					{
						"move speed bonus"	2
						"damage force reduction"	0.7
						"airblast vulnerability multiplier"	0.7
						"override footstep sound set"	5
					}
							
					Item	"The Holy Mackerel"
					Item	"Bonk Boy"
					Item	"MvM GateBot Light Scout"
				}
				RevertGateBotsBehavior
				{
					Skill	Easy
					WeaponRestrictions	MeleeOnly
					Attributes	"MiniBoss"
					Tag	"bot_giant"
							
					ItemAttributes 
					{
						ItemName "MvM GateBot Light Scout"
						"item style override" 1
					}
							
					CharacterAttributes
					{
						"move speed bonus"	2
						"damage force reduction"	0.7
						"airblast vulnerability multiplier"	0.7
						"override footstep sound set"	5
					}
							
					Item	"The Holy Mackerel"
					Item	"Bonk Boy"
					Item	"MvM GateBot Light Scout"
				}
			}
		}
	}
	
	Mission
	{
		Objective	DestroySentries
		Where	spawnbot
		BeginAtWave	1
		RunForThisManyWaves	6
		CooldownTime	30
		DesiredCount	1
		
		TFBot
		{
			Template	T_TFBot_SentryBuster
		}
	}
	
	Mission
	{
		Objective	Sniper
		Where	spawnbot
		BeginAtWave	1
		RunForThisManyWaves	2
		InitialCooldown	30
		CooldownTime	60
		DesiredCount	2
		
		TFBot
		{
			Template	T_TFBot_Sniper_Razorback
		}
	}
	
	Mission
	{
		Objective	Spy
		Where	spawnbot
		BeginAtWave	3
		RunForThisManyWaves	1
		InitialCooldown	50
		CooldownTime	60
		DesiredCount	3
		
		TFBot
		{
			Template	T_TFBot_Spy
		}
	}
	
	Mission
	{
		Objective	Sniper
		Where	spawnbot
		BeginAtWave	5
		RunForThisManyWaves	1
		InitialCooldown	40
		CooldownTime	60
		DesiredCount	2
		
		TFBot
		{
			Template	T_TFBot_Sniper_Razorback
		}
	}
	
	Mission
	{
		Objective	Sniper
		Where	spawnbot
		BeginAtWave	6
		RunForThisManyWaves	2
		InitialCooldown	30
		CooldownTime	60
		DesiredCount	2
		
		TFBot
		{
			Template	T_TFBot_Sniper_Sydney_Sleeper
		}
	}
	
	Mission
	{
		Objective	Spy
		Where	spawnbot
		BeginAtWave	7
		RunForThisManyWaves	1
		InitialCooldown	80
		CooldownTime	60
		DesiredCount	3
		
		TFBot
		{
			Template	T_TFBot_Spy
		}
	}

	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		WaveSpawn
		{
			Name	wave1a
			TotalCurrency	150
			TotalCount	36
			MaxActive	18
			SpawnCount	6
			WaitBeforeStarting	0
			WaitBetweenSpawns	6
			Where	spawnbot

			RandomChoice
			{
				TFBot
				{
					ClassIcon	scout_cola
					Class	Scout
					Skill	Normal
					
					ItemAttributes
					{
						ItemName	"Crit-a-Cola"
						"effect bar recharge rate increased"	0.5
					}
					
					Item	"Crit-a-Cola"
				}
				TFBot
				{
					ClassIcon	scout_cola
					Class	Scout
					Skill	Easy
					WeaponRestrictions	MeleeOnly
					
					ItemAttributes
					{
						ItemName	"Crit-a-Cola"
						"effect bar recharge rate increased"	0.5
						"mod_mark_attacker_for_death"	0
					}
					
					Item	"Crit-a-Cola"
				}
			}
		}
		
		WaveSpawn
		{
			Name	wave1b
			WaitForAllDead	wave1a
			TotalCurrency	150
			TotalCount	32
			MaxActive	14
			SpawnCount	8
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where	spawnbot

				TFBot
				{
					Class	Soldier
					Skill	Easy
				}
		}
		
		WaveSpawn
		{
			Name	scoutgate
			WaitForAllDead	wave1a
			TotalCurrency	50
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	25
			WaitBetweenSpawns	2
			Where	spawnbot

				TFBot
				{
					Template	T_TFGateBot_Giant_Scout_FAN
					Tag	"nav_prefer_flank_right"
				}
		}
		
		WaveSpawn
		{
			Name	soldiergate
			WaitForAllDead	wave1b
			TotalCurrency	150
			TotalCount	9
			MaxActive	9
			SpawnCount	3
			WaitBeforeStarting	5
			WaitBetweenSpawns	20
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	Giant_Charged_Soldier_Gate
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
			}
		}
		WaveSpawn
		{
			Name	wave1cd
			WaitForAllDead	wave1b
			TotalCurrency	240
			TotalCount	60
			MaxActive	12
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	4
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Demoman_Knight
					Tag	"nav_prefer_flank_right"
				}
		}
		
		WaveSpawn
		{
			Name	wave1d
			WaitForAllDead	soldiergate
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	4
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					ClassIcon	demo_burst
					Health	3300
					Name	"Major Barrage"
					Class	Demoman
					Skill	Expert
					WeaponRestrictions	PrimaryOnly
					
					Attributes	"MiniBoss"
					Attributes	"HoldFireUntilFullReload"
					Tag	"bot_giant"
					
					ItemAttributes
					{
						ItemName	tf_weapon_grenadelauncher
						"faster reload rate"	0.2
						"fire rate bonus"	0.1
						"clip size upgrade atomic"	24.0
						"projectile spread angle penalty"	5
						"Projectile speed increased"	1.1
					}
					
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction"	0.4
						"airblast vulnerability multiplier"	0.4
						"override footstep sound set"	4
					}
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
			}
		}
		
		WaveSpawn
		{
			Name	wave1e
			WaitForAllSpawned	wave1d
			TotalCurrency	160
			TotalCount	15
			MaxActive	15
			SpawnCount	5
			WaitBeforeStarting	20
			WaitBetweenSpawns	5
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Soldier_Extended_Battalion
				}
		}
	}
	
	
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		WaveSpawn
		{
			Name	blackboxgate
			TotalCurrency	150
			TotalCount	30
			MaxActive	15
			SpawnCount	5
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Where	spawnbot_mission_sniper

				TFBot
				{
					Template	T_TFGateBot_Soldier_RocketShotgun_Expert
				}
		}
		
		WaveSpawn
		{
			Name	wave2b
			WaitForAllDead	blackboxgate
			TotalCurrency	175
			TotalCount	24
			MaxActive	10
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	2
			Where	spawnbot
			
			RandomChoice
			{
					TFBot
					{
						ClassIcon	heavy_heater
						Class	HeavyWeapons
						Skill	Easy
						Item	"The Huo Long Heatmaker"
					}
					TFBot
					{
						ClassIcon	heavy_heater
						Class	HeavyWeapons
						Skill	Easy
						Item	"The Huo Long Heatmaker"
					}
					TFBot
					{
						ClassIcon	heavy_heater
						Class	HeavyWeapons
						Skill	Normal
						Item	"The Huo Long Heatmaker"
					}
			}
		}
		
		WaveSpawn
		{
			Name	steelgate
			WaitForAllDead	blackboxgate
			TotalCurrency	150
			TotalCount	16
			MaxActive	8
			SpawnCount	2
			WaitBeforeStarting	5
			WaitBetweenSpawns	6
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFGateBot_Heavy_IronFist_Crit
					Tag	"nav_prefer_flank_right"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
			}
		}
		
		WaveSpawn
		{
			Name	wave2c
			WaitForAllDead	wave2b
			TotalCurrency	175
			TotalCount	32
			MaxActive	16
			SpawnCount	8
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where	spawnbot

				TFBot
				{
					Class	Demoman
					Skill	Normal
				}
		}
		
		WaveSpawn
		{
			Name	sandmangate
			WaitForAllDead	wave2b
			TotalCurrency	100
			TotalCount	2
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	10
			Where	spawnbot

				TFBot
				{
					ClassIcon	scout_stun_giant_armored
					Health	3000
					Name	"Armored Sandman Scout"
					Class	Scout
					
					EventChangeAttributes
					{
						Default
						{
							Tag bot_gatebot 			
							Tag nav_prefer_gate1_flank	
							BehaviorModifiers push		
							Attributes IgnoreFlag 	
							
							Skill	Expert
							WeaponRestrictions	MeleeOnly
							
							Attributes	"MiniBoss"
							Attributes	"AlwaysCrit"
							Tag	"bot_giant"
							
							ItemAttributes
							{
								ItemName	"The Sandman"
								"effect bar recharge rate increased"	0.05
								"max health additive penalty" -0
							}
							
							CharacterAttributes
							{
								"damage force reduction"	0.7
								"airblast vulnerability multiplier"	0.7
								"override footstep sound set"	5
								"move speed penalty"	0.75
							}
							
							Item	"The Sandman"
							Item 	"MvM GateBot Light Scout"
						}
						RevertGateBotsBehavior
						{
							Skill	Expert
							WeaponRestrictions	MeleeOnly
							
							Attributes 	"AlwaysCrit"
							Attributes 	"MiniBoss"
							Tag	"bot_giant"
							
							ItemAttributes 
							{
								ItemName "MvM GateBot Light Scout"
								"item style override" 1
							}
							
							ItemAttributes
							{
								ItemName	"The Sandman"
								"effect bar recharge rate increased"	0.05
								"max health additive penalty" -0
							}
							
							CharacterAttributes
							{
								"damage force reduction"	0.7
								"airblast vulnerability multiplier"	0.7
								"override footstep sound set"	5
								"move speed penalty"	0.75
							}
							
							Item	"The Sandman"
							Item 	"MvM GateBot Light Scout"
						}
					}
				}
		}
		
		WaveSpawn
		{
			Name	wave2d
			WaitForAllDead	wave2c
			TotalCurrency	100
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	0
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons_Deflector
					Tag	"bot_giant"
				}
				TFBot
				{
					ClassIcon 	medic_shield_qf_giant
					Health		4500
					Name 		"Giant Shield Medic"
					Class 		Medic
					Skill 		Expert
					WeaponRestrictions 	SecondaryOnly
					
					Attributes 			ProjectileShield
					Attributes			"MiniBoss"
					Attributes			"SpawnWithFullCharge"
					Tag	"bot_squad_member"
					Tag	"bot_giant"
							
					ItemAttributes
					{
						ItemName "The Quick-Fix"
						"generate rage on heal" 2
						"increase buff duration" 5
					}
							
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction"	0.6
						"airblast vulnerability multiplier"	0.6
						"heal rate bonus"	200
						"bot medic uber deploy delay duration" 9999
					}
							
					Item 	"The Quick-Fix"
					Item	"Das Metalmeatencasen"
					Item	"Das Naggenvatcher"
				}
			}
		}
		WaveSpawn
		{
			Name	wave2d
			WaitForAllDead	wave2c
			TotalCurrency	50
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	5
			WaitBetweenSpawns	15
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Giant_Scout_Baseball_Armored
					Attributes	"AlwaysCrit"
					Tag	"bot_giant"
				}
		}
	}
	
	
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		WaveSpawn
		{
			Name	colascoutgate
			TotalCurrency	400
			TotalCount	120
			MaxActive	8
			SpawnCount	8
			WaitBeforeStarting	0
			Support	1
			Where	spawnbot
			
				TFBot
				{
					ClassIcon	scout_cola
					Class	Scout
					
					EventChangeAttributes
					{
						Default
						{
							Tag "bot_gatebot"			
							Tag "nav_prefer_gate1_flank"	
							BehaviorModifiers push		
							Attributes IgnoreFlag 	
								
							Skill	Hard
					
							ItemAttributes
							{
								ItemName	"Crit-a-Cola"
								"effect bar recharge rate increased"	0.5
							}
								
							Item	"Crit-a-Cola"
							Item 	"MvM GateBot Light Scout"
						}
						RevertGateBotsBehavior
						{
							Skill	Hard
								
							ItemAttributes 
							{
								ItemName "MvM GateBot Light Scout"
								"item style override" 1
							}
								
							ItemAttributes
							{
								ItemName	"Crit-a-Cola"
								"effect bar recharge rate increased"	0.5
							}
								
							Item	"Crit-a-Cola"
							Item 	"MvM GateBot Light Scout"
						}
					}
				}
		}
		
		WaveSpawn
		{
			Name	wave3a
			TotalCurrency	150
			TotalCount	5
			MaxActive	5
			SpawnCount	1
			WaitBeforeStarting	15
			WaitBetweenSpawns	8
			Where	spawnbot_mission_sniper

				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Spammer_Reload
					Tag	"bot_giant"
				}
		}
		
		WaveSpawn
		{
			Name	jumpscoutgate
			WaitForAllSpawned	wave3a
			TotalCurrency	100
			TotalCount	12
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	20
			WaitBetweenSpawns	5
			Where	spawnbot

				TFBot
				{
					ClassIcon	scout_jumping
					Health	650
					AutoJumpMin	5
					AutoJumpMax	5
					Name	"Jumping Sandman Scout"
					Scale	1.4
					Class	Scout
					
					EventChangeAttributes
					{
						Default
						{
							Tag "bot_gatebot"			
							Tag "nav_prefer_gate1_flank"	
							BehaviorModifiers push		
							Attributes IgnoreFlag 	
								
							Skill	Expert
					
							WeaponRestrictions	MeleeOnly
							Attributes	"AutoJump"
							Tag	"bot_giant"
								
							ItemAttributes
							{
								ItemName	"The Sandman"
								"effect bar recharge rate increased"	0.2
								"damage bonus"	1.5
							}
								
							CharacterAttributes
							{
								"increased jump height"	2
								"move speed bonus"	1.25
								"head scale"	1.2
								"cancel falling damage"	1
							}
								
							Item	"The Sandman"
							Item	"The Flight of the Monarch"
							Item 	"MvM GateBot Light Scout"
						}
						RevertGateBotsBehavior
						{
							Skill	Expert
					
							WeaponRestrictions	MeleeOnly
							Attributes	"AutoJump"
							Tag	"bot_giant"
								
							ItemAttributes 
							{
								ItemName "MvM GateBot Light Scout"
								"item style override" 1
							}
								
							ItemAttributes
							{
								ItemName	"The Sandman"
								"effect bar recharge rate increased"	0.2
								"damage bonus"	1.5
								"max health additive penalty" -0
							}
								
							CharacterAttributes
							{
								"increased jump height"	2
								"move speed bonus"	1.25
								"head scale"	1.2
								"cancel falling damage"	1
							}
								
							Item	"The Sandman"
							Item	"The Flight of the Monarch"
							Item 	"MvM GateBot Light Scout"
						}
					}
				}
		}
		
		WaveSpawn
		{
			Name	pyrogate
			WaitForAllDead	jumpscoutgate
			TotalCurrency	75
			TotalCount	24
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Where	spawnbot

				TFBot
				{
					Class	Pyro
					
					EventChangeAttributes
					{
						Default
						{
							Tag "bot_gatebot"			
							Tag "nav_prefer_gate1_flank"	
							BehaviorModifiers push		
							Attributes IgnoreFlag 	
							
							Skill	Easy
							
							Attributes	"AlwaysFireWeapon"
							Attributes	"AlwaysCrit"
							
							Item	"MvM GateBot Light Pyro"
						}
						RevertGateBotsBehavior
						{
							Skill	Easy
							
							Attributes	"AlwaysFireWeapon"
							Attributes	"AlwaysCrit"
							
							ItemAttributes 
							{
								ItemName "MvM GateBot Light Pyro"
								"item style override" 1
							}
							
							Item	"MvM GateBot Light Pyro"
						}
					}
				}
		}
		
		WaveSpawn
		{
			WaitForAllSpawned	pyrogate
			TotalCurrency	175
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0

				FirstSpawnOutput                                                                                                                                                            
				{
					 Target boss_spawn_relay                                            
					 Action Trigger                         
				}
				
				Tank
				{
					Health	30000
					Name	tankboss
					Speed	73
					StartingPathTrackNode "boss_path_a1"
					
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
		}
		
		WaveSpawn
		{
			Name	wave3d
			WaitForAllSpawned	pyrogate
			TotalCurrency	150
			TotalCount	14
			MaxActive	14
			SpawnCount	7
			WaitBeforeStarting	10
			WaitBetweenSpawns	10
			Where	spawnbot_mission_sniper
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons_Shotgun
					Tag	"bot_giant"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
			}
		}
	}
	
	
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		WaveSpawn
		{
			Name	wave4a
			TotalCurrency	180
			TotalCount	42
			MaxActive	12
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	4
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Soldier_Extended_Concheror
				}
				TFBot
				{
					Template	T_TFBot_Medic_BigHeal
					Tag	"bot_squad_member"
				}
			}
		}
		
		WaveSpawn
		{
			Name	demoknightgate
			TotalCurrency	70
			TotalCount	3
			MaxActive	3
			SpawnCount	1
			WaitBeforeStarting	8
			WaitBetweenSpawns	15
			Where	spawnbot_mission_sniper

				TFBot
				{
					ClassIcon	demoknight
					Health	3300
					Name	"Giant Demoknight"
					Class	Demoman
					
					EventChangeAttributes
					{
						Default
						{
							Tag "bot_gatebot"			
							Tag "nav_prefer_gate1_flank"	
							BehaviorModifiers push		
							Attributes IgnoreFlag 	
								
							Skill	Expert
							
							WeaponRestrictions	MeleeOnly
							Attributes	"MiniBoss"
							Tag	"bot_giant"
							
							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
							}
							
							Item	"Ali Baba's Wee Booties"
							Item	"The Chargin' Targe"
							Item	"The Eyelander"
							Item	"Prince Tavish's Crown"
							Item 	"MvM GateBot Light Demoman"
						}
						RevertGateBotsBehavior
						{
							Skill	Expert
							
							WeaponRestrictions	MeleeOnly
							Attributes	"MiniBoss"
							Tag	"bot_giant"
								
							ItemAttributes 
							{
								ItemName "MvM GateBot Light Demoman"
								"item style override" 1
							}
								
							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
							}
							
							Item	"Ali Baba's Wee Booties"
							Item	"The Chargin' Targe"
							Item	"The Eyelander"
							Item	"Prince Tavish's Crown"
							Item 	"MvM GateBot Light Demoman"
						}
					}
				}
		}
		
		WaveSpawn
		{
			Name	wave4tank
			WaitForAllDead	wave4a
			TotalCurrency	200
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	35
			
				FirstSpawnOutput                                                                                                                                                            
				{
					 Target boss_spawn_relay                                            
					 Action Trigger                         
				}
			
				Tank
				{
					Health	20000
					Name	tankboss
					Speed	73
					StartingPathTrackNode "boss_path_a1"
					
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
		}
		
		WaveSpawn
		{
			Name	wave4b
			WaitForAllDead	wave4a
			TotalCurrency	150
			TotalCount	60
			MaxActive	12
			SpawnCount	6
			WaitBeforeStarting	5
			WaitBetweenSpawns	4
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Scout_FAN
				}
		}
		
		WaveSpawn
		{
			Name	wave4b
			WaitForAllDead	wave4a
			TotalCurrency	100
			TotalCount	6
			MaxActive	6
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	7
			Where	spawnbot_mission_sniper

				TFBot
				{
					Template	T_TFBot_Giant_Pyro
					Attributes	"AlwaysCrit"
					Tag	"bot_giant"
				}
		}
		
		WaveSpawn
		{
			Name	wave4c
			WaitForAllDead	wave4b
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	20
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_DemoMan_PrinceTavish
					ClassIcon	demoknight
					Tag	"bot_giant"
				}
				TFBot
				{
					Template	T_TFBot_Giant_Medic
					Tag	"bot_squad_member"
					Tag	"bot_giant"
				}
			}
		}
		
		WaveSpawn
		{
			WaitForAllSpawned	wave4tank
			TotalCurrency	100
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	35

				FirstSpawnOutput                                                                                                                                                            
				{
					 Target boss_spawn_relay                                            
					 Action Trigger                         
				}
				
				Tank
				{
					Health	25000
					Name	tankboss
					Speed	73
					StartingPathTrackNode "boss_path_a1"
					
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
		}
		
		WaveSpawn
		{
			Name	wave4cspy
			WaitForAllDead	wave4b
			TotalCurrency	150
			TotalCount	48
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	3
			Support	1
			Where	spawnbot_mission_spy

				TFBot
				{
					Template	T_TFBot_Spy
				}
		}
	}
	
	
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		WaveSpawn
		{
			Name	chiefblastgate
			TotalCurrency	150
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			Where	spawnbot_mission_sniper

				TFBot
				{
					ClassIcon	soldier_libertylauncher
					Health	58000
					Name	"Chief Blast Soldier"
					Scale	1.8
					Class	Soldier
					
					EventChangeAttributes
					{
						Default
						{
							Tag "bot_gatebot"			
							Tag "nav_prefer_gate1_flank"	
							BehaviorModifiers push		
							Attributes IgnoreFlag 
							
							Skill	Expert
							WeaponRestrictions	PrimaryOnly
							
							Tag	"bot_giant"
							Attributes	"MiniBoss"
							Attributes	"UseBossHealthBar"
							Attributes	"HoldFireUntilFullReload"
							
							ItemAttributes
							{
								ItemName	"The Liberty Launcher"
								"damage causes airblast"	1
								"damage bonus"	1
								"fire rate bonus"	0.25
								"clip size upgrade atomic"	5
								"faster reload rate"	0.4
								"Blast radius decreased"	1.2
								"projectile spread angle penalty"	4
							}
							
							CharacterAttributes
							{
								"move speed bonus"	0.5
								"override footstep sound set"	3
								"damage force reduction"	0.4
								"airblast vulnerability multiplier"	0.4
								"airblast vertical vulnerability multiplier"	0.1
								"rage giving scale"	0.15
							}
							
							Item	"The Liberty Launcher"
							Item	"MvM GateBot Light Soldier"
						}
						RevertGateBotsBehavior
						{
							Skill	Expert
							WeaponRestrictions	PrimaryOnly
							
							Tag	"bot_giant"
							Attributes	"MiniBoss"
							Attributes	"UseBossHealthBar"
							Attributes	"HoldFireUntilFullReload"
							
							ItemAttributes 
							{
								ItemName "MvM GateBot Light Soldier"
								"item style override" 1
							}
							
							ItemAttributes
							{
								ItemName	"The Liberty Launcher"
								"damage causes airblast"	1
								"damage bonus"	1
								"fire rate bonus"	0.25
								"clip size upgrade atomic"	5
								"faster reload rate"	0.4
								"Blast radius decreased"	1.2
								"projectile spread angle penalty"	4
							}
							
							CharacterAttributes
							{
								"move speed bonus"	0.5
								"override footstep sound set"	3
								"damage force reduction"	0.4
								"airblast vulnerability multiplier"	0.4
								"airblast vertical vulnerability multiplier"	0.1
								"rage giving scale"	0.15
							}
							
							Item	"The Liberty Launcher"
							Item	"MvM GateBot Light Soldier"
						}
					}
				}
		}
		
		WaveSpawn
		{
			Name	wave5a
			WaitForAllDead	chiefblastgate
			TotalCurrency	50
			TotalCount	10
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	0
			WaitBetweenSpawns	2
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Demo_Burst
				}
		}
		
		WaveSpawn
		{
			Name	wave5b
			WaitForAllSpawned	wave5a
			TotalCurrency	50
			TotalCount	10
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	10
			WaitBetweenSpawns	2
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Demo_Burst
					Tag	"nav_prefer_flank_right"
				}
		}
		
		WaveSpawn
		{
			Name	wave5c
			WaitForAllSpawned	wave5b
			TotalCurrency	50
			TotalCount	10
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	10
			WaitBetweenSpawns	2
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Demo_Burst
				}
		}
		
		WaveSpawn
		{
			Name	superscoutgate
			WaitForAllDead	chiefblastgate
			TotalCurrency	100
			TotalCount	8
			MaxActive	3
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	13
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Giant_Scout_Fast
					Tag	"bot_giant"
				}
		}
		
		WaveSpawn
		{
			Name	wave5d
			WaitForAllDead	wave5c
			TotalCurrency	150
			TotalCount	20
			MaxActive	8
			SpawnCount	2
			WaitBeforeStarting	8
			WaitBetweenSpawns	4
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Class	Pyro
					Skill	Expert
					Attributes	"AlwaysCrit"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
			}
		}
		
		WaveSpawn
		{
			Name	heavygate
			WaitForAllDead	wave5c
			TotalCurrency	150
			TotalCount	32
			MaxActive	8
			SpawnCount	8
			WaitBeforeStarting	0
			Where	spawnbot

				TFBot
				{
					Template	T_TFGateBot_Heavy_Hard
				}
		}
		
		WaveSpawn
		{
			Name	wave5e
			WaitForAllSpawned	wave5d
			WaitForAllSpawned	heavygate
			TotalCurrency	250
			TotalCount	16
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	25
			WaitBetweenSpawns	15
			Where	spawnbot_mission_sniper
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons
					Tag	"bot_giant"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
			}
		}
		
		WaveSpawn
		{
			Name	wave5s
			WaitForAllSpawned	wave5d
			TotalCurrency	0
			TotalCount	25
			MaxActive	8
			SpawnCount	1
			WaitBeforeStarting	20
			WaitBetweenSpawns	0.5
			Support	1
			Where	spawnbot
			
			TFBot
			{
				Class	Soldier
				Skill	Easy
			}
		}
	}
	
	
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		WaveSpawn
		{
			Name	wave6a
			TotalCurrency	100
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	0
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons_Shotgun
					Tag	"bot_giant"
				}
				TFBot
				{
					ClassIcon	medic_kritz
					Health	4500
					Name	"Giant Kritzkrieg Medic"
					Class	Medic
					Skill	Expert
					Attributes	"SpawnWithFullCharge"
					Attributes	"MiniBoss"
					Tag	"bot_squad_member"
					Tag	"bot_giant"
			
					ItemAttributes
					{
						ItemName	"The Kritzkrieg"
						"ubercharge rate bonus"	100
						"uber duration bonus"	200
					}
			
					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
					}
			
					Item	"The Kritzkrieg"
					Item	"Vintage Tyrolean"
				}
			}
		}
		
		WaveSpawn
		{
			Name	bonkscoutgate
			TotalCurrency	100
			TotalCount	15
			MaxActive	5
			SpawnCount	5
			WaitBeforeStarting	25
			WaitBetweenSpawns	10
			Where	spawnbot

				TFBot
				{
					ClassIcon	scout_bonk
					Health	650
					Name	"Fast Bonk Scout"
					Scale	1.4
					Class	Scout
					
					Skill	Expert
					WeaponRestrictions	MeleeOnly
					Attributes	"AlwaysCrit"
					Tag	"bot_giant"
							
					CharacterAttributes
					{
						"move speed bonus"	1.25
						"head scale"	0.7
						"effect bar recharge rate increased"	0.7
					}
							
					Item	"Bonk! Atomic Punch"
					Item	"Bonk Helm"
				}
		}
		
		WaveSpawn
		{
			Name	wave6b
			TotalCurrency	150
			TotalCount	35
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	20
			WaitBetweenSpawns	6
			Where	spawnbot

				TFBot
				{
					Template	T_TFGateBot_Soldier_Hard
				}
		}
		
		WaveSpawn
		{
			Name	wave6c
			WaitForAllSpawned	wave6b
			TotalCurrency	100
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	0
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons_Shotgun
					Tag	"bot_giant"
				}
				TFBot
				{
					ClassIcon	medic_kritz
					Health	4500
					Name	"Giant Kritzkrieg Medic"
					Class	Medic
					Skill	Expert
					Attributes	"SpawnWithFullCharge"
					Attributes	"MiniBoss"
					Tag	"bot_squad_member"
					Tag	"bot_giant"
			
					ItemAttributes
					{
						ItemName	"The Kritzkrieg"
						"ubercharge rate bonus"	100
						"uber duration bonus"	200
					}
			
					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
					}
			
					Item	"The Kritzkrieg"
					Item	"Vintage Tyrolean"
				}
			}
		}
		
		WaveSpawn
		{
			Name	wave6d
			WaitForAllDead	wave6c
			TotalCurrency	200
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	15

				FirstSpawnOutput                                                                                                                                                            
				{
					 Target boss_spawn_relay                                            
					 Action Trigger                         
				}
				
				Tank
				{
					Health	40000
					Name	tankboss
					Speed	73
					Skin	1
					StartingPathTrackNode	"boss_path_a1"
					
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
		}
		
		WaveSpawn
		{
			Name	wave6d
			WaitForAllDead	wave6c
			TotalCurrency	200
			TotalCount	40
			MaxActive	12
			SpawnCount	2
			WaitBeforeStarting	5
			WaitBetweenSpawns	2
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Heavyweapons_Fist
					Tag	"bot_giant"
				}
		}
		
		WaveSpawn
		{
			Name	wave6d
			WaitForAllDead	wave6c
			TotalCurrency	200
			TotalCount	15
			MaxActive	9
			SpawnCount	3
			WaitBeforeStarting	7
			WaitBetweenSpawns	12
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Demo_Burst
					Tag	"bot_giant"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
			}
		}
	}
	
	
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		WaveSpawn
		{
			Name	chiefspammergate
			TotalCurrency	250
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where	spawnbot

				TFBot
				{
					ClassIcon	soldier_spammer
					Health	60000
					Name	"Chief Rocket Spammer"
					Scale	1.8
					Class	Soldier
					
					EventChangeAttributes
					{
						Default
						{
							Tag "bot_gatebot"			
							Tag "nav_prefer_gate1_flank"	
							BehaviorModifiers push		
							Attributes IgnoreFlag 
							
							Skill	Expert
							WeaponRestrictions	PrimaryOnly
							
							Tag	"bot_giant"
							Attributes	"MiniBoss"
							Attributes	"UseBossHealthBar"
							
							ItemAttributes
							{
								ItemName	tf_weapon_rocketlauncher
								"faster reload rate"	-0.8
								"fire rate bonus"	0.5
								"fire rate bonus with reduced health"	0.3
							}
							
							CharacterAttributes
							{
								"move speed bonus"	0.5
								"damage force reduction"	0.4
								"airblast vulnerability multiplier"	0.4
								"airblast vertical vulnerability multiplier"	0.1
								"override footstep sound set"	3
								"Projectile speed increased"	0.65
								"rage giving scale"	0.1
							}
							
							Item	"MvM GateBot Light Soldier"
						}
						RevertGateBotsBehavior
						{
							Skill	Expert
							WeaponRestrictions	PrimaryOnly
							
							Tag	"bot_giant"
							Attributes	"MiniBoss"
							Attributes	"UseBossHealthBar"
							
							ItemAttributes 
							{
								ItemName "MvM GateBot Light Soldier"
								"item style override" 1
							}
							
							ItemAttributes
							{
								ItemName	tf_weapon_rocketlauncher
								"faster reload rate"	-0.8
								"fire rate bonus"	0.5
								"fire rate bonus with reduced health"	0.3
							}
							
							CharacterAttributes
							{
								"move speed bonus"	0.5
								"damage force reduction"	0.4
								"airblast vulnerability multiplier"	0.4
								"airblast vertical vulnerability multiplier"	0.1
								"override footstep sound set"	3
								"Projectile speed increased"	0.65
								"damage bonus"	1.5
								"rage giving scale"	0.1
							}
							
							Item	"MvM GateBot Light Soldier"
						}
					}
				}
		}
		
		WaveSpawn
		{
			Name	wave7a
			TotalCurrency	150
			TotalCount	30
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	10
			WaitBetweenSpawns	7
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Soldier_Extended_Buff_Banner
				}
		}
		
		WaveSpawn
		{
			Name	giantblackboxgate
			WaitForAllDead	chiefspammergate
			TotalCurrency	200
			TotalCount	8
			MaxActive	8
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	3
			Where	spawnbot_mission_sniper

				TFBot
				{
					Template	T_TFGateBot_Giant_Soldier_RocketShotgun
				}
		}
		
		WaveSpawn
		{
			Name	blastsoldiergate
			WaitForAllDead	giantblackboxgate
			TotalCurrency	200
			TotalCount	36
			MaxActive	16
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	1.5
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFGateBot_Heavy_Normal_Crit
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Tag	"bot_squad_member"
				}
			}
		}
		
		WaveSpawn
		{
			Name	wave7d
			WaitForAllDead	giantblackboxgate
			TotalCurrency	50
			TotalCount	4
			MaxActive	4
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	3
			Where	spawnbot

				TFBot
				{
					Template	T_TFBot_Giant_Scout_FAN
					Tag	"bot_giant"
				}
		}
		
		WaveSpawn
		{
			Name	wave7s
			WaitForAllDead	blastsoldiergate
			TotalCurrency	100
			TotalCount	25
			MaxActive	7
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	2
			Support	1
			Where	spawnbot

			RandomChoice
			{
				TFBot
				{
					Class	Pyro
					Skill	Easy
					Attributes	"AlwaysFireWeapon"
				}
				TFBot
				{
					Class	Pyro
					Skill	Easy
					Attributes	"AlwaysFireWeapon"
				}
				TFBot
				{
					Class	Pyro
					Skill	Expert
				}
			}
		}
		
		WaveSpawn
		{
			Name	wave7e
			WaitForAllDead	blastsoldiergate
			TotalCurrency	150
			TotalCount	5
			MaxActive	5
			SpawnCount	1
			WaitBeforeStarting	15
			WaitBetweenSpawns	7
			Where	spawnbot

				TFBot
				{
					ClassIcon	heavy_deflector_fire
					Health	5500
					Name	"Giant Heater Heavy"
					Class	HeavyWeapons
					Skill	Expert
					WeaponRestrictions	PrimaryOnly
					
					Attributes	"MiniBoss"
					Tag	"bot_giant"
					
					ItemAttributes
					{
						ItemName	"The Huo Long Heatmaker"
						"damage penalty"	1
						"damage bonus"	1.5
						"minicrit vs burning player"	1
						"attack projectiles"	2
						"weapon burn dmg increased"	5
					}
					
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction"	0.3
						"airblast vulnerability multiplier"	0.3
						"override footstep sound set"	2
						"airblast vertical vulnerability multiplier"	0.1
					}
					
					Item	"The Huo Long Heatmaker"
					Item	"The Bunsen Brave"
				}
		}
		
		WaveSpawn
		{
			Name	wave7s
			WaitForAllDead	wave7d
			TotalCurrency	100
			TotalCount	25
			MaxActive	7
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	1
			Support	1
			Where	spawnbot

				TFBot
				{
					Class	Demoman
					Skill	Easy
				}
		}
	}
}
