#base robot_giant.pop
#base robot_standard.pop

// Made by Xpload!
// https://steamcommunity.com/id/xpload334/
// This is my first ever mission, hopefully it is balanced well!
//
// Starting Currency: 800
//
// +----------+----------+----------+
// | Wave     | Currency | A+       |
// +----------+----------+----------+
// | Wave 1   | 600      | 700      |
// | Wave 2   | 900      | 1000     |
// | Wave 3   | 900      | 1000     |
// | Wave 4   | 1150     | 1250     |
// | Wave 5   | 1300     | 1400     |
// | Wave 6   | 780      | 880      |
// +----------+----------+----------+
// | Total    | 5630     | 6230     |
// +----------+----------+----------+
//
//Balance Changes
//a1 04/09/2023
//a2 05/09/2023
    // W2 - Starting cash reduced (1000 -> 800)
    // W2 - Giant Soldiers with Giant Burst Fire Soldiers
    // W2 - Replaced DF Pyros' QuickFix Medics with Uber Medics

//a3 27/09/2023
    //Replaced all Tele Engies with TeleIn Engies

    // W1 - Changed various spawn timings
    // W1 - Total cash reduced (700 -> 600)
    // W1 - Reduced cash of widowmaker engie subwave (140 -> 100)
    // W1 - Reduced cash of tomislav heavy subwave (160 -> 128)
    // W1 - Tweaked tomislav heavy subwave (spawncount 4 -> 2, delay 8 -> 4)
    // W1 - Increased count of Giant Demo subwave (2 -> 4, 2 of each now)
    // W1 - Added support caber

    // W2 - Added snipers
    // W2 - Total cash reduced (1000 -> 900)
    // W2 - Tweaked bowmen (no longer squads, count 30 -> 45, cash 150 -> 90)
    // W2 - Reduced cash of demoknight subwave (80 -> 60)
    // W2 - Increased delay of Giant DF Pyro squads (7 -> 12)
    // W2 - Reduced cash of support conch subwave (80 -> 60)

    // W3 - Total cash reduced (1350 -> 900)
    // W3 - Reduced cash of Giant Scout subwave (200 -> 100)
    // W3 - Reduced cash of blast soldier + DF pyro subwave (150 -> 90)
    // W3 - Added more Giant Heavy + Uber Medic combo (2 -> 3)
    // W3 - Changed Giant Heavies to Giant Deflector Heavies
    // W3 - Reduced cash of bat scout subwave (180 -> 72)
    // W3 - Reduced cash of hybrid demo subwave (240 -> 120) 
    // W3 - Increased count of giant buff subwave (8 -> 12, maxactive 4 -> 8)
    // W3 - Changed Ignite Bowman Spammer to Bowman Spammer
    // W3 - Reduced count of Bowman Spammer subwave (12 -> 10)
    // W3 - Reduced cash of Bowman Spammer subwave (180 -> 100)
    // W3 - Changed support DF pyro to normal pyro

    // W4 - Total cash reduced (1600 -> 1150)
    // W4 - Increased 1st Tank HP to match 2nd Tank (20k -> 25k)
    // W4 - Reduced cash of both tanks (200 -> 150)
    // W4 - Removed extra self damage to caber demos
    // W4 - Reduced cash of caber demo subwave (400 -> 200)
    // W4 - Reduced cash of heavy subwave (320 -> 256)
    // W4 - Reduced cash of giant demo subwave (300 -> 225)
    // W4 - Tweaked support (cash 80 -> 69, count 6 -> 3, delay 8 -> 5)

    // W5 - Total cash reduced (1400 -> 1300)
    // W5 - Reduced cash of both giant bowmen subwaves (150 -> 100)
    // W5 - Reduced cash of tank (200 -> 150)
    // W5 - Increased tank HP (25k -> 28k)

    // W6 - Removed engineers, added spies
    // W6 - Added additional subwaves, so that W6 is not just a boss wave
    // W6 - Added additional boss voice lines

    // W6 - Remove ignited from Boss Type C (it was annoying)
    // W6 - Swapped hats of bosses to Steel Shako
    // W6 - No stat changes made to bosses, I think overall cash reduction will 
    //      indirectly buff bosses as well as buffing later waves in general

