//endyrance
#base robot_standard.pop
#base robot_giant.pop
#base robot_stardust.pop

WaveSchedule
{
    StartingCurrency 800
    CanBotsAttackWhileInSpawnRoom no
    RespawnWaveTime 3
    NoRomevisionCosmetics 1
    FixedRespawnWaveTime 1
    RobotLimit 35
    AllowBotExtraSlots 1 
	ExtraBotSlotsNoDeathcam 1
    // AddSentryBusterWhenDamageDealtExceeds 3000
    // AddSentryBusterWhenKillCountExceeds 15
    // Advanced 1
    // EventPopfile Halloween

    //spawnbot
    //spawnbot_mission_buster/spy/sniper
    //spawnbot_left

    /////////////////////////CUSTOM ITEMS

    FlagResetTime   
	{
		Name "intel" 
		ResetTime 60
	}

    Mission // buster
    {
        Where spawnbot_mission_sentrybuster
        Objective DestroySentries
        BeginAtWave 1
        RunForThisManyWaves 1
        DesiredCount 1
    
        InitialCooldown 30
        CooldownTime 70
    
        TFBot
        {
            Template T_TFBot_SentryBuster_Fix	
        }
    }
   
	
    Wave // Wave 1
    {
        StartWaveOutput
        {
            Target wave_start_relay
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }
        InitWaveOutput
        {
            Target holograms_3way_relay
            Action Trigger
        }

        Explanation
        {
            Line "{red}Passive items can be bought, but only 1 may be equipped."
        }

        //phase 1

        WaveSpawn
        {
            Name "a1_p1"
            Where spawnbot_right
            TotalCount 1
            MaxActive 1
            SpawnCount 1
            WaitBeforeStarting 0
            WaitBetweenSpawns 0
            TotalCurrency 100
            FirstSpawnMessage "Uses a Minigun when gate is capped."
            TFBot
            {
                Name "Captain Capper"
                Class Heavyweapons
                ClassIcon heavy_steelfist_nys_stealth_anim_sgt
                Health 15000
                Attributes Miniboss
                Attributes UseBossHealthBar
                Scale 1.7
                Item "War Head"
                EventChangeAttributes
                {
                    Default
                    {
                        Skill Expert
                        MaxVisionRange 800
                        WeaponRestrictions MeleeOnly
                        Attributes IgnoreFlag
                        BehaviorModifiers Push
                        Tag nav_prefer_gate1_flank
                        Tag bot_gatebot
                        Item "MvM GateBot Light Heavy"
                        Item "Fists of steel"
                        ItemAttributes
                        {
                            ItemName "Fists of steel"
                            "increase player capture value" 5
                        }
                        CharacterAttributes
                        {
                            "move speed penalty" 0.5
                            "damage force reduction" 0.3
                            "airblast vulnerability multiplier" 0.3
                            "override footstep sound set" 2
                            "rage giving scale" 0.25
                        }
                    }
                    RevertGateBotsBehavior
                    {
                        Skill Expert 
                        MaxVisionRange 1200
                        WeaponRestrictions PrimaryOnly
                        Item "MvM GateBot Light Heavy"
                        ItemAttributes
                        { 
                            ItemName "MvM GateBot Light Heavy" 
                            "item style override" 1
                        }

                        Item "Professional Upgradeable TF_WEAPON_MINIGUN"
                        ItemAttributes
                        {
                            ItemName "Professional Upgradeable TF_WEAPON_MINIGUN"
                            "damage bonus" 1.5
                            "killstreak tier" 3
                            "killstreak idleeffect" 7
                        }
                        CharacterAttributes
                        {
                            "move speed penalty" 0.5
                            "damage force reduction" 0.3
                            "airblast vulnerability multiplier" 0.3
                            "override footstep sound set" 2
                            "rage giving scale" 0.25
                        }
                    }
                }
            }
        }

        WaveSpawn
        {
            Name "a1.1_p1"
            Where spawnbot_left
            TotalCount 20
            MaxActive 10
            SpawnCount 10
            WaitBeforeStarting 15
            WaitBetweenSpawns 0
            TotalCurrency 100
        
            TFBot
            {
                Template T_TFBot_Sniper_Huntsman
                Attributes AlwaysCrit
                Skill Hard 
            }
        }
    }
}