//mvm_chobotki
//advanced skill

#base robot_giant.pop
#base robot_standart.pop
#base robot_gatebot.pop
#base robot_mastercat.pop
#base gatebot_master_cat.pop
#base robot_mastercat_expanded_pack#1.pop


WaveSchedule
{
    StartingCurrency 13400
    CanBotsAttackWhileInSpawnRoom Yes 
    RespawnWaveTime 4
    FixedRespawnWaveTime Yes
    Advanced 1

    Mission
    {
        Objective DestroySentries
        Where spawnbot_main0
        Where spawnbot_main1
        Where spawnbot_main2
        BeginAtWave 1
        RunForThisManyWaves 8
        InitialCooldown 50
        CooldownTime 30
        DesiredCount 1
        TFBot
        {
            Template T_TFBot_SentryBuster
            tag bot_sentrybuster
        }
    }


    Mission
    {
        Objective Spy
        Where spawnbot_mission_spy
        Where spawnbot_main1
        Where spawnbot_main2
        BeginAtWave 1
        RunForThisManyWaves 2
        InitialCooldown 120
        CooldownTime 60
        DesiredCount 2
        TFBot
        {
            Class Spy
            Skill Hard
        }
    }


    Mission // Spy: wave 4
    {
        Objective Spy
        Where spawnbot_mission_spy
        Where spawnbot_main1
        Where spawnbot_main2
        BeginAtWave 4
        RunForThisManyWaves 1
        InitialCooldown 60
        CooldownTime 200
        DesiredCount 2
        TFBot
        {
            Class Spy
            Skill Expert
        }
    }


    Mission // Sniper: wave 2
    {
        Objective Sniper
        Where spawnbot_mission_sniper
        Where spawnbot_main1
        Where spawnbot_main2
        BeginAtWave 2
        RunForThisManyWaves 1
        InitialCooldown 45
        CooldownTime 42
        DesiredCount 2
        TFBot
        {
            Class Sniper
            Skill Hard 
        }
        
    }


    Mission // Sniper: wave 3
    {
        Objective Sniper
        Where spawnbot_mission_sniper
        Where spawnbot_main1
        Where spawnbot_main2
        BeginAtWave 3
        RunForThisManyWaves 1
        InitialCooldown 50
        CooldownTime 48
        DesiredCount 3
        TFBot
        {
            Template T_TFBot_Sniper_Sydney_Sleeper
    }   }


    Mission // Engineer: wave 2,3 
    {
        Objective Engineer
        Where spawnbot_mian0 
        Where spawnbot_main1
        Where spawnbot_main2
        BeginAtWave 2
        RunForThisManyWaves 2
        InitialCooldown 70
        CooldownTime 35
        DesiredCount 1
        TFBot
        {
            Template T_TFBot_Engineer_Sentry_Teleporter_2   
        }
    }


    Mission // Engineer: wave 4
    {
        Objective Engineer
        Where spawnbot_main0
        Where spawnbot_main1
        Where spawnbot_main2
        BeginAtWave 4
        RunForThisManyWaves 1
        InitialCooldown 2
        CooldownTime 25
        DesiredCount 1
        TFBot
        {
            Template T_TFBot_Engineer_Sentry_Teleporter_2
        }
    }

    




    //Wave 01

    Wave
    {
        StartWaveOutput
        {
            Target wave_start_noreset_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay_classic
            Action Trigger
        }
        WaitWhenDone 65
        CheckPoint Yes


        
        WaveSpawn
        {
            Where spawnbot_main0_slow
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 50
            Name "w1_1"
            TotalCount 2
            MaxActive 2
            SpawnCount 1
            WaitBetweenSpawns 2
            WaitBeforeStarting 0.9
            TFBot
            {
                Template  T_TFBot_Giant_Jumping_Scout_Type_2
            }
        }


        WaveSpawn // Soldier Giant (6 total)
        {
            Where spawnbot_main0
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 130
            TotalCount 6
            Name "w1_2"
            SpawnCount 1
            MaxActive 3
            WaitBetweenSpawns 12
            WaitBeforeStarting 10
            TFBot
            {
                Template T_TFBot_Giant_Soldier_Direct_Hit_Backup_Spammer
            }
        }


        WaveSpawn // 3 Giant Heavy (gatebot) + Medics
        {
            Where spawnbot_main0
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 100
            TotalCount 6
            SpawnCount 2
            MaxActive 4
            WaitForAllDead "w1_1"
            WaitBetweenSpawns 15
            WaitBeforeStarting 1
            Squad
            {
                TFBot
                {
                    Template T_TFBot_Giant_Soldier_RocketPush_Buffed
                }

                TFBot
                {
                    Template T_TFBot_Giant_Medic_Kritz_AutoRegen                    
                    Attributes IgnoreEnemies
                }
            }
        }
        
        WaveSpawn // 30 scouts melee - gatebot
        {
            Where spawnbot_main0
            Where spawnbot_main1
            Where spawnbot_main2 
            TotalCurrency 150
            TotalCount 30
            SpawnCount 1
            MaxActive 10
            WaitBetweenSpawns 2.5
            WaitBeforeStarting 13
            TFBot
            {
                Template T_TFGateBot_Scout_Melee_Moddified
                 
            }
        }


        WaveSpawn // 30 Heavy'ies
        {
            Where spawnbot_main0
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 50
            TotalCount 30
            MaxActive 15
            SpawnCount 3
            WaitForAllDead "w1_1"
            WaitBetweenSpawns 8
            WaitBeforeStarting 30
            TFBot
            {
                Template T_TFBot_Heavyweapons_Brass_Beast
            }
        }
    }


    //Wave 02
    
    Wave 
    {
        StartWaveOutput
        {
            Target wave_start_noreset_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay_classic
            Action Trigger
        }
        WaitWhenDone 65
        CheckPoint Yes

        WaveSpawn
        {
            Where spawnbot_main0
            Where spawnbot_main0_slow
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 110
            TotalCount 6
            MaxActive 2
            SpawnCount 1
            WaitBetweenSpawns 3
            WaitBeforeStarting 0.9
            TFBot
            {
                Template T_TFBot_Giant_Jumping_Scout_Type_1
            }
        }


        WaveSpawn
        {
            Where spawnbot_main0_garage
            Where spawnbot_main1
            Where spawnbot_main2
            Name "2.1"
            TotalCurrency 90
            TotalCount 2
            MaxActive 1
            SpawnCount 1
            WaitBetweenSpawns 5
            WaitBeforeStarting 5
            TFBot
            {
                Template T_TFBot_Giant_Bazooks_Soldier
                Attributes AlwaysCrit
            }
        }


        


        WaveSpawn
        {
            Where spawnbot_main0
            Where spawnbot_main1
            Where spawnbot_main2

            TotalCount 2
            Name "2.4"
            MaxActive 2
            SpawnCount 1
            WaitForAllDead "2.1"
            WaitBetweenSpawns 10
            WaitBeforeStarting 2
            TFBot
            {
                Template T_TFBot_Giant_Scout_MadMilk_Burst
            }
        }


        WaveSpawn
        {
            Where spawnbot_main0
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCount 10
            MaxActive 4
            SpawnCount 2
            WaitForAllDead "2.4"
            WaitBetweenSpawns 7.01
            WaitBeforeStarting 1.5
            Squad
            {
                TFBot
                {
                    Template T_TFBot_Giant_Heavyweapons_Deflector
                }


                TFBot
                {
                    Template T_TFBot_Medic_Vac_Bullet
                    Attributes IgnoreEnemies
                }
            }
        }

 
    }
    // Wave 03
    Wave
    {
        StartWaveOutput
        {
            Target wave_start_noreset_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay_classic
            Action Trigger
        }
        WaitWhenDone 70
        CheckPoint Yes


        


        WaveSpawn
        {
            Where spawnbot_main0
            Where spawnbot_main0_flank
            TotalCurrency 185
            TotalCount 30
            Name "3.2"
            MaxActive 15
            SpawnCount 3
            WaitBetweenSpawns 8
            WaitBeforeStarting 0
            Squad
            {
                TFBot
                {
                    Template T_TFBot_Medic_Vac_FastHeal
                }
            
                TFBot
                {
                    Template T_TFBot_Dragon's_Fury_Pyro
        
                }
            }

        }
        WaveSpawn // 9 Heavy'es Brass Beast [GIANT]
        {
            Where spawnbot_main0
            TotalCurrency 320
            Name "3.3"
            TotalCount 9
            MaxActive 3
            SpawnCount 1
            WaitForAllDead "3.2"
            WaitBetweenSpawns 17
            WaitBeforeStarting 2
            TFBot
            {
                Template T_TFBot_Giant_Demo_Burst_Type2
            }
        }


        WaveSpawn
        {
            Where spawnbot_main0
            TotalCount 1
            WaitForAllDead "3.3"
            WaitBeforeStarting 1
            TFBot
            {
                Template T_TFBot_Super_Scout_Mega_Fast_Faster
            }
        }


        

       
    }


    //Wave 04

    Wave
    {
        StartWaveOutput
        {
            Target wave_start_noreset_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay_classic
            Action Trigger
        }
        WaitWhenDone 75
        CheckPoint Yes

        WaveSpawn // 6 Heavi'es HOTK (gatebot)
        {
            Where spawnbot_main0
            Where spawnbot_main1
            Where spawnbot_main2
            Name "Giant Heavy HOTK"
            TotalCurrency 200
            TotalCount 8
            MaxActive 4
            SpawnCount 2
            WaitBetweenSpawns 11
            WaitBeforeStarting 14
            TFBot
            {
                Template T_TFGateBot_Giant_Heavyweapons_HealOnKill_Nerfed
            }
        }


        WaveSpawn
        {
            Where spawnbot
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 160
            TotalCount 40
            SpawnCount 10
            MaxActive 20
            WaitBetweenSpawns 3.5
            WaitBeforeStarting 2
            TFBot
            {
                Template T_TFBot_Mafia_Scout_Bonk
            }
            
        }


        WaveSpawn
        {
            Where spawnbot_mission_spy
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 50
            TotalCount 50
            SpawnCount 2
            MaxActive 15
            WaitBetweenSpawns 4
            WaitBeforeStarting 0
            TFBot
            {
                Class Spy
                Skill Hard
            }
        }


        WaveSpawn
        {
            Where spawnbot_gate0_slow
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 200
            TotalCount 200
            SpawnCount 22
            MaxActive 22
            WaitBetweenSpawns 7
            WaitBeforeStarting 80
            TFBot
            {
                Class Scout
                Skill Easy
                Attributes AlwaysCrit
            }
        }


        WaveSpawn // 5 Heavy Heater + Medic [GIANT], [Gatebot]
        {
            Where spawnbot
            Where spawnbot_main1
            Where spawnbot_main2 
            TotalCurrency 330
            TotalCount 10
            MaxActive 4
            SpawnCount 2
            WaitForAllDead "Giant Heavy HOTK"
            WaitBetweenSpawns 22
            WaitBeforeStarting 13
            Squad
            {
                TFBot
                {
                    Template T_TFGateBot_Giant_Heavyweapons_Heater
                }

                TFBot
                {
                    Template T_TFGateBot_Giant_Medic_Regen
                }
            }
        }


        WaveSpawn 
        {
            Where spawnbot
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 140
            TotalCount 22
            SpawnCount 11
            MaxActive 22
            WaitForAllDead "Giant Heavyweapons HOTK"
            WaitBetweenSpawns 8
            WaitBeforeStarting 70
            TFBot
            {
                Template T_TFBot_Demo_Persian
            }
        }
    }


    //Wave 05
    Wave
    {
        StartWaveOutput
        {
            Target wave_start_relay
            Action Trigger
        }
        DoneOutput
        {
            Target bombpath_clear_wave_finished
            Action Trigger 
        }
        WaitWhenDone 65
        CheckPoint Yes
        

        WaveSpawn // Giant Blast Soldier + Medic
        {
            Name "w5-gbs"


            Where spawnbot
            TotalCurrency 100
            TotalCount 20
            SpawnCount 5
            MaxActive 5
            WaitBetweenSpawns 3
            WaitBeforeStarting 1
            Squad
            {
                TFBot
                {
                    Template T_TFBot_Giant_Soldier_RocketPush
                }

                TFBot
                {
                    Template T_TFBot_KritzUber_Medic
                }

                TFBot
                {
                    Template T_TFBot_KritzUber_Medic
                }

                TFBot
                {
                    Template T_TFBot_KritzUber_Medic
                }

                TFBot
                {
                    Template T_TFBot_KritzUber_Medic
                }
            }
        }


        WaveSpawn // Soldier buffed
        {
            Where spawnbot_gate0_slow
            TotalCurrency 50
            TotalCount 30
            MaxActive 10
            SpawnCount 10
            WaitBeforeStarting 50
            TFBot
            {
                Template T_TFBot_Buff_Banner_Soldier
            }
        }


        WaveSpawn // Secondary demo (30)
        {
            Where spawnbot_gate0_slow
            TotalCurrency 120 
            TotalCount 30
            MaxActive 10
            SpawnCount 10
            WaitBetweenSpawns 5
            WaitBeforeStarting 70
            TFBot
            {
                Template T_TFBot_Secondary_Demo
                Attributes AlwaysCrit
            }
        }


        WaveSpawn // 3 Tank (18k HP)
        {
            Name "w5_Tank"
            TotalCurrency 1000
            TotalCount 3
            SpawnCount 1
            MaxActive 2
            WaitBetweenSpawns 25
            WaitForAllDead "w5-gbs"
            WaitBeforeStarting 2
            FirstSpawnOutput
            {
                Target boss_spawn_relay
                Action Trigger
            }
            Tank
            {
                Name "w5_Tanks"
                Health 18000
                Speed 75
                StartingPathTrackNode "boss_path_a1"
                
                OnBombDroppedOutput
                {
                    Target bomb_deploy_relay
                    Action Trigger
                }
            }
        }


        WaveSpawn // 1 Tank [25k]
        {
            TotalCurrency 450
            TotalCount 1
            MaxActive 1
            WaitForAllDead "w5_Tank"
            WaitBeforeStarting 0
            FirstSpawnOutput
            {
                Target boss_spawn_relay
                Action Trigger
            }
            Tank
            {
                Health 25000
                Speed 75
                StartingPathTrackNode "boss_path_a1"
                OnBombDroppedOutput
                {
                    Target bomb_deploy_relay
                    Action Trigger
                }
            }

        }


        WaveSpawn // Scout Baseball - support 
        {
            Where spawnbot_gate0_slow 
            TotalCount 30
            SpawnCount 6
            MaxActive 18
            WaitBetweenSpawns 5
            WaitBeforeStarting 30
            WaitForAllSpawned "w5-gbs"

            Support 1

            TFBot
            {
                Template T_TFBot_Scout_Sandman
            }
        }
    }


    //Wave 06
    Wave
    {
        StartWaveOutput
        {
            Target wave_start_relay
            Action Trigger
        }
        DoneOutput
        {
            Target bombpath_clear_wave_finished
            Action Trigger 
        }
        WaitWhenDone 65
        CheckPoint Yes

        WaveSpawn // 9 Giant Scout FAN - Gatebot
        {
            Where spawnbot
            Where spawnbot_gate0_slow
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCurrency 200
            TotalCount 9
            MaxActive 5
            SpawnCount 1
            WaitBetweenSpawns 6
            WaitBeforeStarting 0.3
            TFBot
            {
                Template T_TFGateBot_Giant_Scout_FAN
            }
        }


        WaveSpawn // Chief Heavy - Boss
        {
            Where spawnbot
            Where spawnbot_main1
            Where spawnbot_main2 
            TotalCount 1
            MaxActive 1
            SpawnCount 1
            WaitBetweenSpawns 0
            WaitBeforeStarting 35
            
            TFBot
            {
                Template T_TFBot_Chief_Heavy_Weak
        
            }
        }


        WaveSpawn 
        {
            Where spawnbot_gate0_slow
            Where spawnbot_main1
            Where spawnbot_main2
            TotalCount 20
            MaxActive 5
            SpawnCount 2
            WaitBetweenSpawns 5
            WaitBeforeStarting 60

            Support 1 
            
            Squad // Heavy + Soldier - support 
            {
                TFBot
                {
                    Template T_TFBot_Heavy_Natasha
                }

                TFBot
                {
                    Template T_TFBot_Buff_Banner_Soldier
                }
            }
            

        }
    }


    //Wave 07

    Wave
    {
        StartWaveOutput
        {
            Target wave_start_noreset_relay
            Action Trigger
        }
        InitWaveOutput
        {
            Target holograms_2way_relay
        }   Action Trigger
        WaitWhenDone 60
        CheckPoint Yes

        WaveSpawn /// TANK [60K] - Finall boss
        {
            TotalCount 1
            Where spawnbot_main0
            Where spawnbot_main0_garage
            SpawnCount 1
            MaxActive 1
            WaitBeforeStarting 1
            TFBot
            {
                Template T_TFBot_Chief_Karabineo
            }
    }   }
}