WaveSchedule
{
    Templates
    {
        T_TFBot_Scout_Blaster   // ===== Scouts =====
        {
            Class Scout
            ClassIcon scout_blaster_nys
            Name "Blaster Scout"
            Skill Normal
            Item "Baby Face's Blaster"
        }
        T_TFBot_Scout_Cola_Bat
        {
            Class Scout
            ClassIcon scout_cola
            Name "Crit-a-Cola Bat Scout"
            Skill Expert
            WeaponRestrictions MeleeOnly
            Item "Crit-a-Cola"
            Item "Death Racer's Helmet"
            ItemAttributes
            {
                ItemName "Death Racer's Helmet"
                "set item tint RGB" 16738740    // pink as hell
            }
        }
        T_TFBot_Pyro_DF
		{
			Class Pyro
			ClassIcon pyro_dragon_fury_swordstone
			Name "Dragon's Fury Pyro"
			Skill Normal
			Item "The Dragon's Fury"
			MaxVisionRange 1000
		}
        T_TFBot_Pyro_Gas    // ===== Pyros =====
		{
			Class Pyro
            ClassIcon pyro_gascann
            Name "Gas Pyro"
			Skill Expert
			WeaponRestrictions SecondaryOnly
            Item "The Degreaser"
            Item "The Gas Passer"
            ItemAttributes
            {
                ItemName "The Gas Passer"
                "mult_item_meter_charge_rate" 0.025
				"fire rate penalty" 2.5
				"killstreak tier" 1
            }
			ItemAttributes
            {
                ItemName "The Degreaser"
				"killstreak tier" 1
            }
		}
        T_TFBot_Pyro_Crit //always fire, no reflect
        {
            Template    T_TFBot_Pyro
            Name    "Crit Pyro"
            Skill   Easy
            Attributes  AlwaysFireWeapon
            Attributes  AlwaysCrit
            tag bot_squad_member
        }
        T_TFBot_Demoman_Targe   // ===== Demomen =====
        {
            Class Demoman
            ClassIcon demo_targe_nys
            Name "Hybrid Knight"
            Skill Normal
            Item "The Chargin' Targe"
        }
        T_TFBot_Demoknight_Caber //Edited to remove targe, prevent charge
		{
            Class Demoman
            ClassIcon demo_caber_nys
            Name "Caberknight"
            Skill Expert
            WeaponRestrictions MeleeOnly
            Item "The Ullapool Caber"
            // ItemAttributes
            // {
            //     ItemName "The Ullapool Caber"
            //     "blast dmg to self increased" 5
            // }

			// Class Demoman
			// ClassIcon demo_caber_nys
			// Name "Caberknight"
			// Skill Expert
			// WeaponRestrictions MeleeOnly
			// Item "The Chargin' Targe"
			// Item "The Ullapool Caber"
            // Item "Ali Baba's Wee Booties"
			// ItemAttributes
			// {
			// 	ItemName "The Ullapool Caber"
			// 	"critboost on kill" 3
			// }
			// CharacterAttributes
			// {
			// 	"gesture speed increase" 999.0		//Should make taunting instant, done so that the critboost on kill actually matters
			// }
		}
        T_TFBot_Heavyweapons_Tomislav   // ===== Heavies =====
		{
			Class Heavy
            ClassIcon heavy_accurate_lite
            Name "Tomislav Heavy"
            Skill Normal
            Item "Tomislav"
		}

        T_TFBot_Medic_Kritzkrieg    // ===== Medics =====
		{
			Class Medic
			ClassIcon medic_kritz
			Name "Kritzkrieg Medic"
			Skill Expert
			Attributes AlwaysCrit
			Attributes SpawnWithFullCharge
			Item "The KritzKrieg"
			Item "The Virus Doctor"
			Item "Medic Mask"
			ItemAttributes
			{
				ItemName "The KritzKrieg"
				"uber duration bonus" 900
				"ubercharge rate bonus" 900
			}
			CharacterAttributes
			{
				"heal rate bonus" 2
				"bot medic uber health threshold" 226
			}
		}
        //Giants
        T_TFBot_Giant_Soldier_Spammer_Buff      // ===== Soldiers =====
        {
            Template T_TFBot_Giant_Soldier_Spammer
            ClassIcon soldier_buff_spammer_giant
            Name "Giant Rapid Fire Buff Soldier"
            Attributes SpawnWithFullCharge
            Tag bot_giant
            Item "The Buff Banner"
            ItemAttributes
            {
                ItemName "The Buff Banner"
                "increase buff duration" 9.0
            }
        }
        T_TFBot_Giant_Soldier_Volley
		{
			Class Soldier
			ClassIcon soldier_bazooka_giant
			Name "Giant Volley Soldier"
			Health 4000
			Skill Expert
			Attributes MiniBoss
			Attributes HoldFireUntilFullReload
            Tag bot_giant
			Item "The Beggar's Bazooka"
			Item "Bucket Hat"
			ItemAttributes
			{
				ItemName "The Beggar's Bazooka"
				"Projectile speed increased" 1.15
				"clip size upgrade atomic" 8.0
				"Blast radius decreased" 0.92
				"auto fires full clip" 0.0
				"auto fires when full" 0.0
				"faster reload rate" 0.40
				"fire rate bonus" 0.60
				"can overload" 0.0
			}
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"airblast vulnerability multiplier" 0.4
				"damage force reduction" 0.4
				"override footstep sound set" 3
			}
		}
        T_TFBot_Giant_Pyro_DF   // ===== Pyros =====
		{
			Class Pyro
			ClassIcon pyro_dragon_fury_swordstone
			Name "Giant Dragon's Fury Pyro"
			Health 3000
			Skill Hard
			Attributes MiniBoss
            Tag bot_giant
			MaxVisionRange 1000
			Item "The Dragon's Fury"
			Item "Pyro Helm"
			ItemAttributes
			{
				ItemName "The Dragon's Fury"
				"damage bonus" 1.20
			}
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.5
				"airblast vulnerability multiplier" 0.5
				"override footstep sound set" 6
			}
		}
        T_TFBot_Giant_Demoman_Stickybomb    // ===== Demomen =====
		{
			Class Demoman
			ClassIcon demo_sticky_daan
			Name "Giant Stickybomb Demoman"
			Health 3300
			Skill Expert
			Attributes MiniBoss
			Attributes HoldFireUntilFullReload
			Tag bot_giant
			WeaponRestrictions SecondaryOnly
			Item "Strontium Stove Pipe"
			ItemAttributes
			{
				ItemName "TF_WEAPON_GRENADELAUNCHER"
				"is_passive_weapon" 1
				"override projectile type" 27.0
			}
			ItemAttributes
			{
				ItemName "TF_WEAPON_PIPEBOMBLAUNCHER"
				"faster reload rate" 0
				"stickybomb charge rate" 0
			}
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"airblast vulnerability multiplier" 0.5
				"rocket jump damage reduction" 0.01
				"damage force reduction" 0.5
				"override footstep sound set" 4
			}
		}
        T_TFBot_Giant_Demoman_Stickybomb_BurstFire
		{
			Class Demoman
			ClassIcon demo_sticky_burst
			Name "Giant Burst Fire Sticky Demoman"
			Health 3300
			Skill Expert
			Attributes MiniBoss
			Attributes HoldFireUntilFullReload
			Tag bot_giant
			WeaponRestrictions SecondaryOnly
			Item "Strontium Stove Pipe"
			ItemAttributes
			{
				ItemName "TF_WEAPON_GRENADELAUNCHER"
				"is_passive_weapon" 1
				"override projectile type" 27.0
			}
			ItemAttributes
			{
				ItemName "TF_WEAPON_PIPEBOMBLAUNCHER"
				"fire rate bonus" 0.15
				"faster reload rate" 0.5
				"stickybomb charge rate" 0
				"Projectile speed decreased" 0.30
				"projectile spread angle penalty" 3.0
			}
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"airblast vulnerability multiplier" 0.5
				"rocket jump damage reduction" 0.01
				"damage force reduction" 0.5
				"override footstep sound set" 4
			}
		}
        T_TFBot_Giant_Engineer_Widowmaker	// ===== Engineers =====
		{
			Class Engineer
			ClassIcon engineer_widowmaker_nys
			Name "Giant Widowmaker Engineer"
			Health 3300
			Skill Expert
			Attributes MiniBoss
			Tag bot_giant
			BehaviorModifiers Push
            WeaponRestrictions  PrimaryOnly
			Item "The Widowmaker"
			Item "Engineer Earmuffs"
			Item "The Western Wraps"	
			ItemAttributes
			{
				ItemName "The Widowmaker"
				"fire rate bonus" 0.6
			}
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.6
				"voice pitch scale" 0
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 6
			}
		}
		T_TFBot_Giant_Sniper_Huntsman_Spammer	// ===== Snipers =====
		{
			Class Sniper
			ClassIcon sniper_bow_multi_giant
			Name "Giant Rapid Fire Bowman"
			Health 3000
			Skill Expert
			Attributes MiniBoss
			Tag bot_giant
			Item "The Huntsman"
			Item "Brim-Full of Bullets"
			ItemAttributes
			{
				ItemName "The Huntsman"
				"faster reload rate" 0.35
			}
			CharacterAttributes
			{
				"airblast vulnerability multiplier" 0.50
				"override footstep sound set" 7.0
				"damage force reduction" 0.50
				"move speed bonus" 0.50
			}
		}

        //Bosses
        T_TFBot_Boss_Soldier_TypeA
        {
            Class Soldier
            ClassIcon soldier_sergeant
            Name "Boss Brobot Soldier [Type A]"
            Health 20000
            Scale 1.8
            Skill Expert
            Attributes  UseBossHealthBar
            Attributes HoldFireUntilFullReload
            Attributes MiniBoss
            Tag bot_giant
            Item "The Air Strike"
            Item "Steel Shako"
            ItemAttributes
            {
                ItemName "The Air Strike"
                "fire rate bonus" 0.03
                "faster reload rate" 0.11
                "clip size upgrade atomic" 36.0
                "Projectile speed decreased" 0.7
                "projectile spread angle penalty" 4

                "damage bonus" 2.0
            }
            ItemAttributes
            {
                ItemName "Tyrantium Helmet"
                "set item tint RGB" 7511618
            }
            CharacterAttributes
            {
                "health regen" 40
                "move speed bonus" 0.3
                "airblast vulnerability multiplier" 0.4
                "damage force reduction" 0.4
                "rage giving scale" 0.2
                "override footstep sound set" 3
            }
        }
        T_TFBot_Boss_Soldier_TypeB
        {
            Class Soldier
            ClassIcon soldier_sergeant
            Name "Boss Brobot Soldier [Type B]"
            Health 20000
            Skill Expert
            Attributes  UseBossHealthBar
            Attributes  AlwaysCrit
            Attributes MiniBoss
            WeaponRestrictions SecondaryOnly
            Tag bot_giant
            Item "Steel Shako"
            Item "The Righteous Bison"
            ItemAttributes
            {
                ItemName "The Righteous Bison"
                "energy weapon penetration" 1
                "set item tint RGB"	10027263
                "fire rate bonus" 0.05
                "faster reload rate" 0.0
                "clip size upgrade atomic" -3
                "projectile penetration" 1
            }
            ItemAttributes
            {
                ItemName "Tyrantium Helmet"
                "set item tint RGB"	5801378
            }
            CharacterAttributes
            {
                "health regen" 40
                "move speed bonus" 0.3
                "airblast vulnerability multiplier" 0.4
                "damage force reduction" 0.4
                "rage giving scale" 0.2
                "override footstep sound set" 3
            }
        }
        T_TFBot_Boss_Soldier_TypeC
        {
            Class Soldier
            ClassIcon soldier_sergeant
            Name "Boss Brobot Soldier [Type C]"
            Health 20000
            Skill Expert
            Attributes  UseBossHealthBar
            Attributes SpawnWithFullCharge
            Attributes MiniBoss
            Tag bot_giant
            Item "The Cow Mangler 5000"
            Item "The Concheror"
            Item "Steel Shako"
            ItemAttributes
            {
                ItemName "The Cow Mangler 5000"
                "damage bonus" 2.0
                "Projectile speed increased" 0.55
                "faster reload rate" 0.0

                "fire rate bonus with reduced health" 0.2
            }
            ItemAttributes
            {
                ItemName "The Concheror"
                "increase buff duration" 9.0
            }
            ItemAttributes
            {
                ItemName "Tyrantium Helmet"
                "set item tint RGB" 15185211
            }
            CharacterAttributes
            {
                "health regen" 40
                "move speed bonus" 0.3
                "airblast vulnerability multiplier" 0.4
                "damage force reduction" 0.4
                "rage giving scale" 0.2
                "override footstep sound set" 3
            }
        }

        ///////////////////////////////////////////////////////////////////////////
        //WAVESPAWN TEMPLATES
        ///////////////////////////////////////////////////////////////////////////
        T_WaveSpawn_GiantSoldierVolleyCrit_UberMedic
        {
            where   spawnbot
            
            TotalCount  2
            MaxActive   2
            SpawnCount  2
            WaitBetweenSpawns   5
            TotalCurrency   50

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Soldier_Volley
                    Name    "Giant Crit Volley Soldier"
                    Attributes  AlwaysCrit
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
            }
        }
        T_WaveSpawn_GiantScoutCrit_UberMedic
        {
            where   spawnbot
            
            TotalCount  2
            MaxActive   2
            SpawnCount  2
            WaitBetweenSpawns   5
            TotalCurrency   50

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Scout
                    Name    "Giant Crit Scout"
                    Attributes  AlwaysCrit
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
            }
        }
        T_WaveSpawn_GiantDemoStickyburst_UberMedic
        {
            where   spawnbot
            
            TotalCount  2
            MaxActive   2
            SpawnCount  2
            WaitBetweenSpawns   5
            TotalCurrency   50

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Demoman_Stickybomb_BurstFire
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
            }
        }
        T_WaveSpawn_GiantHeavyDeflector_UberMedic
        {
            where   spawnbot
            
            TotalCount  2
            MaxActive   2
            SpawnCount  2
            WaitBetweenSpawns   5
            TotalCurrency   50

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Heavyweapons_Deflector
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
            }
        }
        T_WaveSpawn_GiantDemoknight_GiantMedic_TomislavHeavy
        {
            where   spawnbot
            
            TotalCount  6
            MaxActive   6
            SpawnCount  6
            WaitBetweenSpawns   5
            TotalCurrency   60

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_DemoMan_PrinceTavish
                    Name "Giant Crit Demoknight"
                    Attributes  AlwaysCrit
                }
                TFBot
                {
                    Template    T_TFBot_Giant_Medic_Regen
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Tomislav
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Tomislav
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Tomislav
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Tomislav
                    tag bot_squad_member
                }
            }
        }
    }



    StartingCurrency 800
    RespawnWaveTime 7
    CanBotsAttackWhileInSpawnRoom no
    Advanced    1

    ///////////////////////////////////////////////////////////////////////////
    //MISSIONS
    ///////////////////////////////////////////////////////////////////////////
    //Disable for testing :)
	Mission //Sentry Busters
	{
		Where spawnbot
		Objective DestroySentries
		InitialCooldown 5
		BeginAtWave 1
		RunForThisManyWaves 6
		CooldownTime 32
		TFBot
		{
			Template T_TFBot_SentryBuster
		}
	}
    Mission //W2/3 snipers
	{
		Where spawnbot_mission_sniper
		Objective Sniper
		InitialCooldown 30
		BeginAtWave 2
		RunForThisManyWaves 2
		CooldownTime 30
		DesiredCount 2
		TFBot
		{
			Template T_TFBot_Sniper
		}
	}
    Mission //W4/5 spies
	{
		Where spawnbot_mission_spy
		Objective Spy
		InitialCooldown 45
		BeginAtWave 4
		RunForThisManyWaves 2
		CooldownTime 60
		DesiredCount 4
		TFBot
		{
			Template T_TFBot_Spy
		}
	}
    Mission //W4 engies
	{
		Where spawnbot
		Objective Engineer
		InitialCooldown 30
		BeginAtWave 4
		RunForThisManyWaves 1
		CooldownTime 60
		DesiredCount 1
		TFBot
		{
			Template T_TFBot_Engineer_Sentry_Battle_TeleIn
		}
	}

    Mission //W5/6 engies
	{
		Where spawnbot
		Objective Engineer
		InitialCooldown 60
		BeginAtWave 5
		RunForThisManyWaves 1
		CooldownTime 60
		DesiredCount 1
		TFBot
		{
			Template T_TFBot_Engineer_Sentry_Battle_TeleIn
		}
	}
    Mission //W6 snipers
	{
		Where spawnbot_mission_sniper
		Objective Sniper
		InitialCooldown 30
		BeginAtWave 6
		RunForThisManyWaves 1
		CooldownTime 30
		DesiredCount 2
		TFBot
		{
			Template T_TFBot_Sniper
		}
	}
    Mission //W6 spies
	{
		Where spawnbot_mission_spy
		Objective Spy
		InitialCooldown 90
		BeginAtWave 6
		RunForThisManyWaves 1
		CooldownTime 60
		DesiredCount 4
		TFBot
		{
			Template T_TFBot_Spy
		}
	}

    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 1 ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //W1
    //24 blaster/bat scouts
    //2 giant soldier
    //24 blaster/bat scouts
    //2 giant widowmaker engie + 2 gas pyro
    //16 tomislav heavies
    //2 giant demoknight + 2 giant sticky demo
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 1 ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
    Wave
    {
        StartWaveOutput
        {
            Target  wave_start_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }

        Checkpoint Yes

        //W1_1 ////////////////////////////////////////////////////
        WaveSpawn //24 bat scouts, groups of 4
        {
            Where spawnbot
            Name "W1_1_BatScouts"
            TotalCount  16
            MaxActive   12
            SpawnCount  4
            WaitBeforeStarting  8
            WaitBetweenSpawns   6
            TotalCurrency   32

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Scout_Cola_Bat
                }
                TFBot
                {
                    Template    T_TFBot_Scout_Cola_Bat
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Scout_Cola_Bat
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Scout_Cola_Bat
                    tag bot_squad_member
                }
            }
                
        }
        WaveSpawn //24 blaster scouts, groups of 4
        {
            Where spawnbot
            Name "W1_1_BlasterScouts"
            TotalCount  24
            MaxActive   8
            SpawnCount  4
            WaitBeforeStarting  11
            WaitBetweenSpawns   6
            TotalCurrency   60

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Scout_Blaster
                }
                TFBot
                {
                    Template    T_TFBot_Scout_Blaster
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Scout_Blaster
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Scout_Blaster
                    tag bot_squad_member
                }
            } 
        }

        WaveSpawn //2 giant soldiers
        {
            Where spawnbot
            Name "W1_1_GiantSoldier"
            FirstSpawnWarningSound  "Soldier.M_MVM_DominationSniper13"

            TotalCount  2
            MaxActive   2
            SpawnCount  1
            WaitBetweenSpawns   25
            TotalCurrency   100

            TFBot
            {
                Template    T_TFBot_Giant_Soldier
            }
        }

        //W1_2 ////////////////////////////////////////////////////
        WaveSpawn //2 giant widowmaker engies + 2 gas pyro
        {
            Where spawnbot
            Name "W1_2_Widowmaker"
            TotalCount  4
            MaxActive   4
            SpawnCount  2
            WaitForAllSpawned "W1_1_GiantSoldier"
            WaitBeforeStarting  20
            WaitBetweenSpawns   12
            TotalCurrency  100

            Squad
            {
                ShouldPreserveSquad 1
                    TFBot
                    {
                        Template T_TFBot_Pyro_Gas
                    }
                    TFBot
                    {
                        Template    T_TFBot_Giant_Engineer_Widowmaker
                        tag bot_squad_member
                    }
            }
        }
        //W1_3 ////////////////////////////////////////////////////
        WaveSpawn //16 tomislav heavies
        {
            Where spawnbot
            Name "W1_3_Heavies"
            TotalCount  16
            MaxActive   12
            SpawnCount  2
            WaitForAllSpawned   "W1_2_Widowmaker"
            WaitBeforeStarting  10
            WaitBetweenSpawns   4
            TotalCurrency   128

            TFBot
            {
                Template    T_TFBot_Heavyweapons_Tomislav
            }
        }
        WaveSpawn //giant demoknight + giant sticky demo
        {
            Where spawnbot
            Name "W1_3_GiantDemos"
            TotalCount  4
            MaxActive   4
            SpawnCount  2
            WaitForAllDead "W1_2_Widowmaker"
            WaitBeforeStarting  5
            WaitBetweenSpawns   20
            TotalCurrency  180

            Squad
            {
                ShouldPreserveSquad 1
                    TFBot
                    {
                        Template T_TFBot_Giant_DemoMan_PrinceTavish
                        Name    "Giant Crit Demoknight"
                        Attributes AlwaysCrit
                    }
                    TFBot
                    {
                        Template    T_TFBot_Giant_Demoman_Stickybomb
                        tag bot_squad_member
                    }
            }
        }
        WaveSpawn //support caber
        {
            Where spawnbot
            Name "W1_Support"
            TotalCount  30
            MaxActive   12
            SpawnCount  1
            WaitForAllDead   "W1_3_Heavies"
            WaitBeforeStarting  1
            WaitBetweenSpawns   4
            TotalCurrency   0

            Support 1

            TFBot
            {
                Template    T_TFBot_Demoknight_Caber
            }
        }
    }


    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 2 ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //W2

    //45 bowmen // 3 giant pyro
    //20 demoknight // 1 giant soldier + 4 kritz medic x 2
    //1 giant pyro & 2 quick fix medic & 5 demoknight x 2 // 25 bfb scout //support conch
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 2 ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
 
    Wave
    {
        StartWaveOutput
        {
            Target  wave_start_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }

        Checkpoint Yes


        //W1_1 ////////////////////////////////////////////////////
        WaveSpawn //30 bowmen (150)
        {
            Where spawnbot
            Name "W2_1_Bowmen"
            FirstSpawnWarningSound  "Sniper.MVM_SpecialCompleted03"

            TotalCount  45
            MaxActive   10
            SpawnCount  5
            WaitBetweenSpawns   6
            TotalCurrency   90

            TFBot
            {
                Template    T_TFBot_Sniper_Huntsman
            }
            
        }
        WaveSpawn //3 giant pyro (60)
        {
            Where spawnbot
            Name "W2_1_GiantPyro"
            WaitBeforeStarting 8
            TotalCount  3
            MaxActive   3
            SpawnCount  1
            WaitBetweenSpawns   15
            TotalCurrency   150

            TFBot
            {
                Template T_TFBot_Giant_Pyro
                Attributes AlwaysFireWeapon
            }
        }

        //W2_2 ////////////////////////////////////////////////////
        WaveSpawn //20 demoknight (80)
        {
            Where spawnbot
            Name "W2_2_Demoknight"
            TotalCount  20
            MaxActive   10
            SpawnCount  2
            WaitForAllSpawned "W2_1_Bowmen"
            WaitBeforeStarting  6
            WaitBetweenSpawns   3
            TotalCurrency   60

            TFBot
            {
                Template    T_TFBot_Demoman_Knight
            }
        }

        WaveSpawn // Giant burst fire soldier + 4 kritz medic x 2 (100)
        {
            Where spawnbot
            Name "W2_2_SoldierKritz"
            TotalCount  10
            MaxActive   5
            SpawnCount  5
            WaitForAllDead "W2_1_GiantPyro"
            WaitBetweenSpawns   15
            TotalCurrency   200

            Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer_Reload
				}
                TFBot
                {
                    Template T_TFBot_Medic_Kritzkrieg
                    tag bot_squad_member
                }
                TFBot
                {
                    Template T_TFBot_Medic_Kritzkrieg
                    tag bot_squad_member
                }
                TFBot
                {
                    Template T_TFBot_Medic_Kritzkrieg
                    tag bot_squad_member
                }
                TFBot
                {
                    Template T_TFBot_Medic_Kritzkrieg
                    tag bot_squad_member
                }
			}
        }

        //W2_3 ////////////////////////////////////////////////////
        WaveSpawn //
        {
            Where spawnbot
            Name "W2_3_BlasterScout"
            TotalCount  25
            MaxActive   5
            SpawnCount  1
            WaitForAllDead "W2_2_SoldierKritz"
            WaitBeforeStarting 0
            WaitBetweenSpawns 1
            TotalCurrency   100

            TFBot
            {
                Template    T_TFBot_Scout_Blaster
            }
        }
        WaveSpawn //Giant pyro + 1 quick uber + 2 heavy
        {
            Where spawnbot
            Name "W2_3_GiantDF"
            TotalCount  16
            MaxActive   8
            SpawnCount  4
            WaitForAllDead "W2_2_SoldierKritz"
            WaitBeforeStarting  10
            WaitBetweenSpawns   12
            TotalCurrency   240

            Squad
            {
                TFBot
                {
                    Template T_TFBot_Giant_Pyro_DF
                }
                TFBot
                {
                    Template T_TFBot_Medic_QuickUber
                    Tag bot_squad_member
                }

                TFBot
                {
                    Template T_TFBot_Heavyweapons_Tomislav
                    Tag bot_squad_member
                }
                TFBot
                {
                    Template T_TFBot_Heavyweapons_Tomislav
                    Tag bot_squad_member
                }
            }
            
        }
        WaveSpawn //support conch soldiers, only first 20 drop money
        {
            Where spawnbot
            Name "W2_3_Conch"
            TotalCount  20
            MaxActive   4
            SpawnCount  4
            WaitForAllDead "W2_2_SoldierKritz"
            WaitBeforeStarting  10
            WaitBetweenSpawns   10
            TotalCurrency   60

            Support 1

            Squad
            {
                ShouldPreserveSquad 1
                TFBot
                {
                    Template    T_TFBot_Soldier_Extended_Concheror
                }
                TFBot
                {
                    Template    T_TFBot_Soldier_Extended_Concheror
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Soldier_Extended_Concheror
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Soldier_Extended_Concheror
                    tag bot_squad_member
                }
            }
        }
    }

    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 3 ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //W3
    //Snipers
    //4 giant scout //30 blast soldier + DF pyro pairs

    //(x3) giant heavy + 3 uber medic // 36 bat scout (burst)

    //(x2) 16 charge demo

    //2 giant buff soldier + 6 uber medic //10 rapid fire huntsman 
    //support DF pyros (stream)
    Wave
    {
        StartWaveOutput
        {
            Target  wave_start_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }

        Checkpoint Yes

        //W3_1 ////////////////////////////////////////////////////
        WaveSpawn //4 giant scouts
        {
            Where spawnbot
            Name "W3_1_GiantScout"
            FirstSpawnWarningSound  "Scout.M_MVM_Award12"

            TotalCount  4
            MaxActive   2
            SpawnCount  1
            WaitBetweenSpawns   10
            TotalCurrency   100

            TFBot
            {
                Template T_TFBot_Giant_Scout
            }
            
        }
        //Markie: I like the giant scouts with blast soldiers
        //Markie: "trying to body block? fuck you"
        WaveSpawn //30 blast soldier + DF
        {
            Where spawnbot
            Name "W3_1_BlastDF"
            TotalCount  30
            MaxActive   12
            SpawnCount  6
            WaitBeforeStarting  1
            WaitBetweenSpawns   10
            TotalCurrency   90

            Squad
            {
                TFBot
                {
                    Template T_TFBot_Soldier_RocketPush
                }
                TFBot
                {
                    Template T_TFBot_Pyro_DF
                    tag bot_squad_member
                }
            }
            
            
        }
        //W3_2 ////////////////////////////////////////////////////
        WaveSpawn //(x2) giant heavy + 3 uber med
        {
            Where spawnbot
            Name "W3_2_GiantHeavy"
            TotalCount  12
            MaxActive   8
            SpawnCount  4
            WaitForAllDead   "W3_1_GiantScout"
            WaitBeforeStarting  5
            WaitBetweenSpawns   20
            TotalCurrency   120

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Heavyweapons_Deflector
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
            }
        }
        WaveSpawn //36 bat scout
        {
            Where spawnbot
            Name "W3_2_ColaScout"
            TotalCount  36
            MaxActive   12
            SpawnCount  6
            WaitForAllSpawned "W3_1_BlastDF"
            WaitBeforeStarting  15
            WaitBetweenSpawns   8
            TotalCurrency   72

            TFBot
            {
                Template    T_TFBot_Scout_Cola_Bat
            }
        }
        //W3_3 ////////////////////////////////////////////////////
        WaveSpawn //(x3) 16 charge demo
        {
            Where spawnbot
            Name "W3_3_ChargeDemo"
            TotalCount  24
            MaxActive   12
            SpawnCount  12
            WaitForAllDead "W3_2_ColaScout"
            WaitBeforeStarting  2
            WaitBetweenSpawns   2
            TotalCurrency   120

            TFBot
            {
                Template    T_TFBot_Demoman_Targe
            }
        }
        //W3_4 ////////////////////////////////////////////////////
        WaveSpawn //(x2) giant buff soldier + 3 uber medic
        {
            Where spawnbot
            Name "W3_4_GiantBuff"
            TotalCount  12
            MaxActive   8
            SpawnCount  4
            WaitForAllDead "W3_3_ChargeDemo"
            WaitBetweenSpawns   30
            TotalCurrency   240

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Soldier_Spammer_Buff
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
            }
        }
        WaveSpawn
        {
            Where spawnbot
            Name "W3_4_Bowmen"
            TotalCount  10
            MaxActive   4
            SpawnCount  1
            WaitForAllDead "W3_3_ChargeDemo"
            WaitBeforeStarting  6
            WaitBetweenSpawns   10
            TotalCurrency   100

            TFBot
            {
                Template    T_TFBot_Sniper_Huntsman_Spammer
            }
        }
        WaveSpawn //support DF pyros
        {
            Where spawnbot
            Name "W3_4_Pyros"
            TotalCount  29
            MaxActive   8
            SpawnCount  2
            WaitForAllDead "W3_3_ChargeDemo"
            WaitBeforeStarting  2
            WaitBetweenSpawns   4
            TotalCurrency   58

            Support 1

            TFBot
            {
                Class Pyro
                Skill Normal
            }
        }
    }
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 4 ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //W4

    //Spies
    //1 tank 
    //40 caber demo + kritz medic

    //16 heavy + quick fix medics

    //(x3) giant demoknight + giant sticky demo + 3 buff soldier
    
    //1 tank 
    //(x2) giant heavy + giant medic //support charge demo/buff soldier
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 4 ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
    Wave
    {
        StartWaveOutput
        {
            Target  wave_start_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }
        //W4_1 ////////////////////////////////////////////////////
        WaveSpawn //Tank 25k HP
		{
			Where spawnbot
			Name "W4_1_Tank"
            FirstSpawnWarningSound  "MVM.TankStart"

			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 1
			WaitBetweenSpawns 5
			TotalCurrency 150
			
			Tank
			{
				Name "tankboss"
				Health 25000
				Speed 75
				StartingPathTrackNode boss_path_1
				
                OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
        WaveSpawn //40 caber demo + kritz medic
        {
            Where spawnbot
			Name "W4_1_CabersMedics"
            FirstSpawnWarningSound  "Demoman.MVM_dominationscout04"

			TotalCount 40
			MaxActive 12
			SpawnCount 4
			WaitBeforeStarting 8
			WaitBetweenSpawns 5
			TotalCurrency 200

            Squad
            {
                ShouldPreserveSquad 1
                TFBot //Edited to remove targe, prevent charge
                {
                    Template    T_TFBot_Demoknight_Caber
                }
                TFBot
                {
                    Template    T_TFBot_Medic_Kritzkrieg
                    tag bot_squad_member
                }
            }
        }
        //W4_2 ////////////////////////////////////////////////////
        WaveSpawn //16 heavy + quick fix medic
        {
            Where spawnbot
            Name "W4_2_HeaviesMedics"
            TotalCount 32
            MaxActive 12
            SpawnCount 4
            WaitForAllSpawned "W4_1_CabersMedics"
            WaitBeforeStarting 12
            WaitBetweenSpawns 3
            TotalCurrency 256

            Squad
            {
                TFBot
                {
                    Template T_TFBot_Heavyweapons_Tomislav
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickFix
                    tag bot_squad_member
                }
            }
        }
        //W4_3 ////////////////////////////////////////////////////
        WaveSpawn //3 giant demoknight + 3 giant sticky demo + 9 buff soldier
        {
            Where spawnbot
            Name "W4_3_GiantDemos"
            TotalCount 15
            MaxActive 10
            SpawnCount 5
            WaitForAllSpawned "W4_2_HeaviesMedics"
            WaitBeforeStarting 5
            WaitBetweenSpawns 12
            TotalCurrency 225

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_DemoMan_PrinceTavish
                    Name    "Giant Crit Demoknight"
                    Attributes  AlwaysCrit
                }
                TFBot
                {
                    Template    T_TFBot_Giant_Demoman_Stickybomb
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Soldier_Extended_Buff_Banner
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Soldier_Extended_Buff_Banner
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Soldier_Extended_Buff_Banner
                    tag bot_squad_member
                }

            }
        }
        //W4_4 ////////////////////////////////////////////////////
        WaveSpawn //Tank 25k HP
		{
			Where spawnbot
			Name "W4_4_Tank"
            FirstSpawnWarningSound  "MVM.TankStart"

			TotalCount 1
			MaxActive 1
			SpawnCount 1
            WaitForAllSpawned "W4_3_GiantDemos"
			WaitBeforeStarting 30
			WaitBetweenSpawns 5
			TotalCurrency 150
			FirstSpawnOutput
			{
				Target boss_spawn_relay
				Action Trigger
			}
			
			Tank
			{
                Name "tankboss"
				Health 25000
				Speed 75
				StartingPathTrackNode boss_path_1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
        WaveSpawn //(x2) 1 giant heavy + giant medic
        {
            Where spawnbot
            Name "W4_4_GiantHeavyMedic"
            TotalCount 4
            MaxActive 4
            SpawnCount 2
            WaitForAllDead "W4_3_GiantDemos"
            WaitBeforeStarting 18
            WaitBetweenSpawns 40
            TotalCurrency 100

            Squad
            {
                TFBot
                {
                    Template T_TFBot_Giant_Heavyweapons_Deflector
                    tag nav_prefer_lobbyflank
                }
                TFBot
                {
                    Template    T_TFBot_Giant_Medic_Regen
                    tag bot_squad_member
                }
            }
        }
        WaveSpawn //support charge demos/soldiers
        {
            Where spawnbot
            Name "W4_4_ChargeDemos"
            TotalCount 23
            MaxActive 12
            SpawnCount 3
            WaitForAllDead "W4_3_GiantDemos"
            WaitBeforeStarting 10
            WaitBetweenSpawns 5
            TotalCurrency 69 //nice

            Support 1

            Squad
            {
                ShouldPreserveSquad 1
                TFBot
                {
                    Template    T_TFBot_Soldier_RocketPush
                }
                TFBot
                {
                    Template    T_TFBot_Demoman_Targe
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Demoman_Targe
                    tag bot_squad_member
                }
            }
        }


    }
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 5 ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //W5
    //Engies

    //20 DF pyros //20 conch soldier
    //(x3) giant kritz widowmaker engies + gas pyro

    //(x2) giant rapid fire bowmen + 4 crit pyro 
    //10 demoknight

    //giant volley soldier + 3 uber medic
    //10 heavy shotgun //2 gas pyro

    //(x2) giant rapid fire bowmen + 4 crit pyro
    //10 demoknight

    //tank
    //(x2) giant volley soldier + 3 uber medic
    //20 shotgun heavy //4 gas pyro
    //support blaster scout
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 5 ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
    Wave
    {
        StartWaveOutput
        {
            Target  wave_start_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }

        //W5_1 ////////////////////////////////////////////////////
        WaveSpawn //25 DF pyro 25 conch soldier
        {
            Where spawnbot
            Name "W5_1_PyrosSoldiers"
            FirstSpawnWarningSound  "Pyro.MVM_SpecialCompleted01"

            TotalCount 50
            MaxActive 12
            SpawnCount 6
            WaitBetweenSpawns 8
            TotalCurrency 100

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Soldier_Extended_Concheror
                }
                TFBot
                {
                    Template    T_TFBot_Pyro_DF
                    tag bot_squad_member
                }
            }
        }
        WaveSpawn //(x3) giant widowmaker engies + gas pyro
        {
            Where spawnbot
            Name "W5_1_EngieKritzGas"

            TotalCount 6
            MaxActive 4
            SpawnCount 2
            WaitBeforeStarting 1
            WaitBetweenSpawns 16
            TotalCurrency 180

            //Tried giant kritz medics but they won't pocket giant engie
            Squad
            {
                ShouldPreserveSquad 1
                TFBot
                {
                    Template    T_TFBot_Pyro_Gas
                }
                TFBot
                {
                    Template    T_TFBot_Giant_Engineer_Widowmaker
                    Name "Giant Crit Widowmaker Engineer"
                    tag bot_squad_member
                    Attributes  AlwaysCrit
                }
            }
        }

        //W5_2 ////////////////////////////////////////////////////
        WaveSpawn //(x2) giant rapid fire bowmen + 4 crit pyro
        {
            Where spawnbot
            Name "W5_2_GiantBowmen"
            TotalCount 10
            MaxActive 10
            SpawnCount 5
            WaitForAllDead  "W5_1_EngieKritzGas"
            WaitBetweenSpawns 15
            TotalCurrency 100

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Sniper_Huntsman_Spammer
                }
                TFBot //Won't reflect
                {
                    Template    T_TFBot_Pyro_Crit
                    tag bot_squad_member
                }
                TFBot //Won't reflect
                {
                    Template    T_TFBot_Pyro_Crit
                    tag bot_squad_member
                }
                TFBot //Won't reflect
                {
                    Template    T_TFBot_Pyro_Crit
                    tag bot_squad_member
                }
                TFBot //Won't reflect
                {
                    Template    T_TFBot_Pyro_Crit
                    tag bot_squad_member
                }
            }
        }
        WaveSpawn //(x2) 5 demoknight squad
        {
            Where spawnbot
            Name "W5_2_Demoknights"
            TotalCount 10
            MaxActive 10
            SpawnCount 5
            WaitForAllDead  "W5_1_EngieKritzGas"
            WaitBeforeStarting 7
            WaitBetweenSpawns 10
            TotalCurrency 50

            TFBot
            {
                Template    T_TFBot_Demoman_Knight
            }
        }

        //W5_2 ////////////////////////////////////////////////////
        WaveSpawn //volley soldier
        {
            Where spawnbot
            Name "W5_3_Volley"

            TotalCount 4
            MaxActive 4
            SpawnCount 4
            WaitForAllDead  "W5_2_GiantBowmen"
            WaitBetweenSpawns 5
            TotalCurrency 100

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Soldier_Volley
                    Name "Giant Crit Volley Soldier"
                    Attributes  AlwaysCrit
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
            }
        }

        WaveSpawn //(x2) 5 heavy shotgun + gas pyro squad
        {
            Where spawnbot
            Name "W5_3_ShotgunGas"
            TotalCount 12
            MaxActive 12
            SpawnCount 6
            WaitForAllDead  "W5_2_GiantBowmen"
            WaitBeforeStarting 5
            WaitBetweenSpawns 20
            TotalCurrency 60

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Pyro_Gas
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
            }
        }

        //W5_4 ////////////////////////////////////////////////////
        WaveSpawn //(x2) giant rapid fire bowmen + 4 crit pyro
        {
            Where spawnbot
            Name "W5_4_GiantBowmen"
            TotalCount 10
            MaxActive 10
            SpawnCount 5
            WaitForAllDead  "W5_3_Volley"
            WaitBetweenSpawns 15
            TotalCurrency 100

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Sniper_Huntsman_Spammer
                }
                TFBot //Won't reflect
                {
                    Template    T_TFBot_Pyro_Crit
                    tag bot_squad_member
                }
                TFBot //Won't reflect
                {
                    Template    T_TFBot_Pyro_Crit
                    tag bot_squad_member
                }
                TFBot //Won't reflect
                {
                    Template    T_TFBot_Pyro_Crit
                    tag bot_squad_member
                }
                TFBot //Won't reflect
                {
                    Template    T_TFBot_Pyro_Crit
                    tag bot_squad_member
                }
            }
        }
        WaveSpawn //(x2) 5 demoknight squad
        {
            Where spawnbot
            Name "W5_4_Demoknights"
            TotalCount 10
            MaxActive 10
            SpawnCount 5
            WaitForAllDead  "W5_3_Volley"
            WaitBeforeStarting 12
            WaitBetweenSpawns 15
            TotalCurrency 50

            TFBot
            {
                Template    T_TFBot_Demoman_Knight
            }
        }
        //W5_4 ////////////////////////////////////////////////////
        WaveSpawn //Tank 28k HP
		{
			Where spawnbot
			Name "W5_5_Tank"
            FirstSpawnWarningSound  "MVM.TankStart"

			TotalCount 1
			MaxActive 1
			SpawnCount 1
            WaitForAllDead  "W5_4_GiantBowmen"
			WaitBeforeStarting 3
			WaitBetweenSpawns 5
			TotalCurrency 200
			
			Tank
			{
				Name "tankboss"
				Health 28000
				Speed 75
				StartingPathTrackNode boss_path_1
				
                OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}

        WaveSpawn //(x2) giant volley solder + 3 uber medic
		{
			Where spawnbot
			Name "W5_5_Volley"
			TotalCount 12
			MaxActive 4
			SpawnCount 4
            WaitForAllDead  "W5_4_GiantBowmen"
			WaitBeforeStarting 6
			WaitBetweenSpawns 15
			TotalCurrency 180
			
			Squad
            {
                TFBot
                {
                    Template    T_TFBot_Giant_Soldier_Volley
                    Name "Giant Crit Volley Soldier"
                    Attributes  AlwaysCrit
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Medic_QuickUber
                    tag bot_squad_member
                }
            }
		}
        WaveSpawn //(x4) 5 heavy shotgun + gas pyro squad
        {
            Where spawnbot
            Name "W5_5_ShotgunGas"
            TotalCount 24
            MaxActive 12
            SpawnCount 6
            WaitForAllDead  "W5_4_GiantBowmen"
            WaitBeforeStarting 12
            WaitBetweenSpawns 12
            TotalCurrency 120

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Pyro_Gas
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
                TFBot
                {
                    Template    T_TFBot_Heavyweapons_Shotgun
                    tag bot_squad_member
                }
            }
        }
        WaveSpawn //4 blaster scouts, support
        {
            Where spawnbot
            Name "W5_5_BlasterScout"
            TotalCount 20
            MaxActive 4
            SpawnCount 2
            WaitForAllDead  "W5_4_GiantBowmen"
            WaitBeforeStarting 2
            WaitBetweenSpawns 6
            TotalCurrency 60

            Support 1

            Squad
            {
                TFBot
                {
                    Template    T_TFBot_Scout_Blaster
                }
                TFBot
                {
                    Template    T_TFBot_Scout_Blaster
                }
            }
        }
    }

    ////////////////////////////////////////////////////////////////////////////////////////////////
    //Wave 6 final ////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //W6 (boss)
    //Engies, snipers

    //[ADDED MORE TO FINAL WAVE]

    //30 tomislav heavy
    //giant crit volley soldier + uber medic
    //giant crit scout
    //giant crit volley soldier + uber medic
    //giant crit scout
    //giant crit volley soldier + uber medic

    //tank 28k hp
    //20 blast soldier
    //giant sticky demo + uber medic
    //giant crit scout + uber medic
    //giant sticky demo + uber medic
    //giant crit scout + uber medic
    //giant sticky demo + uber medic

    //tank 30k hp (final)
    //30 blast soldier
    //(x3) giant heavy + rapid fire bowmen

    //9 backup soldier
    //giant crit demoknight + 4 tomislav heavy + giant regen medic
    //giant crit scout + uber medic

    //9 backup soldier
    //giant crit demoknight + 4 tomislav heavy + giant regen medic
    //giant crit scout + uber medic
    

    //Boss subwave
    //Boss Brobot Type A
        //20k
        //Rocket rain soldier, air strike
    //Boss Brobot Type B
        //20k
        //Bison spam, crits
    //Boss Brobot Type C
        //20k
        //Extended conch
        //Cow mangler
    //support charge demos, crit pyros, blaster scouts
    Wave
    {
        StartWaveOutput
        {
            Target  wave_start_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }

        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantScoutCrit_UberMedic
        
            FirstSpawnWarningSound  "Soldier.M_MVM_DominationScout11"

            Where spawnbot
            Name "W6_1a"
        }
        WaveSpawn //
        {
            Where spawnbot
            Name "W6_1b"

            TotalCount 30
            MaxActive 6
            SpawnCount 3
            WaitBeforeStarting 1
            WaitBetweenSpawns 6
            TotalCurrency 60

            TFBot
            {
                Template    T_TFBot_Heavyweapons_Tomislav
            }
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantSoldierVolleyCrit_UberMedic

            Where spawnbot
            Name "W6_2a"

            WaitBeforeStarting 3
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantScoutCrit_UberMedic

            Where spawnbot
            Name "W6_2b"

            WaitForAllSpawned "W6_2a"
            WaitBeforeStarting 10
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantSoldierVolleyCrit_UberMedic

            Where spawnbot
            Name "W6_2c"

            WaitForAllSpawned "W6_2b"
            WaitBeforeStarting 10
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantScoutCrit_UberMedic

            Where spawnbot
            Name "W6_2d"

            WaitForAllSpawned "W6_2c"
            WaitBeforeStarting 10
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantSoldierVolleyCrit_UberMedic

            Where spawnbot
            Name "W6_2e"

            WaitForAllSpawned "W6_2d"
            WaitBeforeStarting 10
        }


        WaveSpawn //Tank 28k HP
		{
			Where spawnbot
			Name "W6_Tank1"
            FirstSpawnWarningSound  "MVM.TankStart"

			TotalCount 1
			MaxActive 1
			SpawnCount 1

            WaitForAllDead  "W6_2e"
            WaitBeforeStarting 2
			WaitBetweenSpawns 5
			TotalCurrency 100
			
			Tank
			{
				Name "tankboss"
				Health 28000
				Speed 75
				StartingPathTrackNode boss_path_1
				
                OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
        WaveSpawn //
        {
            Where spawnbot
            Name "W6_3"

            TotalCount 20
            MaxActive 6
            SpawnCount 2

            WaitForAllSpawned   "W6_Tank1"
            WaitBetweenSpawns 4
            TotalCurrency 40

            TFBot
            {
                Template    T_TFBot_Soldier_RocketPush
            }
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantDemoStickyburst_UberMedic

            Where spawnbot
            Name "W6_4a"

            WaitForAllSpawned "W6_Tank1"
            WaitBeforeStarting 4
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantScoutCrit_UberMedic

            Where spawnbot
            Name "W6_4b"

            WaitForAllSpawned "W6_4a"
            WaitBeforeStarting 15
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantDemoStickyburst_UberMedic

            Where spawnbot
            Name "W6_4c"

            WaitForAllSpawned "W6_4b"
            WaitBeforeStarting 15
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantScoutCrit_UberMedic

            Where spawnbot
            Name "W6_4d"

            WaitForAllSpawned "W6_4c"
            WaitBeforeStarting 15
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantDemoStickyburst_UberMedic

            Where spawnbot
            Name "W6_4e"

            WaitForAllSpawned "W6_4b"
            WaitBeforeStarting 15
        }


        WaveSpawn //Tank 30k HP
		{
			Where spawnbot
			Name "W6_Tank2"
            FirstSpawnWarningSound  "MVM.TankStart"

			TotalCount 1
			MaxActive 1
			SpawnCount 1

            WaitForAllDead  "W6_4e"
			WaitBeforeStarting 8
			WaitBetweenSpawns 5
			TotalCurrency 100
			
			Tank
			{
				Name "tankboss"
				Health 30000
				Speed 75
                Skin    1
				StartingPathTrackNode boss_path_1
				
                OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
        WaveSpawn //
        {
            Where spawnbot
            Name "W6_5a"

            TotalCount 30
            MaxActive 9
            SpawnCount 3

            WaitForAllSpawned   "W6_Tank2"
            WaitBeforeStarting  2
            WaitBetweenSpawns 4
            TotalCurrency 60

            TFBot
            {
                Template    T_TFBot_Soldier_RocketPush
            }
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantHeavyDeflector_UberMedic

            Where spawnbot
            Name "W6_5b"

            WaitForAllSpawned "W6_Tank2"
            WaitBeforeStarting 4
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantHeavyDeflector_UberMedic

            Where spawnbot
            Name "W6_5c"

            WaitForAllSpawned "W6_5b"
            WaitBeforeStarting 12
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantHeavyDeflector_UberMedic

            Where spawnbot
            Name "W6_5d"

            WaitForAllSpawned "W6_5c"
            WaitBeforeStarting 10
        }


        WaveSpawn //
        {
            Where spawnbot
            Name "W6_6a"

            TotalCount 9
            MaxActive 6
            SpawnCount 3

            WaitForAllDead  "W6_Tank2"
            WaitBeforeStarting 4
            WaitBetweenSpawns 7
            TotalCurrency 45

            TFBot
            {
                Template    T_TFBot_Soldier_Extended_Battalion
            }
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantDemoknight_GiantMedic_TomislavHeavy

            Where spawnbot
            Name "W6_6b"

            WaitForAllDead  "W6_Tank2"
            WaitBeforeStarting 3
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantScoutCrit_UberMedic

            Where spawnbot
            Name "W6_6c"

            WaitForAllSpawned  "W6_6b"
            WaitBeforeStarting 10
        }

        WaveSpawn //
        {
            Where spawnbot
            Name "W6_7a"

            TotalCount 9
            MaxActive 6
            SpawnCount 3

            WaitForAllDead  "W6_6a"
            WaitBeforeStarting 10
            WaitBetweenSpawns 7
            TotalCurrency 45

            TFBot
            {
                Template    T_TFBot_Soldier_Extended_Battalion
            }
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantDemoknight_GiantMedic_TomislavHeavy

            Where spawnbot
            Name "W6_7b"

            WaitForAllSpawned  "W6_6b"
            WaitBeforeStarting 30
        }
        WaveSpawn //
        {
            Template    T_WaveSpawn_GiantScoutCrit_UberMedic

            Where spawnbot
            Name "W6_7c"

            WaitForAllSpawned  "W6_7b"
            WaitBeforeStarting 10
        }


        //Dummy wavespawns
        WaveSpawn
        {
            Name    "W6_Voice1"
            TotalCount  0
            SpawnCount  0

            WaitForAllDead  "W6_7b"
            WaitBeforeStarting  1
            DoneWarningSound    "Soldier.M_MVM_Jeers06"
        }
        WaveSpawn
        {
            Name    "W6_Voice2"
            TotalCount  0
            SpawnCount  0

            WaitForAllSpawned  "W6_Voice1"
            WaitBeforeStarting  4
            DoneWarningSound    "Soldier.MVM_No01"
        }
        WaveSpawn
        {
            Name    "W6_Voice3"
            TotalCount  0
            SpawnCount  0

            WaitForAllSpawned  "W6_Voice2"
            WaitBeforeStarting  2
            DoneWarningSound    "Soldier.M_MVM_AutoDejectedTie02"
        }


        //Boss Brobot Trio
        WaveSpawn 
        {
            Where spawnbot
            Name "W6_BossA"
            FirstSpawnWarningSound  "Soldier.M_MVM_Taunts11"
            DoneWarningSound    "Soldier.M_MVM_Taunts06"

            TotalCount 1
            MaxActive 1
            SpawnCount 1

            WaitForAllDead "W6_Voice3"
            WaitBeforeStarting 4
            WaitBetweenSpawns 5
            TotalCurrency 100

            TFBot //Type A
            {
                Template    T_TFBot_Boss_Soldier_TypeA
            }
        }
        WaveSpawn
        {
            Where spawnbot
            Name "W6_BossB"
            FirstSpawnWarningSound  "Soldier.M_MVM_DominationScout05"
            DoneWarningSound    "Soldier.M_MVM_Jeers09"

            TotalCount 1
            MaxActive 1
            SpawnCount 1

            WaitForAllSpawned "W6_BossA"
            WaitBeforeStarting 7
            WaitBetweenSpawns 5
            TotalCurrency 100
            TFBot //Type B
            {
                Template    T_TFBot_Boss_Soldier_TypeB
            }
        }

        WaveSpawn
        {
            Where spawnbot
            Name "W6_BossC"
            FirstSpawnWarningSound  "Soldier.M_MVM_SpecialCompleted05"
            DoneWarningSound    "Soldier.M_MVM_NegativeVocalization05"

            TotalCount 1
            MaxActive 1
            SpawnCount 1

            WaitForAllSpawned   "W6_BossB"
            WaitBeforeStarting 7
            WaitBetweenSpawns 5
            TotalCurrency 100
            TFBot //Type C
            {
                Template    T_TFBot_Boss_Soldier_TypeC
            }
        }

        //Support charge demos, crit pyros, blaster scouts
        WaveSpawn
        {
            Where spawnbot
            Name "W6_BossSupport"

            TotalCount 15
            MaxActive 10
            SpawnCount 2

            WaitForAllSpawned "W6_Voice3"
            WaitBeforeStarting 1
            WaitBetweenSpawns 4
            TotalCurrency 30

            Support 1

            RandomChoice
            {
                TFBot
                {
                    Template    T_TFBot_Demoman_Targe
                }
                TFBot
                {
                    Template    T_TFBot_Scout_Blaster
                }
                TFBot
                {
                    Template    T_TFBot_Pyro_Crit
                }

            }
        }
    }
}