#base robot_giant.pop
#base titan_trials_robots.pop
population
{
	StartingCurrency	6500

    //    WELCOME TO THE TITAN TRIALS! - IN A WORLD OF TITANS, CAN YOU PROVE YOURSELF WORTHY?

	RespawnWaveTime	6
	CanBotsAttackWhileInSpawnRoom	no
	
	Mission
	{
		Objective	DestroySentries // Sentry Busters 
		Where	spawnbot
		InitialCooldown	30
		CooldownTime	30
		DesiredCount	1
		TFBot
		{
			Template	T_TFBot_SentryBuster

		}
	}
	Mission
	{
		Objective	Sniper // Giant Machina Snipers from Wave 1 to Wave 5
		Where	spawnbot_mission_sniper
		InitialCooldown	50
		RunForThisManyWaves	5
		BeginAtWave 1
		CooldownTime	55
		DesiredCount	3
		TFBot
		{
			Template	T_TFBot_Omega_Giant_Sniper_Support
		}
	}
	Mission
	{
		Objective	Spy // Giant High-Tech Spys from Wave 1
		Where	spawnbot_mission_spy
		InitialCooldown	60
		CooldownTime	75
		DesiredCount	2
		RunForThisManyWaves	1
		TFBot
		{
			Template	T_TFBot_Omega_Giant_Spy
		}
	}
	Mission
	{
		Objective	Spy // Giant High-Tech Spys from Wave 3 and 4
		Where	spawnbot_mission_spy
		InitialCooldown	60
		CooldownTime	75
		DesiredCount	3
		BeginAtWave 3
		RunForThisManyWaves	2
		TFBot
		{
			Template	T_TFBot_Omega_Giant_Spy
		}
	}
	Mission
	{
		Objective	Sniper // Giant Hitman Snipers from Wave 6 to Wave 8
		Where	spawnbot_mission_sniper
		BeginAtWave	6
		RunForThisManyWaves 3
		InitialCooldown	60
		CooldownTime	90
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Omega_Giant_Sniper2_Support
		}
	}
    Mission
	{
		Objective	Engineer // BREACH Engineers from Wave 3 to 5
		BeginAtWave	3
		Where	spawnbot
		RunForThisManyWaves	2
		InitialCooldown	160
		CooldownTime	320
		DesiredCount	3
		TFBot
		{
			Template	T_TFBot_Omega_Giant_Engineer_Breach
			TeleportWhere spawnbot
			Health 2000
		}
	}
	Mission
	{
		Objective	Spy // Super High-Tech Spys from Wave 6
		BeginAtWave	6
		Where	spawnbot_mission_spy
		InitialCooldown	50
		CooldownTime	80
		DesiredCount	3
		RunForThisManyWaves	1
		TFBot
		{
			Template	T_TFBot_Omega_Giant_Spy2
		}
	}
	Mission
	{
		Objective	Engineer // RUIN Engineers from Wave 6
		BeginAtWave	6
		Where	spawnbot
		RunForThisManyWaves	1
		InitialCooldown	180
		CooldownTime	200
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Omega_Giant_Engineer_Ruin
			TeleportWhere spawnbot
			Health 2500
		}
	}
	Mission
	{
		Objective	Spy // Super High-Tech Spys from Wave 8
		BeginAtWave	8
		Where	spawnbot_mission_spy
		InitialCooldown	50
		CooldownTime	80
		DesiredCount	3
		RunForThisManyWaves	1
		TFBot
		{
			Template	T_TFBot_Omega_Giant_Spy2
		}
	}
	Mission
	{
		Objective	Engineer // RUIN Engineers from Wave 8 and 9
		BeginAtWave	8
		Where	spawnbot
		RunForThisManyWaves	2
		InitialCooldown	180
		CooldownTime	200
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Omega_Giant_Engineer_Ruin
			TeleportWhere spawnbot
			Health 2500
		}
	}
	Wave // WAVE #1 : THE TITANS' WORLD
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput // Fire Ring Tank + Phase 2 VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/fireringtank`, getroottable())

			IncludeScript(`seel_ins`, getroottable())

			::pos <- -1
			
			::BossPhases <- {
				function OnGameEvent_player_death(params) {
					local player = GetPlayerFromUserID(params.userid)

					if (player.GetTeam() != 3 || !player.IsBotOfType(1337)) {
                        return
                    }

					if (player.HasBotTag(`phase1`)) {
						pos = player.GetOrigin()
						EntFireByHandle(player, `RunScriptCode`, `BossPhases.teleportCheck()`, 0.05, null, null)
					}
				}

				function teleportCheck() {
					for (local i = 0; i <= MaxClients(); i++) {
						local brobot = PlayerInstanceFromIndex(i)
						if (brobot != null) {
							if (brobot.GetTeam() == 3 && brobot.IsBotOfType(1337) && brobot.HasBotTag(`phase2`)) {
								EntFireByHandle(brobot, `RunScriptCode`, `self.Teleport(true, pos, false, self.GetAbsAngles(), true, self.GetAbsVelocity())`, 0.05, null, null)
							}
						}
					}
				}
			}	
			__CollectGameEventCallbacks(BossPhases)"
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
        }
		
		WaveSpawn // W1: INTRODUCTION TO THE TITAN TRIALS
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07edededThe Titan Trials - Wave 1: The Titans' World`)"
            }
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07e3fcffWave 1: The Titans' World: Welcome to Titanmode`)"
            }
			Name w1_scouts
			TotalCurrency	100
			TotalCount	20
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	4
			WaitBetweenSpawns	10
			StartWaveWarningSound "omega/omega_w1.wav"
			Where	spawnbot

			TFBot
			{
				Template	T_TFBot_Omega_Giant_Scout
			}

		}
		WaveSpawn // W1
		{
			Name w1_scouts
			TotalCurrency	100
			TotalCount	20
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	20
			WaitBetweenSpawns	10
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Giant_Sniper
			}

		}
		WaveSpawn // W1
		{
			Name w1_soldiers
			WaitForAllDead w1_scouts
			TotalCurrency	100
			TotalCount	20
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	8
			WaitBetweenSpawns	15
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Giant_Soldier
			}

		}
		WaveSpawn // W1
		{
			Name w1_pyros
			WaitForAllSpawned w1_soldiers
			TotalCurrency	100
			TotalCount	20
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Giant_Pyro
			}

		}
		WaveSpawn // W1
		{
			Name w1_demos
			WaitForAllSpawned w1_pyros
			TotalCurrency	100
			TotalCount	20
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Giant_Demo
			}

		}
		WaveSpawn // W1
		{
			Name w1_heavys
			WaitForAllDead w1_demos
			TotalCurrency	100
			TotalCount	20
			MaxActive	8
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	15
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Giant_Heavy
			}

		}
		WaveSpawn // W1 - OPENER TANKS
		{
			TotalCurrency	100
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	60
			WaitBetweenSpawns 50
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	25000
					Name	Tank
					Speed	75
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W1 - TITAN TANK
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07c4dcffWave1: The Titans' World: Meet the Titans`)"
            }
			WaitForAllDead	w1_heavys
			TotalCurrency	200
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	6
			StartWaveWarningSound "omega/omega_w1_titans.wav"
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	30000
					Name	Tank
					Speed	70
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W1 : TITAN SCOUT
		{
			Name	w1_titanscout
			WaitForAllDead	w1_heavys
			TotalCurrency	200
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	14
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Titan_Scout
			}

		}
		WaveSpawn // W1 : TITAN SNIPER SMG
		{
			Name	w1_titanscout
			WaitForAllDead	w1_heavys
			TotalCurrency	200
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	35
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Titan_Sniper
			}

		}
		WaveSpawn // W1 : TITAN SOLDIER
		{
			Name	w1_titansoldier
			WaitForAllDead	w1_titanscout
			TotalCurrency	200
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	5
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Titan_Soldier
			}

		}
		WaveSpawn // W1 : TITAN PYRO
		{
			Name	w1_titanpyro
			WaitForAllSpawned	w1_titansoldier
			TotalCurrency	200
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	25
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Titan_Pyro
			}

		}
		WaveSpawn // W1 : TITAN DEMO
		{
			Name	w1_titandemo
			WaitForAllSpawned	w1_titanpyro
			TotalCurrency	200
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	25
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Titan_Demoman
			}

		}
		WaveSpawn // W1 - DEAD AI PYROS (Very sad!)
		{
			WaitForAllDead	w1_titandemo
			TotalCurrency	0
			TotalCount	1
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	11
			WaitBetweenSpawns 5
			Where	spawnbot
			
			Support 1
			TFBot
			{
				Template	T_TFBot_Omega_Pyro_Dead
			}

		}
		WaveSpawn // W1: PROTO PUNCH UNITS
		{
			WaitForAllDead	w1_titandemo
			TotalCurrency	0
			TotalCount	50
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	30
			Where	spawnbot

			Support	1
			TFBot
			{
				Template	T_TFBot_Omega_Heavy_Steel
			}
		}
		WaveSpawn // W1 : TITAN HEAVY + MEDIC COMBO
		{
			Name	w1_titanheavy
			WaitForAllDead	w1_titandemo
			TotalCurrency	400
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	15
			FirstSpawnWarningSound "omega/omega_big.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Heavy
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Medic
				}
			}
		}
		WaveSpawn // W1 - TITAN HEAVY STEEL TANK
		{
			Name	w1_titanheavy
			WaitForAllDead	w1_titandemo
			TotalCurrency	300
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	60
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	40000
					Name	Tank
					Speed	75
					Skin 1
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W1: TOWER: UNIT CERBERUS (Phase 1)
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07ffd48fTOWER: Unit Cerberus - Where it Starts \x07FBECCB- Phase 1: \x0749e33b25000 \x07FBECCBHP`)"
            }
			Name	w1_cerberus_p1
			WaitForAllDead	w1_titanheavy
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			FirstSpawnWarningSound "omega/omega_tower.mp3"

			Where	spawnbot
			Support Limited // Hide Phase 1 Icon

			Squad
			{
				Squad
				{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Cerberus
					Health 25000
					Tag phase1
				}
			}
		}
		}
	WaveSpawn // W1: TOWER: UNIT CERBERUS (Phase 2)
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07ffd48fTOWER: Unit Cerberus - Wrath of the Flames! \x07FBECCB- Phase 2: \x0749e33b25000 \x07FBECCBHP`)"
            }
			WaitForAllDead w1_cerberus_p1
			TotalCurrency	400
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			FirstSpawnWarningSound "omega/omega_omega.mp3"
			Where	spawnbot

			TFBot
			{
				Template	T_TFBot_Omega_Tower_Cerberus_Broken
				Health 25000
				Tag phase2
			}
		}
		WaveSpawn // W1: CERBERUS TANK
		{
			WaitForAllDead	w1_titanheavy
			TotalCurrency	2000
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	45
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	25000
					Name	"fireringtank"
					Speed	75
					ClassIcon tank_ring
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
	}
	Wave // WAVE #2 : BAD BAD TANKS
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action RunScriptCode
            Param "
            EntFire(`wave_start_relay`, `Trigger` )
            EntFire(`SendGlobalGameEvent`, `Trigger`)"
		}
		InitWaveOutput // Speed Tank + Phase 2 VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/speedtank`, getroottable())

			IncludeScript(`seel_ins`, getroottable())

			::pos <- -1
			
			::BossPhases <- {
				function OnGameEvent_player_death(params) {
					local player = GetPlayerFromUserID(params.userid)

					if (player.GetTeam() != 3 || !player.IsBotOfType(1337)) {
                        return
                    }

					if (player.HasBotTag(`phase1`)) {
						pos = player.GetOrigin()
						EntFireByHandle(player, `RunScriptCode`, `BossPhases.teleportCheck()`, 0.05, null, null)
					}
				}

				function teleportCheck() {
					for (local i = 0; i <= MaxClients(); i++) {
						local brobot = PlayerInstanceFromIndex(i)
						if (brobot != null) {
							if (brobot.GetTeam() == 3 && brobot.IsBotOfType(1337) && brobot.HasBotTag(`phase2`)) {
								EntFireByHandle(brobot, `RunScriptCode`, `self.Teleport(true, pos, false, self.GetAbsAngles(), true, self.GetAbsVelocity())`, 0.05, null, null)
							}
						}
					}
				}
			}	
			__CollectGameEventCallbacks(BossPhases)"
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		WaveSpawn // W2: TOWER: BAD BREAKTHROUGH (Phase 1)
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x074fb3ffThe Titan Trials - Wave 2: Bad Bad Tanks!`)"
            }
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07bf9d71TOWER: Bad Breakthrough - Hold the Line ! \x07FBECCB- Phase 1: \x0749e33b25000 \x07FBECCBHP`)"
            }
			Name w2_bad_p1
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	1.5
			FirstSpawnWarningSound "omega/omega_tower.mp3"

			Where	spawnbot
			Support Limited // Hide Phase 1 Icon

			Squad
			{
				Squad
				{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Bad
					Health 25000
					Tag phase1
				}
			}
		}
		}
		
		WaveSpawn // W2: TOWER: BAD BREAKTHROUGH (Phase 2)
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x079e7c4cTOWER: Bad Breakthrough - Unleash the Barrage ! \x07FBECCB- Phase 2: \x0749e33b30000 \x07FBECCBHP`)"
            }
			WaitForAllDead w2_bad_p1
			TotalCurrency	500
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			FirstSpawnWarningSound "omega/omega_omega.mp3"

			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Bad_Broken
					Health 30000
					Tag phase2
				}
			}
		}
		WaveSpawn // W2 - 10 SPEED TANKS WITH LOW HEALTH SPAWNING RAPIDLY
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07d3edf5Wave 2: Bad Bad Tanks!: The Need for Speed`)"
            }
			Name w2_tanks
			TotalCurrency	500
			TotalCount	10
			MaxActive	10
			SpawnCount	1
			WaitBeforeStarting	50
			WaitBetweenSpawns	15
			StartWaveWarningSound "omega/omega_w2.mp3"
			Where	spawnbot

			Squad
			{
				Tank
				{
					Health	10000
					Name	"speedtank|180|speedtank*" // 180 speed when at low health!
					Speed	140
					ClassIcon tank_blitz
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W2 - 11 GIANTS TO SUPPORT THE TANKS
		{
			TotalCurrency	0
			TotalCount	80
			MaxActive	8
			SpawnCount	1
			WaitBeforeStarting	50
			WaitBetweenSpawns	2

			Support	1
			Where	spawnbot
			
			RandomChoice
			{
				TFBot
					{
						Template	T_TFBot_Omega_Pyro_Gas_Scrap
						Attributes  "AlwaysCrit"
					}
				TFBot
					{
						Template	T_TFBot_Giant_Soldier_Crit
						Item "Stainless Pot"
					}
				TFBot
					{
						Template	T_TFBot_Omega_Soldier_Beggars_Scrap
						Attributes  "AlwaysCrit"
					}
				TFBot 
                    {
						Template	T_TFBot_Omega_Demo_Sticky_Scrap
						Attributes	"AlwaysCrit"
					}
                TFBot
                    {
						Template	T_TFBot_Giant_Scout_FAN
						Attributes	"AlwaysCrit"
					}
                TFBot
                    {
						Template	T_TFBot_Omega_Pyro_Flare_Scrap 
					    Attributes	"AlwaysCrit"
					}
                TFBot
                    {
						Template	T_TFBot_Giant_Scout_Bonk
					    Attributes	"AlwaysCrit"
						Name "Giant Bonk Scout"
					}
                TFBot
                    {
						Template	T_TFBot_Omega_Sniper_Carbine_Scrap
					}
                TFBot
                    {
					    Template	T_TFBot_Giant_Boxing_Heavy
					    Attributes	"AlwaysCrit"
					}	
				 TFBot
                    {
					    Template	T_TFBot_Omega_Pyro_Napalm_Scrap
					    Attributes	"AlwaysCrit"
					}
				 TFBot
                    {
					    Template	T_TFBot_Omega_Scout_Pistol_Scrap
					    Attributes	"AlwaysCrit"
					}
				TFBot
                    {
					    Template	T_TFBot_Giant_Demoman
					    Attributes	"AlwaysCrit"
						ClassIcon demo_spammer
						Item "Sober Stuntman"
					}					
			}   
		}
	}
	Wave // WAVE #3 : HYPOTHERMIA (New original wave!)
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput // Combat Tank (Minigun) + Phase 2 VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/combattank`, getroottable())
		    IncludeScript(`tankextensions/combattank_weapons/minigun`, getroottable())

			::pos <- -1
			
			::BossPhases <- {
				function OnGameEvent_player_death(params) {
					local player = GetPlayerFromUserID(params.userid)

					if (player.GetTeam() != 3 || !player.IsBotOfType(1337)) {
                        return
                    }

					if (player.HasBotTag(`phase1`)) {
						pos = player.GetOrigin()
						EntFireByHandle(player, `RunScriptCode`, `BossPhases.teleportCheck()`, 0.05, null, null)
					}
				}

				function teleportCheck() {
					for (local i = 0; i <= MaxClients(); i++) {
						local brobot = PlayerInstanceFromIndex(i)
						if (brobot != null) {
							if (brobot.GetTeam() == 3 && brobot.IsBotOfType(1337) && brobot.HasBotTag(`phase2`)) {
								EntFireByHandle(brobot, `RunScriptCode`, `self.Teleport(true, pos, false, self.GetAbsAngles(), true, self.GetAbsVelocity())`, 0.05, null, null)
							}
						}
					}
				}
			}	
			__CollectGameEventCallbacks(BossPhases)"
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // W3 - RAPID FIRE TITAN DEMOS
		{
            StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x0747d1ffThe Titan Trials - Wave 3: Hypothermia`)"
            }
			Name	w3_demos	
			Where spawnbot
			TotalCount 4
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 2
			WaitBetweenSpawns 25
			StartWaveWarningSound "omega/omega_w3.wav"
			TotalCurrency 0
			
			Squad 
			{
				TFBot
				{
					Template T_TFBot_Omega_Titan_Demoman_RapidFire
					Attributes  AlwaysCrit
				}
			}
		}
		WaveSpawn // W3 - TANK
		{
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	25
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	35000
					Name	Tank
					Speed	80
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn  // W3 - SCOUT MASS DEPLOYMENT
		{
            Name	w3_scouts		
			Where spawnbot
			TotalCount 20
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 15
			WaitBetweenSpawns 2
			WaitForAllDead w3_demos
			TotalCurrency 0
			
			Squad 
			{
				TFBot
				{
					Template T_TFBot_Omega_Giant_Scout_Melee
				}
				TFBot
				{
					Template T_TFBot_Omega_Giant_Medic
				}
			}
		}
		WaveSpawn  // W3 - SCOUT MASS DEPLOYMENT (Without hoes)
		{
            Name	w3_scouts		
			Where spawnbot
			TotalCount 70
			MaxActive 6
			SpawnCount 2
			WaitBeforeStarting 1.2
			WaitBetweenSpawns 1.5
			WaitForAllDead w3_demos
			TotalCurrency 0
			
			Squad 
			{
				TFBot
				{
					Template T_TFBot_Omega_Giant_Scout_Melee
				}
			}
		}
		WaveSpawn // W3 - TANKS
		{
			Name	w3_scouts
			WaitForAllDead w3_demos
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	25
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	30000
					Name	Tank
					Speed	80
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn  // W3 - TITAN SCOUTS MORE
		{
            Name	w3_scouts		
			Where spawnbot
			TotalCount 4
			MaxActive 2
			SpawnCount 1
			WaitBeforeStarting 25
			WaitBetweenSpawns 30
			WaitForAllDead w3_demos
			TotalCurrency 0
			
			Squad 
			{
				TFBot
				{
					Template T_TFBot_Omega_Titan_Scout
					Attributes AlwaysCrit
				}
			}
		}
		WaveSpawn // W3 - TOWER: GROUND CONTROL - DPS REQUIRED
		{
            FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07faf19dTOWER: Ground Control - Quite Sturdy Gear! \x0749e33b30000 \x07FBECCBHP`)"
            }
		    Name	w3_fury	
			Where spawnbot
			TotalCount 5
			MaxActive 5
			SpawnCount 1
			WaitBeforeStarting 3
			WaitForAllDead w3_scouts
			StartWaveWarningSound "omega/omega_w3_cold.mp3"
			FirstSpawnWarningSound "omega/omega_alarm.mp3"
			TotalCurrency 0
			
			Squad 
			{
				TFBot
				{
					Template T_TFBot_Omega_Titan_Pyro_Fury
				}
				TFBot
				{
					Template T_TFBot_Omega_Titan_Medic_Regen
					Health 28000
				}
				TFBot
				{
					Template T_TFBot_Omega_Giant_Pyro_Gas
				}
				TFBot
				{
					Template T_TFBot_Omega_Giant_Pyro_Gas
				}
				TFBot
				{
					Template T_TFBot_Omega_Giant_Pyro_Gas
				}
			}
		}
		WaveSpawn   // W3 - GLACIAL ARMAGGEDON
		{
            FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x079de3faWave 3: Hypothermia: The Armaggedon Soldiers`)"
            }
			Name	w3_armaggedon
			Where spawnbot
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 40
			WaitForAllDead w3_fury
			FirstSpawnWarningSound "omega/omega_alarm.mp3"
			TotalCurrency 0
			
			Squad 
			{
				TFBot
				{
					Template T_TFBot_Omega_Titan_Soldier_Nuke_Cold
				}
			}
		}
		WaveSpawn // W3 - COMBAT TANK
		{
			Name	w3_armaggedon
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	25
			WaitForAllDead w3_fury
 			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	35000
					Name	"combattank_bomb|minigun"
					Speed	75
					ClassIcon tank_combat_minigun
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn   // W3 - ICEBERG
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07a69dfaWave 3: Hypothermia: Forest of Magic!`)"
            }
			Name	w3_iceberg
			Where spawnbot
			TotalCount 6
			MaxActive 4
			SpawnCount 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 35
			WaitForAllDead w3_armaggedon
			StartWaveWarningSound "omega/omega_w3_hypothermia.mp3"
			TotalCurrency 0
			
			Squad 
			{
				TFBot
				{
					Template T_TFBot_Omega_Titan_Soldier_Cold
				}
				TFBot
				{
					Template T_TFBot_Omega_MiniBoss_Medic_Cold
				}
			}
		}
		WaveSpawn   // W3 - TOWER: HYPOTHERMIC BRASS (Phase 1)
		{
            FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x074d8bffTOWER: Hypothermic Brass - Frozen in Place \x07FBECCB- Phase 1: \x0749e33b30000 \x07FBECCBHP`)"
            }
			Name	w3_hypothermia_p1
			Where spawnbot
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 5
			WaitForAllDead w3_iceberg
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			TotalCurrency 0
			
			Support Limited
			Squad 
			{
				Squad
				{
				TFBot
				{
					Template T_TFBot_Omega_Tower_Cold
					Health 30000
					Tag phase1
				}
			}
		}
		}
		WaveSpawn   // W3 - TOWER: HYPOTHERMIC BRASS (Phase 2)
		{
            FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07babcffTOWER: Hypothermic Brass - Consumed by the Blizzard \x07FBECCB- Phase 2: \x0749e33b40000 \x07FBECCBHP`)"
            }
			WaitForAllDead	w3_hypothermia_p1
			Where spawnbot
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			FirstSpawnWarningSound "omega/omega_omega.mp3"
			TotalCurrency 3000
			
			Squad 
			{
				TFBot
				{
					Template T_TFBot_Omega_Tower_Cold_Broken
					Health 40000
					Tag phase2
					ItemAttributes
					{
						ItemName	"The Leftover Trap"
						"set item tint RGB"	6381921
					}
					Item  "The Leftover Trap"

				}
			}
		}
		WaveSpawn  // W3
		{
			Where spawnbot
			TotalCount 8
			MaxActive 9
			SpawnCount 1
			WaitBeforeStarting 12
			WaitBetweenSpawns 3
			WaitForAllDead w3_armaggedon
			TotalCurrency 0

			Support 1
			
			Squad 
			{
				TFBot
				{
					Template T_TFBot_Omega_Pyro_Dead
					Health 1600
					Attributes	"AlwaysFireWeapon"
				}
			}
		}
	}
	Wave // WAVE #4 : COGNITIVE LINK
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput // Frontier Tank ; Sentry Tank + Phase 2 VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/chewchewtank`, getroottable())
			IncludeScript(`tankextensions/sentrytank`, getroottable())

			::pos <- -1
			
			::BossPhases <- {
				function OnGameEvent_player_death(params) {
					local player = GetPlayerFromUserID(params.userid)

					if (player.GetTeam() != 3 || !player.IsBotOfType(1337)) {
                        return
                    }

					if (player.HasBotTag(`phase1`)) {
						pos = player.GetOrigin()
						EntFireByHandle(player, `RunScriptCode`, `BossPhases.teleportCheck()`, 0.05, null, null)
					}
				}

				function teleportCheck() {
					for (local i = 0; i <= MaxClients(); i++) {
						local brobot = PlayerInstanceFromIndex(i)
						if (brobot != null) {
							if (brobot.GetTeam() == 3 && brobot.IsBotOfType(1337) && brobot.HasBotTag(`phase2`)) {
								EntFireByHandle(brobot, `RunScriptCode`, `self.Teleport(true, pos, false, self.GetAbsAngles(), true, self.GetAbsVelocity())`, 0.05, null, null)
							}
						}
					}
				}
			}	
			__CollectGameEventCallbacks(BossPhases)"
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn  // W4 - TOWER: TERROR BURST FIRE SOLDIER
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07ffe9a6The Titan Trials - Wave 4: Cognitive Link`)"
            }
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07d5ffa1TOWER: Terror Burst Fire Soldier - Cracking your Skull \x0749e33b60000 \x07FBECCBHP`)"
            }
			Name	w4_opener
			TotalCurrency	0
			TotalCount	9
			MaxActive	9
			SpawnCount	9
			WaitBeforeStarting	4
			StartWaveWarningSound "omega/omega_w4.mp3"
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Slaughter
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
			}
		}
		WaveSpawn  // W4 CHEW CHEW
		{
			Name	w4_opener
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	6
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	40000
					Name	"chewchewtank"
					ClassIcon chew_lite
					Speed	75
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn  // W4 SUPPORT PYROS
		{
			Name	w4_opener
			TotalCurrency	0
			TotalCount	16
			MaxActive	8
			SpawnCount	8
			WaitBeforeStarting	30
			WaitBetweenSpawns 25
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Pyro_Active
				}
			}
		}
		WaveSpawn  // W4 TAAAAANK
		{
			Name	w4_napalm
			WaitForAllDead w4_opener
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	35
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	30000
					Name	Tank
					Speed	75
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn  // W4 CIRCUIT SCOUTS 0!
		{
			Name	w4_napalm
			WaitForAllDead	w4_opener
			TotalCurrency	0
			TotalCount	20
			MaxActive	8
			SpawnCount	1
			WaitBeforeStarting	2.5
			WaitBetweenSpawns	2
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Scout_Circuit0
					Attributes  AlwaysCrit
				}
			}
		}
		WaveSpawn  // W4 TITAN NAPALM PYROS
		{
			Name	w4_napalm
			WaitForAllDead	w4_opener
			TotalCurrency	0
			TotalCount	6
			MaxActive	4
			SpawnCount	1
			WaitBeforeStarting	5
			WaitBetweenSpawns	35
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Pyro_Napalm
				}
				TFBot
				{
					Template	T_TFBot_Omega_MiniBoss_Medic
				}
				TFBot
				{
					Template	T_TFBot_Omega_MiniBoss_Medic
				}
			}
		}
		WaveSpawn  // W4 STEEL SUPPORT UNITS
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07f7ffedWave 4: Cognitive Link: Armored Machines`)"
            }
			Name	w4_armored
			WaitForAllDead	w4_napalm
			TotalCurrency	0
			TotalCount	21
			MaxActive	9
			SpawnCount	3
			WaitBeforeStarting	2
			WaitBetweenSpawns	13.5
			StartWaveWarningSound "omega/omega_w4_armor.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Heavy_Steel
				}
			}
		}
		WaveSpawn  // W4 ARMORED BULLETS
		{
			Name	w4_armored
			WaitForAllDead	w4_napalm
			TotalCurrency	0
			TotalCount	3
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	30
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Scout_FAN
					Attributes  AlwaysCrit
				}
			}
		}
		WaveSpawn  // W4 STEEL TANK
		{
			Name w4_armored
			WaitForAllDead	w4_napalm
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	50
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	45000
					Name	Tank
					Speed	60
					Skin 1
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn  // W4 CHARGED ARMAGGEDON
		{
			Name w4_armaggedon
			WaitForAllDead	w4_armored
			TotalCurrency	0
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	5
			WaitBetweenSpawns	30
			FirstSpawnWarningSound "omega/omega_alarm.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Soldier_Nuke
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Medic_Regen
				}
			}
		}
		WaveSpawn // W4
		{
			Name w4_scouts
			WaitForAllSpawned	w4_armaggedon
			TotalCurrency	0
			TotalCount	24
			MaxActive	5
			SpawnCount	1
			WaitBeforeStarting	40
			WaitBetweenSpawns 3
 			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Scout_Fast
				}
			}
		}
		WaveSpawn  // W4 SENTRY TANK
		{
			WaitForAllSpawned	w4_scouts
			TotalCurrency	1000
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	5
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	40000
					ClassIcon tank_sentry
					Name	"sentrytank"
					Speed	75
					OnKilledOutput
					{
						Target boss_dead_relay
					    Action Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
	}
	Wave // WAVE #5 : CONQUER THE FORTRESS
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput // Wave 5 Tank VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/drilltank`, getroottable())
			IncludeScript(`tankextensions/tankdozer`, getroottable())
			
			IncludeScript(`seel_ins`, getroottable())

			::pos <- -1
			
			::BossPhases <- {
				function OnGameEvent_player_death(params) {
					local player = GetPlayerFromUserID(params.userid)

					if (player.GetTeam() != 3 || !player.IsBotOfType(1337)) {
                        return
                    }

					if (player.HasBotTag(`phase1`)) {
						pos = player.GetOrigin()
						EntFireByHandle(player, `RunScriptCode`, `BossPhases.teleportCheck()`, 0.05, null, null)
					}
				}

				function teleportCheck() {
					for (local i = 0; i <= MaxClients(); i++) {
						local brobot = PlayerInstanceFromIndex(i)
						if (brobot != null) {
							if (brobot.GetTeam() == 3 && brobot.IsBotOfType(1337) && brobot.HasBotTag(`phase2`)) {
								EntFireByHandle(brobot, `RunScriptCode`, `self.Teleport(true, pos, false, self.GetAbsAngles(), true, self.GetAbsVelocity())`, 0.05, null, null)
							}
						}
					}
				}
			}	
			__CollectGameEventCallbacks(BossPhases)"
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // W5 TOWER: STEEL PLATED DEMO
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07d9d9d9The Titan Trials - Wave 5: Fortress Conquest`)"
            }
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x079cbd95TOWER: Steel Plated Demo - Leaving Fallout Behind! \x07FBECCB- Phase 1: \x0749e33b30000 \x07FBECCBHP`)"
            }
			Name w5_fallout_p1
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	1.5
 			StartWaveWarningSound "omega/omega_w5_fortress.wav"
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot

			Support Limited
			Squad
			{
				Squad
				{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Sticky_Mask
					Health 30000
					Tag phase1
				}
			}
		}
		}
		WaveSpawn // W5 TOWER: STEEL PLATED DEMO
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07a89876TOWER: Steel Plated Demo - Not So Rusty \x07FBECCB- Phase 2: \x0749e33b40000 \x07FBECCBHP`)"
            }
			Name w5_drill
			WaitForAllDead w5_fallout_p1
			TotalCurrency	500
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns 8
			FirstSpawnWarningSound "omega/omega_omega.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Sticky_Mask_Broken
					Health 40000
					Tag phase2
				}
			}
		}
		WaveSpawn // W5 DRILL TANK
		{
			Name w5_drill
			TotalCurrency	500
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	50
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	50000
					Name	"drilltank"
					ClassIcon tank_drill_lite
					Speed	70
					OnKilledOutput
					{
						Target boss_dead_relay
					    Action Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W5 - GRAY LEAGUE SOLDIERS (Can probably guess the next color)
		{
			Name w5_corps
			TotalCurrency	0
			TotalCount	20
			MaxActive	8
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns 6.5
			WaitForAllDead w5_drill
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Soldier_Corps_Gray
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic
				}
			}
		}
		WaveSpawn // W5 - TITAN DEMO ARMY GROUPS
		{
			Name w5_start
			WaitForAllDead w5_corps
			TotalCurrency	0
			TotalCount	9
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	2
            WaitBetweenSpawns 35
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Demoman_Spammer
				}
			}
		}
		WaveSpawn // W5
		{
			Name w5_start
			WaitForAllDead w5_corps
			TotalCurrency	0
			TotalCount	32
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	30
			WaitBetweenSpawns	4
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Pyro_Active
				}
			}	
		}
		WaveSpawn  // W5 - SANDMAN MACHINE
		{
			Name w5_machine
			WaitForAllDead w5_start
			TotalCurrency	0
			TotalCount	6
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	2.5
			WaitBetweenSpawns	20
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Scout_Armored
				}
			}
		}
		WaveSpawn  // W5 - STEEL TANK
		{
			Name w5_machine
			WaitForAllDead w5_start
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	30
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	45000
					Name	Tank
					Speed	70
					Skin 1
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W5 - ARMED PILGRIMAGE
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07f0e3ffWave 5: Fortress Conquest: An Unholy Crusade!`)"
            }
			TotalCurrency 0
			WaitForAllDead w5_machine
			Name w5_burst
			Where spawnbot
			TotalCount 10
			MaxActive 10
			SpawnCount 4
			WaitBetweenSpawns 70
			WaitBeforeStarting 5
			StartWaveWarningSound "omega/omega_w5_spammers.mp3"

			Squad
			{
				TFBot
				{
					Template T_TFBot_Omega_Titan_Soldier_Spammer
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Omega_Titan_Medic_Shield
				}
				TFBot
				{
					Template T_TFBot_Omega_Pyro_Flare_Scorch
					ClassIcon pyro_flare
				}
				TFBot
				{
					Template T_TFBot_Omega_Pyro_Flare_Scorch
					ClassIcon pyro_flare
		        }
				TFBot
				{
					Template T_TFBot_Omega_Pyro_Flare_Scorch
					ClassIcon pyro_flare
		        }
			}
		}
		WaveSpawn // W5 - REALIZED STEEL HEAVYS (One of these units is gonna become Captain Punch one day)
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07e8ebedWave 5: Fortress Conquest: Stayed too Long`)"
            }
			WaitForAllDead w5_burst
			TotalCurrency	0
			TotalCount	20
			MaxActive	6
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns 5
			StartWaveWarningSound "omega/omega_w5_punch.wav"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Heavy_Steel_Realized
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
			}
		}
		WaveSpawn // W5 - TOWER: FORTRESS FISTS
		{
		    FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07dededeTOWER: Fortress Fists - Made of Titanium! \x0749e33b95000 \x07FBECCBHP`)"
            }
			Name w5_punch
			TotalCurrency	500
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	125
			Where	spawnbot
			WaitForAllDead w5_burst
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Fortress
				}
			}
		}
		WaveSpawn // W5 - TANKDOZER
		{
			Name w5_punch
			TotalCurrency	500
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	125
			WaitForAllDead w5_burst
			Where	spawnbot
			Squad
			{
				Tank
				{
					Name "tankdozer"
					Health	60000
					ClassIcon tankdozer_lite
					Speed	40
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W5 - ARMORED SPYS
		{
			WaitForAllDead w5_burst
			TotalCurrency	0
			TotalCount	10
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	130
			WaitBetweenSpawns	12

			Support	1
			Where	spawnbot_mission_spy
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Spy_Armor
					Attributes IgnoreFlag
				}
			}
		}
	}
	Wave // WAVE #6 : SYSTEM BREAKDOWN
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput // Wave 6 Blimp + Fire Ring and Vaccinator Tank VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/speedtank`, getroottable())
			IncludeScript(`tankextensions/fireringtank`, getroottable())
			IncludeScript(`tankextensions/vactank`, getroottable())"
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // W6 - GREEN VIBES
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07e9fcdeThe Titan Trials - Wave 6: System Breakdown!`)"
            }
			Name  w6_scouts
			TotalCurrency	0
			TotalCount	40
			MaxActive	8
			SpawnCount	1
			WaitBeforeStarting	4
			WaitBetweenSpawns	2
			StartWaveWarningSound "omega/omega_w6.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Scout_Circuit
					Health 1000
					Attributes	"AlwaysCrit"
				}
			}
		}
		WaveSpawn // W6 - TOWER: DESTRUCTOR BARRAGE
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07cfffe8TOWER: Destructor Barrage - Dance to Dodge his Rockets! \x0749e33b70000 \x07FBECCBHP`)"
            }
			Name  w6_opener
			TotalCurrency	300
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	12
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Barrage
				}
			}
		}
		WaveSpawn // W6 - SPEED TANKS
		{
			Name  w6_opener
			TotalCurrency	0
			TotalCount	3
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	15
			WaitBetweenSpawns	25
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	12000
					ClassIcon tank_blitz
					Name	"speedtank|180|speedtank*"
					Speed	130
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W6 - TOWER: NETWORK CIRCUIT!
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07b5f7bdTOWER: Network Circuit Scout - Green Vibes! \x0749e33b30000 \x07FBECCBHP`)"
            }
			Name  w6_opener
			WaitForAllDead w6_scouts
			TotalCurrency	200
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	2.5
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Network
				}
			}
		}
		WaveSpawn // W6 - CRISIS BANNER SOLDIERS
		{
			Name  w6_soldiers
			WaitForAllDead w6_opener
			TotalCurrency	0
			TotalCount	30
			MaxActive	7
			SpawnCount	1
			WaitBeforeStarting	2
			WaitBetweenSpawns 2.5
			Where	spawnbot

			RandomChoice
			{
				TFBot
				{
					Template	T_TFBot_Omega_Soldier_Conch_Crisis
				}
				TFBot
				{
					Template	T_TFBot_Omega_Soldier_Buff_Crisis
				}
			}
		}
		WaveSpawn // W6 - CRISIS BACKUP SOLDIERS
		{
			Name  w6_soldiers
			WaitForAllDead w6_opener
			TotalCurrency	0
			TotalCount	4
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	12
			WaitBetweenSpawns 30
			Where	spawnbot

			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Soldier_Backup_Crisis
					Attributes UseBossHealthBar
				}
			}
		}
		WaveSpawn // W6 - BOTBASH TITAN PYROS
		{
			Name  w6_soldiers
			WaitForAllDead w6_opener
			TotalCurrency	0
			TotalCount	3
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	25
			WaitBetweenSpawns 35
			Where	spawnbot

			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Pyro
					Attributes AlwaysCrit
					Attributes AlwaysFireWeapon
				}
			}
		}
		WaveSpawn // W6 - RING TANKS AS SUPPORT
		{
			Name w6_soldiers
			WaitForAllDead w6_opener
			TotalCurrency	0
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	50
			WaitBetweenSpawns	45
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	25000
					Name	"fireringtank"
					ClassIcon tank_ring
					Speed	80
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W6 - BANNER TRIAD TITAN SOLDIERS
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07e4ffa6Wave 6: System Breakdown!: The Banner Triad Titan Soldiers!`)"
            }
			Name  w6_banners
			WaitForAllDead w6_soldiers
			TotalCurrency	500
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	2
			StartWaveWarningSound "omega/omega_w6_banners.wav"
			Where	spawnbot

			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Soldier_Buff
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Soldier_Concheror
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Soldier_Backup
				}
			}
		}
		WaveSpawn // W6 - SPAMMER SUPPORT
		{
			WaitForAllDead w6_soldiers
			TotalCurrency	0
			TotalCount	50
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	20
			WaitBetweenSpawns 40
			Where	spawnbot

			Support 1
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Soldier_Spammer_Crisis
				}
			}
		}
		WaveSpawn // W6 - TOWER: FACILITY BREACH
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x075effcfTOWER: Facility Breach - Disease Proof! \x0749e33b30000 \x07FBECCBHP`)"
            }
			Name  w6_end
			WaitForAllDead w6_banners
			TotalCurrency	0
			TotalCount	4
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	13
			StartWaveWarningSound "omega/omega_w6_breach.mp3"
			FirstSpawnWarningSound "omega/omega_alarm.mp3"
			Where	spawnbot

			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Crisis
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Vaccinator_Fire
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Vaccinator_Bullet
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Vaccinator_Blast
				}
			}
		}
		WaveSpawn // W6 - VACCINATOR TRIAD TANK
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07e4ffa6Wave 6: System Breakdown!: Vaccinator Tank - The Key is Melee!`)"
            }
			Name  w6_end
			WaitForAllDead w6_banners
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	75
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	12000
					Name	"vactank_bullet_blast_fire"
					Speed	75
					ClassIcon tank_vac_trio_lite
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
	}	
	Wave // WAVE #7: BANBARD'S HIGHWAY!
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput // Wave 7 Combat Tank VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

           IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/combattank`, getroottable())
		    IncludeScript(`tankextensions/combattank_weapons/minigun`, getroottable())
			IncludeScript(`tankextensions/combattank_weapons/fireball`, getroottable())"
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // W7 - TOWER: GRADUATION LEAGUE
		{
		    StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07eeccffThe Titan Trials - Wave 7: Banbard's Highway`)"
            }
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07f9edffTOWER: Graduation League - The Art of the Sandman \x0749e33b60000 \x07FBECCBHP`)"
            }
			Name	w7_opener
			TotalCurrency	100
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	4
			Where	spawnbot
			StartWaveWarningSound "omega/omega_w7.mp3"
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Sandman
				}
			}
		}
		WaveSpawn // W7 - TOWER: SERGEANT BLACKOUT
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07d9d9d9TOWER: Sergeant Blackout - Lights Out! \x0749e33b80000 \x07FBECCBHP`)"
            }
			Name	w7_sergeant
			WaitForAllDead w7_opener
			TotalCurrency	200
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Crusher
					
				}
			}
		}
		WaveSpawn // W7
		{
			Name	w7_sergeant
			WaitForAllDead w7_opener
			Where spawnbot
			TotalCount 30
			MaxActive 8
			SpawnCount 4
			WaitBeforeStarting 5
			WaitBetweenSpawns 5
			TotalCurrency 0	
		
			TFBot
			{
				Template  T_TFBot_Omega_Giant_Spy2
				Attributes IgnoreFlag
			}
		}
		WaveSpawn // W7 - COMBAT TANK
		{
			Name	w7_sergeant
			WaitForAllDead w7_opener
			TotalCurrency	0
			TotalCount	1
			MaxActive 1
			WaitBeforeStarting	25
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	45000
					Name	"combattank_bomb|minigun|fireball"
					Speed	65
					ClassIcon tank_combat_dragon_fury_minigun
					StartingPathTrackNode	boss_path_a1
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W7 - TITAN BLACK BOX SOLDIERS
		{
			Name	w7_box
			WaitForAllDead	w7_sergeant
			TotalCurrency	0
			TotalCount	9
			MaxActive	9
			SpawnCount	3
			WaitBeforeStarting	2
			WaitBetweenSpawns	30
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Soldier_Metro_Box
					Attributes	"AlwaysCrit"
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
			}
		}	
		WaveSpawn // W7
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07fffac2Wave 7: Banbard's Highway: Endurance Test`)"
            }
			WaitForAllDead w7_box
			TotalCurrency 0
			Where spawnbot
			TotalCount 50
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 2
			WaitBeforeStarting 28

			Support 1

			TFBot
			{
				Template T_TFBot_Omega_Giant_Scout_Euphoria
			}
		}
		WaveSpawn // W7
		{
			WaitForAllDead w7_box
			TotalCurrency 0
			Where spawnbot
			TotalCount 50
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 2
			WaitBeforeStarting 28

			Support 1

			TFBot
			{
				Template T_TFBot_Omega_Giant_Demo_Euphoria
			}
		}
		WaveSpawn // W7
		{
			WaitForAllDead w7_box
			TotalCurrency 0
			Where spawnbot
			TotalCount 50
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 2
			WaitBeforeStarting 28

			Support 1

			TFBot
			{
				Template T_TFBot_Omega_Giant_Heavy_Euphoria
			}
		}
		WaveSpawn // W7
		{
			WaitForAllDead w7_box
			TotalCurrency 0
			Where spawnbot
			TotalCount 50
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 1
			WaitBeforeStarting 28

			Support 1

			TFBot
			{
				Template T_TFBot_Omega_Giant_Engineer_Euphoria
				BehaviorModifiers	Push
				Attributes  IgnoreFlag
			}
		}
		WaveSpawn // W7
		{
			TotalCurrency 0
			WaitForAllDead w7_box
			Name w7_fabulous_demos
			Where spawnbot
			TotalCount 12
			MaxActive 8
			SpawnCount 4
			StartWaveWarningSound "omega/omega_w7_joy.wav"
			WaitBetweenSpawns 45
			WaitBeforeStarting 50

			Squad
			{
				TFBot
				{
					Template T_TFBot_Omega_Titan_Demo_Burst_Euphoria
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Omega_Titan_Medic_Regen
					Attributes SpawnWithFullCharge
				}
				TFBot
				{
					Template T_TFBot_Omega_Soldier_Conch_FuckValve
				}
				TFBot
				{
					Template T_TFBot_Omega_Soldier_Conch_FuckValve
				}
			}
		}
		WaveSpawn // W7: TOWER: BANBADO BANBADO!
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07fff9b3TOWER: The Good Kid - Just Passin' Through! \x0749e33b60000 \x07FBECCBHP`)"
            }
			WaitForAllDead w7_fabulous_demos
			Name w7_banbado
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			TotalCurrency 900
			WaitBetweenSpawns 0
			WaitBeforeStarting 0
			StartWaveWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			
			RandomChoice
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Joy
				}
			}
		}
	}	
	Wave // WAVE #8: BROKEN PARTS EXTRA
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput // Wave 8 Tank VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/sentrytank`, getroottable())"
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // W8 - CARNAGE
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07fff4d4The Titan Trials - Wave 8: Broken Parts Extra!`)"
            }
			Name	w8_opener
			TotalCurrency	0
			TotalCount	32
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	2
			WaitBetweenSpawns	0
			StartWaveWarningSound "omega/omega_w8.mp3"
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Soldier2
				}
			}	
		}
		WaveSpawn // W8 - CARNAGE
		{
			Name	w8_opener
			TotalCurrency	0
			TotalCount	32
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	2
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Heavy2
				}
			}	
		}
		WaveSpawn // W8 - CARNAGE
		{
			Name	w8_opener
			TotalCurrency	0
			TotalCount	32
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	2
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Pyro2
				}
			}	
		}
		WaveSpawn // W8 - CARNAGE
		{
			Name	w8_opener
			TotalCurrency	0
			TotalCount	24
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	1.9 // Scouts always start with the bomb
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Scout2
				}
			}	
		}
		WaveSpawn // W8 - CARNAGE
		{
			Name	w8_opener
			TotalCurrency	0
			TotalCount	24
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	2
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Sniper2
				}
			}	
		}
		WaveSpawn // W8 - CARNAGE
		{
			Name	w8_opener
			TotalCurrency	0
			TotalCount	24
			MaxActive	4
			SpawnCount	1
			WaitBeforeStarting	2
			Where	spawnbot
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Demo2
				}
			}	
		}
		WaveSpawn // W8
		{
			Name	w8_demos
			WaitForAllSpawned	w8_opener
			TotalCurrency	0
			TotalCount	1
			MaxActive 1
			WaitBeforeStarting	30
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	35000
					Name	tankboss
					Speed	80
					StartingPathTrackNode	boss_path_a1
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W8 - SPAMMER COMBOS AS WARMUP
		{
			Name	w8_demos
			WaitForAllDead	w8_opener
			TotalCurrency	0
			TotalCount	12
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	2.5
			WaitBetweenSpawns	25
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Demoman_Spammer
					Attributes	"AlwaysCrit"
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Medic_QuickUber
				}
			}
		}
		WaveSpawn // W8 - DEATHFLECTOR HEAVY (Because a name like this goes too hard to drop)
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07ffddc7Wave 8: Broken Parts Extra!: Titans of Madness`)"
            }
			Name	w8_heavys
			WaitForAllDead	w8_demos
			TotalCurrency	0
			TotalCount	6
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	60
			StartWaveWarningSound "omega/omega_w8_bosses.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Heavy_Deflector
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Medic_Regen
				}
			}
		}
		WaveSpawn // W8 - BROKEN PARTS
		{
			Name	w8_heavys
			WaitForAllDead	w8_demos
			TotalCurrency	0
			TotalCount	8
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	45
			WaitBetweenSpawns	25
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Scout_Mach
				}
			}
		}
		WaveSpawn // W8 - STEEL TANK 2
		{
			Name	w8_heavys
			WaitForAllDead	w8_demos
			TotalCurrency	0
			TotalCount	1
			MaxActive 1
			WaitBeforeStarting	75
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	45000
					Name	tankboss
					Speed	80
					Skin 1
					StartingPathTrackNode	boss_path_a1
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W8 - CONDOR DIVISIONS (Now with an actual Air Strike)
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07a6d4ffWave 8: Broken Parts Extra!: Condor Commando`)"
            }
			Name	w8_condor
			WaitForAllSpawned	w8_heavys
			TotalCurrency	0
			TotalCount	10
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	14
			WaitBetweenSpawns	16
			Where	spawnbot
			
			RandomChoice
			{
				TFBot
					{
						Template	T_TFBot_Omega_Soldier_Condor
						Tag	"special_main_right"
						Attributes AlwaysCrit
						ItemAttributes
					    {
						ItemName	"eotl_hiphunter_boots"
						"set item tint RGB"	8289918
					    }
					Item  "eotl_hiphunter_boots"
					}
				TFBot
					{
						Template	T_TFBot_Omega_Soldier_Condor
						Tag	"special_main_right"
						Attributes AlwaysCrit
						ItemAttributes
					    {
						ItemName	"eotl_hiphunter_boots"
						"set item tint RGB"	8289918
					    }
					Item  "eotl_hiphunter_boots"
					}
			}
		}
		WaveSpawn // W8 - CLOSING CONCH
		{
			Name	w8_conch
			WaitForAllSpawned	w8_condor
			TotalCurrency	0
			TotalCount	4
			MaxActive	4
			SpawnCount	1
			WaitBeforeStarting	5
			WaitBetweenSpawns	20
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Omega_Soldier_Conch
				Attributes "AlwaysCrit"
			}
		}
		WaveSpawn // W8
		{
			WaitForAllDead	w8_condor
			TotalCurrency	30000
			TotalCount	1
			WaitBeforeStarting	25
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	40000
					Name	"sentrytank"
					ClassIcon tank_sentry
					Speed	75
					StartingPathTrackNode	boss_path_1
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
	}
	Wave // WAVE #9 : THEATER OF PAIN - PRESSURE IS MOUNTING
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput // Wave 9 Tank Variants + Phase 2 VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

           IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/combattank`, getroottable())
		    IncludeScript(`tankextensions/combattank_weapons/railgun`, getroottable())
			IncludeScript(`tankextensions/combattank_weapons/rocketpod`, getroottable())
			IncludeScript(`tankextensions/fireringtank`, getroottable())
			IncludeScript(`tankextensions/painttank`, getroottable())
			IncludeScript(`tankextensions/tankdozer`, getroottable())
			
			::pos <- -1
			
			::BossPhases <- {
				function OnGameEvent_player_death(params) {
					local player = GetPlayerFromUserID(params.userid)

					if (player.GetTeam() != 3 || !player.IsBotOfType(1337)) {
                        return
                    }

					if (player.HasBotTag(`phase1`)) {
						pos = player.GetOrigin()
						EntFireByHandle(player, `RunScriptCode`, `BossPhases.teleportCheck()`, 0.05, null, null)
					}
				}

				function teleportCheck() {
					for (local i = 0; i <= MaxClients(); i++) {
						local brobot = PlayerInstanceFromIndex(i)
						if (brobot != null) {
							if (brobot.GetTeam() == 3 && brobot.IsBotOfType(1337) && brobot.HasBotTag(`phase2`)) {
								EntFireByHandle(brobot, `RunScriptCode`, `self.Teleport(true, pos, false, self.GetAbsAngles(), true, self.GetAbsVelocity())`, 0.05, null, null)
							}
						}
					}
				}
			}	
			__CollectGameEventCallbacks(BossPhases)"
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // W9 - YOU CANNOT KILL ME I AM OMEGA I AM SUBHUMAN
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07ed2f2fThe Titan Trials - Wave 9: Arena of Blood`)"
            }
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07e3acacTOWER: Subhuman Armaggedon - I Am Become Death \x0749e33b80000 \x07FBECCBHP`)"
            }
			Name	w9_armaggedon
			TotalCurrency	0
			TotalCount	3
			MaxActive	3
			SpawnCount	1
			WaitBeforeStarting	4
			Where	spawnbot
			StartWaveWarningSound "omega/omega_w9.wav"
			FirstSpawnWarningSound "omega/omega_alarm.mp3"
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Armaggedon
					Tag	"nav_prefer_flank_right"
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Medic_Regen
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Medic_Regen
				}
			}
		}
		WaveSpawn // W9 - CIRCUIT SCOUTS 2 (What is wrong with you, why are you blue ?)
		{
			Name	w9_armaggedon
			TotalCurrency	0
			TotalCount	26
			MaxActive	14
			SpawnCount	1
			WaitBeforeStarting	14
			WaitBetweenSpawns 1
 			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Scout_Circuit2
					Attributes AlwaysCrit
				}
			}
		}
		WaveSpawn // W9 - CRITICAL NAPALM TITAN PYROS 
		{
			Name	w9_napalm
			WaitForAllDead w9_armaggedon
			TotalCurrency	0
			TotalCount	3
			MaxActive	3
			SpawnCount	1
			WaitBeforeStarting	5
			WaitBetweenSpawns 10
 			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Pyro_Napalm_Intense
					Attributes AlwaysCrit
				}
			}
		}
		WaveSpawn // W9 RING TANKS
		{
			Name	w9_napalm
			WaitForAllDead w9_armaggedon
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns 35
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	30000
					Name	"fireringtank"
					ClassIcon tank_ring
					Speed	80
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W9 - MARSHALL STALIN DEATHFLECTOR HEAVYS
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07ff7a7aWave 9: Arena of Blood: Red Alert`)"
            }
			Name	w9_heavys
			WaitForAllDead w9_napalm
			TotalCurrency	0
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			StartWaveWarningSound "omega/omega_w9_red.mp3"
			FirstSpawnWarningSound "omega/omega_alarm.mp3"
			WaitBeforeStarting	26
			WaitBetweenSpawns	85
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Heavy_Deflector2
					Attributes	"AlwaysCrit"
					Item "The Dead Head"
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Medic
				}
			}
		}
		WaveSpawn // W9 - MARSHALL STALIN DEATHFLECTOR HEAVYS
		{
			Name	w9_heavys
			WaitForAllDead w9_napalm
			TotalCurrency	0
			TotalCount	1
			MaxActive 1
			SpawnCount	1
			WaitBeforeStarting	40
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	35000
					Name	"combattank_bomb|rocketpod|railgun"
					ClassIcon tank_combat_rocket_railgun
					Speed	60

					StartingPathTrackNode	boss_path_1
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W9 - TOWER: BLOOD FLOWER
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07ab0e0eTOWER: Blood Flower - The Warrior's Wrath \x0749e33b50000 \x07FBECCBHP`)"
            }
			Name	w9_oni
			WaitForAllDead	w9_heavys
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	4
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Oni
				}
			}
		}
		WaveSpawn // W9 - ONI DEMOS
		{
			Name	w9_oni
			WaitForAllDead	w9_heavys
			TotalCurrency	0
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	4.5
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Demo_Samurai
				}
			}
		}
		WaveSpawn // W9 - BLACK LEAGUE SOLDIERS (REAL)
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x079c9c9cWave 9: Arena of Blood: The Sacred War`)"
            }
			Name w9_corps
			WaitForAllDead w9_oni
			TotalCurrency	0
			TotalCount	20
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	4
			WaitBetweenSpawns 35
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Soldier_Corps_Black
				}
			}
		}
		WaveSpawn // W9 - THE GREAT TRIAL OF THE LEAGUE
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x0799afe0TOWER: Trial Black League - The Greatest Battle! \x0749e33b85000 \x07FBECCBHP`)"
            }
			Name w9_corps
			WaitForAllDead w9_oni
			TotalCurrency	0
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	21
			StartWaveWarningSound "omega/omega_w9_black.wav"
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Trial
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Medic_Shield
				}
			}
		}
			WaveSpawn // W9 - BLACK LEAGUE TANK
		{
			Name w9_corps
			WaitForAllDead w9_oni
			TotalCurrency	0
			TotalCount	1
			MaxActive 1
			SpawnCount	1
			WaitBeforeStarting	40
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	40000
					Name	"painttank|30 30 30"
					ClassIcon tank_black
					Speed	85

					StartingPathTrackNode	boss_path_1
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W9 - TOWER: OMEGA GARGANTUA, YOU'RE GOING DOWN! (I don't know why I named him Gargantuar with an r before)
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07adaba8OMEGA: Omega Gargantua - Prepare to be Burried \x07FBECCB- Phase 1  \x0749e33b60000 \x07FBECCBHP`)"
            }
			Name	w9_gargantua_p1
			WaitForAllDead	w9_corps
			TotalCurrency	0
			TotalCount	4
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	6
			StartWaveWarningSound "omega/omega_w9_gargantua.mp3"
			FirstSpawnWarningSound "omega/omega_big.mp3"

			Where	spawnbot
			Support Limited
			Squad
			{
				Squad
				{
				TFBot
				{
					Template	T_TFBot_Omega_Heavy_Gargantua
					Tag phase1
					Health 60000
					ItemAttributes
					{
						ItemName	"Cossack Camo"
						"item style override" 1
						"set item tint RGB"	7237230
					}
					Item "Cossack Camo"
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Pyro_Gargantua
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Pyro_Gargantua
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Pyro_Gargantua
				}
			}
		}
		}
		WaveSpawn // W9 - TOWER: OMEGA GARGANTUA, YOU'RE GOING DOWN! (I don't know why I named him Gargantuar with an r before)
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07a36041OMEGA: Omega Gargantua - Resistance is Futile! \x07FBECCB- Phase 2 \x0749e33b80000 \x07FBECCBHP`)"
            }
			Name w9_gargantua_p2
			WaitForAllDead	w9_gargantua_p1
			TotalCurrency	0
			TotalCount	6
			MaxActive	6
			SpawnCount	6
			WaitBeforeStarting	0
			FirstSpawnWarningSound "omega/omega_omega.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Heavy_Gargantua
					Health 80000
					Tag phase2
					ItemAttributes
					{
						ItemName	"Cossack Camo"
						"item style override" 1
						"set item tint RGB"	2960676
					}
					Item "Cossack Camo"
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Pyro_Gargantua
					Tag phase2
					Attributes AlwaysFireWeapon
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Pyro_Gargantua
					Tag phase2
					Attributes AlwaysFireWeapon
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Pyro_Gargantua
					Tag phase2
					Attributes AlwaysFireWeapon
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Pyro_Gargantua
					Tag phase2
					Attributes AlwaysFireWeapon
				}
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Pyro_Gargantua
					Tag phase2
					Attributes AlwaysFireWeapon
				}
			}
		}
		WaveSpawn // W9 - GARGANTUA TANKDOZER
		{
			Name w9_gargantua_p2
			WaitForAllDead	w9_gargantua_p1
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	30
			Where	spawnbot
			Squad
			{
				Tank
				{
					Name "tankdozer"
					Health	55000
					ClassIcon tankdozer_lite
					Speed	55
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // W9 - TOWER: BRUTA... But something is terribly wrong here.
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07adb7d9Wave 9: Arena of Blood: Off the Deep End`)"
            }
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07c4ae91TOWER: Brutali... - ..? \x07fc9d2825000 \x07FBECCBHP`)"
            }
			Name	w9_finale
			WaitForAllDead	w9_gargantua_p2
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	20
			StartWaveWarningSound "omega/omega_towhat.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Health	25000
					Name	"TOWER - Bruta.. THE CLOCK"
					Template	T_TFBot_Omega_Tower_Brutality
				}
			}
		}
		WaveSpawn // W9 - The clock ticks bit by bit, time is running out my friend.
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x078a8a8aWave 9: Arena of Blood: The Time`)"
            }
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x073b3b3bSECRET - The Clock Keeper. \x0749e33b80000 \x07FBECCBHP`)"
            }
			WaitForAllDead	w9_finale
			TotalCurrency	3000
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	20
			Where	spawnbot
			StartWaveWarningSound "omega/omega_w9_entry.mp3"
			FirstSpawnWarningSound "omega/omega_w9_clock.mp3"
			DoneWarningSound "omega/omega_w9_clockdone.mp3"
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Spy_Clock
					Tag	"nav_prefer_flank_right"
				}
			}
		}
		WaveSpawn // W9
		{
			WaitForAllDead	w9_finale
			TotalCurrency	0
			TotalCount	1
			MaxActive	4
			SpawnCount	1
			WaitBeforeStarting	25
			WaitBetweenSpawns 2.5
			Where	spawnbot

            Support 1

			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Spy_Midnight
					Health 40000
					Attributes IgnoreFlag
					BehaviorModifiers Push
				}
			}
		}
	    }
	Wave // WAVE FINALE #10: OMEGA, THE FRONTIER WITHIN REACH
	   {
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput // Wave 8 Tank VScripts
		{
			Target bignet
			Action RunScriptCode
			Param "
            IncludeScript(`tankextensions_main`, getroottable())

            IncludeScript(`tankextensions/sentrytank`, getroottable())"
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn // WF - FAILED FAILED FAILED
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x0794c9ffThe Titan Trials - Final Wave 10: The Epilogue ?`)"
            }
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x079e9e9e??? - FAILED FAILED FAILED \x0749e33b????? \x07FBECCBHP`)"
            }
			Name wf_failed
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	5
			Where	spawnbot
			StartWaveWarningSound "omega/omega_wf_failed.mp3"
			FirstSpawnWarningSound "omega/omega_wf_get_out.mp3"
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_FAILEDFAILEDFAILED
					BehaviorModifiers Push
				}
			}
		}
		WaveSpawn // WF - LAST STAND CONCHERORS
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x0769b6ffThe Titan Trials - Final Wave 10: The Epilogue`)"
            }
			Name	wf_opener
			WaitForAllDead	wf_failed
			TotalCurrency	0
			TotalCount	10
			MaxActive	4
			SpawnCount	1
			WaitBeforeStarting	2.5
			WaitBetweenSpawns	5
			StartWaveWarningSound "omega/omega_wf.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Soldier_Conch_Final
					Attributes AlwaysCrit
				}
			}
		}
		WaveSpawn // WF - MACH CIRCUIT SQUADS - BLUE SLOP
		{
			Name	wf_opener
			WaitForAllDead	wf_failed
			TotalCurrency	0
			TotalCount	50
			MaxActive	10
			SpawnCount	1
			WaitBeforeStarting	15
			WaitBetweenSpawns	2
			Where	spawnbot

			RandomChoice
			{
				TFBot
				{
					Template	T_TFBot_Giant_Scout_Fast
					Attributes  AlwaysCrit
				}
				TFBot
				{
					Template	T_TFBot_Omega_Scout_Circuit2
					Attributes  AlwaysCrit
				}
			}
		}
		WaveSpawn // WF - TOWER: HEAVEN FLOWER
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07f9ff85TOWER: Heaven Flower - Noble in Sacrifice \x0749e33b60000 \x07FBECCBHP`)"
            }
			Name	wf_tenshi
			WaitForAllDead	wf_opener
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Heaven
					ItemAttributes
					{
						ItemName	"the menpo"
						"set item tint RGB"	16316664
					}
					Item  "the menpo"
				}
			}
		}
		WaveSpawn // WF - TENSHI DEMOS
		{
			Name	wf_tenshi
			WaitForAllDead	wf_opener
			TotalCurrency	0
			TotalCount	4
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	0.5
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Giant_Demo_Samurai_Heaven
				}
			}
		}
		WaveSpawn // WF - HOK MASTERS
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07a6f5c1Final Wave 10: The Epilogue: Taste of Extinction`)"
            }
			Name	wf_hok
			WaitForAllDead wf_tenshi
			TotalCurrency	0
			TotalCount	30
			MaxActive	11
			SpawnCount	1
			WaitBeforeStarting	4
			WaitBetweenSpawns	2
			Where	spawnbot

			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Pyro_Extinction
				}
			}
		}
		WaveSpawn // WF - HOK MASTER
		{
			Name	wf_hok
			WaitForAllDead wf_tenshi
			TotalCurrency	0
			TotalCount	3
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	25
			WaitBetweenSpawns 45
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Heavy_HOK
				}
			}
		}
		WaveSpawn // WF - SENTRY TANKS
		{
			Name	wf_hok
			WaitForAllDead	wf_tenshi
			TotalCurrency	0
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	60
			WaitBetweenSpawns	55
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	40000
					Speed	75
					Name "sentrytank"
					ClassIcon tank_sentry
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // WF - FINAL TANK
		{
			StartWaveOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x0799e0ffFinal Wave 10: The Epilogue: The Titan World's Last Hurrah`)"
            }
			Name wf_omega3
			WaitForAllDead	wf_hok
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	30
			Where	spawnbot
			Squad
			{
				Tank
				{
					Health	45000
					Skin 1
					Speed	55
					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}
					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn // WF: OMEGA: UNIT CERBERUS
		{
			Name	wf_omega1
			WaitForAllDead	wf_hok
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Cerberus
					Health 30000
					Name "FINALE - CERBERUS"
					Attributes AlwaysCrit
					CharacterAttributes
					{
						"move speed bonus"	0.5
					}
				}
			}
		}
		WaveSpawn // WF: OMEGA: BAD BREAKTHROUGH
		{
			Name	wf_omega2
			WaitForAllSpawned	wf_omega1
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	20
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Bad
					Health 30000
					Name  "FINALE - BAD BREAKTHROUGH"
					CharacterAttributes
					{
						"move speed bonus"	0.5
					}
				}
			}
		}
		WaveSpawn // WF: OMEGA: HYPOTHERMIA
		{
			Name	wf_omega3
			WaitForAllDead	wf_omega1
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			FirstSpawnWarningSound "omega/omega_tower.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Cold
					Health 35000
					Name  "FINALE - HYPOTHERMIA"
					CharacterAttributes
					{
						"move speed bonus"	0.5
					}
				}
			}
		}
		WaveSpawn // WF - OMEGA: THE ULTIMATUM STRONGER THAN EVER 
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x07ffb996OMEGA: Mann Co. Ultimatum - The Greatest Soldier \x0749e33b90000 \x07FBECCBHP`)"
            }
			Name	wf_ultimatum
			WaitForAllDead	wf_omega3
			TotalCurrency	0
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	0
			StartWaveWarningSound "omega/omega_wf_finale.mp3"
			FirstSpawnWarningSound "omega/omega_omega.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Ultimatum
				}
				TFBot
				{
					Template	T_TFBot_Omega_Titan_Medic_Ultimatum
					ItemAttributes
					{
						ItemName	"The Byte'd Beak"
				        "set item tint RGB" 13066783
					}
					Item	"The Byte'd Beak"
				}
			}
		}
		WaveSpawn // WF - OMEGA - THE TITANS' WORLD SUBMITTED, THEIR GREATEST INTERVENING, GOD STATUS WITHIN REACH, NOW GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!
		{
			FirstSpawnOutput
            {
                Target wave_start_relay
                Action RunScriptCode
                Param "ClientPrint(null, 3, `\x074076ffOMEGA: Omega Epilogue - Thank You for Playing!! \x0749e33b160000 \x07FBECCBHP`)"
            }
			Name	wf_omega_finale
			WaitForAllSpawned	wf_ultimatum
			TotalCurrency	2000
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	75
			FirstSpawnWarningSound "omega/omega_omega.mp3"
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Omega_Final
				}
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Medic_Finale
					Health 20000
					ItemAttributes
					{
						ItemName	"Cool Capuchon"
				        "set item tint RGB" 921147
					}
					Item	"Cool Capuchon"
				}
				TFBot
				{
					Template	T_TFBot_Omega_Tower_Medic_Finale
					Health 20000
					ItemAttributes
					{
						ItemName	"Cool Capuchon"
				        "set item tint RGB" 921147
					}
					Item	"Cool Capuchon"
				}
			}
		}
		WaveSpawn // WF - DEAD AI - NOTHING REMAINS - THE HUMAN APPEARS TO HAVE CRUSHED EVERYTHING!!!
		{
			WaitForAllDead	wf_hok
			TotalCurrency	0
			TotalCount	10
			MaxActive	7
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	2.2
			
			Support	1
			Where	spawnbot
			
			Squad
			{
				TFBot
					{
						Template	T_TFBot_Omega_Pyro_Dead
						Attributes	"AlwaysFireWeapon"
						Health 1000
					}
			}	
		}
	 }
}	
	