#base robot_standard.pop
#base robot_giant.pop
#base terror_bots.pop
#base terror_miniboss.pop
#base robot_romanplayer.pop //Thanks Romanplayer!^^

//Who did the mission?
//Terrorzwerg2009 (the grumpy Inkling Femboy)
//Who else? No idea.
//Then all of that will be removed. (Nur ein Spaß! xD)

//soul_0_system.mp3 (Kirby)
//intermezzowithoutaleaderr.mp3 (Kirby)
//kill.mp3 (Kirby)

//If they see this! I've marked the parts where it's from, and please don't be offended, please consider it credit. Please, no hate.
//Check the parentheses; that's where the credits for the creator are.

//I'm new, but I always learn from things, so maybe... who knows...
//I did some research myself...
//Well, I have to say that I have reading and writing difficulties, so I need time to process it.
//I didn't get it right away.

//I really ought to look into some boss music.

//There might be a lot of mini-bosses.

//Spawns again
//Left Spawn: spawnbot_mission_sniper, spawnbot_mission_engy, spawnbot_invasion, spawnbot_flank
//Right Spawn: spawnbot_invasion, spawnbot_flank_short
//Middle Spawn: spawnbot, spawnbot_chief, spawnbot_mission_spy, spawnbot_mission_sentrybuster, spawnbot_invasion

