#base robot_standard.pop
#base robot_giant.pop
#base robot_gettysburg_meets.pop
WaveSchedule {
	StartingCurrency 4000
	RespawnWaveTime 5
	FixedRespawnWaveTime 1
	CanBotsAttackWhileInSpawnRoom 	No
	Advanced 1 
	AddSentryBusterWhenKillCountExceeds 18
	AddSentryBusterWhenDamageDealtExceeds 2500

	ExtraSpawnPoint [$SIGSEGV]
    {
        Name redspawn
        TeamNum 3 // 2 - Red team 3 - Robots
        X	"2143"                     
        Y	"57"                  
        Z	"-15"        
    }

	RandomPlacement {
		Count 8
		MinimumSeparation 500
		NavAreaFilter SNIPER_SPOT
			SentryGun {Level 1}
	}
	Templates {
	
		BombHolder {
			Class Demoman 
			ClassIcon dead
			Health 3000
			Item "The B.A.S.E. Jumper"
			WeaponRestrictions PrimaryOnly
			Attributes UseBossHealthBar
			Scale 1.01
			NoBombUpgrades 1	//baby box trigger no work
			CharacterAttributes {
				"move speed bonus" 0.0001
				"no_jump" 1
			}
			ItemAttributes {
				ItemName "The B.A.S.E. Jumper"
				"active health degen" -2
			}
		}	
		Buster { 
			Template T_TFBot_SentryBuster
			Skill Easy
			Attributes DisableDodge 
			Attributes IgnoreEnemies
		}
		B_Airblast_Pyro {
			Class Pyro
			Name "Airblast Pyro"
			ClassIcon pyro_reflect_daan
			Skill Expert
			Item "The Degreaser"
			Item "Traffic Cone"
			ItemAttributes {
				ItemName "The Degreaser"
				"mult airblast refire time" 0.75
				"airblast pushback scale" 2
				"lunchbox adds minicrits" 2
				"flame_speed" 1500
			}
		}
		G_Medic_QuickFix_Giant
		{
			Name "Giant Medic"
			Class Medic
			ClassIcon medic_giant
			Skill Expert
			Health 4500
			Attributes IgnoreEnemies
			Attributes SpawnWithFullCharge
			Attributes MiniBoss
			WeaponRestrictions SecondaryOnly
			Item "The Quick-Fix"
			Item "The Warsworn Helmet"
			Item "Das Metalmeatencasen"
			Tag bot_giant

			ItemAttributes
			{
				ItemName "The Quick-Fix"
				"heal rate bonus" 201
			}

			CharacterAttributes
			{
				"move speed bonus"	0.66
				"damage force reduction" 0
				"airblast vulnerability multiplier" 0
				"airblast vertical vulnerability multiplier" 0
			}
		}
		
		G_Medic_QuickFix_Regen_Giant
		{
			Name "Giant Regen Medic"
			Class Medic
			ClassIcon medic_giant
			Skill Expert
			Health 4500
			Attributes IgnoreEnemies
			Attributes MiniBoss
			WeaponRestrictions SecondaryOnly
			Item "The Quick-Fix"
			Item "The Surgeon's Stahlhelm"
			Tag bot_giant
			
			ItemAttributes
			{
				ItemName "The Quick-Fix"
				"heal rate bonus" 201
				"ubercharge rate bonus" 0.01
			}
			
			CharacterAttributes
			{
				"move speed bonus"	0.66
				"damage force reduction" 0
				"airblast vulnerability multiplier" 0
				"airblast vertical vulnerability multiplier" 0
				"health regen" 40
			}
		}
	}
	Mission { //Busters
		Objective SeekAndDestroy
		InitialCooldown 15
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 6
		CooldownTime 30
		DesiredCount 1
		RandomChoice {
			TFBot { Template Buster }
			TFBot { Template Buster }
			TFBot { Template Buster }
			TFBot { Template Buster }
			TFBot { Template Buster }
			TFBot { Template Buster }
			TFBot { Template Buster }
			TFBot {
				Template Buster
				Name "Buff Buster"
				Item "The Scotsman's Skullcutter"
				Item "The Buff Banner"
				Item "The Teufort Tooth Kicker"
				Item "The Shellmet"
				Attributes SpawnWithFullCharge
				ItemAttributes {
					ItemName "The Buff Banner"	
					"increase buff duration" 99
					"single wep deploy time increased" 0.01
				}
			}
			TFBot {
				Template Buster
				Name "Conch Buster"
				Item "The Scotsman's Skullcutter"
				Item "The Concheror"
				Item "Demo Kabuto"
				Attributes SpawnWithFullCharge
				ItemAttributes {
					ItemName "The Concheror"	
					"increase buff duration" 99
					"single wep deploy time increased" 0.01
				}
			}	
			TFBot {
				Template Buster
				Name "Battalion's Buster"
				Item "The Scotsman's Skullcutter"
				Item "The Battalion's Backup"
				Item "Demo Kabuto"
				Attributes SpawnWithFullCharge
				ItemAttributes {
					ItemName "The Battalion's Backup"	
					"increase buff duration" 99
					"single wep deploy time increased" 0.01
				}
			}	
			TFBot {
				Class Medic
				Name "Healing Buster"
				Health 2500
				WeaponRestrictions MeleeOnly
				Attributes DisableDodge
				Attributes MiniBoss
				Attributes SpawnWithFullCharge
				Item "The Amputator"
				Item "dec2014 Surgeon's Shako"
				CharacterAttributes {
					"move speed bonus" 3
					"head scale" 2.2
					"torso scale" 0.3
					"hand scale" 0
					"damage force reduction" 0.5
					"airblast vulnerability multiplier" 0.5
					"override footstep sound set" 7
					"cannot be backstabbed" 1
				}
				ItemAttributes {
					ItemName "The Amputator"
					"heal rate bonus" 3
				}
			}
			TFBot {
				Class Scout 
				Name "Bonk! Buster"
				Health 2200
				Attributes DisableDodge
				Attributes MiniBoss
				WeaponRestrictions MeleeOnly
				Item "Bonk! Atomic Punch"
				Item "Bonk Helm"
				ItemAttributes {
					ItemName "Bonk! Atomic Punch"
					"effect bar recharge rate increased" 0.5
					"single wep deploy time increased" 0.34
				}
				CharacterAttributes {
					"move speed bonus" 1.2
					"head scale" 2.5
					"torso scale" 0.3
					"damage force reduction" 0.5
					"airblast vulnerability multiplier" 0.5
					"override footstep sound set" 7
					"cannot be backstabbed" 1
				}
			}
			TFBot {
				Class Heavy
				Name "Cloaking Buster"
				Health 3000
				WeaponRestrictions MeleeOnly
				Attributes MiniBoss
				Attributes DisableDodge
				Attributes IgnoreEnemies
				Item "Fishcake"
				CharacterAttributes {
					"move speed bonus" 3
					"head scale" 2.2
					"torso scale" 0.3
					"hand scale" 0
					"damage force reduction" 0.5
					"airblast vulnerability multiplier" 0.5
					"override footstep sound set" 7
					"cannot be backstabbed" 1
					"gesture speed increase" 1.5
					"alt-fire disabled" 1
				}
				ItemAttributes {
					ItemName "Fishcake"
					"item_meter_charge_rate" 8
					"force weapon switch" 1
					"alt-fire disabled" 1
					"single wep deploy time increased" 0.34
				//	"taunt_attr_player_invis_percent" 0.95 works perfectly with sigs model fix, floating legless buster without it. 
					"taunt_attr_player_invis_percent" 1
				}
			}
			TFBot {
				Class Heavy
				Name "Defective Sentry Buster"
				Health 3000
				WeaponRestrictions MeleeOnly
				Attributes MiniBoss
				Attributes DisableDodge
				Attributes IgnoreEnemies
				Item "Fishcake"
				CharacterAttributes {
					"move speed bonus" 3
					"torso scale" -2
					"hand scale" 0
					"voice pitch scale" 0
					"damage force reduction" 0.5
					"airblast vulnerability multiplier" 0.5
					"override footstep sound set" 7
					"cannot be backstabbed" 1
					"gesture speed increase" 1.5
					"alt-fire disabled" 1
				}
				ItemAttributes {
					ItemName "Fishcake"
					"item_meter_charge_rate" 8
					"force weapon switch" 1
					"single wep deploy time increased" 0.34
				}
			}
			TFBot {
				Template T_TFBot_SentryBuster
				Name "Unstable Buster"
				Item "The Bomber Knight"
				Item "The Loose Cannon"
				WeaponRestrictions PrimaryOnly
				ItemAttributes {
					ItemName "The Loose Cannon"
					"taunt attack time" 420
					"head scale" 2.2
					"torso scale" 0.3
					"use large smoke explosion" 1
					"blast radius increased" 4
					"auto fires full clip" 1
					"fire rate penalty" 10
					"damage bonus" 5
					"dmg pierces resists absorbs" 1
					"fuse bonus" 5
					"blast dmg to self increased" 420
				}
			}
			TFBot {
				Class Pyro
				Name "Sentry Smasher"
				Skill Expert
				Health 2700
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Attributes MiniBoss
				Item "The Homewrecker"
				Item "Respectless Robo-Glove"
				CharacterAttributes {
					"move speed bonus" 2
					"head scale" 2.2
					"torso scale" 0.3
					"voice pitch scale" 0
					"damage force reduction" 0.5
					"airblast vulnerability multiplier" 0.5
					"override footstep sound set" 7
					"cannot be backstabbed" 1
					"gesture speed increase" 421
				}
				ItemAttributes {
					ItemName "The Homewrecker"
					"fire rate bonus" 0.25
					"dmg penalty vs players" 0
					"dmg bonus vs buildings" 3
				}
			}

			TFBot
			{
				Name "Quick Buster"
				Class Scout
				Template T_TFBot_SentryBuster
				Health 1500
				Item eotl_demopants
				Attributes IgnoreEnemies
				Scale 1.25

				CharacterAttributes
				{
					"damage force reduction" 0
					"airblast vulnerability multiplier" 0
					"airblast vertical vulnerability multiplier" 0
					"rage giving scale" 0.1
					"gesture speed increase" 2
					"voice pitch scale" 1.25
				}
			}

			TFBot
            {
                Name "Funny Buster"
                Template T_TFBot_SentryBuster
                Class Heavyweapons
                Health 2000
                Scale 1.5
                Attributes AlwaysCrit
                Attributes AlwaysFireWeapon
                Item "The Holiday Punch"
                Item "The All-Father"
                Item "The B.M.O.C."

                CharacterAttributes
                {
                    "damage force reduction" 0
                    "airblast vulnerability multiplier" 0
                    "airblast vertical vulnerability multiplier" 0
                    "rage giving scale" 0.1
                    "torso scale" 0
                    "head scale" 2.45
					"move speed bonus" 3
                }
            }

			TFBot
			{
				Name "Pow! Buster"
				Template T_TFBot_SentryBuster
				Class Heavyweapons
				Health 2000
				Scale 1.5
				Item "War Head"
				Item "eotl_demopants"
				Item "Upgradeable TF_WEAPON_FISTS"
				Attributes DisableDodge

				CharacterAttributes
				{
					"move speed bonus" 3
					"damage force reduction" 0
					"airblast vulnerability multiplier" 0
					"airblast vertical vulnerability multiplier" 0
					"rage giving scale" 0.1
					"torso scale" 0
					"head scale" 2.25
					"voice pitch scale" 1.33
				}
			}
		}
	}
	Mission { //Snipers, 40 second delay + health drain to ensure everything spawns smoothly
		Objective Sniper
		InitialCooldown 20
		Where spawnbot
		BeginAtWave 1
		CooldownTime 9999
		RunForThisManyWaves 1
		DesiredCount 2
		
		TFBot {
			Template T_TFBot_Sniper_Sydney_Sleeper
			ClassIcon sniper
			Item "The Bushwacka"
			CharacterAttributes {
				"health drain" -5
				"deploy time increased" 0.01
			}
		}
	}
	Mission {
		Objective Sniper
		InitialCooldown 60
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 9999
		DesiredCount 2
		
		TFBot {
			Class Soldier
			Name "Charged Mangler Soldier"
			Item "The Cow Mangler 5000"
			Item "The Equalizer"
			ClassIcon sniper
			Skill Normal
			ItemAttributes {
				ItemName "The Cow Mangler 5000"
				"faster reload rate" .01
				"set item tint rgb" 1048732
			}
			CharacterAttributes {
				"health drain" -10
				"deploy time increased" 0.01
			}
		}
	}
	Mission {
		Objective Sniper
		InitialCooldown 100
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 9999
		DesiredCount 2
		
		TFBot {
			Template B_Airblast_Pyro
			Item "The Back Scratcher"
			ClassIcon sniper
			CharacterAttributes {
				"health drain" -8 
				"deploy time increased" 0.01
			}
		}
	}
	Mission {
		Objective Sniper
		InitialCooldown 140
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 9999
		DesiredCount 2
		
		TFBot {
            Class Engineer
            Name "Short Circuit Engineer"
			ClassIcon sniper
            Skill Expert
			MaxVisionRange 256
            Item "The Short Circuit"
             ItemAttributes {
             ItemName "TF_WEAPON_SHOTGUN_PRIMARY"
             "override projectile type" 27
            }
            ItemAttributes {
            ItemName "The Short Circuit"
            "is_passive_weapon" 1
			"hand scale" 0
			"active health degen" -5
            }
        }
	}
	Mission {
		Objective Sniper
		InitialCooldown 180
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 9999
		DesiredCount 2
		
		TFBot {
			Class Demoman
			Skill Expert 
			Name "Hybrid Samurai"
			Attributes HoldFireUntilFullReload
			ClassIcon sniper
			MaxVisionRange 1500
			Item "The Loch-N-Load"
			Item "The Splendid Screen"
			Item "The Half-Zatoichi"
			Item "Demo Kabuto"
			Item "Bushi-Dou"
		//	Item "Shin Shredders" stretches
			CharacterAttributes {
				"charge recharge rate increased" 1.5
				"deploy time decreased" 0.1
				"gesture speed increase" 2
				"full charge turn control" 50
			}
			ItemAttributes {
				ItemName "The Half-Zatoichi"
				"critboost on kill" 6
				"honorbound" 0
				"Attack not cancel charge" 1
			}
			ItemAttributes {
				ItemName "The Loch-N-Load"
				"Projectile speed increased" 1
				"no self blast dmg" 2
			}
		}
	}
	Mission {
		Objective Sniper
		InitialCooldown 220
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 9999
		DesiredCount 2
		
		TFBot {
			Class Sniper
			Skill Hard
			Name "Armored Piss Sniper"
			Health 650
			Scale 1.4
			Item "The Sydney Sleeper"
			Item "The Shahanshah"
			Item "Corona Australis"
			ClassIcon sniper
			ItemAttributes {
				ItemName "The Sydney Sleeper"
				"explosive sniper shot" 3
				"damage penalty" 0.25
				"sniper fires tracer HIDDEN" 1
				"faster reload rate" 0.5
				"sniper no headshots" 3 //classic tracer
			}
			ItemAttributes {
				ItemName "Corona Australis"
				"set item tint rgb" 16773419
			}
		}
	}
	Mission {
		Objective Sniper
		InitialCooldown 260
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 9999
		DesiredCount 2
		
		TFBot {
			Template B_Airblast_Pyro
			Item "The Back Scratcher"
			ClassIcon sniper
			CharacterAttributes {
				"health drain" -8 
				"deploy time increased" 0.01
			}
		}
	}
	Mission {
		Objective Sniper
		InitialCooldown 340
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 9999
		DesiredCount 1
		
		Squad
		{
			TFBot
			{
				Class Sniper
				ClassIcon sniper
				Skill Expert
				Attributes AlwaysCrit
			}

			TFBot
			{
				Template G_Medic_Vac_Bullet
				ClassIcon sniper
			}
		}
	}
	Mission {
		Objective Sniper
		InitialCooldown 380
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 9999
		DesiredCount 1
		
		Squad
		{
			TFBot
			{
				Class Sniper
				ClassIcon sniper
				Skill Expert
				Attributes AlwaysCrit
			}

			TFBot
			{
				Template G_Medic_Vac_Bullet
				ClassIcon sniper
			}
		}
	}
	Mission {
		Objective Sniper
		InitialCooldown 420 //nice
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 9999
		DesiredCount 1
		
		Squad
		{
			TFBot
			{
				Class Sniper
				ClassIcon sniper
				Skill Expert
				Attributes AlwaysCrit
			}

			TFBot
			{
				Template G_Medic_Vac_Bullet
				ClassIcon sniper
			}
		}
	}
	Mission {
		Objective Sniper
		InitialCooldown 460
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 1
		CooldownTime 40
		DesiredCount 2
		
		Squad
		{
			TFBot
			{
				Template T_TFBot_Sniper_Sydney_Sleeper
				Item "Darwin's Danger Shield"
				ClassIcon sniper
			}

			TFBot
			{
				Template G_Medic_Overheal
				ClassIcon sniper
				ItemAttributes
				{
					ItemName gentlemanne_medigun_coffinnail
					"overheal expert" 4
				}
			}
		}
	}
	Mission { //Spies
		Objective Spy
		
		InitialCooldown 20
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 2
		CooldownTime 60
		DesiredCount 2
		RandomChoice { //spies have announcer callouts and wavebar is disgusting enough as is
			TFBot { 
				Class Spy
				Skill Expert 
				Item "The Wanga Prick"
				Name "Disruptor Spy"
				ItemAttributes {
					ItemName "The Wanga Prick"
					"damage all connected" 1 //third degree stat
					"dmg penalty vs players" 0.1 //stabs don't instakill
					"subtract victim medigun charge on hit" 50
					"melee attack rate bonus" 4 //slow swings to avoid -50 uber butterknifes
					"mult decloak rate" 0.01 
					"voice pitch scale" 0
				}
			}
			TFBot {
				Class Spy
				Skill Expert
				Item "The Big Earner"
				Item "The Diamondback"
				Item "Charmer's Chapeau"
				CharacterAttributes { "critboost on kill" 3 }
				ItemAttributes {
					ItemName "The Diamondback"
					"auto fires when full" 1
					"auto fires full clip" 1
				}
			}
			TFBot
			{
				Class Spy
				Skill Expert
				Item "Upgradeable TF_WEAPON_REVOLVER"
				Item "Upgradeable TF_WEAPON_KNIFE"
				Item "Graybanns"
				Item "The Rogue's Brogues"
				Item "Backbiter's Billycock"

				ItemAttributes
				{
					ItemName "Upgradeable TF_WEAPON_REVOLVER"
					"auto fires when full" 1
					"auto fires full clip" 1
					"reload time increased" 1.5
				}
			}
			
			TFBot
			{
				Name "Saharan Spy"
				Class Spy
				Skill Expert
				Item "L'Etranger"
				Item "Your Eternal Reward"
				Item "The Familiar Fez"
				Item "The Rogue's Brogues"

				CharacterAttributes
				{
					"sapper damage penalty" 0
					"sapper degenerates buildings" 0.5
					"voice pitch scale" 0
				}
			}

			TFBot
			{
				Name "Spy-cicle"
				Class Spy
				Skill Expert
				Item "The Spy-cicle"

				ItemAttributes
				{
					ItemName "The Spy-cicle"
					"silent killer" 1
				}
			}
		}
	}

	Mission { //Engies
		Objective Engineer
		Where spawnbot_tank
		DesiredCount 1
		BeginAtWave 1
		RunForThisManyWaves 1
		InitialCooldown 0
		CooldownTime 52

		RandomChoice
		{
			TFBot
			{
				Template G_Engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Health 600
			}

			TFBot
			{
				Template G_Engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Health 600
			}

			TFBot
			{
				Template G_Engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Health 600
			}

			TFBot
			{
				Template G_Engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Health 600
			}

			TFBot
			{
				Template G_Engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Health 600
			}

			TFBot
			{
				Template G_Engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Health 600
			}

			TFBot
			{
				Template G_Engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Health 600
			}

			TFBot
			{
				Template G_Engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Health 600
			}

			TFBot
			{
				Template G_Engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
				Health 600
			}

			TFBot
			{
				Template G_Engineer_Giant
				ClassIcon engineer
				WeaponRestrictions MeleeOnly
				Attributes AlwaysFireWeapon
			}
		}
	}
	PeriodicSpawn { //Engies cont.
		When 90
		Where Anywhere
		Where Behind
		Where Ahead
		
		TFBot {				
		Template G_Engineer
		WeaponRestrictions MeleeOnly
		Attributes AlwaysFireWeapon
		Health 600
		Item "The Rescue Ranger"
		}
	}
	Wave {
		StartWaveOutput {
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput {
			Target wave_finished_relay
			Action Trigger
		}

		Explanation [$SIGSEGV]
        {
            Line "{blue}There is no bomb in this mission, bots will actively hunt players down."
			Line "{blue}The wave is timed, if the timer reaches 0 before wave completion, RED team loses."
            Line "{red}There are friendly Sentry Guns scattered across the map to assist you."
        }

		WaveSpawn {
			Where spawnbot_mobberwave
			MaxActive 1
			SpawnCount 1
			Support Limited

            OnKilledOutput
            {
                Target boss_deploy_relay
                Action trigger
            }

			Squad { TFBot { Template BombHolder } }
		}
		WaveSpawn {
			Name "ItBegins"
			Where spawnbot_tank
			TotalCount 2
			MaxActive 2
			SpawnCount 2   
			WaitBeforeStarting 1
			Squad {
				TFBot {Template T_TFBot_Soldier_BurstFire Action Mobber}
				TFBot {Template G_Medic_QuickFix_Giant }
			}
		}
        WaveSpawn
        {
            Name ItBegins
            TotalCount 1
            SpawnCount 1

            WaitBeforeStarting 3

            Tank
			{
				Name tankboss_fire
				Health 10000
				Speed 75
				StartingPathTrackNode tank_path_fire_start

                DisableSmokestack 1

				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
        }
		WaveSpawn {
			Name "ItBegins"
			Where spawnbot
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBetweenSpawns 1
			
			RandomChoice {
				Tank {
					Name "tankboss"
					Health 10000
					Speed 73
					StartingPathTrackNode "tank_path_b_1"
                    DisableSmokestack 1
					OnBombDroppedOutput {
						Target boss_deploy_relay
						Action Trigger
					}
				}
				Tank {
					Name "tankboss"
					Health 11000
					Speed 71
					StartingPathTrackNode "tank_path_b_1"
                    DisableSmokestack 1
					OnBombDroppedOutput {
						Target boss_deploy_relay
						Action Trigger
					}
				}
				Tank {
					Name "tankboss"
					Health 12000
					Speed 69 //nice
					StartingPathTrackNode "tank_path_b_1"
                    DisableSmokestack 1
					OnBombDroppedOutput {
						Target boss_deploy_relay
						Action Trigger
					}
				}
			}
		}
		WaveSpawn {
			Name "part1a"
			Where spawnbot
			Where spawnbot_alley
			TotalCount 72
			MaxActive 12
			SpawnCount 4
			WaitBetweenSpawns 1
			TotalCurrency 500
			WaitForAllDead "ItBegins"
			Squad {
				TFBot {
					Class Demoman
					Attributes AlwaysCrit
					Action Mobber
				}
				TFBot {
					Class Demoman
					Skill Expert
					WeaponRestrictions SecondaryOnly
					Action Mobber
					ItemAttributes {
						ItemName "TF_WEAPON_GRENADELAUNCHER"
						"is_passive_weapon" 1
						"override projectile type" 27
					}
					ItemAttributes {
						ItemName "TF_WEAPON_PIPEBOMBLAUNCHER"
						"stickybomb charge rate" 0.001
						"max pipebombs decreased" -6
						"Projectile range increased" 0.35
					}
				}
			}
		}
		WaveSpawn {
			Name "part1a1"
			Where spawnbot_tank
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			TotalCurrency 300
			WaitBeforeStarting 15
			WaitBetweenSpawns 15
			WaitForAllDead "ItBegins"
			TFBot {
				Class Heavyweapons
				Skill Expert
				WeaponRestrictions MeleeOnly
				Name "Proto-Punch"
				ClassIcon heavy_chief
				Health 4500
				Item "War Head"
				Item "Fists of Steel"
				Attributes MiniBoss
				Action Mobber
				ItemAttributes {
					ItemName "Fists of Steel"
					"fire rate bonus" 0.6
					"damage bonus" 5
				}
				CharacterAttributes {
					"move speed bonus"	0.4
					"health regen"	150
					"damage force reduction" 0
					"airblast vulnerability multiplier" 0
					"override footstep sound set" 2
					"airblast vertical vulnerability multiplier" 0
					"rage giving scale" 0.1
					"gesture speed increase" 3
				}
			}
		}
		WaveSpawn {
			Name "part1a2"
			Where spawnbot_tank
			TotalCount 3
			MaxActive 3
			SpawnCount 3
			TotalCurrency 300
			WaitBeforeStarting 5
			WaitForAllDead "part1a1"
			Squad
			{
				TFBot
				{
					Template G_Heavy_Deflector_Giant
					Action Mobber
					Attributes AlwaysCrit
                    UseMeleeThreatPrioritization 1

					FireWeapon [$SIGSEGV] //Periodically fires weapon
					{
						Delay 1 //Time before the first fire input starts (Default: 10)
						Cooldown 0 //Time between each fire input (Default: 10)
						Repeats 0 //How many times should bot use the fire input in total (Default: 0 - Infinite)
						IfSeeTarget 0 //When set to 1, this task activates only when the bot can see the target player (Default 0 - Always activate)
						Duration 0.1 //How long should the button be pressed (Default: 0.1)
						Type "Secondary" // Type of fire input, Possible values:
					}
				}

				TFBot
				{
					Template G_Medic_QuickFix_Giant
				}

				TFBot
				{
					Template G_Medic_QuickFix_Regen_Giant
				}
			}
		}
		WaveSpawn {
			Name "part2a"
			Where spawnbot_alley
			Where spawnbot_tank
			TotalCount 40
			SpawnCount 1
			MaxActive 10
			WaitForAllDead "part1a2"
            WaitBeforeStarting 4

			TotalCurrency 50
			
			RandomChoice
			{
				TFBot {
					Class Pyro
					Skill Expert
					Name "Explosive Gas Pyro"
					ClassIcon pyro_flare
					WeaponRestrictions SecondaryOnly
					Item "Fear Monger"
					Item "dec2014 Pyromancer's Raiments"
					Item "The Gas Passer"
					Action Mobber
					ItemAttributes {
						ItemName "The Gas Passer"
						"dmg penalty vs players" 0.3
						"explode_on_ignite" 1
						"item_meter_charge_rate" 4
						"disable weapon switch" 1
					}
				}
				TFBot
				{
					Template G_Pyro_Flare
					Action Mobber
				}
				TFBot
				{
					Template G_Pyro_Flare
					Action Mobber
				}
				TFBot
				{
					Template G_Pyro_Flare
					Action Mobber
				}
				TFBot
				{
					Template G_Pyro_Flare
					Action Mobber
				}
				TFBot
				{
					Template G_Pyro_Flare
					Action Mobber
				}
				TFBot
				{
					Template G_Pyro_Flare
					Action Mobber
				}

				TFBot
				{
					Template G_Pyro_Flare
					Action Mobber
				}

				TFBot
				{
					Template G_Pyro_Flare
					Action Mobber
				}

				TFBot
				{
					Template T_TFBot_ScorchShot_FastShot
					Action Mobber
				}

				TFBot
				{
					Template T_TFBot_ScorchShot_FastShot
					Action Mobber
				}

				TFBot
				{
					Template T_TFBot_ScorchShot
					Action Mobber
				}

				TFBot
				{
					Template T_TFBot_ScorchShot
					Action Mobber
				}
			}
		}
		WaveSpawn {
			Name "part2a"
			Where spawnbot_alley
			TotalCount 12
			SpawnCount 2
			MaxActive 5
			WaitBetweenSpawns 9
			WaitBeforeStarting 6

			WaitForAllDead "part1a2"

			TotalCurrency 50
			
			TFBot 
			{ 
				Template T_TFBot_Giant_Scout_Fast 
				Item "Sun-on-a-Stick"
				ClassIcon scout_giant
				Skill Expert
				Action Mobber
			}
		}
		WaveSpawn {
			Name g1a
			TotalCount 1
			SpawnCount 1

			WaitBeforeStarting 10
			WaitForAllDead part2a

			Tank
			{
				Name tankboss_melee
				Health 20000
				Speed 65
				StartingPathTrackNode tank_path_melee_start

				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		WaveSpawn {
			Name g1b
			Where spawnbot_alley
			Where spawnbot_tank
			TotalCount 24
			SpawnCount 2
			MaxActive 7

			WaitForAllSpawned g1a
			WaitBetweenSpawns 3

			TotalCurrency 50

			Squad
			{
				TFBot
				{
					Name "Airborne Armament Soldier"
                    Class Soldier
                    Skill Expert
                    Item "The Liberty Launcher"
                    Item "The Reserve Shooter"
					Attributes HoldFireUntilFullReload
					UseBestWeapon 1
					Action Mobber
                    
                    ItemAttributes
                    {
                        ItemName "The Liberty Launcher"
                        "damage causes airblast" 1
                        "damage penalty" 0.5
                        "fire rate bonus" 0
                        "clip size upgrade atomic" -3
                        "blast radius increased" 1.25
                        "projectile spread angle penalty" 1
                    }

                    CharacterAttributes
                    {
                        "deploy time decreased" 0.5
                    }
				}

				TFBot
				{
					Template G_Medic_QuickUber
					ClassIcon medic
				}
			}
		}
		WaveSpawn {
			Name g1b
			Where spawnbot_jeep
			TotalCount 30
			SpawnCount 3
			MaxActive 7

			WaitForAllSpawned g1a
			WaitBeforeStarting 4

			TFBot
			{
				Template G_Spy_YER

                CharacterAttributes
                {
                    "health regen" -5
                }
			}
		}
		WaveSpawn {
			Name g1c
			Where spawnbot_alley
			Where spawnbot_tank
			RandomSpawn 1
			TotalCount 99
			SpawnCount 2
			MaxActive 11

			WaitForAllDead g1b
			WaitBeforeStarting 6
			WaitBetweenSpawns 0.75

			TotalCurrency 100

			RandomChoice
			{
				TFBot
				{
					Name "Part Time Butcher"
					Class Scout
					Skill Hard
					Item "The Force-a-Nature"
					Item "The Flying Guillotine"
					Item "Horrific Headsplitter"
					UseBestWeapon 1
					Action Mobber

					CharacterAttributes
					{
						"effect bar recharge rate increased" 0.67
					}
				}

				TFBot
				{
					Name "Part Time Milkman"
					Class Scout
					Skill Normal
					Item "The Shortstop"
					Item "Mad Milk"
					Item "The Milkman"
					UseBestWeapon 1
					Action Mobber

					CharacterAttributes
					{
						"effect bar recharge rate increased" 0.33
					}
				}

				TFBot
				{
					Name "Part Time Urologist"
					Class Sniper
					ClassIcon sniper_jarate
					Skill Normal
					Item "The Huntsman"
					Item "Jarate"
					UseBestWeapon 1
					Action Mobber

					CharacterAttributes
					{
						"effect bar recharge rate increased" 0.33
					}
					ItemAttributes {
						ItemName "Jarate"
						"force weapon switch" 1
					}
				}
			}
		}
		WaveSpawn {
			Name g1d1
			Where spawnbot_alley
			TotalCount 4
			SpawnCount 4

			WaitForAllDead g1b
			WaitBeforeStarting 3

			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Template G_Demoknight_Persian_Giant
				}

				TFBot
				{
					Template G_Medic_Uber
					ClassIcon medic
				}

				TFBot
				{
					Template G_Medic_Vac_Fire_Giant
					ClassIcon medic_giant
				}

				TFBot
				{
					Template G_Medic_Vac_Fire_Giant
					ClassIcon medic_giant
				}
			}
		}
		WaveSpawn {
			Name g1d2
			Where spawnbot_alley
			TotalCount 4
			SpawnCount 4

			WaitForAllSpawned g1d1
			WaitBeforeStarting 25

			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Template G_Demoknight_Persian_Giant
				}

				TFBot
				{
					Template G_Medic_Uber
					ClassIcon medic
				}

				TFBot
				{
					Template G_Medic_Vac_Blast_Giant
					ClassIcon medic_giant
				}

				TFBot
				{
					Template G_Medic_Vac_Blast_Giant
					ClassIcon medic_giant
				}
			}
		}
		WaveSpawn {
			Name g1d3
			Where spawnbot_alley
			TotalCount 4
			SpawnCount 4

			WaitForAllDead g1d1
			WaitForAllSpawned g1d2
			WaitBeforeStarting 25

			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Template G_Demoknight_Persian_Giant
				}

				TFBot
				{
					Template G_Medic_Uber
					ClassIcon medic
				}

				TFBot
				{
					Template G_Medic_Vac_Bullet_Giant
					ClassIcon medic_giant
				}

				TFBot
				{
					Template G_Medic_Vac_Bullet_Giant
					ClassIcon medic_giant
				}
			}
		}
		WaveSpawn {
			Name g1c
			Where spawnbot_alley
			TotalCount 4
			SpawnCount 4

			WaitForAllDead g1d2
			WaitForAllSpawned g1d3
			WaitBeforeStarting 25

			TotalCurrency 50
			
			Squad
			{
				TFBot
				{
					Template G_Demoknight_Persian_Giant
				}

				TFBot
				{
					Template G_Medic_Vac_Bullet_Giant
					ClassIcon medic_giant
				}

				TFBot
				{
					Template G_Medic_Vac_Blast_Giant
					ClassIcon medic_giant
				}

				TFBot
				{
					Template G_Medic_Vac_Fire_Giant
					ClassIcon medic_giant
				}
			}
		}
		WaveSpawn {
			Name g1e
			Where spawnbot_alley
			TotalCount 15
			SpawnCount 3
			MaxActive 6

			WaitForAllDead g1c
			WaitBeforeStarting 7.5
			WaitBetweenSpawns 12

			TotalCurrency 50

			Squad
			{
				TFBot
				{
					Name "Giant Reverse Blast Soldier"
					Class Soldier
					Health 4200
					Skill Expert
					Item "The Liberty Launcher"
					Item "Jumper's Jeepcap"
					ClassIcon soldier_burstfire
					Attributes MiniBoss
					Attributes HoldFireUntilFullReload
					Tag bot_giant
					Action Mobber
                    UseMeleeThreatPrioritization 1

					ItemAttributes
					{
						ItemName "The Liberty Launcher"
						"damage causes airblast" 1
						"damage penalty" 0.2
						"fire rate bonus" 0
						"clip size upgrade atomic" -2
						"faster reload rate" 0.2
						"projectile spread angle penalty" 2
                        "projectile speed increased" 1
						"projectile speed decreased" 0.5
						"apply z velocity on damage" -1150
					}
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"override footstep sound set" 3
						"damage force reduction" 0.2
						"airblast vulnerability multiplier" 0.2
						"airblast vertical vulnerability multiplier" 0.5
						"dmg bonus vs buildings" 4

					}
				}

				TFBot
				{
					Template G_Medic_BigHeal
					Attributes SpawnWithFullCharge
					ClassIcon medic
				}

				TFBot
				{
					Template G_Medic_BigHeal
					Attributes SpawnWithFullCharge
					ClassIcon medic
				}
			}
		}
		WaveSpawn {
			Name g1e
			Where spawnbot_left
			TotalCount 40
			SpawnCount 2
			MaxActive 7

			WaitForAllDead g1c
			WaitBeforeStarting 9
			WaitBetweenSpawns 2

			TotalCurrency 50

			RandomChoice
			{
				TFBot
				{
					Template G_Heavy_Natascha
					ClassIcon heavy
					Action Mobber
				}

				TFBot
				{
					Template G_Heavy_Natascha
					ClassIcon heavy
					Action Mobber
				}

				TFBot
				{
					Template G_Heavy_Natascha
					ClassIcon heavy
					Action Mobber
				}

				TFBot
				{
					Template G_Heavy_Natascha
					ClassIcon heavy
					Action Mobber
				}

				TFBot
				{
					Template G_Heavy_Natascha
					ClassIcon heavy
					Skill Expert
					Action Mobber
				}

				TFBot
				{
					Template G_Heavy_Natascha
					ClassIcon heavy
					Skill Expert
					Action Mobber
				}

				TFBot
                {
                    Name "Bomb Squad Heavy"
                    Class Heavy
                    Skill Expert
                    Item "Scotch Bonnet"
                    Item "Iron Curtain"
					Action Mobber
                    ExtAttr TargetStickies
                }

				TFBot
				{
					Class Heavy
					Skill Expert
					Attributes AlwaysCrit
					Item "Tomislav"
					Item "Storm Spirit's Jolly Hat"
					Action Mobber
                    UseMeleeThreatPrioritization 1
				}
			}
		}

        WaveSpawn
        {
            Support 1
            MaxActive 0
            
            TFBot
            {
                Class Scout
                ClassIcon hellmet_red
            }
        }

		WaveSpawn //all these guys have massive crit dmg resistance and regen otherwise they just do nothing. basically they bought some upgrades.
		{
			Where redspawn
			SpawnCount 1
			MaxActive 1
			Support 1

			WaitBeforeStarting 3
			WaitBetweenSpawnsAfterDeath 10
			
			RandomChoice
			{
				TFBot
				{
                    Template G_Sniper_Huntsman_Bleed
                    ClassIcon hellmet_red
					//Action Mobber

					ItemAttributes
					{
						ItemName "The Fortified Compound"
						"dmg penalty vs players" 5
						"projectile penetration" 1
						"bleeding duration" 10
					}

					CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "health regen" 10
						"damage force reduction" 0.5
                    }

					AddCond [$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 90
						Type Medic
					}	
				}

				TFBot
				{
					Template T_TFBot_Soldier_Extended_Concheror
                    ClassIcon hellmet_red
                    Skill Expert
					//Action Mobber
                    Item "The Black Box"
                    Attributes HoldFireUntilFullReload

                    CharacterAttributes
                    {
                        "increase buff duration" 101
                        "deploy time decreased" 0.5
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "health regen" 10
						"damage force reduction" 0.5
                    }

					AddCond	[$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 125
						Type Medic
					}
				}

                TFBot
                {
                    Template G_Soldier_Charged
                    ClassIcon hellmet_red

                    CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "health regen" 10
						"damage force reduction" 0.5
                    }
                    
                    AddCond	[$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 125
						Type Medic
					}
                }

				TFBot
				{
					Template G_Pyro_Deflect
                    ClassIcon hellmet_red
					Item "The Scorch Shot"
					UseBestWeapon 1
					//Action Mobber

                    CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "health regen" 10
						airblast_turn_projectile_to_ammo 1
						"damage force reduction" 0.5
                    }

					AddCond	[$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 100
						Type Medic
					}
				}

                TFBot
                {
                    Template G_Pyro_Afterburn
                    ClassIcon hellmet_red
                    //Action Mobber

					ItemAttributes
					{
						ItemName "The Nostromo Napalmer"
						"weapon burn dmg increased" 4
						flame_drag 8
					}

                    CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "health regen" 10
						"damage force reduction" 0.5
                    }

					AddCond	[$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 100
						Type Medic
					}
                }

                TFBot
                {
                    Template G_Pyro_Fury
                    ClassIcon hellmet_red
                    //Action Mobber

                    CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "health regen" 10
						"damage force reduction" 0.5
                    }

					AddCond	[$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 100
						Type Medic
					}
                }

				TFBot
				{
                    Name "Rage Heavy"
					Class Heavyweapons
					ClassIcon hellmet_red
					Skill Hard
					Item "Galvanized Gibus"
					Item "Upgradeable TF_WEAPON_MINIGUN"
					Attributes SpawnWithFullCharge

					ItemAttributes
					{
						ItemName "Upgradeable TF_WEAPON_MINIGUN"
						"generate rage on damage" 3
						"increase buff duration" 5
					}

                    CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "health regen" 10
						"damage force reduction" 0.5
                    }

					AddCond	[$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 150
						Type Medic
					}
				}

                TFBot
				{
                    Template G_Heavy_Heater
                    ClassIcon hellmet_red
                    Skill Expert
					//Action Mobber

                    CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "health regen" 10
						"damage force reduction" 0.5
                    }

					AddCond	[$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 150
						Type Medic
					}
				}

                TFBot //kgb heavy gets big boy buffs
                {
                    Template G_Heavy_Radial_Buff
                    ClassIcon hellmet_red
                    Action Mobber
                    Attributes AlwaysCrit

                    CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "move speed bonus" 1.5
                        "health regen" 10
                        "dmg taken from bullets reduced" 0.5
                        "dmg taken from blast reduced" 0.5
                        "dmg taken from fire reduced" 0.5
						"damage force reduction" 0.5
						"gesture speed increase" 2 //since he taunts after every kill because of the radial buff
                    }

                    AddCond	[$SIGSEGV]
                    {
                        Name tf_cond_reprogrammed
                        Delay 0.25
                    }

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 150
						Type Medic
					}
                }

				TFBot
				{
					Class Demoman
                    Skill Expert
                    Item "The Iron Bomber"
                    ClassIcon hellmet_red
                    Attributes HoldFireUntilFullReload
					//Action Mobber

                    CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "health regen" 10
						"damage force reduction" 0.5
                    }

					AddCond	[$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 100
						Type Medic
					}
				}

				TFBot //sandman scouts also gets big boy resistances
				{
					Template T_TFBot_Scout_Sandman_FastCharge
                    ClassIcon hellmet_red
                    //Action Mobber
                    Attributes AlwaysCrit
					
                    ItemAttributes
                    {
                        ItemName "The Sandman"
                        "mod bat launches balls" 2
                        "effect bar recharge rate increased" 0.1
                    }

                    CharacterAttributes
                    {
                        "dmg taken from crit reduced" 0.1
                        "heal on kill" 50
                        "move speed bonus" 1.5
                        "health regen" 20
                        "dmg taken from bullets reduced" 0.5
                        "dmg taken from blast reduced" 0.5
                        "dmg taken from fire reduced" 0.5
                        "increased jump height" 1.2
						"damage force reduction" 0.5
                    }

					AddCond	[$SIGSEGV]
					{
						Name tf_cond_reprogrammed
						Delay 0.25
					}

					VoiceCommand [$SIGSEGV]
					{
						Delay 1
						Cooldown 15
						Repeats 3
						IfHealthBelow 90
						Type Medic
					}
				}
			}
		}

		WaveSpawn
		{
			Name pottybreak

			WaitForAllDead g1e
			WaitBeforeStarting 3

			FirstSpawnWarningSound vo/mvm_get_to_upgrade05.mp3

			FirstSpawnOutput
			{
				Target upgradeopen
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name pottybreak

			WaitForAllDead g1e
			WaitBeforeStarting 6

			FirstSpawnWarningSound ui/gamestartup3.mp3
		}

		WaveSpawn {
			Where spawnbot
			TotalCount 10
			Support 1
			SpawnCount 2
			MaxActive 3

			WaitForAllDead g1e
			WaitBeforeStarting 43
			WaitBetweenSpawns 5

			TotalCurrency 50

			FirstSpawnWarningSound vo/announcer_am_roundstart02.mp3

			FirstSpawnOutput
			{
				Target upgradeclose
				Action Trigger
			}

			RandomChoice
			{
				TFBot
				{
					Name "Kinda Super Scout"
					Class Scout
					ClassIcon scout_fast
					Skill Hard
					Item "The Holy Mackerel"
					Attributes AlwaysCrit
					WeaponRestrictions MeleeOnly
					Action Mobber

					CharacterAttributes
					{
						"move speed bonus" 2
						"kill forces attacker to laugh" 1
					}
				}

				TFBot
				{
					Name "Kinda Super Scout"
					Class Scout
					ClassIcon scout_fast
					Skill Hard
					Item "Unarmed Combat"
					Attributes AlwaysCrit
					WeaponRestrictions MeleeOnly
					Action Mobber

					CharacterAttributes
					{
						"move speed bonus" 2
						"kill forces attacker to laugh" 1
					}
				}
			}
		}
		WaveSpawn {
			Name g1f
			Where spawnbot_tank
			TotalCount 3
			SpawnCount 3

			WaitForAllDead g1e
			WaitBeforeStarting 43

			TotalCurrency 50

			Squad
			{
				TFBot
				{
					Template G_Engineer_Giant_Snipe
					Attributes AlwaysCrit
					ClassIcon sniper_d
					Action Mobber

					CharacterAttributes
					{
						"damage penalty" 0.8
					}
				}

				TFBot
				{
					Template G_Medic_Shield_Giant
					ClassIcon medic_giant
				}

				TFBot
				{
					Template G_Medic_QuickFix_Giant
				}
			}
		}
		WaveSpawn {
			Name g1f
			Where spawnbot_alley
			TotalCount 3
			SpawnCount 3

			WaitForAllDead g1e
			WaitBeforeStarting 63

			TotalCurrency 50

			Squad
			{
				TFBot
				{
					Template G_Engineer_Giant_Snipe
					Attributes AlwaysCrit
					ClassIcon sniper_d
					Action Mobber

					CharacterAttributes
					{
						"damage penalty" 0.8
					}
				}

				TFBot
				{
					Template G_Medic_Shield_Giant
					ClassIcon medic_giant
				}

				TFBot
				{
					Template G_Medic_QuickFix_Giant
				}
			}
		}
		WaveSpawn {
			Where spawnbot_left
			Where spawnbot
			RandomSpawn 1
			TotalCount 30
			//Support Limited
			SpawnCount 1
			MaxActive 12

			WaitForAllSpawned g1f
			WaitBeforeStarting 5
			WaitBetweenSpawns 0.33

			RandomChoice
			{
				TFBot
				{
					Name "Kinda Super Scout"
					Class Scout
					Skill Hard
					Item "The Holy Mackerel"
					Attributes AlwaysCrit
					WeaponRestrictions MeleeOnly
					Action Mobber

					CharacterAttributes
					{
						"move speed bonus" 2
						"kill forces attacker to laugh" 1
					}
				}

				TFBot
				{
					Name "Kinda Super Scout"
					Class Scout
					Skill Hard
					Item "Unarmed Combat"
					Attributes AlwaysCrit
					WeaponRestrictions MeleeOnly
					Action Mobber

					CharacterAttributes
					{
						"move speed bonus" 2
						"kill forces attacker to laugh" 1
					}
				}
			}
		}
		WaveSpawn {
			Name "part3a"
			Where spawnbot_left
			Where spawnbot
			RandomSpawn 1
			TotalCount 40
			SpawnCount 2
			MaxActive 12
			WaitForAllDead g1f
			WaitBeforeStarting 3
			WaitBetweenSpawns 0.5

            TotalCurrency 40

			TFBot {
				Class Soldier
				Skill Expert 
				Item "The Cow Mangler 5000"
				Item "The Righteous Bison"
				Item "Lord Cockswain's Pith Helmet"
				Name "Mangler Soldier"
				UseBestWeapon 1
				Attributes AlwaysCrit
				Action Mobber
				CharacterAttributes {
					"deploy time increased" 0.01 
				}
				ItemAttributes {
					ItemName "The Cow Mangler 5000"
					"Set DamageType Ignite" 1
					"set item tint rgb" 1048732
				}
			}
		}		
		WaveSpawn {
			Name "part3a"
			Where spawnbot_tank
			TotalCount 6
			SpawnCount 2
			MaxActive 4
			WaitForAllDead g1f
			WaitBeforeStarting 3
			WaitBetweenSpawns 10

            TotalCurrency 10
			Squad {
				TFBot { 
					Name "Giant Phlog Pyro"
                    Class Pyro
                    ClassIcon pyro_phlog_giant
                    Skill Expert
                    Attributes MiniBoss
                    Health 3300
                    Item "The Mk 50"
                    Item "The Phlogistinator"
                    Attributes SpawnWithFullCharge
                    Item "The Manmelter"
					UseBestWeapon 1
					UseMeleeThreatPrioritization 1
					Action Mobber
                    Tag bot_giant

                    ItemAttributes
                    {
                        ItemName "The Phlogistinator"
                        "flame_drag" 4
                        //"increase buff duration" 2.5
                        "mod rage on hit bonus" 100
                        "airblast disabled" 0
                        "killstreak tier" 2
                        "killstreak idleeffect" 1
                    }

                    ItemAttributes {
						ItemName "The Manmelter"
						"crit vs non burning players" 1
						"crit vs burning players" 1
					}

                    CharacterAttributes
                    {
                        "move speed bonus"	0.5
                        "damage force reduction" 0.3
                        "airblast vulnerability multiplier" 0.3
                        "airblast vertical vulnerability multiplier" 0.5
                        "override footstep sound set" 6
                        "gesture speed increase" 1.5
                        "mult airblast refire time" 0.5
                    }
				}
				TFBot {
					Template T_TFBot_Giant_Medic
					Name "Giant Uber Medic"
					Item "TF_WEAPON_MEDIGUN"
					CharacterAttributes {
						"bot medic uber health threshold" 4500
						"bot medic uber deploy delay duration" 4
					}
					ItemAttributes {
						ItemName "TF_WEAPON_MEDIGUN"
						"uber duration bonus" 0.4
						"ubercharge rate bonus" 999
					}
				}
			}
		}
		WaveSpawn {
			Name "part4a"
			Where spawnbot_tank
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitForAllDead "part3a"
			WaitBeforeStarting 5
			LastSpawnWarningSound "vo\mvm\mght\soldier_mvm_m_laughlong01.mp3"

            TotalCurrency 14

			TFBot {
				Class Soldier
				Skill Expert 
				Health 50000
				Name "Admiral Atomic"
				Item "The Air Strike"
				Item "The Righteous Bison"
				Item "Lord Cockswain's Pith Helmet"
				ClassIcon soldier_mangler_giant
				Attributes AlwaysCrit
				Attributes MiniBoss
				Attributes UseBossHealthBar
				Attributes HoldFireUntilFullReload
				UseBestWeapon 1
				UseMeleeThreatPrioritization 1
				Action Mobber
				CharacterAttributes {
				"move speed bonus"	0.5
				"damage force reduction" 0
				"airblast vulnerability multiplier" 0
				"override footstep sound set" 7
				}
				ItemAttributes {
					ItemName "The Air Strike"
					"damage bonus" 5
					"fire rate penalty" 2
					"single wep holster time increased" 2
					"projectile speed decreased" 0.5
					"blast radius increased" 3
					"use large smoke explosion" 1
					"faster reload rate" 99
					"clipsize increase on kill" 0
				}
				ItemAttributes {
					ItemName "The Righteous Bison"
					"provide on active" 1
					"bullets per shot bonus" 2
					"spread penalty" 2
					"disable weapon switch" 1
					"dmg penalty vs players" 3
					"override projectile type" 1
					"sniper fires tracer HIDDEN" 1
					"ragdolls plasma effect" 1
					"faster reload rate" 0.001	
				}
				HomingRockets {
					IgnoreDisguisedSpies 1
					IgnoreStealthedSpies 0
					RocketSpeed 1 // Multiplier of rocket speed. 1 for default speed
					TurnPower 500 //How fast should the rocket rotate to face the target
					MaxAimError 200 //Max angle between rocket and the target
				}
			}
		}
		WaveSpawn {
			Name "part4b"
			Where spawnbot
			Where spawnbot_alley
			TotalCount 36
			SpawnCount 2
			MaxActive 6
			WaitForAllSpawned "part4a"
			WaitBeforeStarting 5
			WaitBetweenSpawns 3
			RandomSpawn 1

            TotalCurrency 36
			
			TFBot { 
				Class Demoman
				Name "Charging Caber Demo"
				Scale 1.01
				Attributes AlwaysCrit
				WeaponRestrictions MeleeOnly
				Item "The Splendid Screen"
				Item "The Gridiron Guardian"
				Item "The Ullapool Caber"
				//Action SuicideBomber //this is a terrible idea
				ItemAttributes {
					ItemName "The Ullapool Caber"
					"melee range multiplier" 1.5
					"melee bounds multiplier" 1.5
					"attack not cancel charge" 1
				}
				ItemAttributes {
					ItemName "The Splendid Screen"
					"charge recharge rate increased" 8
					"charge impact damage increased" 6
					"dmg bonus vs buildings" 3
				}
			}
		}

        WaveSpawn
        {
            Name g1g
            Where spawnbot
            Where spawnbot_jeep
            RandomSpawn 1
            TotalCount 32
            SpawnCount 4
            MaxActive 9

            WaitForAllDead part4a
            WaitForAllSpawned part4b
            WaitBeforeStarting 7
            WaitBetweenSpawns 3

            Squad
            {
                TFBot
                {
                    Name "Tour Grinder Soldier"
                    Class Soldier
                    Skill Expert
                    Item "The Beggar's Bazooka"
                    Item "The Battalion's Backup"
                    Item "Battery Canteens"
                    Action Mobber
					UseMeleeThreatPrioritization 1
					
                    ItemAttributes
                    {
                        ItemName "The Beggar's Bazooka"
                        "reload time decreased" 0.4
                        "can overload" 0
                        "mod rage on hit bonus" 100
                        "auto fires full clip" 0
                        "increase buff duration" 1.5
                    }

                    ItemAttributes
                    {
                        ItemName "Battery Canteens"
                        "powerup charges" 3
                        "critboost" 1
                    }

                    CharacterAttributes
                    {
                        "deploy time decreased" 0.5
                    }
                }

                TFBot
                {
                    Template G_Medic_Uber
                    ClassIcon medic
                }
            }
        }

        WaveSpawn
        {
            Name g1g
            Where spawnbot_alley
            TotalCount 6
            SpawnCount 2
            MaxActive 3

            WaitForAllDead part4a
            WaitForAllSpawned part4b
            WaitBeforeStarting 7

            Squad
            {
                TFBot
                {
                    Template G_Scout_Giant
                    ClassIcon scout_giant
                    Action Mobber
                    UseBestWeapon 1
                }

                TFBot
                {
                    Template G_Medic_Uber_Giant
                    ClassIcon medic_giant
                }
            }
        }

        WaveSpawn
        {
            Name g1h
            TotalCount 1
            SpawnCount 1

            WaitForAllDead g1g
            WaitBeforeStarting 3

            Tank
			{
				Name tankboss_bullet
				Health 30000
				Speed 69 //nice
				StartingPathTrackNode tank_path_bullet_start

				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
        }

        WaveSpawn
        {
            Name g1h2
            TotalCount 1
            SpawnCount 1

            WaitForAllSpawned g1h
            WaitBeforeStarting 15

            Tank
			{
				Name tankboss_blast
				Health 30000
				Speed 69 //nice
				StartingPathTrackNode tank_path_blast_start

				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
        }

        WaveSpawn
        {
            Name g1i
            Where spawnbot
            Where spawnbot_alley
            Where spawnbot_left
            RandomSpawn 1
            TotalCount 6
            SpawnCount 2
            MaxActive 3

            WaitForAllSpawned g1h
            WaitBeforeStarting 3

            TFBot
            {
                Template G_Heavy_Heater_Deflector_Giant
                ClassIcon heavy_deflector_giant
				UseMeleeThreatPrioritization 1

                FireWeapon [$SIGSEGV]
				{
					Delay 1
					Cooldown 0
					Duration 0.1
					Type Secondary
				}
            }
        }

        WaveSpawn
        {
            Name g1i
            Where spawnbot_jeep
            TotalCount 55
            SpawnCount 1
            MaxActive 8

            WaitBetweenSpawns 0.67
            WaitForAllSpawned g1h
            WaitBeforeStarting 3

            TFBot
            {
                Name "Molten Scout"
                Class Scout
                Skill Expert
                Item "Sun-on-a-Stick"
                Item "The Bunsen Brave"
                RingOfFire 10
                WeaponRestrictions MeleeOnly

                ItemAttributes
                {
                    Itemname "Sun-on-a-Stick"
                    attack_minicrits_and_consumes_burning 1
                    "damage bonus vs burning" 1.75
                    "set damagetype ignite" 1
                }
            }
        }

        WaveSpawn
        {
            Name g1j
            Where spawnbot_alley
            TotalCount 1
            SpawnCount 1

            WaitForAllDead g1i
            WaitBeforeStarting 7

            FirstSpawnWarningSound vo/mvm/mght/scout_mvm_m_stunballhit06.mp3

            TFBot
            {
                Template G_Scout_Sandman_Boss_Air
                Health 20000

				ItemAttributes
				{
					ItemName "Batter's Helmet"
					"set item tint rgb" 15787660
				}

                CharacterAttributes
                {
                    "hand scale" 1.75
                    "mod bat launches balls" 2
                    "dmg bonus vs buildings" 3
                }
            }
        }

        WaveSpawn
        {
            Name g1j
            Where spawnbot_tank
            TotalCount 1
            SpawnCount 1

            WaitForAllDead g1i
            WaitBeforeStarting 9

            FirstSpawnWarningSound vo/mvm/mght/scout_mvm_m_specialcompleted07.mp3

            TFBot
            {
                Template G_Scout_Sandman_Boss_Fall
                Health 20000
                Attributes AlwaysCrit

				ItemAttributes
				{
					ItemName "Batter's Helmet"
					"set item tint rgb" 8289918
				}

                CharacterAttributes
                {
                    "dmg bonus vs buildings" 3
                }
            }
        }
	}
    
	Wave
    {
        StartWaveOutput 
        {
			Target wave_start_relay
			Action Trigger
		}

		DoneOutput 
        {
			Target wave_finished_relay
			Action Trigger
		}

        WaveSpawn
        {
            Support 1

            FirstSpawnWarningSound ui/gamestartup19.mp3
            WaitBeforeStarting 5

            TFBot
            {
                Class Scout
                ClassIcon spy
            }
        }

        WaveSpawn
        {
            Support 1

            FirstSpawnWarningSound ui/gamestartup19.mp3
            WaitBeforeStarting 5

            TFBot
            {
                Class Scout
                ClassIcon spy
            }
        }

        WaveSpawn
        {
            WaitBeforeStarting 15

            FirstSpawnOutput
            {
                Target smoke_relay
                Action Trigger
            }
        }

        WaveSpawn //Finale tank
        {
            TotalCount 1
            SpawnCount 1
            
            WaitBeforeStarting 11.5
            
            StartWaveWarningSound ambient/alarms/train_horn_distant1.wav

            FirstSpawnOutput                                                                                                                                                            
            {
                Target ST_maker_relay                                 
                Action Trigger                         
            }

            Tank
            {
                Name sticky_tank
				Health 75000
				StartingPathTrackNode tank_path_b_1
                Speed 75

                IsCrit 1
                Skin 1

				OnBombDroppedOutput 
                {
					Target boss_deploy_relay
					Action Trigger
				} 

				OnKilledOutput 
                {
					Target ST_kill_relay
					Action Trigger                         
				}
            }
        }

        WaveSpawn
        {
            Where spawnbot_alley
            TotalCount 1
            SpawnCount 1
            Support Limited

            WaitBeforeStarting 11.5

            RandomChoice
            {
                TFBot
                {
                    Class Heavy
					Skill Expert
					Health 70000
					ClassIcon heavy_beast_h
					Attributes MiniBoss
					Attributes UseBossHealthBar
					Attributes AlwaysFireWeapon
					Action Mobber
					Name "B.E.A.R Mk.1"
					Item "the buffalo steak sandvich"
					Item "Warrior's Spirit"
					Item "The Brass Beast"
					Item "The K-9 Mane"
					CharacterAttributes {
						"damage force reduction" 0
						"airblast vertical vulnerability multiplier" 0
						"airblast vulnerability multiplier" 0
						"override footstep sound set" 2
						"gesture speed increase" 1.5
						"deploy time increased" 0.5
					}
					ItemAttributes {
						ItemName "Warrior's Spirit"
						"critboost on kill" 10
						"damage bonus" 3
						"move speed bonus"	1.35
					}
					ItemAttributes {
						ItemName "the buffalo steak sandvich"
						"force weapon switch" 1
						"item_meter_charge_rate" 60
						"deploy time increased" 0.01
					}
					ItemAttributes {
						ItemName "The Brass Beast" 
						"spunup_damage_resistance" 0.15
						"move speed penalty"	0.6
						"fire rate bonus with reduced health" 0.25
						"shot penetrate all players" 1
						"attack projectiles" 1
						"ring of fire while aiming" 1
					}
                }

                TFBot
                {
                    Template T_TFBot_Chief_Gauntlet
					Health 50000
					Action Mobber

                    CharacterAttributes
                    {
                        "move speed bonus" 0.6
                    }
                }               
				TFBot
                {
                    Name "Chief Heal on Kill Heavy"
                    Template T_TFBot_Chief_Heavyweapons_HealOnKill
					UseMeleeThreatPrioritization 1
					Health 50000
					Action Mobber

                    CharacterAttributes
                    {
                        "move speed bonus" 0.6
                    }

                    FireWeapon [$SIGSEGV]
                    {
                        Delay 7
                        Cooldown 0
                        Duration 0.1
                        Type Secondary
                    }
                }

                TFBot
                {
                    Template T_TFBot_Chief_Pyro
					UseMeleeThreatPrioritization 1
					Action Mobber

					CharacterAttributes
					{
						"move speed bonus" 0.5
					}
                }

                TFBot
                {
                    Template T_TFBot_Giant_Major_League
					Action Mobber
					Health 28000

					ItemAttributes
					{
						ItemName "The Sandman"
						"dmg pierces resists absorbs" 1 //stops wrangler fucking it
					}
                }
                TFBot
                {
                    Template T_TFBot_Chief_Gauntlet
					Health 50000
					Action Mobber

                    CharacterAttributes
                    {
                        "move speed bonus" 0.6
                    }
                }               
				TFBot
                {
                    Name "Chief Heal on Kill Heavy"
                    Template T_TFBot_Chief_Heavyweapons_HealOnKill
					UseMeleeThreatPrioritization 1
					Health 50000
					Action Mobber

                    CharacterAttributes
                    {
                        "move speed bonus" 0.6
                    }

                    FireWeapon [$SIGSEGV]
                    {
                        Delay 7
                        Cooldown 0
                        Duration 0.1
                        Type Secondary
                    }
                }

                TFBot
                {
                    Template T_TFBot_Chief_Pyro
					UseMeleeThreatPrioritization 1
					Action Mobber

					CharacterAttributes
					{
						"move speed bonus" 0.35
					}
                }

                TFBot
                {
                    Template T_TFBot_Giant_Major_League
					Action Mobber
					Health 28000

					ItemAttributes
					{
						ItemName "The Sandman"
						"dmg pierces resists absorbs" 1 //stops wrangler fucking it
					}
                }

                TFBot
                {
                    Template G_Demo_Stickybomb_Giant_Chief
					UseMeleeThreatPrioritization 1
					Action Mobber

					CharacterAttributes
					{
						"move speed bonus" 0.55
					}
                }
            }
        }
    }
}