#base robot_standard.pop
#base robot_giant.pop
#base robot_eyes.pop

// Overheat, Barren
// Advanced
// Starting Currency: 1200
//
// +----------+----------+----------+
// | Wave     | Currency | A+       |
// +----------+----------+----------+
// | Wave 1   | 1300     | 1400     |
// | Wave 2   | 1300     | 1400     |
// | Wave 3   | 1100     | 1200     |
// | Wave 4   | 1200     | 1300     |
// | Wave 5   | 1300     | 1400     |
// | Wave 6   | 950      | 950      |
// +----------+----------+----------+
// | Total    | 8350     | 8850     |
// +----------+----------+----------+

WaveSchedule
{
	StartingCurrency 1200
	RespawnWaveTime 2
	CanBotsAttackWhileInSpawnRoom No
	AddSentryBusterWhenKillCountExceeds 25
	AddSentryBusterWhenDamageDealtExceeds 3000
    Advanced 1
	
    //////////====================================
	// Templates
	//////////====================================

    Templates
    {
        T_TFBot_Scout_Popper
		{
			Class Scout
			ClassIcon scout_popper2
			Name "Soda Popper Scout"
			Skill Normal
			Item "The Soda Popper"
		}
        T_TFBot_Demoknight_Samurai_Crit	// Easier to survive compared to the normal Samurai, but also harder to kill
		{
			Class Demoman
			ClassIcon demoknight_samurai
			Name "Crit Samurai Knight"
			Skill Expert
			Attributes AlwaysCrit
			Attributes AirChargeOnly
			Attributes AutoJump
			AutoJumpMin 4
			AutoJumpMax 4
			Scale 1.35
			WeaponRestrictions MeleeOnly
			Item "The Splendid Screen"
			Item "The Half-Zatoichi"
			Item "Demo Kabuto"
			Item "Menpo"
			CharacterAttributes
			{
				"airblast vulnerability multiplier" 0.70
				"charge recharge rate increased" 7.0
				"bot custom jump particle" 1.0
				"damage force reduction" 0.70
				"increased jump height" 2.3
				"charge time increased" 6.0
				"voice pitch scale" 0.75
			}
		}
        T_TFBot_Giant_Soldier_RocketWall // I love this guy
		{
			Class Soldier
			ClassIcon soldier_rocketwall
			Name "Officer Rocket Wall"
			Health 4000
			Skill Expert
			Attributes HoldFireUntilFullReload
			Attributes MiniBoss
			Item "Steel Shako"
			ItemAttributes
			{
				ItemName "TF_WEAPON_ROCKETLAUNCHER"
				"fire rate bonus" 0
				"faster reload rate" 0.18
				"clip size upgrade atomic" 11.0
				"Projectile speed decreased" 0.6
				"projectile spread angle penalty" 6
			}
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"airblast vulnerability multiplier" 0.2
				"damage force reduction" 0.4
				"override footstep sound set" 3
			}
		}
    }

	//////////====================================
	// Missions
	//////////====================================
	
	Mission		//Sentry Buster
	{
		Objective DestroySentries
		DesiredCount 1
		BeginAtWave 1
		RunForThisManyWaves 7
		CooldownTime 40
		InitialCooldown 50
		Where spawnbot_flank
		
		TFBot
		{
			Template T_TFBot_SentryBuster
		}
	}

    Mission		//Sniper
	{
		Objective Sniper
		DesiredCount 3
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 60
		InitialCooldown 75
		Where spawnbot_flank
		
		TFBot
		{
			Template T_TFBot_Sniper
		}
	}
    Mission
	{
		Objective Sniper
		DesiredCount 3
		BeginAtWave 3
		RunForThisManyWaves 1
		CooldownTime 75
		InitialCooldown 75
		Where spawnbot_flank
		
		TFBot
		{
			Template T_TFBot_Sniper
		}
	}
    Mission
	{
		Objective Sniper
		DesiredCount 2
		BeginAtWave 6
		RunForThisManyWaves 1
		CooldownTime 60
		InitialCooldown 60
		Where spawnbot_flank
		
		TFBot
		{
			Template T_TFBot_Sniper
		}
	}

    Mission		//Spy
	{
		Objective Spy
		DesiredCount 2
		BeginAtWave 1
		RunForThisManyWaves 2
		CooldownTime 80
		InitialCooldown 40
		Where spawnbot_flank
		
		TFBot
		{
			Class Spy
			Skill Easy		//Doesn't run away from players when they pull out their melees
		}
	}
    Mission
	{
		Objective Spy
		DesiredCount 2
		BeginAtWave 5
		RunForThisManyWaves 2
		CooldownTime 70
		InitialCooldown 40
		Where spawnbot_flank
		
		TFBot
		{
			Class Spy
			Skill Easy
		}
	}
	
	//////////====================================
	// Wave 1	[$1300] [$1400]
	//
	// 30 Soldiers [$200]
    // 6 Soldiers + 1 Quick-Uber Medic Each [$130]
	// 24 Scouts [$160]
	//
	// 3 Giant Burst Fire Soldiers [$350]
	// 20 Demomen [$100]
	// 32 Pyros [$160]
	// 18 Heavies [$90]
	//
	// Support Steel Gauntlets + 1 Quick-Uber Medic Each [$100]
	//////////====================================
	
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}

		WaveSpawn
		{
			Name "w1-a1"
			TotalCurrency 200
			TotalCount 30
			MaxActive 6
			SpawnCount 6
			WaitBetweenSpawns 12
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Class Soldier
				Skill Normal
			}
		}
        WaveSpawn
		{
			Name "w1-a1"
			TotalCurrency 130
			TotalCount 12
			MaxActive 4
			SpawnCount 2
			WaitBetweenSpawns 9
			WaitBeforeStarting 6
			Where spawnbot

          Squad
          {
			TFBot
			{
				Class Soldier
				Skill Normal
			}
            TFBot
            {
                Template T_TFBot_Medic_QuickUber
            }
          }
		}
		WaveSpawn
		{
			Name "w1-a1"
			TotalCurrency 110
			TotalCount 24
			MaxActive 9
			SpawnCount 3
			WaitBetweenSpawns 7.5
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Class Scout
				Skill Easy
			}
		}

		WaveSpawn
		{
			Name "w1-soldier"
			WaitForAllSpawned w1-a1
			TotalCurrency 350
			TotalCount 3
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 25
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Template T_TFBot_Giant_Soldier_Spammer_Reload
			}
		}
		WaveSpawn
		{
			Name "w1-b1"
			WaitForAllSpawned w1-a1
			TotalCurrency 100
			TotalCount 20
			MaxActive 5
			SpawnCount 4
			WaitBetweenSpawns 18
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Class Demoman
				Skill Normal
			}
		}
		WaveSpawn
		{
			Name "w1-b1"
			WaitForAllSpawned w1-a1
			TotalCurrency 160
			TotalCount 32
			MaxActive 8
			SpawnCount 4
			WaitBetweenSpawns 11.25
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Class Pyro
				Skill Easy
			}
		}
		WaveSpawn
		{
			Name "w1-b1"
			WaitForAllSpawned w1-a1
			TotalCurrency 90
			TotalCount 18
			MaxActive 6
			SpawnCount 3
			WaitBetweenSpawns 15
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Class Heavy
				Skill Easy
			}
		}
		WaveSpawn
		{
			Name "w1-c1"
			WaitForAllDead w1-soldier
			TotalCurrency 160
			TotalCount 8
			MaxActive 4
			SpawnCount 2
			WaitBetweenSpawns 5
			WaitBeforeStarting 0
			Where spawnbot
            Support 1

          Squad
          {
			TFBot
			{
				Template T_TFBot_Heavyweapons_Fist
			}
            TFBot
			{
				Template T_TFBot_Medic_QuickUber
			}
          }
		}
	}
	
	//////////====================================
	// Wave 2	[$1300] [$1200]
	//
	// 1 24000 HP Tank [$400]
	// 3 Giant Rapid Fire Soldiers [$75]
	// 24 Soldiers [$120]
	//
	// 4 Giant Buff Banner Soldiers [$100]
	// 40 Pyros [$200]
	// 18 Heavies [$75]
	//
	// 3 Giant Super Scouts [$75]
	// 18 Heavies [$75]
    // Huntsman Sniper Support [$180]
	//////////====================================

	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}

		WaveSpawn
		{
			Name "w2-a1"
			TotalCurrency 400
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawns 0
			WaitBeforeStarting 3
			Where spawnbot

			Tank
			{
				Name "tankboss"
				Health 24000
				Speed 75
				StartingPathTrackNode tank_path_1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn
		{
			Name "w2-a1"
			TotalCurrency 75
			TotalCount 3
			MaxActive 2
			SpawnCount 1
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Template T_TFBot_Giant_Scout_Baseball_Armored
                Attributes AlwaysCrit
			}
		}
		WaveSpawn
		{
			Name "w2-a1"
			TotalCurrency 120
			TotalCount 24
			MaxActive 16
			SpawnCount 8
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Template T_TFBot_Scout_Popper
                Skill Easy
			}
		}
		WaveSpawn
		{
			Name "w2-b1"
			WaitForAllSpawned w2-a1
			TotalCurrency 100
			TotalCount 4
			MaxActive 3
			SpawnCount 1
			WaitBetweenSpawns 15
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Template T_TFBot_Giant_Soldier_Extended_Buff_Banner
			}
		}
		WaveSpawn
		{
			Name "w2-b1"
			WaitForAllSpawned w2-a1
			TotalCurrency 200
			TotalCount 40
			MaxActive 12
			SpawnCount 4
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Class Pyro
				Skill Easy
			}
		}
		WaveSpawn
		{
			Name "w2-b1"
			WaitForAllSpawned w2-a1
			TotalCurrency 75
			TotalCount 18
			MaxActive 5
			SpawnCount 2
			WaitBetweenSpawns 6.666
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Class Heavy
				Skill Easy
			}
		}
		WaveSpawn
		{
			Name "w2-c1"
			WaitForAllSpawned w2-b1
			TotalCurrency 75
			TotalCount 3
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawns 20
			WaitBeforeStarting 0
			Where spawnbot

			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}
		}
		WaveSpawn
		{
			Name "w2-c1"
			WaitForAllSpawned w2-b1
			TotalCurrency 180
			TotalCount 36
			MaxActive 12
			SpawnCount 3
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			Where spawnbot
            Support 1

			TFBot
			{
				Template T_TFBot_Sniper_Huntsman
			}
		}
		WaveSpawn
		{
			Name "w2-c1"
			WaitForAllSpawned w2-b1
			TotalCurrency 75
			TotalCount 18
			MaxActive 6
			SpawnCount 6
			WaitBetweenSpawns 15
			WaitBeforeStarting 0
			Where spawnbot
            Support Limited

			TFBot
			{
				Class Heavy
                ClassIcon heavy_giant
				Skill Normal
			}
		}
	}
	
	//////////====================================
	// Wave 3	[$1150] [$1250]
	//
	// 2 Giant Heavies [$120]
    // 8 Steel Gauntlets [$80]
    // 36 Concheror Soldiers [$170]
    // 18 Huntsman Snipers [$60]
    //
    // 6 Giant Crit Pyros + 1 Big-Heal Medic Each [$220]
    // 30 Black Box Soldiers [$150]
    // 15 Crit Scouts [$75]
    //
    // 4 Giant Burst Fire Demomen [$80]
    // 24 Scouts [$125]
    // 8 Dragon's Fury Pyros + 1 Uber Medic Each [$70]
	//////////====================================

    Wave
    {
        StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}

		WaveSpawn
		{
            Name "w3-a1"
            TotalCurrency 120
            TotalCount 2
            MaxActive 1
            SpawnCount 1
            WaitBetweenSpawns 30
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Heavyweapons
            }
        }
        WaveSpawn
		{
            Name "w3-a1"
            TotalCurrency 80
            TotalCount 8
            MaxActive 4
            SpawnCount 1
            WaitBetweenSpawns 7.5
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Heavyweapons_Fist
            }
        }
        WaveSpawn
		{
            Name "w3-a1"
            TotalCurrency 120
            TotalCount 36
            MaxActive 9
            SpawnCount 3
            WaitBetweenSpawns 5
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Soldier_Extended_Concheror
            }
        }
        WaveSpawn
		{
            Name "w3-a1"
            TotalCurrency 60
            TotalCount 18
            MaxActive 6
            SpawnCount 3
            WaitBetweenSpawns 10
            WaitBeforeStarting 0
            Where spawnbot_flank

            TFBot
            {
                Template T_TFBot_Sniper_Huntsman
            }
        }
        WaveSpawn
		{
            Name "w3-b1"
            WaitForAllSpawned w3-a1
            TotalCurrency 220
            TotalCount 12
            MaxActive 6
            SpawnCount 2
            WaitBetweenSpawns 10
            WaitBeforeStarting 0
            Where spawnbot

          Squad
          {
            TFBot
            {
                Template T_TFBot_Giant_Pyro
                Attributes AlwaysCrit
            }
            TFBot
            {
                Template T_TFBot_Medic_BigHeal
            }
          }
        }
        WaveSpawn
		{
            Name "w3-b1"
            WaitForAllSpawned w3-a1
            TotalCurrency 150
            TotalCount 30
            MaxActive 9
            SpawnCount 3
            WaitBetweenSpawns 6
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Soldier_RocketShotgun
            }
        }
        WaveSpawn
		{
            Name "w3-b1"
            WaitForAllSpawned w3-a1
            TotalCurrency 75
            TotalCount 15
            MaxActive 5
            SpawnCount 5
            WaitBetweenSpawns 20
            WaitBeforeStarting 0
            Where spawnbot_flank
            TFBot
            {
                Class Scout
                ClassIcon scout_crit
                Skill Easy
                Attributes AlwaysCrit
            }
        }
        WaveSpawn
		{
            Name "w3-c1"
            WaitForAllSpawned w3-b1
            TotalCurrency 80
            TotalCount 4
            MaxActive 2
            SpawnCount 1
            WaitBetweenSpawns 12.5
            WaitBeforeStarting 0
            Where spawnbot_flank

            TFBot
            {
                Template T_TFBot_Giant_Demo_Burst
            }
        }
        WaveSpawn
		{
            Name "w3-c1"
            WaitForAllSpawned w3-b1
            TotalCurrency 125
            TotalCount 24
            MaxActive 12
            SpawnCount 4
            WaitBetweenSpawns 8
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Class Scout
                Skill Normal
            }
        }
        WaveSpawn
		{
            Name "w3-c1"
            WaitForAllSpawned w3-b1
            TotalCurrency 70
            TotalCount 16
            MaxActive 8
            SpawnCount 4
            WaitBetweenSpawns 12.5
            WaitBeforeStarting 0
            Where spawnbot

          Squad
          {
            TFBot
            {
                Template T_TFBot_Pyro_DF
            }
            TFBot
            {
                Template T_TFBot_Medic_QuickUber
                CharacterAttributes
                {
                    "ubercharge rate bonus" 0.5
                }
            }
          }
        }
    }

    //////////====================================
	// Wave 4	[$1200] [$1300]
	//
	// 4 Crit Officer Rocket Walls [$200]
    // 2 Giant Super Scouts [$100]
    // 12 Samurais [$100]
    //
    // 1 27500 HP Tank [$200]
    // 4 Giant Shotgun Heavies [$120]
    // 18 Heavies [$90]
    // 18 Bison Soldiers [$90]
    // 18 Demomen [$90]
    //
    // 3 Giant Deflector Heavies [$60]
    // 3 Giant Super Scouts [$60]
    // Crit Bat Scout Support [$90]
	//////////====================================

    Wave
    {
        StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}

        WaveSpawn
		{
            Name "w4-a1"
            TotalCurrency 200
            TotalCount 4
            MaxActive 4
            SpawnCount 1
            WaitBetweenSpawns 11.25
            WaitBeforeStarting 0.1
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Soldier_RocketWall
                Attributes AlwaysCrit
            }
        }
        WaveSpawn
		{
            Name "w4-a1"
            TotalCurrency 100
            TotalCount 2
            MaxActive 2
            SpawnCount 1
            WaitBetweenSpawns 30
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Scout_Fast
            }
        }
        WaveSpawn
		{
            Name "w4-a1"
            TotalCurrency 100
            TotalCount 12
            MaxActive 4
            SpawnCount 2
            WaitBetweenSpawns 10
            WaitBeforeStarting 0.1
            Where spawnbot_flank
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Demoknight_Samurai_Crit
            }
        }
        WaveSpawn
		{
            Name "w4-b1"
            WaitForAllSpawned w4-a1
            TotalCurrency 200
            TotalCount 1
            MaxActive 1
            SpawnCount 1
            WaitBetweenSpawns 0
            WaitBeforeStarting 8
            Where spawnbot

            Tank
			{
				Name "tankboss"
				Health 27500
				Speed 75
				StartingPathTrackNode tank_path_1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
        }
        WaveSpawn
		{
            Name "w4-b1"
            WaitForAllSpawned w4-a1
            TotalCurrency 120
            TotalCount 4
            MaxActive 3
            SpawnCount 1
            WaitBetweenSpawns 15
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Heavyweapons_Shotgun
            }
        }
        WaveSpawn
		{
            Name "w4-b1"
            WaitForAllSpawned w4-a1
            TotalCurrency 90
            TotalCount 18
            MaxActive 6
            SpawnCount 3
            WaitBetweenSpawns 10
            WaitBeforeStarting 0
            Where spawnbot_flank
            Where spawnbot

            TFBot
            {
                Class Heavy
                Skill Normal
            }
        }
        WaveSpawn
		{
            Name "w4-b1"
            WaitForAllSpawned w4-a1
            TotalCurrency 90
            TotalCount 18
            MaxActive 6
            SpawnCount 3
            WaitBetweenSpawns 9.443
            WaitBeforeStarting 3.33
            Where spawnbot_flank
            Where spawnbot

            TFBot
            {
                Class Soldier
                ClassIcon soldier_bison
                Name "Bison Soldier"
                Skill Expert
                WeaponRestrictions SecondaryOnly
                Item "The Righteous Bison"
            }
        }
        WaveSpawn
		{
            Name "w4-b1"
            WaitForAllSpawned w4-a1
            TotalCurrency 90
            TotalCount 18
            MaxActive 6
            SpawnCount 3
            WaitBetweenSpawns 8.889
            WaitBeforeStarting 6.66
            Where spawnbot_flank
            Where spawnbot

          RandomChoice
          {
            TFBot
            {
                Class Demoman
                Skill Easy
            }
            TFBot
            {
                Class Demoman
                Skill Hard
            }
          }
        }
        WaveSpawn
		{
            Name "w4-c1"
            WaitForAllSpawned w4-b1
            TotalCurrency 60
            TotalCount 3
            MaxActive 3
            SpawnCount 1
            WaitBetweenSpawns 15
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Heavyweapons_Deflector
            }
        }
        WaveSpawn
		{
            Name "w4-c1"
            WaitForAllSpawned w4-b1
            TotalCurrency 60
            TotalCount 3
            MaxActive 3
            SpawnCount 1
            WaitBetweenSpawns 18
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Scout_Fast
            }
        }
        WaveSpawn
		{
            Name "w4-c1"
            WaitForAllSpawned w4-b1
            TotalCurrency 90
            TotalCount 30
            MaxActive 12
            SpawnCount 4
            WaitBetweenSpawns 2.2
            WaitBeforeStarting 0
            Where spawnbot
            Support 1

            TFBot
            {
                Template T_TFBot_Scout_Melee
                ClassIcon scout_bat_nys
                Attributes AlwaysCrit
            }
        }
    }

    //////////====================================
	// Wave 5	[$1300] [$1400]
	//
    // 2 Giant Crit Black Box Soldiers + 1 Giant Medic Each [$180]
    // 40 Brass Beast Heavies [$140]
    //
	// 4 Giant Battalion's Backup Soldiers [$100]
    // 24 Direct Hit Soldiers [$80]
    // 24 Demomen [$80]
    //
    // 9 Giant Burst Fire Demomen [$450]
    // Demoman + Heavy + Pyro + Mad Milk Scout Support [$270]
	//////////====================================

    Wave
    {
        StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}

        WaveSpawn
		{
            Name "w5-a1"
            TotalCurrency 180
            TotalCount 4
            MaxActive 4
            SpawnCount 2
            WaitBetweenSpawns 30
            WaitBeforeStarting 0
            Where spawnbot

          Squad
          {
            TFBot
            {
                Template T_TFBot_Giant_Soldier_RocketShotgun
                Attributes AlwaysCrit
            }
            TFBot
            {
                Template T_TFBot_Giant_Medic
            }
          }
        }
        WaveSpawn
		{
            Name "w5-a1"
            TotalCurrency 140
            TotalCount 40
            MaxActive 10
            SpawnCount 5
            WaitBetweenSpawns 7.5
            WaitBeforeStarting 0
            Where spawnbot_flank
            Where spawnbot

            TFBot
            {
                Class Heavy
                Name "Brass Beast Heavy"
                ClassIcon heavy_brass_nys
                Skill Normal
                Item "The Brass Beast"
            }
        }
        WaveSpawn
		{
            Name "w5-b1"
            WaitForAllSpawned w5-a1
            TotalCurrency 100
            TotalCount 4
            MaxActive 3
            SpawnCount 1
            WaitBetweenSpawns 7.5
            WaitBeforeStarting 10
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Soldier_Extended_Battalion
            }
        }
        WaveSpawn
		{
            Name "w5-b1"
            WaitForAllSpawned w5-a1
            TotalCurrency 80
            TotalCount 24
            MaxActive 8
            SpawnCount 4
            WaitBetweenSpawns 6.66
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Class Soldier
                ClassIcon soldier_directhit_lite
                Skill Hard
                Item "The Direct Hit"
            }
        }
        WaveSpawn
		{
            Name "w5-b1"
            WaitForAllSpawned w5-a1
            TotalCurrency 80
            TotalCount 24
            MaxActive 8
            SpawnCount 4
            WaitBetweenSpawns 6.66
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Class Scout
                Skill Normal
            }
        }
        WaveSpawn
		{
            Name "w5-c1"
            WaitForAllSpawned w5-b1
            TotalCurrency 450
            TotalCount 9
            MaxActive 9
            SpawnCount 3
            WaitBetweenSpawns 18
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Demo_Burst
            }
        }
        WaveSpawn
		{
            Name "w5-c1"
            WaitForAllDead w5-b1
            TotalCurrency 270
            TotalCount 54
            MaxActive 12
            SpawnCount 3
            WaitBetweenSpawns 2
            WaitBeforeStarting 0
            Where spawnbot_flank
            Where spawnbot
            Support 1

          RandomChoice
          {
            TFBot
            {
                Template T_TFBot_Scout_Melee
                ClassIcon scout_bat_nys
                Attributes AlwaysCrit
            }
            TFBot
            {
                Template T_TFBot_Scout_Melee
                ClassIcon scout_bat_nys
                Attributes AlwaysCrit
            }
            TFBot
            {
                Template T_TFBot_Scout_Melee
                ClassIcon scout_bat_nys
                Attributes AlwaysCrit
            }
            TFBot
            {
                Class Pyro
                Skill Easy
            }
            TFBot
            {
                Class Pyro
                Skill Easy
            }
            TFBot
            {
                Class Pyro
                Skill Hard
            }
            TFBot
            {
                Class Heavy
                Skill Normal
            }
            TFBot
            {
                Class Heavy
                Skill Normal
            }
            TFBot
            {
                Class Heavy
                Skill Normal
            }
            TFBot
            {
                Template T_TFBot_Scout_Milk
            }
            TFBot
            {
                Template T_TFBot_Scout_Milk
            }
            TFBot
            {
                Template T_TFBot_Scout_Milk
            }
          }
        }
    }
    //////////====================================
	// Wave 6	[$1000]
	//
	// 1 Giant Deflector Heavy + Giant Banner Trio [$100]
    //
    // 1 35000 HP Tank [$200]
    // 3 Crit Giant Burst Fire Soldiers [$100]
    // 3 Crit Giant Rapid Fire Soldiers [$100]
    // 24 Pistol Scouts [$100]
    //
    // 6 Giant Deflector Heavies [$100]
    // 6 Giant Super Scouts [$100]
    // Crit Bat Scout Support [$100]
    //
    // 1 37500 HP Tank [$200]
	//////////====================================

    Wave
    {
        StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}

        WaveSpawn
		{
            Name "w6-a1"
            TotalCurrency 100
            TotalCount 4
            MaxActive 4
            SpawnCount 4
            WaitBetweenSpawns 0
            WaitBeforeStarting 0
            Where spawnbot

          Squad
          {
            TFBot
            {
                Template T_TFBot_Giant_Heavyweapons_Deflector
            }
            TFBot
            {
                Template T_TFBot_Giant_Soldier_Extended_Buff_Banner
            }
            TFBot
            {
                Template T_TFBot_Giant_Soldier_Extended_Concheror
            }
            TFBot
            {
                Template T_TFBot_Giant_Soldier_Extended_Battalion
            }
          }
        }
        WaveSpawn
		{
            Name "w6-b1"
            TotalCurrency 200
            TotalCount 1
            MaxActive 1
            SpawnCount 1
            WaitBetweenSpawns 0
            WaitBeforeStarting 0
            Where spawnbot

            Tank
			{
				Name "tankboss"
				Health 50000
				Speed 50
				StartingPathTrackNode tank_path_1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
        }
        WaveSpawn
		{
            Name "w6-b1"
            WaitForAllDead w6-a1
            TotalCurrency 50
            TotalCount 3
            MaxActive 3
            SpawnCount 1
            WaitBetweenSpawns 12
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Soldier_Spammer_Reload
                Attributes AlwaysCrit
            }
        }
        WaveSpawn
		{
            Name "w6-b1"
            WaitForAllDead w6-a1
            TotalCurrency 50
            TotalCount 3
            MaxActive 3
            SpawnCount 1
            WaitBetweenSpawns 12
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Soldier_Spammer
                Attributes AlwaysCrit
            }
        }
        WaveSpawn
		{
            Name "w6-b1"
            WaitForAllDead w6-a1
            TotalCurrency 50
            TotalCount 24
            MaxActive 12
            SpawnCount 3
            WaitBetweenSpawns 4.5
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Scout_Pistol
                Skill Normal
            }
        }
        WaveSpawn
		{
            Name "w6-c1"
            WaitForAllSpawned w6-b1
            TotalCurrency 100
            TotalCount 6
            MaxActive 6
            SpawnCount 1
            WaitBetweenSpawns 10
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Heavyweapons_Deflector
            }
        }
        WaveSpawn
		{
            Name "w6-c1"
            WaitForAllSpawned w6-b1
            TotalCurrency 100
            TotalCount 6
            MaxActive 6
            SpawnCount 1
            WaitBetweenSpawns 10
            WaitBeforeStarting 0
            Where spawnbot

            TFBot
            {
                Template T_TFBot_Giant_Scout_Fast
            }
        }
        WaveSpawn
		{
            Name "w6-c1"
            WaitForAllDead w6-b1
            TotalCurrency 100
            TotalCount 25
            MaxActive 12
            SpawnCount 3
            WaitBetweenSpawns 2
            WaitBeforeStarting 0
            Where spawnbot_flank
            Where spawnbot
            Support 1

            TFBot
            {
                Template T_TFBot_Scout_Melee
                ClassIcon scout_bat_nys
                Attributes AlwaysCrit
            }
        }
        WaveSpawn
		{
            Name "w6-d1"
            WaitForAllSpawned w6-b1
            TotalCurrency 200
            TotalCount 1
            MaxActive 1
            SpawnCount 1
            WaitBetweenSpawns 0
            WaitBeforeStarting 20
            Where spawnbot

            Tank
            {
                Name "tankboss"
				Health 37500
				Speed 90
                Skin 1
				StartingPathTrackNode tank_path_1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
            }
        }
    }
}