#base robot_giant.pop
#base robot_standard.pop
#base robot_gatebot.pop
#base robot_click.pop
#base robot_click_giant.pop
#base robot_hole.pop
population
{
	StartingCurrency	800
	RespawnWaveTime	5
	CanBotsAttackWhileInSpawnRoom	no
	Advanced	1
	Mission
	{
		Objective	DestroySentries
		Where	spawnbot_mission_sentrybuster
		BeginAtWave	1
		RunForThisManyWaves	7
		InitialCooldown	40
		CooldownTime	30
		TFBot
		{
			Template	T_TFBot_SentryBuster
		}
	}
    Mission
    {
        Objective Spy
        Where spawnbot_mission_spy
        BeginAtWave 2
        RunForThisManyWaves 1
        InitialCooldown 30
        CooldownTime 40
        TFBot
        {
            Template T_TFBot_Spy_Saharan
        }
    }
    Wave
    {
        StartWaveOutput
        {
	        Target wave_start_relay_ironman
	        Action Trigger
        }
        DoneOutput					
        {
	        Target wave_finished_relay
	        Action trigger
        }
        Wavespawn
        {
            Name wave_1a
            Where spawnbot
            TotalCount 4
            SpawnCount 1
            MaxActive 2
            Waitbetweenspawns 15
            WaitBeforeStarting 0
            TotalCurrency 100
            TFBot
            {
                Template T_TFBot_Giant_Soldier_Spammer_Conch
            }
        }
        Wavespawn
        {
            Name wave_1a2
            Where spawnbot
            TotalCount 15
            SpawnCount 1
            MaxActive 6
            Waitbetweenspawns 15
            Waitforalldead wave_1a
            WaitBeforeStarting 0
            TotalCurrency 100
            Squad
            {
                TFBot
                {
                    Template T_TFBot_Giant_Soldier_Spammer_Conch
                }
                TFbot
                {
                    Template T_TFBot_Medic_Shield_Extended_Armored
                }
                TFBot
                {
                    Template T_TFBot_Soldier_Extended_Buff_Banner
                    Health 800
                    Classicon soldier_armored_buff
                    Name "Armored Buff Banner Soldier"
                }
            }
        }
        Wavespawn
        {
            Name wave_1b
            Where spawnbot_upper
            TotalCount 20
            SpawnCount 2
            MaxActive 4
            Waitbetweenspawns 10
            WaitBeforeStarting 0
            TotalCurrency 150
            Squad
            {
                TFBot
                {
                    Template T_TFBot_Sniper_Hunter_Multishot
                }
                TFBot
                {
                    Template T_TFBot_Sniper_Hunter_Spammer
                }
            }
        }
        Wavespawn
        {
            Name Wave_1c
            Randomspawn 1
            Where spawnbot
            Where spawnbot_upper
            TotalCount 35
            SpawnCount 2
            MaxActive 10
            Waitbetweenspawns 3
            WaitBeforeStarting 1
            TotalCurrency 50
            RandomChoice
            {
                TFBot
                {
                    Template T_TFBot_Heavy_Heavyweight_Blast_Vac
                    ClassIcon	heavy_champ_vac_trio
                }
                Tfbot
                {
                    Template T_TFBot_Heavy_Heavyweight_Bullet_Vac
                    ClassIcon	heavy_champ_vac_trio
                }
                Tfbot
                {
                    Template T_TFBot_Heavy_Heavyweight_Fire_Vac
                    ClassIcon	heavy_champ_vac_trio
                }
            }
        }
        Wavespawn
        {
            Name Wave_1c2a
            Randomspawn 1
            Where spawnbot
            Where spawnbot_upper
            TotalCount 35
            SpawnCount 2
            MaxActive 10
            Waitbetweenspawns 3
            WaitForAllDead Wave_1c
            WaitBeforeStarting 0
            TotalCurrency 50
            RandomChoice
            {
                TFBot
                {
                    Template T_TFBot_Heavy_Heavyweight_Blast_Vac
                    ClassIcon	heavy_champ_vac_trio
                }
                Tfbot
                {
                    Template T_TFBot_Heavy_Heavyweight_Bullet_Vac
                    ClassIcon	heavy_champ_vac_trio
                }
                Tfbot
                {
                    Template T_TFBot_Heavy_Heavyweight_Fire_Vac
                    ClassIcon	heavy_champ_vac_trio
                }
            }
        }
        Wavespawn
        {
            Name Wave_1d
            Where spawnbot
            TotalCount 5
            SpawnCount 1
            MaxActive 2
            Waitbetweenspawns 22
            WaitBeforeStarting 45
            TotalCurrency 250 
            TFBot
            {
                Template T_TFBot_Giant_Heavy_Raygun_Hyper //drop hyper if too strong
            }
        }
        Wavespawn
        {
            Support Limited
            RandomSpawn 1
            Name wave_1c2b
            Where spawnbot
            Where spawnbot_upper
            TotalCount 60
            SpawnCount 2
            MaxActive 6
            Waitbetweenspawns 5
            WaitForAllDead Wave_1c
            WaitBeforeStarting 5
            TotalCurrency 50
            TFBot
            {
                Template T_TFBot_Heavyweapons_Fist_Normal
                Attributes AlwaysCrit
            }
        }
        Wavespawn
        {
            Support Limited
            Name wave_1d2
            Where spawnbot_upper
            TotalCount 40
            SpawnCount 2
            MaxActive 5
            Waitbetweenspawns 3
            WaitForAllSpawned Wave_1d
            WaitBeforeStarting 10
            TotalCurrency 50
            TFBot
            {
                Template T_TFBot_Sniper_Huntsman_Penetration
            }
        }
    }
    Wave
    {
        StartWaveOutput
        {
	        Target wave_start_relay
	        Action Trigger
        }
        DoneOutput					
        {
	        Target wave_finished_relay
	        Action trigger
        }
        WaveSpawn
        {       
            Name	w2_tank
			TotalCurrency	300
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	70
			Where	spawnbot
            FirstSpawnOutput 			
            {
                Target boss_spawn_relay                       
                Action Trigger                         
            }
            Tank
            {
                Health 60000
                Name tank_1
                Speed 60
                StartingPathTrackNode tank_path_a_1
                OnKilledOutput
                {
                    Target	boss_dead_relay
                    Action	Trigger
                }
                OnBombDroppedOutput
                {
                    Target	boss_deploy_relay
                    Action	Trigger
                }
            }
        }
        Wavespawn
        {
            Name wave2_a1
            Where spawnbot_upper
            TotalCount 36
            SpawnCount 3
            MaxActive 6
            Waitbetweenspawns 15 
            WaitBeforeStarting 5
            TotalCurrency 100
            Squad
            { 
                TFBot
                {
                    Template T_TFBot_Giant_Soldier_Blast_Spammer_Homing
                    rocketCustomParticle 	eyeboss_projectile
                    ItemAttributes
			        {
				    ItemName	"the liberty launcher"
				        "damage causes airblast"	1
				        "Blast radius decreased"	1.2
                        "reload time decreased" 0.5
			        }
                }
                TFBot
                {
                    Template T_TFBot_Pyro_Pusher
                }
                TFBot
                {
                    Template T_TFBot_Pyro_Pusher_Airblast
                }
            }
        }
        Wavespawn
        {
            Name wave2_a2
            Where spawnbot_upper
            TotalCount 40
            SpawnCount 3
            MaxActive 6
            Waitbetweenspawns 5 
            WaitBeforeStarting 5
            TotalCurrency 50
            TFBot
            {
                Template T_TFBot_Demo_Scatter
            }
        }
        Wavespawn
        {
            Name wave2_b
            Where spawnbot
            TotalCount 12
            SpawnCount 1
            MaxActive 3
            Waitbetweenspawns 13
            WaitBeforeStarting 30
            TotalCurrency 150
            TFBot
            {
                Template T_TFBot_Giant_Scout_Fast_Bonk
            }
        }
        Wavespawn
        {
            Support 1
            Name wave2_moonman
            Randomspawn 1
            Where spawnbot
            Where spawnbot_upper
            TotalCount 69
            SpawnCount 2
            MaxActive 2
            Waitbetweenspawns 12.5
            WaitBeforeStarting 0
            TotalCurrency 50
            TFBot
            {
                Template T_TFBot_Pyro_Future_Taunt
                Attributes AlwaysCrit
                Action Mobber
            }
        }
        Wavespawn
        {
            Name wave2_c
            Where spawnbot_upper
            TotalCount 12
            SpawnCount 1
            MaxActive 3
            Waitbetweenspawns 8
            WaitBeforeStarting 40
            TotalCurrency 100
            TFBot
            {
                Template T_TFBot_Demoman_Samurai
                Action Mobber
            }
        }
        Wavespawn
        {
            Support 1
            Name Wave_2d
            Where spawnbot
            TotalCount 69
            SpawnCount 2
            MaxActive 6
            Waitbetweenspawns 7
            WaitBeforeStarting 20
            TotalCurrency 50
            TFBot
            {
                Template T_TFBot_Heavy_Natascha_Hyper
            }
        }
        Wavespawn
        {
            Support 1
            Name wave2_moonman2
            Randomspawn 1
            Where spawnbot
            Where spawnbot_upper
            TotalCount 69
            SpawnCount 2
            MaxActive 6
            Waitbetweenspawns 7
            WaitBeforeStarting 0
            TotalCurrency 50
            Waitforalldead wave2_a2
            TFBot
            {
                Template T_TFBot_Pyro_Future_Taunt
                Attributes AlwaysFireWeapon
                Action Mobber
            }
        }
        Wavespawn
        {
            Support Limited
            Name wave2_chargeknight
            Where spawnbot_upper
            TotalCount 40
            SpawnCount 1
            MaxActive 3
            Waitbetweenspawns 10 
            WaitBeforeStarting 0
            WaitForAllDead wave2_c
            TotalCurrency 50
            TFBot
            {
                Template T_TFBot_Demo_Chargeknight_Hyper
                Action Mobber
            }
        }
    }
    
}
Wavespawn
        {
            Name 
            Where 
            TotalCount 
            SpawnCount 
            MaxActive 
            Waitbetweenspawns 
            WaitBeforeStarting 
            TotalCurrency 
            TFBot
            {
                Template t_tfbot
            }
        }

        StartWaveOutput
        {
	        Target wave_start_relay
	        Action Trigger
        }
        DoneOutput					
        {
	        Target wave_finished_relay
	        Action trigger
        }

FirstSpawnOutput 			
            {
                Target boss_spawn_relay                       
                Action Trigger                         
            }
            Tank
            {
                Health 
                Name 
                Speed 
                StartingPathTrackNode //boss_path_1
                OnKilledOutput
                {
                    Target	boss_dead_relay
                    Action	Trigger
                }
                OnBombDroppedOutput
                {
                    Target	boss_deploy_relay
                    Action	Trigger
                }
            }
