
#base robot_moonlight_mid.pop
#base robot_giant.pop
#base robot_standard.pop
#base robot_thunderstorm.pop
// robot_moonlight originally by eyes
// robot_thunderstorm and its funky stuff by bazooks
// icons from modified ml stuff from seelpit, daanbox, nys and lite
// map by bazooks
// payout
// start 400
// w1 400
// w2 400 + 800 = 1200 + 100
// w3 1200 + 800 = 2000 + 200
// w4 2000 + 850 = 2850 + 300 
// w5 2850  + 800 = 3650 + 400
// w6 3650  + 750 = 4400 + 500
// final pay 4400 + 500 = 4900 + 600
WaveSchedule
{
	StartingCurrency 400
	CanBotsAttackWhileInSpawnRoom No
	RespawnWaveTime 4
	Advanced 1
	AddSentryBusterWhenDamageDealtExceeds 10
	AddSentryBusterWhenKillCountExceeds 2000
// MISSION: Sentry Buster
	Mission
	{
		Objective DestroySentries
		Where spawnbot_mid
		InitialCooldown 10
		CooldownTime 20
		BeginAtWave 1
		RunForThisManyWaves 7
		TFBot
		{
			Template T_TFBot_SentryBusterFix
			Item "The Sole Saviors"
			Item "The U-clank-a"
		}
	}
	Mission
	{
		Objective Sniper
		Where spawnbot_mission_sniper
		InitialCooldown 30
		CooldownTime 45
		BeginAtWave 2
		RunForThisManyWaves 1
		DesiredCount 2
		TFBot
		{
			Template T_TFBot_Sniper_Sydney_Sleeper
			Item "The Razorback"
			// a little too crazy on the sniper hints there, but the wave do need a scout check
		}
	}
	Templates
	{
		T_TFBot_SentryBusterFix
		{
			Class Scout
			Name "Fast Sentry Buster"
			Skill Expert
			Health 2500
			Item "The Atomizer"
			WeaponRestrictions MeleeOnly
			ClassIcon sentry_buster
			Attributes MiniBoss
			Attributes DisableDodge
			Attributes IgnoreEnemies
			UseHumanAnimations 1
			CharacterAttributes
			{
				"head scale" 2.6
				"torso scale" 0.3
				"move speed bonus" 1.3
				"damage force reduction" 0.0
				"airblast vulnerability multiplier" 0.0
				"airblast vertical vulnerability multiplier" 0.0
				"override footstep sound set" 7
				"cannot be backstabbed" 1
				"voice pitch scale" 2
			}
		}
		T_TFBot_Soldier_Shotgun_Stock
		{
			Class Soldier
			Skill Hard
			WeaponRestrictions SecondaryOnly
			ClassIcon heavy_shotgun
		}
		T_TFBot_Soldier_Burst
		{
			Class Soldier
			Skill Hard
			Name "Burst Fire Soldier"
			ClassIcon soldier_burstfire_armored_yoovy
			Health 900
			Scale 1.5
			Item "The Team Captain"
			ItemAttributes
			{
				ItemName "TF_WEAPON_ROCKETLAUNCHER"
				"faster reload rate" 0.4
				"fire rate bonus" 0.2
				"clip size upgrade atomic" 5.0
				"Projectile speed increased" 0.65
			}
		}
		T_TFBot_Heavyweapons_Pene
        {
            Class Heavyweapons
            ClassIcon heavy_penetrate
            Name "Penetrator Heavy"
            Skill Normal
            Item "Iron Curtain"
			Item "The Heavy Artillery Officer's Cap"
            ItemAttributes
            {
				ItemName "Iron Curtain"
                "projectile penetration heavy" 5
            }
        }
		T_TFBot_Giant_Heavyweapons_Penetrator
		{
			Template T_TFBot_Giant_Heavyweapons
			Name "Giant Penetrator Heavy"
			ClassIcon heavy_penetrate_giant
			MaxVisionRange 1500
			Item "Iron Curtain"
			ItemAttributes
			{
				ItemName "Iron Curtain"
				"damage bonus"	1.5
				"projectile penetration heavy" 5
			}
		}
		T_TFBot_Engineer_Sentry_Tele_Battle_Fast
		{
			Template T_TFBot_Engineer_Sentry_Tele_Battle
			Name "Fast Engineer"
			ClassIcon engineer_fast2
			Item "The Jag"
			Item "The Data Mining Light"
			CharacterAttributes
			{
				"kill forces attacker to laugh" 1
				"move speed bonus" 2
			}
		}
		T_TFBot_Spy_Yer
		{
			Template T_TFBot_Spy
			Item "Your Eternal Reward"
			Item "The Familiar Fez"
			Health 100
			ClassIcon spy_yer_tind
			Action Spy
			CharacterAttributes
			{
				"voice pitch scale" 2.0
				"SET BONUS: quiet unstealth" 1
			}
			
		}
		T_TFBot_Spy_Yer_dud
		{
			Template T_TFBot_Spy_Yer
			Skill Easy
			Attributes IgnoreEnemies
			Attributes IgnoreFlag
			Action Idle
			CharacterAttributes
			{
				"move speed bonus" 0.1
			}
			MaxVisionRange 1
		}
		
	}
	// wave 1 supps (4)
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput
        {
            Target gamerules
            Action RunScriptCode
            Param "
                EntFire(`bombpath_choose_right`, `Trigger`)
            "
        }
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		Checkpoint Yes
		WaveSpawn
		{
			Name "stuffer"
			Where spawnbot_hidden
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 0
			TotalCurrency 0
			Support 1
				TFBot
				{
					Template T_TFBot_Spy_Yer_dud
				}
		}
		WaveSpawn
		{
			Name "carrier"
			Where spawnbot_right
			TotalCount 30
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 5
			TotalCurrency 150
			Support 1
				TFBot
				{
					Class Heavyweapons
					Skill Easy
				}
		}
		WaveSpawn
		{
			Name "the actual spies"
			Where spawnbot
			TotalCount 2
			SpawnCount 2
			MaxActive 2
			WaitBeforeStarting 15
			WaitBetweenSpawns 40
			TotalCurrency 0
			Support 1
				TFBot
				{
					Template T_TFBot_Spy_Yer
					Skill Expert
				}
		}
		WaveSpawn
		{
			Name "one extra one to mess you up"
			Where spawnbot
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 17
			WaitBetweenSpawns 45
			TotalCurrency 0
			Support 1
				TFBot
				{
					Template T_TFBot_Spy_Yer
					Skill Easy
					Item "The Dead Ringer"
				}
				
		}
		WaveSpawn
		{
			Name "w1a"
			Where spawnbot
			TotalCount 12
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 0
			WaitBetweenSpawns 15
			TotalCurrency 180
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_Nuker
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickUber
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickUber
				}
			}
		}
		WaveSpawn
		{
			Name "w1a"
			Where spawnbot
			TotalCount 30
			SpawnCount 5
			MaxActive 7
			WaitBeforeStarting 0
			WaitBetweenSpawns 7.5
			TotalCurrency 180
				TFBot
				{
					Class Soldier
					Skill Normal
				}
		}
		WaveSpawn
		{
			Name "w1b"
			WaitForAllSpawned "w1a"
			Where spawnbot_left
			TotalCount 2
			SpawnCount 2
			MaxActive 2
			WaitBeforeStarting 5
			WaitBetweenSpawns 0
			TotalCurrency 240
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_Burst
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickUber
				}
			}
				
		}
	}
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput
        {
            Target gamerules
            Action RunScriptCode
            Param "
                EntFire(`bombpath_choose_high_right`, `Trigger`)
            "
        }
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		Checkpoint Yes
		WaveSpawn
		{
			Name "w2sup"
			Where spawnbot
			TotalCount 40
			SpawnCount 2
			MaxActive 4
			WaitBeforeStarting 10
			WaitBetweenSpawns 7
			TotalCurrency 160
			Support 1
				TFBot
				{
					Template T_TFBot_Soldier_Shotgun_Stock
				}
		}
		WaveSpawn
		{
			Name "w2sup"
			WaitForAllSpawned "w2a"
			Where spawnbot_mid
			TotalCount 40
			SpawnCount 4
			MaxActive 6
			WaitBeforeStarting 0
			WaitBetweenSpawns 0
			TotalCurrency 120
			Support 1
				TFBot
				{
					Template T_TFBot_Sniper_Huntsman
				}
		}
		WaveSpawn
		{
			Name "engie 1"
			Where spawnbot_right
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 30
			TotalCurrency 0
			Support 1
				TFBot
				{
					Template T_TFBot_Engineer_Sentry_Tele_Battle_Fast
					TeleportWhere spawnbot_left
					TeleportWhere spawnbot_mid
					AlwaysGlow 1
				}
		}
		WaveSpawn
		{
			Name "engie 2"
			Where spawnbot_left
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 30
			TotalCurrency 0
			Support 1
				TFBot
				{
					Template T_TFBot_Engineer_Sentry_Tele_Battle_Fast
					TeleportWhere spawnbot_left
					TeleportWhere spawnbot_mid
					AlwaysGlow 1
				}
		}
		WaveSpawn
		{
			Name "w2a"
			Where spawnbot
			TotalCount 9
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 0
			WaitBetweenSpawns 20
			TotalCurrency 90 
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons_Megalaser
				}
				TFBot
				{
					Template T_TFBot_Medic_BigHeal_Armored
				}
				TFBot
				{
					Template T_TFBot_Medic_BigHeal_Armored
				}
			}
		}
		WaveSpawn
		{
			Name "w2a"
			Where spawnbot
			TotalCount 50
			SpawnCount 1
			MaxActive 6
			WaitBeforeStarting 10
			WaitBetweenSpawns 1
			TotalCurrency 100
				TFBot
				{
					Class Demoman
					Skill Normal
					Tag special_random
				}
		}
		WaveSpawn
		{
			Name "w2b"
			WaitForAllSpawned "w2a"
			Where spawnbot
			TotalCount 3
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 13
			WaitBetweenSpawns 7
			TotalCurrency 90
				TFBot
				{
					Template T_TFBot_Giant_Scout_FAN
					Skill Easy
				}
		}
		WaveSpawn
		{
			WaitForAllSpawned "w2a"
			TotalCurrency 105
			TotalCount 1
			Tank
			{
				Health 20000
				Speed 75
				Name "tank"
				StartingPathTrackNode "boss_path_short_1"
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn
		{
			Name "w2b"
			WaitForAllSpawned "w2a"
			Where spawnbot_mid
			TotalCount 9
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 10
			WaitBetweenSpawns 13
			TotalCurrency 135
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Burst
					Item "The Team Captain"
				}
				TFBot
				{
					Template T_TFBot_Medic_BigHeal_Armored
				}
				TFBot
				{
					Template T_TFBot_Medic_BigHeal_Armored
				}
			}
		}
		
	}
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput
        {
            Target gamerules
            Action RunScriptCode
            Param "
				IncludeScript(`tankextensions_main`, getroottable())
				IncludeScript(`tankextensions/ubertank`, getroottable())
                EntFire(`bombpath_choose_high_left`, `Trigger`)
            "
        }
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		Checkpoint Yes
		WaveSpawn
		{
			Name "w3sup"
			Where spawnbot
			TotalCount 20
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 7
			TotalCurrency 60
			Support 1
				TFBot
				{
					Class Pyro
					Skill Easy
					Attributes AlwaysFireWeapon
				}
		}
		WaveSpawn
		{
			Name "w3sup"
			Where spawnbot_left
			TotalCount 20
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 7
			TotalCurrency 60
			Support 1
				TFBot
				{
					Class Pyro
					Skill Easy
					Attributes AlwaysFireWeapon
				}
		}
		WaveSpawn
		{
			Name "w3start"
			Where spawnbot
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0
			TotalCurrency 50
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Lightning
					Item "Lo-Fi Longwave"
				}
		}
		WaveSpawn
		{
			Name "w3start1"
			Where spawnbot_right
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 0
			TotalCurrency 30
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Lightning
					BehaviorModifiers Push
					Tag allow_flank
					Tag special_main_right
					Tag middle_flank_right
					Tag hatch_flank_right
					AlwaysGlow 1
				}
		}
		WaveSpawn
		{
			TotalCurrency 80
			TotalCount 1
			Tank
			{
				Health 22000
				Speed 75
				Name "ubertank|0|999"
				ClassIcon tank_uber_lite
				StartingPathTrackNode "boss_path_1"
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn
		{
			WaitForAllDead "w3start"
			FirstSpawnOutput
			{
				Target "ubertank|0|999"
				Action CallScriptFunction
				Param "ToggleUber"
			}
		}
		WaveSpawn
		{
			TotalCurrency 120
			TotalCount 1
			WaitForAllDead "w3start"
			WaitBeforeStarting 34
			Tank
			{
				Health 15000
				Speed 75
				Name "ubertank|0|991"
				ClassIcon tank_uber_lite
				StartingPathTrackNode "boss_path_1"
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn
		{
			WaitForAllDead "w3flank"
			FirstSpawnOutput
			{
				Target "ubertank|0|991"
				Action CallScriptFunction
				Param "ToggleUber"
			}
		}
		WaveSpawn
		{
			Name "w3a"
			WaitForAllDead "w3start"
			Where spawnbot
			TotalCount 5
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 17
			TotalCurrency 80
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons_Deflector
					Tag noflank
				}
		}
		WaveSpawn
		{
			Name "w3a"
			Where spawnbot
			TotalCount 8
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 10
			TotalCurrency 120
				TFBot
				{
					Template T_TFBot_Sniper_Huntsman_Spammer_Penetrator
					Tag noflank
				}
		}
		WaveSpawn
		{
			Name "w3a"
			Where spawnbot
			TotalCount 50
			SpawnCount 5
			MaxActive 10
			WaitBeforeStarting 10
			WaitBetweenSpawns 7
			TotalCurrency 100
				TFBot
				{
					Template T_TFBot_Soldier_DirectHit
					Skill Normal
					Tag noflank
				}
		}
		WaveSpawn
		{
			Name "w3flank"
			Where spawnbot_mid
			TotalCount 3
			SpawnCount 1
			MaxActive 3
			WaitBeforeStarting 35
			WaitBetweenSpawns 13
			TotalCurrency 150
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Lightning
					BehaviorModifiers Push
					Attributes IgnoreFlag
					Item "Lo-Fi Longwave"
					Tag allow_flank
					Tag special_main_left
					Tag middle_flank_left
					Tag hatch_flank_left
					AlwaysGlow 1
				}
		}
	}
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput
        {
            Target gamerules
            Action RunScriptCode
            Param "
				IncludeScript(`tankextensions_main`, getroottable())
				IncludeScript(`tankextensions/teletank`, getroottable())
                EntFire(`bombpath_choose_left`, `Trigger`)
				TankExt.SetValueOverrides({
                        TELETANK_UBER_DURATION_MULT = 0.4
                })
            "
        }
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		Checkpoint Yes
		WaveSpawn
		{
			Name "w4sup"
			Where spawnbot
			TotalCount 30
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 5
			WaitBetweenSpawns 10
			TotalCurrency 60
			Support 1
				TFBot
				{
					Template T_TFBot_Demo_Burst
				}
		}
		WaveSpawn
		{
			Name "w4sup"
			Where spawnbot
			TotalCount 30
			SpawnCount 2
			MaxActive 6
			WaitBeforeStarting 7
			WaitBetweenSpawns 10
			TotalCurrency 60
			Support 1
				TFBot
				{
					Template T_TFBot_Scout_Popper
				}
		}
		WaveSpawn
		{
			Name "w4sup"
			Where spawnbot_left
			TotalCount 20
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 20
			Support 1
				TFBot
				{
					Template T_TFBot_Demoknight_Persian
					Attributes AlwaysCrit
				}
		}
		WaveSpawn
		{
			TotalCurrency 80
			TotalCount 1
			Tank
			{
				Health 25000
				Speed 75
				Name "teletank"
				ClassIcon tank_tele
				StartingPathTrackNode "boss_path_short_1"
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn
		{
			Name "w4a"
			Where spawnbot
			TotalCount 12
			SpawnCount 3
			MaxActive 6
			WaitBeforeStarting 0
			WaitBetweenSpawns 15
			TotalCurrency 120
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Burst
					ClassIcon soldier_conch_burstfire_yoovy_giant
					Item "The Concheror"
					Item "The Shogun's Shoulder Guard"
					Attributes SpawnWithFullCharge
					CharacterAttributes
					{
						"blast dmg to self increased" 0
					}
				}
				TFBot
				{
					Template T_TFBot_Medic
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_Medic
					Skill Expert
				}
			}
		}
		WaveSpawn
		{
			Name "w4a"
			Where spawnbot_left
			TotalCount 6
			SpawnCount 2
			MaxActive 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 15
			TotalCurrency 80
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons
					Tag bot_teletank
					CharacterAttributes
					{
						"blast dmg to self increased" 0
					}
				}
				TFBot
				{
					Template T_TFBot_Medic
					Tag bot_teletank
				}
			}
				
				
		}
		WaveSpawn
		{
			TotalCurrency 100
			TotalCount 2
			WaitBeforeStarting 11
			WaitBetweenSpawns 10
			Tank
			{
				Health 15000
				Speed 75
				Name "tank"
				StartingPathTrackNode "boss_path_1"
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn
		{
			WaitForAllSpawned "w4a"
			TotalCurrency 100
			TotalCount 1
			Tank
			{
				Health 22000
				Speed 75
				Name "teletank"
				ClassIcon tank_tele
				StartingPathTrackNode "boss_path_short_1"
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn
		{
			Name "w4surprise"
			WaitForAllDead "w4a"
			Where spawnbot
			TotalCount 4
			SpawnCount 2
			MaxActive 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 15
			TotalCurrency 100
				TFBot
				{
					Template T_TFBot_Giant_Demo_Nuker
					Attributes AlwaysFireWeapon
					Tag bot_teletank
				}
		}
		WaveSpawn
		{
			Name "w4last"
			WaitForAllDead "w4a"
			Where spawnbot_mid
			TotalCount 8
			SpawnCount 4
			MaxActive 6
			WaitBeforeStarting 0
			WaitBetweenSpawns 15
			TotalCurrency 80
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_Burst
					CharacterAttributes
					{
						"blast dmg to self increased" 0
					}
				}
				TFBot
				{
					Template T_TFBot_Medic
					Skill Expert
				}
			}
				
		}
	}
	Wave
	{
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		InitWaveOutput
        {
            Target gamerules
            Action RunScriptCode
            Param "
                EntFire(`bombpath_choose_right`, `Trigger`)
            "
        }
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		Checkpoint Yes
		WaveSpawn
		{
			Name "w5sup"
			Where spawnbot
			TotalCount 30
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 5
			WaitBetweenSpawns 10
			TotalCurrency 60
			Support 1
				TFBot
				{
					Class Pyro
					Skill Expert
					Attributes AlwaysFireWeapon
				}
		}
		WaveSpawn
		{
			Name "w5sup"
			WaitForAllSpawned "w5a"
			Where spawnbot
			TotalCount 30
			SpawnCount 2
			MaxActive 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 10
			TotalCurrency 90
			Support 1
				TFBot
				{
					Template T_TFBot_Soldier_DirectHit
					Attributes AlwaysCrit
				}
		}
		WaveSpawn
		{
			Name "engie 1"
			Where spawnbot_right
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 30
			TotalCurrency 0
			Support 1
				TFBot
				{
					Template T_TFBot_Engineer_Sentry_Tele_Battle_Fast
					TeleportWhere spawnbot_left
					TeleportWhere spawnbot_mid
					TeleportWhere spawnbot_right
					AlwaysGlow 1
				}
		}
		WaveSpawn
		{
			Name "engie 2"
			Where spawnbot_mid
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 15
			WaitBetweenSpawns 30
			TotalCurrency 0
			Support 1
				TFBot
				{
					Template T_TFBot_Engineer_Sentry_Tele_Battle_Fast
					TeleportWhere spawnbot_left
					TeleportWhere spawnbot_right
					AlwaysGlow 1
				}
		}
		WaveSpawn
		{
			Name "w5sup"
			WaitForAllDead "w5a"
			Where spawnbot
			TotalCount 20
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 5
			TotalCurrency 40
			Support 1
				TFBot
				{
					Template T_TFBot_Soldier_DirectHit
					Attributes AlwaysCrit
				}
		}
		WaveSpawn
		{
			Name "w5sup"
			WaitForAllDead "w5a"
			Where spawnbot
			TotalCount 20
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 5
			TotalCurrency 20
			Support 1
				TFBot
				{
					Template T_TFBot_Pyro
					Skill Expert
					Attributes AlwaysFireWeapon
				}
		}
		WaveSpawn
		{
			Name "w5start1"
			Where spawnbot
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0
			TotalCurrency 21
				TFBot
				{
					Template T_TFBot_Giant_Scout_Bonk
				}
		}
		WaveSpawn
		{
			Name "w5start1"
			Where spawnbot_mid
			TotalCount 4
			SpawnCount 4
			MaxActive 4
			WaitBeforeStarting 8
			WaitBetweenSpawns 0
			TotalCurrency 20
				TFBot
				{
					Template T_TFBot_Giant_Scout_Bonk
				}
		}
		WaveSpawn
		{
			Name "w5start2"
			Where spawnbot_right
			TotalCount 2
			SpawnCount 2
			MaxActive 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 0
			TotalCurrency 22
				TFBot
				{
					Template T_TFBot_Giant_Scout_Bonk_Old
					Name "totheright"
					BehaviorModifiers Push
					Tag allow_flank
					Tag special_main_right
					Tag middle_flank_right
					Tag hatch_flank_right
					AlwaysGlow 1
				}
		}
		WaveSpawn
		{
			Name "another one"
			WaitForAllDead "w5start2"
			Where spawnbot_right
			TotalCount 2
			SpawnCount 2
			MaxActive 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 0
			TotalCurrency 30
				TFBot
				{
					Template T_TFBot_Giant_Scout_Bonk_Old
					Name "totheleft"
					BehaviorModifiers Push
					Tag allow_flank
					Tag special_main_left
					Tag middle_flank_left
					Tag hatch_flank_left
					AlwaysGlow 1
				}
		}
		WaveSpawn
		{
			Name "w5a"
			WaitForAllDead "w5start1"
			Where spawnbot
			TotalCount 20
			SpawnCount 1
			MaxActive 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			TotalCurrency 90
				TFBot
				{
					Template T_TFBot_Sniper_Huntsman_Spammer_Penetrator
					Item "The Razorback" // a little extra precaution thanks to potato aggro
				}
		}
		WaveSpawn
		{
			Name "w5a"
			WaitForAllDead "w5start1"
			Where spawnbot
			TotalCount 30
			SpawnCount 1
			MaxActive 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			TotalCurrency 60
				TFBot
				{
					Template T_TFBot_Scout_Popper
				}
		}
		WaveSpawn
		{
			Name "w5a"
			WaitForAllDead "w5start1"
			Where spawnbot_mid
			TotalCount 6
			SpawnCount 2
			MaxActive 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 15
			TotalCurrency 42
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_SlowBarrage
				}
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer
					Attributes AlwaysFireWeapon
				}
			}
		}
		WaveSpawn
		{
			Name "w5a"
			WaitForAllDead "w5start1"
			Where spawnbot
			TotalCount 3
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 15
			TotalCurrency 45
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Lightning
				}
		}
		WaveSpawn
		{
			Name "w5b"
			WaitForAllDead "w5a"
			Where spawnbot
			TotalCount 7
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 5
			TotalCurrency 60
				TFBot
				{
					Template T_TFBot_Giant_Scout_Fast
				}
		}
		WaveSpawn
		{
			Name "w5b"
			WaitForAllDead "w5a"
			Where spawnbot
			TotalCount 3
			SpawnCount 1
			MaxActive 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 15
			TotalCurrency 90
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Lightning
				}
		}
		WaveSpawn
		{
			Name "w5b"
			WaitForAllDead "w5a"
			Where spawnbot_left
			TotalCount 4
			SpawnCount 2
			MaxActive 3
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 60
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer
					Attributes AlwaysFireWeapon
				}
				
		}
	}
}
// total pay 4900 + 666 = 5566 + 600