WaveSchedule													
{
        //Musik//
        //PrecacheSound "intermezzowithoutaleaderr.mp3" //placeholder
        //PrecacheSound "kill.mp3" //placeholder
        //PrecacheSound "soul_0_system.mp3" //placeholder
        PrecacheSound "beautiful_blume/wave6/music/fatal_blooms_in_moonlight.wav"        
        PrecacheSound "beautiful_blume/wave6/music/soul_of_sectonia.wav"
        //PrecacheSound "flowerfieldupgradestation.mp3"
 
        //Roboter//
        PrecacheModel "models\bots\pyro_boss\bot_pyro_boss_gibby.mdl"
        PrecacheModel "models\bots\pyro\bot_pyro_gibby.mdl"

        //Tank//
        PrecacheModel "models\bots\boss_bot\boss_tank_color.mdl"
 
        //Waffen//
        PrecacheModel "models/weapons/c_models/c_the_bolshevik_bomber/c_the_bolshevik_bomber_1.mdl"
        PrecacheModel "models/weapons/c_models/c_scythe/c_scythe.mdl" //Frostwynd: Medieval Madness

        StartingCurrency 12850
	RespawnWaveTime 4
	CanBotsAttackWhileInSpawnRoom no
	Advanced 1
        NoRomevisionCosmetics 1
        AllowBotExtraSlots 1

        //That way, I can save myself some code and don't have to deal with the boss template.

        CustomWeapon //Only the robots can equip them!
        {
                "Flare Shotgun" //This weapon is supposed to be a nod to a *Trespasser* remaster.
                {
			OriginalItemName "TF_WEAPON_SHOTGUN_PYRO"
                        "custom item model" "models/weapons/c_models/c_the_bolshevik_bomber/c_the_bolshevik_bomber_1.mdl"
                        "Set DamageType Ignite"	1
			"faster reload rate" 0.6
			"fire rate bonus" 0.1
			"clip size upgrade atomic" 5.0
			"Projectile speed increased" 0.65
                }
        }
        CustomWeapon
        {
                "Heavy's Reserve Shooter" //It was fun, because the Heavy can't equip them. XD
                {
			OriginalItemName "The Reserve Shooter"
                        "paintkit_proto_def_index" 223                                                                    
                        "set_item_texture_wear" 0
			"fire rate bonus" 2.5
			"bullets per shot bonus" 10
                        "faster reload rate" 0.01
			"damage penalty" 1.5
			"faster reload rate" 0.1
                }
        }
        CustomWeapon
        {
                "Chief Pyro's Revenge: Phlogistinator" //Chief Pyro's Revenge from Goldpit: Race Condition (Crilly)
                {
			OriginalItemName "The Phlogistinator"
			"damage bonus" 1.75
			"airblast disabled" 0
			"mod rage on hit bonus" 2
			"flame_drag" 3.5
			"dmg bonus vs buildings" 2.5
			"speed_boost_on_kill" 1
                }
        }
        CustomWeapon
        {
                "Scorch Spammer" //Taken from the template, but with a few changes.
                {
			OriginalItemName "The Scorch Shot"
                        "paintkit_proto_def_index" 223                                                                  
                        "set_item_texture_wear" 0
                        "fire rate bonus" 0.2
                        "damage penalty" 0.33
                        "damage causes airblast" 1
                }
        }
        CustomWeapon
        {
                "Dragon's Fury: Spammer"
                {
			OriginalItemName "The Dragon's Fury"
                        "mult_item_meter_charge_rate" 0.75
                        "damage bonus" 0.01
                        "airblast disabled" 0
                }
        }
        CustomWeapon
        {
                "Reichweitewerfer"
                {
			OriginalItemName "TF_WEAPON_FLAMETHROWER"
                        "flame_speed" 6500
                        "airblast disabled" 0
                }
        }
        CustomWeapon
        {
                "Weird Manmelter"
                {
			OriginalItemName "The Manmelter"
		        "mult projectile count" 6
		        "projectile spread angle penalty" 6
		        "projectile speed decreased" 0.5
		        "mult projectile scale" 0.9
		        "damage bonus hidden" 0.75
		        "maxammo primary reduced" 0.74
                }
        }
        CustomWeapon
        {
                "Regen's Flare Gun" //Regen = Rain //wanted to look a little nice
                {
			OriginalItemName "The Flare Gun"
			"fire rate bonus" 0.31
			"faster reload rate" 0.31
			"projectile spread angle penalty" 5
			"damage penalty" 1.33
			"Projectile speed increased" 0.31
                }
        }
        CustomWeapon //Funny XD
        {
                "Fire Sense" //I don't know why myself. XD
                {
			OriginalItemName "Sharpened Volcano Fragment"
                        "custom item model" "models/weapons/c_models/c_scythe/c_scythe.mdl"
                        "damage penalty" 0.07
                        "attach particle effect" 1
                        "crit vs burning players" 1
                }
        }
        PointTemplates 
	{
                ColorTank
                {
                        OnSpawnOutput
                        {
                                Target "!activator"
                                Action "color"
                                Param  "434 56 59"
                        }
                }
		Boss_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 Protector of the Flowers" 
				"x" "-1"
				"y" "0.4"
				"spawnflags" "1"
				"effect" "2"
				"channel" "2"
				"color" "50 205 50"
				"fxtime" "0.2"
				"fadeout" "1"
				"holdtime" "5"
			}
			game_text
			{
				"origin" "1984 1984 99999"
				"targetname" "middle_text"
				"message" "The Gärtner" 
				"x" "-1"
				"y" "0.45"
				"channel" "1"
				"spawnflags" "1"
				"color" "50 205 50"
				"fadein" "0.2"
				"fadeout" "1"
				"holdtime" "4.8"
			}
                }
		BossMusic //Steep: Drill Down Disaster (Sergeant Table) //
		{
			ambient_generic
			{
				"targetname" "german_boy"
				"message" "beautiful_blume/wave6/music/fatal_blooms_in_moonlight.wav" //Pa
				"health" "10"
				"pitch" "100"
                                "radius" "69420" 
				"spawnflags" "17"
			}
			ambient_generic
			{
				"targetname" "kindergarten" //idk
				"message" "beautiful_blume/wave6/music/soul_of_sectonia.wav"
				"health" "10"
				"pitch" "100"
                                "radius" "69420"
				"spawnflags" "17"
			}
                }
		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
			}
                }
		pyro_death //Spybase: Waters of a Robot Regime (Sergeant Table) and Snowpine: Shivering Slumber (I mixed it all together.)   
		{
			OnSpawnOutput
			{
				Target "pyrocosmetic"
				Action "TurnOff"
			}
			OnParentKilledOutput
			{
				Target "spawnbot"
				Action disable
			}
			OnParentKilledOutput
			{
				Target "chief"
				Action disable
			}
			OnParentKilledOutput
			{
				Target "pyro_dead"
				Action Enable
			}
			OnParentKilledOutput
			{
				Target "pyrocosmetic"
				Action "TurnOn"
			}
			OnParentKilledOutput
			{
				Target "pyro_dead"
				Action "SetPlayBackRate"
				Param "0.5"
				Delay 0.5
			}
			prop_dynamic_ornament
			{
				"targetname" "pyrocosmetic"
				"model" "models/workshop/player/items/pyro/hwn2023_dead_heat/hwn2023_dead_heat.mdl"
				"solid" "0"
				"disablebonefollowers" "1"
				"disableshadows" "1"
				"skin" "1"
				"initialowner" "pyro_dead"
			}
			prop_dynamic_ornament
			{
				"targetname" "pyrocosmetic"
				"model" "models/workshop/player/items/pyro/sum21_water_waders/sum21_water_waders.mdl"
				"solid" "0"
				"disablebonefollowers" "1"
				"disableshadows" "1"
				"skin" "1"
				"initialowner" "pyro_dead"
			}
			prop_dynamic
			{
				"targetname" "pyro_dead"
				"model" "models\bots\pyro_boss\bot_pyro_boss_gibby.mdl"
				"modelscale" "2.05" //1.6
				"origin" "0 0 0"
				"angles" "0 0 0"
				"defaultanim" "primary_death_headshot"
				"skin" "1"
				"startdisabled" "1"
				"OnAnimationBegun" "!self,SetPlayBackRate,0,,-1"
				"OnAnimationDone" "!self,SetPlayBackRate,0,,-1"
				"OnAnimationDone" "pyro_dead,Trigger,0,-1"
				"OnAnimationDone" "!self,kill,0,-1"
			}
			KeepAlive 1
			logic_relay
			{
				"targetname" "pyro_dead"
				"OnTrigger" "pyro_dead,Start,,0,-1"
				"OnTrigger" "pyro_dead,Stop,,2.5,-1"
				"OnTrigger" "pyro_dead1,Start,,0,-1"
				"OnTrigger" "pyro_dead1,Stop,,2.5,-1"
				"OnTrigger" "shake_boss,StartShake,,0,-1"
				"ontrigger" "player,$playsoundtoself,npc/turret_floor/die.wav,0,-1"
				"ontrigger" "player,$playsoundtoself,mvm\mvm_tank_end.wav,0,-1"
				"ontrigger" "player,$playsoundtoself,mvm\mvm_tank_explode.wav,0,-1"
			}
			KeepAlive 1
			info_particle_system
			{
				"targetname" "pyro_dead"
				"origin" "0 0 0"
				"angles" "-90 0 0"
				"effect_name" "mvm_tank_destroy"
			}
			KeepAlive 1
			info_particle_system
			{
				"targetname" "pyro_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"
			}
		}
        }
	Templates
	{
		T_TFBot_Pyro_Boss
		{
                        Template T_TFBot_Combo_Pyro_Chief_Normal 
                        ClassIcon random_lite_giant
                        Health 100000
                        Name "Gärtner"
                        Scale 2.05
                        Action Mobber
                        Tag bot_giant
			Attributes MiniBoss
			Attributes UseBossHealthBar
                        Item "Dead Heat"
                        Item "Water Waders"
                        Item "The Crosslinker's Coil"
                        Item "The Backburner"
                        Item "Heavy's Reserve Shooter"
                        Item "The Back Scratcher"
                        CustomEyeGlowColor "50 205 50"
                        UseMeleeThreatPrioritization 1
                        SpawnTemplate Boss_Title_Card
                        SpawnTemplate pyro_death
			CharacterAttributes
			{
                                "cannot pick up intelligence" 1 //"Action Mobber" is better
                                "cancel falling damage" 1
                                "rage giving scale" 0.1
			}
			ItemAttributes
			{
				ItemName "Dead Heat"
                                "set item tint rgb" 255105180
			}
			WeaponResist
			{
				"TF_WEAPON_MINIGUN" 0.95
			}
			FireInput
			{
				Target "upper_text"
				Action "Display"
				Delay 0.1
				Repeats 1
			}
			FireInput
			{
				Target "middle_text"
				Action "Display"
				Delay 0.2
				Repeats 1
			}		
			FireInput
			{
				Target player
				Action $SetProp$m_iszClassIcon
				Param boss_dead_heat_armored //Sakura's Icon
				Delay 0
				Cooldown 0
				Repeats 1
				IfHealthBelow 100000
			}
		        FireInput
			{
				Target player
				Action $DisplayTextChat
			        Param "{FF69B4}Now Playing {reset}: Kirby - Fatal Blooms in Moonlight"                                   
				Delay 0.1
				Repeats 1
				IfHealthBelow 100001
			}
			FireInput
			{
				Target player
				Action $DisplayTextChat
			        Param "{green}Gärtner {reset}: Leave this garden! NOW!"                                
				Delay 0.1
				Repeats 1
				IfHealthBelow 90000
	                }
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 80000
			        Name "Blume0_5" 
		        }
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 60000
			        Name "Blume1" 
		        }
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 40000
			        Name "Blume1_5" 
		        }
		        ChangeAttributes 
		        {
			        Delay 0.1
			        Repeats 1 
			        IfHealthBelow 20000
			        Name "Blume2" 
		        }
			EventChangeAttributes
			{
                                Blume0_5
				{
                                        CustomEyeGlowColor "255 105 180"
                                        Skill Expert
                                        Tag bot_giant 
                                        Attributes MiniBoss
                                        Attributes UseBossHealthBar
                                        Item "Dead Heat"
                                        Item "Water Waders"
                                        Item "The Hardy Laurel"
                                        Item "The Infernal Orchestrina"
                                        Item "The Rainblower"
                                        Item "Scorch Spammer"
                                        Item "The Lollichop"
                                        UseMeleeThreatPrioritization 1
				        FireInput
			                {
						Target player
						Action $DisplayTextChat
					        Param "{green}Gärtner {reset}: I HATE WAR!!!"
						Delay 0.1
						Repeats 1
						IfHealthBelow 80000
				        }
                                }    
                                Blume1
				{
                                        CustomEyeGlowColor "50 205 50"
                                        Skill Expert
                                        Tag bot_giant 
                                        Attributes MiniBoss
                                        Attributes UseBossHealthBar
                                        Item "Dead Heat"
                                        Item "Water Waders"
                                        Item "The Coffin Kit"
                                        Item "pyro helm"
                                        Item "Reichweitewerfer"
                                        Item "Weird Manmelter"
                                        Item "The Homewrecker"
                                        UseMeleeThreatPrioritization 1
				        FireInput
			                {
						Target player
						Action $DisplayTextChat
					        Param "{green}Gärtner {reset}: This garden is mine and everything..." 
						Delay 0.1
						Repeats 1
						IfHealthBelow 60000
				        }
				        FireInput
			                {
						Target player
						Action $DisplayTextChat
					        Param "{green}Gärtner {reset}: My beautiful garden keeps getting destroyed!"
						Delay 0.1
						Repeats 1
						IfHealthBelow 50000
				        }
                                }                 
				Blume1_5
				{
                                        CustomEyeGlowColor "184 56 59"
                                        Skill Expert
                                        Tag bot_giant 
                                        Attributes MiniBoss
                                        Attributes UseBossHealthBar
                                        UseCustomModel "models\bots\pyro_boss\bot_pyro_boss_gibby.mdl"
                                        Item "Dead Heat"
                                        Item "Water Waders"
                                        Item "Splitting Headache"
                                        Item "The Pyrotechnic Tote"
                                        Item "Chief Pyro's Revenge: Phlogistinator"
                                        Item "Flare Shotgun"
                                        Item "The Powerjack" 
                                        UseMeleeThreatPrioritization 1
			                CharacterAttributes
			                {
				                "move speed bonus" 0.5
				                "damage force reduction" 0.6
				                "airblast vulnerability multiplier" 0.6
				                "override footstep sound set" 6
                                                "rage giving scale" 0.0
			                }
				        FireInput
			                {
						Target player
						Action $DisplayTextChat
					        Param "{FF69B4}Now Playing {reset}: Kirby - Soul of Sectonia"
						Delay 10
						Repeats 1
						IfHealthBelow 40000
				        }
                                        FireInput 
					{
						Target "kindergarten"
						Action PlaySound
						Delay 10
						Repeats 1
						IfHealthBelow 40000
					}
                                        FireInput 
					{ 
						Target "german_boy"
						Action StopSound
						Delay 0
						Repeats 1
						IfHealthBelow 40000
					}
 			                Addcond
			                { 
				                Name TF_COND_MVM_BOT_STUN_RADIOWAVE
                                                Delay 10
				                Duration 9.9
                                                IfHealthBelow 40000
			                }
			                Addcond
			                {
			                        Index 5  
                                                Delay 10                                   
				                Duration 9.9
                                                IfHealthBelow 40000
			                }
				}
				Blume2
				{
                                        CustomEyeGlowColor "184 56 59"
                                        Skill Expert
                                        Tag bot_giant
                                        Attributes MiniBoss
                                        Attributes UseBossHealthBar
                                        Attributes HoldFireUntilFullReload
                                        UseCustomModel "models\bots\pyro_boss\bot_pyro_boss_gibby.mdl"
                                        Item "Water Waders"
                                        Item "Dead Heat" 
                                        Item "Propaniac"
                                        Item "The Gas Guzzler"
                                        Item "Dragon's Fury: Spammer"
                                        Item "Regen's Flare Gun"
                                        Item "Fire Sense"
                                        UseMeleeThreatPrioritization 1
			                CharacterAttributes
			                {
				                "move speed bonus" 0.5
				                "damage force reduction" 0.6
				                "airblast vulnerability multiplier" 0.6
				                "override footstep sound set" 6
                                                "rage giving scale" 0.0
			                }
				        FireInput
			                {
						Target player
						Action $DisplayTextChat
					        Param "{green}Gärtner {reset}: ..." 
						Delay 0.1
						Repeats 1
						IfHealthBelow 20000
				        }
				}
                        } 
                } 
		T_TFBot_Pyro_Armored
                { 
			Template T_TFBot_Pyro
                        ClassIcon pyro_armored2
                        Health 525
                        Name "Armored Pyro"
                        Scale 1.6
                        Item "The Degreaser"
                        Item "The Hive Minder"
                        Item "Water Waders"
			ItemAttributes
			{
				ItemName "The Degreaser"
		                "paintkit_proto_def_index" 223
                                "set_item_texture_wear" 0                             
			}
                }
		T_TFBot_Pyro_Detonator_Combo
                {
			Template T_TFBot_Combo_Pyro
                        ClassIcon pyro_degreaser_detonator
                        Name "Detonator Combo Pyro"
                        Item "The Detonator"
                        Item "Jungle Wreath"
                        Item "Water Waders"
			ItemAttributes
			{
				ItemName "The Degreaser"
		                "paintkit_proto_def_index" 223
                                "set_item_texture_wear" 0  
                                "airblast disabled" 0                          
			}
			ItemAttributes
			{
				ItemName "The Detonator"
		                "paintkit_proto_def_index" 223
                                "set_item_texture_wear" 0                             
			}
                }
		T_TFBot_Pyro_Detonator_Combo_Giant
                {
			Template T_TFBot_Combo_Pyro_Giant
                        ClassIcon pyro_degreaser_detonator_giant
                        Name "Giant Detonator Combo Pyro"
                        Item "The Detonator"
                        Item "Jungle Wreath"
                        Item "Water Waders"
			ItemAttributes
			{
				ItemName "The Degreaser"
		                "paintkit_proto_def_index" 223
                                "set_item_texture_wear" 0      
                                "airblast disabled" 0                     
			}
			ItemAttributes
			{
				ItemName "The Detonator"
		                "paintkit_proto_def_index" 223
                                "set_item_texture_wear" 0                             
			}
                }
		T_TFBot_Pyro_Detonator_Combo_Spammer_Giant
                {
			Template T_TFBot_Combo_Pyro_Giant
                        ClassIcon pyro_degreaser_detonator_spammer_giant
                        Name "Giant Detonator Spammer Combo Pyro"
                        Attributes HoldFireUntilFullReload
                        Item "The Detonator"
                        Item "The Rusty Reaper"
                        Item "Jungle Wreath"
                        Item "Water Waders"
                        UseCustomModel "models\bots\pyro_boss\bot_pyro_boss_gibby.mdl"
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 6
			}
			ItemAttributes
			{
				ItemName "The Rusty Reaper"
                                "set item tint rgb" 202020
			}
			ItemAttributes
			{
				ItemName "The Degreaser"
		                "paintkit_proto_def_index" 223
                                "set_item_texture_wear" 0     
                                "airblast disabled" 0                        
			}
			ItemAttributes
			{
				ItemName "The Detonator"
		                "paintkit_proto_def_index" 223
                                "set_item_texture_wear" 0                             
				"fire rate bonus" 1.4
				"Reload time decreased" 1.2
				"Projectile speed increased" 2.5
			}
                }
                T_TFBot_Pyro_Detonator_Combo_Spammer
                { 
			Template T_TFBot_Combo_Pyro     
                        ClassIcon pyro_degreaser_detonator_spammer
                        Name "Detonator Spammer Combo Pyro"
                        //Action Mobber
                        Attributes HoldFireUntilFullReload
                        Item "The Detonator" 
                        Item "The Rusty Reaper"
                        Item "Jungle Wreath"
                        Item "Water Waders"
                        UseCustomModel "models\bots\pyro\bot_pyro_gibby.mdl"
			ItemAttributes
			{
				ItemName "The Rusty Reaper"
                                "set item tint rgb" 202020
			}
			ItemAttributes
			{
				ItemName "The Detonator"
		                "paintkit_proto_def_index" 223
                                "set_item_texture_wear" 0
				"fire rate bonus" 0.4
				"Reload time decreased" 0.2
				"Projectile speed increased" 1.5
			}
                }
                T_TFBot_Pyro_Detonator_Spammer
                {
			Template T_TFBot_Detonator_Pyro
                        ClassIcon pyro_detonator_lite_spammer
                        Name "Spammer Detonator Pyro"
                        Attributes HoldFireUntilFullReload 
                        Item "Jungle Wreath"
                        Item "Water Waders"
			ItemAttributes
			{
				ItemName "The Detonator"
		                "paintkit_proto_def_index" 223
                                "set_item_texture_wear" 0
				"fire rate bonus" 0.4
				"Reload time decreased" 0.2
				"Projectile speed increased" 1.5
			}
                }   
                T_TFBot_Pyro_Dragonfury_Armored_Blume
                {
			Template T_TFBot_Dragon_Fury_Pyro
                        ClassIcon pyro_dragon_fury_armored
                        Health 425
                        Name "Armored Dragonfury Pyro"
                        Scale 1.5
                        Item "The Hive Minder"
                        Item "Water Waders"
                }   
                T_TFBot_Pyro_Dragonfury_Giant_Blume                             
                { 
			Template T_TFBot_Dragon_Fury_Pyro_Giant 
                        Item "Jungle Wreath"
                        Item "Water Waders" 
                }  
                T_TFBot_Combo_Medic_Blume
                {
   			Template T_TFBot_Combo_Medic
                        Item "Jungle Wreath"
                        Item "Mecha-Medes"
                }
                T_TFBot_Combo_Medic_Giant_Blume
                {                 
   			Template T_TFBot_Combo_Medic_Giant
                        Item "Jungle Wreath"
                        Item "Mecha-Medes"
                }
                T_TFBot_Giant_Soldier_SlowBarrage_Blume
                {
			Template T_TFBot_Giant_Soldier_SlowBarrage
                        Health 2500
                        Name "Flower Slow Barrage Soldier"
                        Skill Easy
                        CustomEyeGlowColor "207 115 54"
                        Item "The Original" //And no, it's supposed to be a barrage soldier, not a charged soldier!
                        Item "The Crack Pot"
                        Item "Fancy Dress Uniform"
			ItemAttributes
			{
				ItemName "The Original"
				"clip size upgrade atomic" 26.0
				"faster reload rate" 0.22
				"fire rate bonus" 0.2
				"projectile spread angle penalty" 5
			}
                }
                T_TFBot_Sun_Scout_Giant
                {
			Template T_TFBot_Giant_Scout
                        ClassIcon scout_sunstick_swordstone_giant
                        Name "Giant Sun Scout"
                        Skill Normal
                        CustomEyeGlowColor "207 115 54"
			WeaponRestrictions MeleeOnly
                        Item "Jungle Wreath"
			Item "Sun-on-a-Stick"
			Item "The Bolt Boy"
                }
                T_TFBot_Capper_Sun_Fire_Scout
                {
			Template T_TFBot_Scout_Combo 
                        ClassIcon scout_capper_sun_fire
                        Health 215
                        Name "Capper/Sun Fire Scout"
                        Scale 1.5
                        //Attributes HoldFireUntilFullReload
                        Item "Jungle Wreath"
                        Item "The Flapjack"
                        Item "The C.A.P.P.E.R"
                        Item "Sun-on-a-Stick"
			ItemAttributes
			{
				ItemName "The C.A.P.P.E.R"
                                "damage penalty" 0.65
                                "override projectile type" 6
                                "set damagetype ignite" 1
			}
                }
                T_TFBot_Medic_Kritz
                {
                        ClassIcon medic_kritz_lite
                        Name "Kritz Medic"
                        Class Medic
                        Skill Hard
                        Attributes AlwaysCrit
                        Item "Lo-Fi Longwave"
                        Item "Das Metalmeatencasen"
                        Item "The Kritzkrieg"
                }
                T_TFBot_Medic_Kritz_Giant
                {
                        ClassIcon medic_kritz_lite_giant
                        Health 4500
                        Name "Giant Kritz Medic"
                        Class Medic
                        Skill Hard
                        Attributes MiniBoss
                        Attributes AlwaysCrit
                        Item "Lo-Fi Longwave"
                        Item "Das Metalmeatencasen"
                        Item "The Kritzkrieg"
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
			}
                }
        }

	Mission	// Sentry Busters - all
	{
		Objective DestroySentries

		InitialCooldown 15
		Where spawnbot_mission_sentrybuster
		BeginAtWave 1
		RunForThisManyWaves 6
		CooldownTime 30

                TFBot
		{
			Template T_TFBot_SentryBuster
                }
	}

	Wave //Wave 1
	{
		CustomWaveNumber 1
		CustomMaxWaveNumber 5
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		Explanation 
		{
                        Line ""
			Line "I'm the one bringing the information."   
                    	Line "And the first one is that there are only 5 waves." 
                        Line "Before you ask who I am? I am someone who searches for anomalies." 
                        Line "And one was found on {FF69B4}Flower Field{reset}, but no one knows what it is."                            
                        Line ""
                }
		WaveSpawn 
		{
			Where spawnbot
			Name "W1_01"
			
			WaitBetweenSpawns 0.1
			WaitBeforeStarting 0.1
			
			TotalCount 1									
			SpawnCount 1
			MaxActive 1
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Soldier   
                                ClassIcon soldier_shovel_armored_yoovy
                                Health 825
                                Name "Armored Shovel"
                                Scale 1.4  
                                Skill Expert
                                WeaponRestrictions MeleeOnly 
                                Item "TF_WEAPON_SHOVEL"
                                Item "The Crack Pot"
			}
		}
		WaveSpawn 
		{
			Where spawnbot_flank_short
			Name "W1_01"
			
			WaitBetweenSpawns 0.2
			WaitBeforeStarting 0.2
			
			TotalCount 1									
			SpawnCount 1
			MaxActive 1
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Soldier 
                                ClassIcon soldier_armored
                                Health 625  
                                Name "Armored Soldier"
                                Scale 1.4
                                Skill Normal 
                                WeaponRestrictions PrimaryOnly
                                Item "The Original" 
                                Item "The Crack Pot"
			}
		}	
		WaveSpawn 
		{
			Where spawnbot_invasion
			Name "W1_01"
			
			WaitBetweenSpawns 0.3
			WaitBeforeStarting 0.3
			
			TotalCount 1									
			SpawnCount 1
			MaxActive 1
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Soldier
                                ClassIcon shotgun_reserve_armored   
                                Health 725
                                Name "Armored Reserve Soldier"  
                                Scale 1.4  
                                Skill Hard   
                                WeaponRestrictions SecondaryOnly
                                Item "The Reserve Shooter" 
                                Item "The Crack Pot"
			}
		}
		WaveSpawn //1
		{
			Where spawnbot_invasion
			Name "W1_02"
                        WaitForAllDead "W1_01"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 0.1
			
			TotalCount 10							
			SpawnCount 1
			MaxActive 10
									
			TotalCurrency 75
                        
                        TFBot
                        {
				Template T_TFBot_Detonator_Pyro
                                Item "Water Waders"
                                Item "Jungle Wreath"
                                Skill Hard
                        }
                }
		WaveSpawn 
		{
			Where spawnbot
			Name "W1_02"
                        WaitForAllDead "W1_01"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 0.4
			
			TotalCount 2								
			SpawnCount 2
			MaxActive 2
									
			TotalCurrency 125

			Squad 
			{
				TFBot
				{
					Template T_TFBot_Pyro_Detonator_Combo_Giant
                                        Skill Easy
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic_Kritzkrieg_RomanPlayer
                                        Item "Lo-Fi Longwave"
                                        //Item "Blighted Beak"
				}
                        }
		}
		WaveSpawn //2
		{
			Where spawnbot_invasion
			Name "W1_03"
                        WaitForAllDead "W1_02"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 0.3
			
			TotalCount 10							
			SpawnCount 1
			MaxActive 10
									
			TotalCurrency 75
                        
                        TFBot
                        {
				Template T_TFBot_Detonator_Pyro
                                Item "Water Waders"
                                Item "Jungle Wreath"
                                Skill Hard
                        }
                }
		WaveSpawn 
		{
			Where spawnbot_flank_short
			Name "W1_03"
                        WaitForAllDead "W1_02"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 0.4
			
			TotalCount 2								
			SpawnCount 2
			MaxActive 2
									
			TotalCurrency 125

			Squad 
			{
				TFBot
				{
					Template T_TFBot_Pyro_Detonator_Combo_Giant
                                        Skill Easy
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic_Kritzkrieg_RomanPlayer
                                        Item "Lo-Fi Longwave"
                                        //Item "Blighted Beak"
				}
                        }
		}
		WaveSpawn //3
		{
			Where spawnbot_invasion 
			Name "W1_04"
                        WaitForAllDead "W1_03"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 0.5
			
			TotalCount 10							
			SpawnCount 1
			MaxActive 10
									
			TotalCurrency 75
                        
                        TFBot
                        {
				Template T_TFBot_Detonator_Pyro
                                Item "Water Waders"
                                Item "Jungle Wreath"
                                Skill Hard
                        }
                }
		WaveSpawn 
		{
			Where spawnbot
			Name "W1_04"
                        WaitForAllDead "W1_03"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 0.6
			
			TotalCount 2								
			SpawnCount 2
			MaxActive 2
									
			TotalCurrency 125

			Squad 
			{
				TFBot
				{
					Template T_TFBot_Pyro_Detonator_Combo_Giant
                                        Skill Easy
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic_Kritzkrieg_RomanPlayer
                                        Item "Lo-Fi Longwave"
                                        //Item "Blighted Beak"
				}
                        }
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W1_05"
                        WaitForAllDead "W1_04"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 0.9
			
			TotalCount 2								
			SpawnCount 2
			MaxActive 2
									
			TotalCurrency 150

			Squad //5000 HP (Zusammen)
			{
				TFBot //Boyfriend
				{
					Template T_TFBot_Giant_Soldier_SlowBarrage_Blume
				}
				TFBot //Girlfriend
				{
					Template T_TFBot_Giant_Medic_Regen
                                        Health 2500
                                        Name "Flower Giant Medic Regen"
                                        Skill Easy
                                        Item "Jungle Wreath"
 				}
                        }
		}
		WaveSpawn 
		{
			Where spawnbot_invasion 
			Name "W1_05"
                        WaitForAllDead "W1_04"
			
			WaitBetweenSpawns 0.8
			WaitBeforeStarting 0.9
			
			TotalCount 10							
			SpawnCount 1
			MaxActive 10
									
			TotalCurrency 50
                        
                        TFBot
                        {
				Template T_TFBot_Shotgun_Pyro
                                Item "Water Waders" 
                                Item "Jungle Wreath"
                                Skill Hard
                        }
                }
		WaveSpawn 
		{
			Where spawnbot_flank
			Name "W1_01_Support" 
			
			WaitBetweenSpawns 3.1
			WaitBeforeStarting 1.3
			
			TotalCount 3					
			SpawnCount 1
			MaxActive 1

                        Support	1 
									
			TotalCurrency 50
                        
                        TFBot
                        {
				Template T_TFBot_Combo_Medic_Blume
                                Skill Easy
                                Attributes AlwaysCrit
                        }
                }
		WaveSpawn 
		{
			Where spawnbot
			Name "W1_02_Support" 
			
			WaitBetweenSpawns 1.2
			WaitBeforeStarting 2.1
			
			TotalCount 4						
			SpawnCount 2
			MaxActive 4

                        Support	1 
									
			TotalCurrency 50

                        TFBot
                        {
				Template T_TFBot_Scout_Combo
                                Item "Jungle Wreath"
                        }
                }
        } 

	Wave //Wave 2 //Verbuggt! Leider!
	{
		CustomWaveNumber 2
		CustomMaxWaveNumber 5
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		Explanation 
		{
                        Line "{yellow}Information about this wave{reset}:"
                        Line ""
                        Line "-{red}TK II Flower Dragon{reset} is his name."
                        Line "-This bot is strange; no one knows why it exists."
                        Line "-He won't be that strong, but I don't know."
                        Line "-But otherwise, there are no anomalies here."
                        Line ""                              
                }
		WaveSpawn 
		{
			Where spawnbot
			Name "W2_01"
			
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			
			TotalCount 1									
			SpawnCount 1
			MaxActive 1
									
			TotalCurrency 100

                        FirstSpawnWarningSound "mvm/giant_heavy/giant_heavy_entrance.wav"
				
			TFBot
			{
				Template T_TFBot_Pyro_Dragonfury_Giant_Blume 
                                ClassIcon pyro_pyromancers_mask_dragonfury
                                Health 15000
                                Name "TK II Flower Dragon"
                                Scale 1.8
                                Tag bot_giant
                                Attributes MiniBoss
                                Attributes UseBossHealthBar
                                CustomEyeGlowColor "50 205 50" 
                                Item "The Wraith Wrap"
                                SpawnTemplate BossDeath
			        ItemAttributes
			        {
				        ItemName "Pyromancer's Mask"
                                        "item style override" 2
                                        "set item tint rgb" 255105180
			        }
			        FireInput                         
			        {                         
				        Target player                               
				        Action $SetProp$m_iszClassIcon                                               
				        Param pyro_dragonfury              
				        Delay 0                                 
				        Cooldown 0                               
				        Repeats 1                                    
				        IfHealthBelow 15000                                     
			        }        
			        FireInput                         
			        {                         
				        Target player                               
				        Action $SetProp$m_iszClassIcon                                               
				        Param pyro_dragon_fury_swordstone_spammer               
				        Delay 0                                 
				        Cooldown 0                               
				        Repeats 1                                    
				        IfHealthBelow 7500                                     
			        }        
         		        ChangeAttributes 
		                {
			                Delay 0.1
			                Repeats 1 
			                IfHealthBelow 7500
			                Name "Spammer"
		                }
			        EventChangeAttributes
			        {
				        Spammer
				        {
                                                Skill Expert  
                                                Tag bot_giant
                                                Attributes AlwaysCrit 
                                                Attributes MiniBoss 
                                                Attributes UseBossHealthBar
                                                CustomEyeGlowColor "184 56 59"
                                                UseCustomModel "models\bots\pyro_boss\bot_pyro_boss_gibby.mdl"
                                                Item "The Dragon's Fury"
                                                Item "The Wraith Wrap"
                                                Item "Water Waders"
                                                ItemAttributes                      
                                                {                      
                                                        ItemName "The Dragon's Fury"           
                                                        "mult_item_meter_charge_rate" 1.65
                                                        "airblast disabled" 0                                                              
                                                }         
                                        } 
				}
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W2_01"
			
			WaitBetweenSpawns 1.1
			WaitBeforeStarting 0.1
			
			TotalCount 15									
			SpawnCount 5
			MaxActive 15
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Shotgun_Pyro    
                                Item "Water Waders" 
                                Item "Jungle Wreath"
			}
		}	
		WaveSpawn 
		{
			Where spawnbot_flank
			Name "W2_02"
                        WaitForAllDead "W2_01"
			
			WaitBetweenSpawns 0.3
			WaitBeforeStarting 0.4
			
			TotalCount 1									
			SpawnCount 1
			MaxActive 1
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Pyro_Dragonfury_Giant_Blume                        
			}
		} 
		WaveSpawn 
		{
			Where spawnbot
			Name "W2_02"
                        WaitForAllDead "W2_01"
			
			WaitBetweenSpawns 0.2
			WaitBeforeStarting 0.3
			
			TotalCount 20								
			SpawnCount 10
			MaxActive 10
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Scout_Jumping_Sandman_Fix
			}
		}
		WaveSpawn
		{
			Name "W2_02_Tank"
                        WaitForAllDead "W2_01"
                        FirstSpawnMessage "{88133162}Tank starts with 15k (15,000) HP!"

			WaitBeforeStarting 0.9

			TotalCount 1
			SpawnCount 1

			TotalCurrency 400

			Tank
			{
				Health 15000
				Speed 80
                                Model "models/bots/boss_bot/boss_tank_color.mdl"
                                Name "Dark Red Tank"
                                SpawnTemplate ColorTank
				StartingPathTrackNode boss_path_1_1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn 
		{
			Where spawnbot_flank_short
			Name "W2_03"
                        WaitForAllDead "W2_02_Tank"
			
			WaitBetweenSpawns 0.1
			WaitBeforeStarting 0.2
			
			TotalCount 30							
			SpawnCount 10
			MaxActive 10
									
			TotalCurrency 100
				
			Squad
			{
				TFBot
				{
					Template T_TFBot_Detonator_Pyro
                                        Item "Jungle Wreath"
                                        Item "Water Waders"                                    
                                }
				TFBot
				{
					Template T_TFBot_Scout_SunStick_Fix
                                        Item "Jungle Wreath"                       
                                }
                        }
		} 
		WaveSpawn 
		{
			Where spawnbot
			Name "W2_03"
                        WaitForAllDead "W2_02_Tank"
			
			WaitBetweenSpawns 0.1
			WaitBeforeStarting 0.1
			
			TotalCount 2									
			SpawnCount 2
			MaxActive 2
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Pyro_Dragonfury_Giant_Blume                         
			}
		} 
		WaveSpawn 
		{
			Where spawnbot
			Name "W2_01_Support"
			
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			
			TotalCount 6									
			SpawnCount 2
			MaxActive 2

                        Support 1
									
			TotalCurrency 0
				
			TFBot
			{
				Template T_TFBot_Pyro_Armored                        
			}
		} 
		WaveSpawn 
		{
			Where spawnbot
			Name "W2_02_Support"
			
			WaitBetweenSpawns 7
			WaitBeforeStarting 1
			
			TotalCount 6									
			SpawnCount 2
			MaxActive 2

                        Support 1
									
			TotalCurrency 0
				
			TFBot
			{
				Template T_TFBot_Shotgun_Pyro    
                                Item "Water Waders" 
                                Item "Jungle Wreath"                        
			}
		} 
        } 

	Wave //Wave 3
	{
		CustomWaveNumber 3
		CustomMaxWaveNumber 5
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		Explanation 
		{
                        Line "{yellow}Information about this wave{reset}:"
                        Line ""
                        Line "-{red}Sergeant Scrap{reset} is his name."
                        Line "-This bot came from hell."
                        Line "-He'll come back one day."  
                        Line "-Yes. He is an anomaly, but not the main anomaly."  
                        Line "-because he is the only one. only his support is available."      
                        Line ""      
                }
		WaveSpawn 
		{
			Where spawnbot_chief
			Name "W3_01"
			
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			
			TotalCount 1									
			SpawnCount 1
			MaxActive 1
									
			TotalCurrency 300

                        FirstSpawnWarningSound "mvm/giant_heavy/giant_heavy_entrance.wav"
				
			TFBot
			{
				Template T_TFBot_Soldier_Boss_Scarp      
                                SpawnTemplate Sergeant_Scrap_Title_Card              
			}
		} 
 		WaveSpawn
		{
			Where spawnbot
			Name "W3_02_Support"
			
			WaitBetweenSpawns 6
			WaitBeforeStarting 5
			
			TotalCount 42
			SpawnCount 6
			MaxActive 8
					
                        Support 1
				 
			TotalCurrency 150
			
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Pyro_Detonator_Combo_Spammer  
                                        //Action Mobber 
				}
				TFBot
				{
					Template T_TFBot_Scout_Combo
                                        Item "Jungle Wreath" 
                                        Attributes AlwaysCrit
                                        //Action Mobber
				}
				TFBot
				{
					Template T_TFBot_Medic
                                        Item "Jungle Wreath"
                                        //Attributes AlwaysCrit
                                        //Action Mobber
				}
				TFBot
				{
					Template T_TFBot_Soldier   
                                        ClassIcon soldier_shovel_armored_yoovy                               
                                        Health 825                  
                                        Name "Armored Shovel"                                                                
                                        Scale 1.4                                                
                                        Skill Expert                                     
                                        WeaponRestrictions MeleeOnly                                                                  
                                        Item "TF_WEAPON_SHOVEL"                                          
                                        Item "The Crack Pot"                                
				}
				TFBot
				{
					Template T_TFBot_Soldier
                                        ClassIcon shotgun_reserve_armored                                    
                                        Health 725                                      
                                        Name "Armored Reserve Soldier"                                                      
                                        Scale 1.4                                    
                                        Skill Hard                           
                                        WeaponRestrictions SecondaryOnly                                          
                                        Item "The Reserve Shooter"                         
                                        Item "The Crack Pot"                                
				}
				TFBot
				{
					Template T_TFBot_Soldier
                                        ClassIcon soldier_armored                                        
                                        Health 625                               
                                        Name "Armored Soldier"                                    
                                        Scale 1.4                                                 
                                        Item "The Crack Pot"                                              
				}
				TFBot
				{
					Template T_TFBot_Scout_Jumping_Sandman_Fix
                                        Attributes AlwaysCrit 
                                        //Action Mobber
				}
			}
		}
	}
	Wave //Wave 4
	{
		CustomWaveNumber 4
		CustomMaxWaveNumber 5
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		Explanation 
		{
                        Line "{yellow}Information about this wave{reset}:"
                        Line ""
                        Line "-There are no anomalies here." 
                        Line "-So everything is normal here."
                        Line ""                       
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W4_01"
			
			WaitBetweenSpawns 6.5
			WaitBeforeStarting 0.2
			
			TotalCount 6					
			SpawnCount 1
			MaxActive 6
									
			TotalCurrency 150
				
			Squad
			{
				TFBot
				{
					Template T_TFBot_Pyro_Dragonfury_Giant_Blume
                                }
				TFBot
				{
					Template T_TFBot_Medic
                                        Item "Jungle Wreath"
                                }
   				TFBot
				{
					Template T_TFBot_Medic
                                        Item "Jungle Wreath"
                                }
   				TFBot
				{
					Template T_TFBot_Medic
                                        Item "Jungle Wreath"
                                }
         			TFBot
				{
					Template T_TFBot_Medic_Kritz_Armored
                                        Item "Lo-Fi Longwave"
                                        //Item "Blighted Beak"
                                }
   				TFBot
				{
					Template T_TFBot_Medic_Kritz_Armored
                                        Item "Lo-Fi Longwave"
                                        //Item "Blighted Beak"
                                }
 			}
		}
		WaveSpawn 
		{
			Where spawnbot_invasion
			Name "W4_01"
			
			WaitBetweenSpawns 0.6
			WaitBeforeStarting 0.7
			
			TotalCount 24
			SpawnCount 4
			MaxActive 12
									
			TotalCurrency 75

			TFBot
			{
				Template T_TFBot_Pyro_Detonator_Spammer          
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W4_02"
                        WaitForAllDead "W4_01"
			
			WaitBetweenSpawns 1.5
			WaitBeforeStarting 1.6
			
			TotalCount 6						
			SpawnCount 1
			MaxActive 6
									
			TotalCurrency 100
				
			Squad
			{
				TFBot
				{
					Template T_TFBot_Pyro_Dragonfury_Giant_Blume
                                }
				TFBot
				{
					Template T_TFBot_Medic
                                        Item "Jungle Wreath"
                                }
   				TFBot
				{
					Template T_TFBot_Medic
                                        Item "Jungle Wreath"
                                }
   				TFBot
				{
					Template T_TFBot_Medic
                                        Item "Jungle Wreath"
                                }
         			TFBot
				{
					Template T_TFBot_Medic_Kritz_Armored
                                        Item "Lo-Fi Longwave"
                                        //Item "Blighted Beak"
                                }
   				TFBot
				{
					Template T_TFBot_Medic_Kritz_Armored
                                        Item "Lo-Fi Longwave"
                                        //Item "Blighted Beak"
                                }
			}
		}
		WaveSpawn 
		{
			Where spawnbot_invasion
			Name "W4_02"
                        WaitForAllDead "W4_01"
			
			WaitBetweenSpawns 1.3
			WaitBeforeStarting 1.7
			
			TotalCount 8	
			SpawnCount 4
			MaxActive 4
									
			TotalCurrency 75

			TFBot
			{
				Template T_TFBot_Pyro_Detonator_Combo
                                //Attributes AlwaysCrit 
			}
		}
		WaveSpawn
		{
			Name "W4_03_Tank"
                        WaitForAllDead "W4_02"
                        FirstSpawnMessage "{88133162}Tank starts with 15k (15,000) HP!"

			WaitBeforeStarting 0.4

			TotalCount 1
			SpawnCount 1

			TotalCurrency 400

			Tank
			{
				Health 15000
				Speed 80
                                Model "models/bots/boss_bot/boss_tank_color.mdl"
                                Name "Dark Red Tank"
                                SpawnTemplate ColorTank
				StartingPathTrackNode boss_path_1_1
				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W4_03"
                        WaitForAllDead "W4_02"
			
			WaitBetweenSpawns 6.7
			WaitBeforeStarting 0.7
			
			TotalCount 2
			SpawnCount 2
			MaxActive 2
									
			TotalCurrency 75

			Squad
			{
				TFBot
				{
					Template T_TFBot_Pyro_Detonator_Combo_Spammer_Giant
                                        //Attributes AlwaysCrit
                                }
				TFBot
				{
					Template T_TFBot_Giant_Medic_Regen
                                        Item "Jungle Wreath"
                                }
			}
		}
		WaveSpawn 
		{
			Where spawnbot_invasion
			Name "W4_03"
                        WaitForAllDead "W4_02"
			
			WaitBetweenSpawns 3.7
			WaitBeforeStarting 0.1
			
			TotalCount 8
			SpawnCount 4
			MaxActive 4
									
			TotalCurrency 75

			TFBot
			{
				Template T_TFBot_Combo_Medic_Blume   
                                Skill Easy 
                                Attributes AlwaysCrit       
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W4_01_Support"
			
			WaitBetweenSpawns 0.8
			WaitBeforeStarting 0.9
			
			TotalCount 6	
			SpawnCount 2
			MaxActive 2

                        Support 1
									
			TotalCurrency 25

			TFBot
			{
				Template T_TFBot_Pyro_Detonator_Spammer
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W4_02_Support"
			
			WaitBetweenSpawns 0.9
			WaitBeforeStarting 1
			
			TotalCount 3	
			SpawnCount 1
			MaxActive 1

                        Support 1 
									
			TotalCurrency 25

			TFBot
			{
				Template T_TFBot_Pyro_Dragonfury_Armored_Blume 
                                Skill Easy
			}
		}
        } 

	Wave //Wave 5
	{
		CustomWaveNumber 5
		CustomMaxWaveNumber 5
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		Explanation 
		{
                        Line "{yellow}Information about this wave{reset}:"
                        Line ""
                        Line "-{red}Last Death {reset}& {red}Chief Shotgunner {reset}are their names."
                        Line "-They are dangerous; if they take damage, they switch weapons once their health drops."
                        Line "-So, the two of them go through several phases."
                        Line ""                                                 
                }
		WaveSpawn 
		{
			Where spawnbot
			Name "W5_01"
			
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			
			TotalCount 1									
			SpawnCount 1
			MaxActive 1
									
			TotalCurrency 125

                        FirstSpawnWarningSound "mvm/giant_heavy/giant_heavy_entrance.wav"
				
			TFBot
			{
				Template T_TFBot_Pyro_Miniboss_Last   
                                Item "Jungle Wreath"
                                Item "Water Waders"
    			        ItemAttributes
			        {
				        ItemName "Jungle Wreath"
                                        "set item tint rgb" 202020
			        }               
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W5_01"
			
			WaitBetweenSpawns 0.8
			WaitBeforeStarting 0.9
			
			TotalCount 6									
			SpawnCount 2
			MaxActive 2
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Pyro_Detonator_Spammer 
                                ClassIcon pyro_detonator_terror_spammer_armored
                                MaxVisionRange 2000
                                Name "Upgraded Spammer Detonator Pyro" 
                                Scale 1.4     
                                Attributes HoldFireUntilFullReload 
                                Item "Batter's Bracers"
                                ItemAttributes
                                {
                                        ItemName "The Detonator"
                                        "damage penalty" 0.54
                                }
			}
		}
		WaveSpawn 
		{
			Where spawnbot_flank_short
			Name "W5_01"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 1.1
			
			TotalCount 27									
			SpawnCount 9
			MaxActive 9
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Shotgun_Pyro  
                                Item "Jungle Wreath"
                                Item "Water Waders"
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W5_01"
			
			WaitBetweenSpawns 1.1
			WaitBeforeStarting 1.2
			
			TotalCount 2								
			SpawnCount 1
			MaxActive 2
									
			TotalCurrency 100
				
			TFBot
			{
				Template T_TFBot_Shotgun_Pyro_Giant 
                                Name "Giant Mosquito Trap" 
                                //Attributes HoldFireUntilFullReload //Not a good idea! Not at all! (O.O)
                                Item "The Hive Minder"
                                Item "The Filamental"
                                Item "Water Waders"
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W5_02"
                        WaitForAllDead "W5_01"
			
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			
			TotalCount 1									
			SpawnCount 1
			MaxActive 1
									
			TotalCurrency 75

                        FirstSpawnWarningSound "mvm/giant_heavy/giant_heavy_entrance.wav"
				
			TFBot
			{
				Template T_TFBot_Miniboss_Pyro_Shotgunner   
                                Item "Jungle Wreath"
                                Item "Water Waders"
    			        ItemAttributes
			        {
				        ItemName "Jungle Wreath"
                                        "set item tint rgb" 202020
			        }
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W5_02"
                        WaitForAllDead "W5_01"
			
			WaitBetweenSpawns 1
			WaitBeforeStarting 1.1
			
			TotalCount 4						
			SpawnCount 2
			MaxActive 4
									
			TotalCurrency 50
				
			TFBot
			{
				Template T_TFBot_Pyro_Armored
                                Attributes AlwaysCrit
			}
		}
		WaveSpawn 
		{
			Where spawnbot_flank_short
			Name "W5_02"
                        WaitForAllDead "W5_01"
			
			WaitBetweenSpawns 1.1
			WaitBeforeStarting 1.2
			
			TotalCount 10								
			SpawnCount 2
			MaxActive 5
									
			TotalCurrency 25
				
			TFBot
			{
				Template T_TFBot_Capper_Sun_Fire_Scout                      
			}
		}
		WaveSpawn 
		{
			Where spawnbot
			Name "W5_02"
                        WaitForAllDead "W5_01"
			
			WaitBetweenSpawns 1.1
			WaitBeforeStarting 1.2
			
			TotalCount 2								
			SpawnCount 1
			MaxActive 2
									
			TotalCurrency 25
				
			TFBot
			{
				Template T_TFBot_Combo_Medic_Giant_Blume                        
			}
		}
 		WaveSpawn
		{
			Where spawnbot
			Name "W5_01_Support"
			
			WaitBetweenSpawns 6.7
			WaitBeforeStarting 5.7
			
			TotalCount 52
			SpawnCount 4
			MaxActive 6
					
                        Support 1
				 
			TotalCurrency 0
			
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Pyro_Detonator_Combo_Spammer
                                }
				TFBot
				{
					Template T_TFBot_Combo_Medic_Blume
                                }
				TFBot
				{
					Template T_TFBot_Scout_Combo
                                        Item "Jungle Wreath"
                                }
				TFBot
				{
					Template T_TFBot_Soldier
                                        Item "The Crack Pot"
				}
			}
		}
        } 

	Wave //Wave 6
	{
		//CustomWaveNumber 6
		CustomMaxWaveNumber 0
                SpawnTemplate BossMusic
                Checkpoint Yes
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
		Explanation 
		{
                        Line "{yellow}Information about this wave{reset}:"
                        Line ""
			Line "-There is no information about this wave..."   
                    	Line "-So? Have fun fighting against {green}IT{reset}." 
                        Line "-I can't tell who that is. So? What kind of bot is that?"
                        Line "-It might be the anomaly we are looking for."
                        Line "-The support team consists solely of Giants."
                        Line ""
                }
		WaveSpawn
		{
			WaitBeforeStarting 0.1
			FirstSpawnOutput
		        {
				Target german_boy
				Action PlaySound
			}
		}
		WaveSpawn 
		{
			Where spawnbot_chief
			Name "W6_01"
			
			WaitBetweenSpawns 0.1
			WaitBeforeStarting 0.1
			
			TotalCount 1									
			SpawnCount 1
			MaxActive 1
									
			TotalCurrency 1

                        FirstSpawnWarningSound "mvm/giant_heavy/giant_heavy_entrance.wav"
				
			TFBot
			{
				Template T_TFBot_Pyro_Boss  
			}
		}
        } 
}