//Written by Startacker? https://steamcommunity.com/id/startacker/

#base robot_standard.pop
#base robot_giant.pop

WaveSchedule
{
	StartingCurrency 347
	CanBotsAttackWhileInSpawnRoom No
	RespawnWaveTime 4

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

        WaveSpawn
        {
            Name "Germ"
            TotalCount 147
            SpawnCount 1
            MaxActive 14
            Where spawnbot
            WaitBetweenSpawns .5
            TotalCurrency 147

            TFBot
            {
                Class Sniper
                Skill Easy
                Health 200
                Name " "
                WeaponRestrictions SecondaryOnly

                ItemAttributes
				{
					ItemName "TF_WEAPON_SMG"
					"fire rate bonus" 0.7
				}
            }
        }
        WaveSpawn
        {
            Name "Cilli"
            TotalCount 67
            SpawnCount 6
            MaxActive 12
            Where spawnbot
            WaitForAllSpawned "Germ"
            WaitBetweenSpawns 4
            TotalCurrency 324

            TFBot
            {
                Class Demoman
                Skill Easy
                Name " "

                ItemAttributes
				{
					ItemName "TF_WEAPON_GRENADELAUNCHER"
				    "faster reload rate" 0.65
				    "fire rate bonus" 0.1
				    "projectile spread angle penalty" 2
				    "Projectile speed increased"	1.1
				}
            }
        }
    }
    Wave
	{
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}

        WaveSpawn
        {
            Name "Geo"
            TotalCount 9
            SpawnCount 1
            MaxActive 4
            WaitBeforeStarting 6
            WaitBetweenSpawns 13
            TotalCurrency 287

            Tank
            {
                Name "Tank"
                Health 3000
				Speed 90
				StartingPathTrackNode tank_path_b_1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
            }
        }
        WaveSpawn
        {
            Name "Tio"
            TotalCount 59
            SpawnCount 7
            MaxActive 14
            WaitBeforeStarting 0
            WaitBetweenSpawns 6
            Where spawnbot
            TotalCurrency 102

            TFBot
            {
                Class Soldier
                Skill Normal
                Name " "

                ItemAttributes
                {
                    ItemName "TF_WEAPON_ROCKETLAUNCHER"
                    "fire rate bonus" 0.1
                    "faster reload rate" 0.1
                    "damage bonus" 0.01
                }
            }
        }
        WaveSpawn
        {
            Name "Air"
            TotalCount 20
            SpawnCount 20
            WaitBeforeStarting 3
            WaitForAllDead "Tio"
            Where spawnbot
            TotalCurrency 37

            TFBot
            {
			Class Soldier
			Name "Giant Rapid Fire Soldier"
			ClassIcon soldier_spammer
			Health 2000
			Skill Expert
			WeaponRestrictions PrimaryOnly
			Attributes MiniBoss
			ItemAttributes
			{
				ItemName "TF_WEAPON_ROCKETLAUNCHER"
				"faster reload rate" 2
				"fire rate bonus" 0.25
                "projectile speed increased" 4
                "clip size upgrade atomic" 16
                "damage bonus" 0.01
			}
			CharacterAttributes
			{
				"move speed bonus"	1.4
				"damage force reduction" 0.4
				"airblast vulnerability multiplier" 0.4
				"override footstep sound set" 3
				"Projectile speed increased" 0.65
			}
            }
        }
    }
    Wave
	{
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}

        WaveSpawn
        {
            Name "Tear"
            TotalCount 276
            SpawnCount 3
            MaxActive 20
            WaitBeforeStarting 3.5
            WaitBetweenSpawns 1
            Where spawnbot
            TotalCurrency 9

            TFBot
            {
                Class Heavyweapons
                Skill Easy
                Name "liquid"
                WeaponRestrictions MeleeOnly
                Classicon heavy_champ

                CharacterAttributes
                {
                    "move speed bonus" 1.3
                    "torso scale" .5
                    "head scale" 0
                }
            }
        }
    }
    Wave
	{
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
        }

        WaveSpawn
        {
            Name "Poly"
            TotalCount 50
            SpawnCount 1
            MaxActive 50
            WaitBeforeStarting 6
            WaitBetweenSpawns 3
            TotalCurrency 0

            Tank
            {
                Name "Tank"
                Health 535
				Speed 186
				StartingPathTrackNode tank_path_b_1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
            }
        }
        WaveSpawn
        {
            Name "Cali"
            TotalCount 375483
            SpawnCount 6
            MaxActive 17
            WaitBeforeStarting 8
            WaitBetweenSpawns 3.25
            TotalCurrency 512
            Where spawnbot
            Support 1

            RandomChoice
            {
                TFBot
                {
                    Class Scout
                    Skill Normal
                    Name "Mercury"
                    Health 4

                    CharacterAttributes
                    {
                        "move speed bonus" 2
                    }
                }
                TFBot
                {
                    Class Soldier
                    Skill Normal
                    Name "Venus"
                    Health 45

                    CharacterAttributes
                    {
                        "move speed bonus" 2
                    }
                }
                TFBot
                {
                    Class Pyro
                    Skill Normal
                    Name "Earth"
                    Health 35

                    CharacterAttributes
                    {
                        "move speed bonus" 2
                    }
                }
                TFBot
                {
                    Class Demoman
                    Skill Normal
                    Name "Mars"
                    Health 46

                    CharacterAttributes
                    {
                        "move speed bonus" 2
                    }
                }
                TFBot
                {
                    Class Heavyweapons
                    Skill Normal
                    Name "Jupiter"
                    Health 150

                    CharacterAttributes
                    {
                        "move speed bonus" 1.253
                    }
                }
                TFBot
                {
                    Class Medic
                    Skill Normal
                    Name "Jupiter"
                    Health 89

                    CharacterAttributes
                    {
                        "move speed bonus" 2
                    }
                }
                TFBot
                {
                    Class Sniper
                    Skill Normal
                    Name "Saturn"
                    Health 76
                    Attributes AlwaysFireWeapon

                    CharacterAttributes
                    {
                        "move speed bonus" 2
                    }
                }
                TFBot
                {
                    Class Spy
                    Skill Normal
                    WeaponRestrictions PrimaryOnly
                    Name "Uranus"
                    Health 6

                    CharacterAttributes
                    {
                        "move speed bonus" 2
                    }
                }
            }
        }
    }
    Wave
	{
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
        }

        WaveSpawn
        {
            Name "Wave"
            TotalCount 1
            SpawnCount 1
            Where spawnbot

            TFBot
            {
                Class Scout
                Skill Expert
                WeaponRestrictions SecondaryOnly
                Name "â›–"
                Attributes MiniBoss
                Health 60000

                ItemAttributes
                {
                    ItemName "TF_WEAPON_PISTOL"
                    "damage bonus" 0.1
                    "fire rate bonus" 0.1
                    "faster reload rate" 0.1
                }
                CharacterAttributes
                {
                    "move speed bonus" 0.5
                }
            }
        }
    }
}