#base robot_standard.pop
#base robot_giant.pop
#base robot_gatebot.pop
population
{
	StartingCurrency	700
	RespawnWaveTime	7
	CanBotsAttackWhileInSpawnRoom	yes
	FixedRespawnWaveTime	Yes
	Advanced	1
	Templates
	{
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			TotalCurrency	400
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where spawnbot_right
            Where spawnbot_left
			Squad
			{
				TFBot
				{
					ClassIcon	engineer_telein
					Name	"Sir NorthStar"
					Health 26000
					Scale	1.4
					Class	Engineer
					Skill	Expert
					Attributes	"AlwaysCrit"
					Attributes	"MiniBoss"
					Attributes	"UseBossHealthBar"
					Attributes	"AlwaysFireWeapon"
					Item	"the widowmaker"
					Item	"ttg max pistol"
					Item	"the virtual reality headset"
					Item	"hong kong cone"
					Action FetchFlag   //Overrides default bot AI. Possible values:
				ItemAttributes
				{
                    ItemName "the widowmaker"
                    "reload time decreased" 1.6
                }
                Tag bot_giant
                CharacterAttributes
                {
                    "move speed bonus"    0.3
                    "damage force reduction" 0.1
                    "rage giving scale" 0.1
                    "airblast vulnerability multiplier" 0.1
                    "override footstep sound set" 6
                }
                Attributes UseBossHealthBar

                ChangeAttributes    
                {
                    Delay 0
                    Repeats 1
                    IfHealthBelow 17501
                    Name "phase1"
                }
                ChangeAttributes    
                {
                    Delay 0
                    Repeats 1
                    IfHealthBelow 8501
                    Name "phase2"
                }

                EventChangeAttributes
                {
                    "phase1"
                    {
                        UseMeleeThreatPrioritization 1
                        Item "ttg max pistol"
                        WeaponRestrictions SecondaryOnly
                        Skill Expert
					    Item	"the virtual reality headset"
					    Item	"hong kong cone"
                        ItemAttributes
                        {
                            ItemName "ttg max pistol"
                            "damage bonus" 1
                        }
                        Tag bot_giant
                        CharacterAttributes
                        {
                            "move speed bonus"    0.4
                            "damage force reduction" 0.1
                        }
                    }
                    "phase2"
                    {
                        UseMeleeThreatPrioritization 1
                        Item "the widowmaker"
                        WeaponRestrictions PrimaryOnly
                        AimTrackingInterval 0.05
                        Skill Expert
					    Item	"the virtual reality headset"
					    Item	"hong kong cone"
                        ItemAttributes
                        {
                            ItemName "the widowmaker"
                            "damage bonus" 1.25
                        }
                        Tag bot_giant
                        CharacterAttributes
                        {
                            "move speed bonus"    0.4
                            "damage force reduction" 0.1
                        }
                    }
                }
                //Health 18000
                //Template T_TFGateBot_Giant_Pyro
                //Attributes AlwaysCrit
            }
                }
            }
		}
	}