//"#base terror_miniboss.pop"

//She could use them, so don't bug me!

#base terror_bots.pop

WaveSchedule
{
        PrecacheModel "models\bots\pyro_boss\bot_pyro_boss_gibby.mdl" 
        PrecacheModel "models\bots\soldier_boss\bot_soldier_boss_gibby.mdl"

        PrecacheModel "models/weapons/c_models/c_the_bolshevik_bomber/c_the_bolshevik_bomber_1.mdl"

        AllowBotExtraSlots 1 

	PointTemplates 
	{
		Sergeant_Scrap_Title_Card //by Ihaz and Sergeant Table
		{
		        OnSpawnOutput
			{
				Target "upper_text"
				Action "Display"
				Delay 0
			}
			OnSpawnOutput
			{
				Target "middle_text"
				Action "Display"
				Delay 0.2
			}
			game_text
			{
				"origin" "1984 1984 99999"
				"targetname" "upper_text"
				"message" "The Destroyed One of Hell (Scrap yard)" 
				"x" "-1"
				"y" "0.4"
				"spawnflags" "1"
				"effect" "2"
				"channel" "2"
				"color" "184 56 59"
				"fxtime" "0.2"
				"fadeout" "1"
				"holdtime" "5"
			}
			game_text
			{
				"origin" "1984 1984 99999"
				"targetname" "middle_text"
				"message" "Sergeant Scrap" 
				"x" "-1"
				"y" "0.45"
				"channel" "1"
				"spawnflags" "1"
				"color" "184 56 59"
				"fadein" "0.2"
				"fadeout" "1"
				"holdtime" "4.8"
			}
                }
		Sergeant_Scrap_Title_Card_Crazy //by Ihaz and Sergeant Table
		{
		        OnSpawnOutput
			{
				Target "upper_text"
				Action "Display"
				Delay 0
			}
			OnSpawnOutput
			{
				Target "middle_text"
				Action "Display"
				Delay 0.2
			}
			game_text
			{
				"origin" "1984 1984 99999"
				"targetname" "upper_text"
				"message" "The Recurring One from Flower Field" 
				"x" "-1"
				"y" "0.4"
				"spawnflags" "1"
				"effect" "2"
				"channel" "2"
				"color" "184 56 59"
				"fxtime" "0.2"
				"fadeout" "1"
				"holdtime" "5"
			}
			game_text
			{
				"origin" "1984 1984 99999"
				"targetname" "middle_text"
				"message" "Sergeant Scrap" 
				"x" "-1"
				"y" "0.45"
				"channel" "1"
				"spawnflags" "1"
				"color" "184 56 59"
				"fadein" "0.2"
				"fadeout" "1"
				"holdtime" "4.8"
			}
                }
		BossDeath //Steep: Dill Down Disaster (Sergeant Table)
		{
			KeepAlive 1
			logic_relay
			{
				"targetname" "bossdeath1"
				"OnTrigger" "boss_is_dead,Start,,0,-1"
				"OnTrigger" "boss_is_dead,Stop,,2.5,-1"
				"OnTrigger" "boss_is_dead1,Start,,0,-1"
				"OnTrigger" "boss_is_dead1,Stop,,2.5,-1"
				"OnTrigger" "shake_boss,StartShake,,0,-1"
				"ontrigger" "player,$playsoundtoself,npc/turret_floor/die.wav,0,-1"
			}
			KeepAlive 1
			info_particle_system
			{
				"targetname" "boss_is_dead"
				"origin" "0 0 0"
				"angles" "-90 0 0"
				"effect_name" "mvm_tank_destroy"
			}
			KeepAlive 1
			info_particle_system
			{
				"targetname" "boss_is_dead1"
				"origin" "0 0 0"
				"angles" "-90 0 0"
				"effect_name" "rd_robot_explosion"
			}
			KeepAlive 1
			env_shake
			{
				"spawnflags" "1" 
				"amplitude" "16"
				"duration" "3"
				"frequency" "9"
				"targetname" "shake_boss"
			}
			OnParentKilledOutput
			{
				Target "bossdeath1"
				Action Trigger
			}
                }
        }
	Templates
	{
                T_TFBot_Pyro_Miniboss_Last
                {
                        Template T_TFBot_Shotgun_Pyro_Giant
                        ClassIcon pyro_last_breath
                        Health 20000
                        Name "Last Death" 
                        Skill Normal
                        Tag bot_giant  
                        Attributes MiniBoss
                        Attributes UseBossHealthBar
                        Item "The Detonator"
                        Item "The Last Breath"
                        SpawnTemplate BossDeath
			ItemAttributes
			{
				ItemName "The Detonator"
		        	"fire rate bonus" 0.31
			        "faster reload rate" 0.31
			        "projectile spread angle penalty" 5
			        "damage penalty" 1.33
			        "Projectile speed increased" 0.31
			}
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 10000
			        Name "Flammenwerfer" 
		        }
           		EventChangeAttributes
			{
				Flammenwerfer
				{
                                        Skill Hard
                                        Tag bot_giant 
                                        Attributes MiniBoss
                                        Attributes UseBossHealthBar
                                        Attributes AlwaysCrit
                                        UseCustomModel "models\bots\pyro_boss\bot_pyro_boss_gibby.mdl"
                                        WeaponRestrictions PrimaryOnly
                                        Item "The Dragon's Fury"
                                        Item "The Last Breath"
			                CharacterAttributes
			                {
				                "move speed bonus" 0.5
				                "damage force reduction" 0.6
				                "airblast vulnerability multiplier" 0.6
				                "override footstep sound set" 6
			                }
				}
                        }
                } 
                T_TFBot_Miniboss_Pyro_Shotgunner
                {
                        Template T_TFBot_Shotgun_Pyro_Giant
                        ClassIcon boss_pyro_degreaser_reserve
                        MaxVisionRange 1200
                        Health 35000
                        Name "Chief Shotgunner"
                        Tag bot_giant
                        Attributes UseBossHealthBar
                        Attributes HoldFireUntilFullReload
                        Item "Phobos Filter"
                        SpawnTemplate BossDeath
			ItemAttributes
			{
				ItemName "TF_WEAPON_SHOTGUN_PYRO"
                                "custom item model" "models/weapons/c_models/c_the_bolshevik_bomber/c_the_bolshevik_bomber_1.mdl"
                                "override projectile type" 6
                                "Set DamageType Ignite" 1
				"clip size upgrade atomic" 26.0
				"faster reload rate" 0.22
				"fire rate bonus" 0.2
				"projectile spread angle penalty" 5
			}                        
			CharacterAttributes
			{
				"move speed bonus" 0.4
				"damage force reduction" 0.3
				"airblast vulnerability multiplier" 0.3
				"override footstep sound set" 2
				"airblast vertical vulnerability multiplier" 0.1
			}
			AddCond
			{
				Index 5
				Delay 1
				Duration 6.5
                                IfHealthBelow 15000
			}
                        Taunt
                        {
                                Delay 1
                                Repeats 1
                                Duration 6.5
                                Name "Taunt: Unleashed Rage"
                                IfHealthBelow 15000
                        }
			FireInput
			{
				Target player
				Action $SetProp$m_iszClassIcon
				Param heavy_bomber_lite
				Delay 0
				Cooldown 0
				Repeats 1
				IfHealthBelow 35000
			}
			FireInput
			{
				Target player
				Action $SetProp$m_iszClassIcon
				Param pyro_dragonfury
				Delay 0
				Cooldown 0
				Repeats 1
				IfHealthBelow 25000
			}
			FireInput
			{
				Target player
				Action $SetProp$m_iszClassIcon
				Param pyro_degreaser_reserve
				Delay 0
				Cooldown 0
				Repeats 1
				IfHealthBelow 15000
			}
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 25000
			        Name "NeoWi" 
		        }
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 15000
			        Name "ADCB_2" 
		        }
			EventChangeAttributes
			{
				NeoWi
				{
                                        Skill Expert
                                        Tag bot_giant 
			                Attributes MiniBoss
			                Attributes UseBossHealthBar
                                        WeaponRestrictions PrimaryOnly
                                        Item "The Dragon's Fury"
					ItemAttributes
					{
						ItemName "The Dragon's Fury"
                                                "airblast disabled" 1
					}
				}
				ADCB_2
				{
                                        Skill Expert
                                        Tag bot_giant
			                Attributes MiniBoss
			                Attributes UseBossHealthBar 
                                        Attributes AlwaysCrit
                                        UseCustomModel "models\bots\pyro_boss\bot_pyro_boss_gibby.mdl"
                                        UseHumanAnimations 1
                                        Item "The Degreaser"
                                        Item "The Reserve Shooter"
                                        WeaponSwitch //Terrorlict: Accursed Aggrievocation
                                        {
                                                Type "Primary"
                                                IfSeeTarget 1
                                                MaxTargetRange 350 
                                                Delay 2 
                                                Cooldown 4
                                        }
                                        WeaponSwitch
                                        { 
                                                Type "Secondary"
                                                Delay 0 
                                                Cooldown 4
                                        }
				}
                        } 
                } 
                T_TFBot_Soldier_Boss_Scarp
                {
                        Template T_TFBot_Giant_Soldier               
                        ClassIcon soldier_gib_lite_giant
                        Health 40000
                        Name "Sergeant Scrap"
                        Scale 1.9
                        Action Mobber
                        Tag bot_giant
			Attributes MiniBoss
			Attributes UseBossHealthBar                        
                        WeaponRestrictions SecondaryOnly
                        Item "TF_WEAPON_SHOTGUN_SOLDIER"  
                        Item "Tyrantium Helmet"
                        UseCustomModel "models\bots\soldier_boss\bot_soldier_boss_gibby.mdl"
                        SpawnTemplate BossDeath
			ItemAttributes
			{
				ItemName "Tyrantium Helmet"
                                "set item tint rgb" 202020
			}
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.4
				"airblast vulnerability multiplier" 0.4
				"override footstep sound set" 3
				"airblast vertical vulnerability multiplier" 0.1
			}                        
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 30000
			        Name "Scarp1" 
		        }
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 20000
			        Name "Scarp2" 
		        }
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 10000
			        Name "Scarp3" 
		        }
			EventChangeAttributes
			{
				Scarp1
				{
                                        Skill Expert
                                        Tag bot_giant
			                Attributes MiniBoss
			                Attributes UseBossHealthBar  
                                        Item "Panic Attack Shotgun"
			                ItemAttributes
			                {
				                ItemName "Panic Attack Shotgun"
		                                "auto fires when full"  1
		                                "auto fires full clip"  1
		                                "fire rate bonus" 1.33
		                                "reload time decreased" 1.67
			                }
				}
				Scarp2
				{
                                        Skill Expert
                                        Tag bot_giant
			                Attributes MiniBoss
			                Attributes UseBossHealthBar
                                        Attributes AlwaysCrit
                                        WeaponRestrictions PrimaryOnly
                                        Item "The Original"                   
			                ItemAttributes
			                {
				                ItemName "The Original"
				                "faster reload rate" 0.2
				                "fire rate bonus" 2
				                "Projectile speed increased" 0.5
			                }
				}
				Scarp3
				{
                                        Skill Expert
                                        Tag bot_giant
			                Attributes MiniBoss
			                Attributes UseBossHealthBar
                                        Attributes HoldFireUntilFullReload
                                        WeaponRestrictions PrimaryOnly
                                        Item "TF_WEAPON_ROCKETLAUNCHER"
			                ItemAttributes
			                {
				                ItemName "TF_WEAPON_ROCKETLAUNCHER"
				                "faster reload rate" 0.6
				                "fire rate bonus" 0.1
				                "clip size upgrade atomic" 5.0
				                "Projectile speed increased" 0.65
			                }
				}
                        } 
                }
	}
}        