#base robot_standard.pop
#base robot_giant.pop
#base overclock_cactus_general.pop

///////////////////////////////////////////////////////////////////////////
// My hearts go out for you sinners:
//
// - Elizabeth+Birchly	> Made the map
// - DrCactus			> Overclocks
//
///////////////////////////////////////////////////////////////////////////

WaveSchedule
{
	StartingCurrency 1200
	RespawnWaveTime	3
	CanBotsAttackWhileInSpawnRoom no
	BodyPartScaleSpeed 30 		   
	
	PrecacheSound "en_die.wav"  	 								 
	PrecacheSound "en_see.wav"  	 								 
//	PrecacheSound "en_ouch.wav"  	 								 
	PrecacheSound "en_fire.wav"  	 							 
	
	PointTemplates   
	{
		corelogic
		{  
			logic_auto 
			{
				"origin" "0 0 0" 
				"targetname" "mainrelay"
				
				"OnMapSpawn" "tf_objective_resource,$SetClientProp$m_iszMvMPopfileName,Hampton Helix (Advanced),0,-1"
				"OnMapSpawn" "cap_destroy_relay,AddOutput,OnTrigger tankboss:DestroyIfAtCapturePoint:1:-1"
				"OnMapSpawn" "boss_deploy_relay,AddOutput,OnTrigger tankboss:DestroyIfAtCapturePoint:0:-1"
			}
		}
	}															 
	
	SpawnTemplate "corelogic"   
	
	Templates
	{
		T_TFBot_Demoman_Persuader
		{
			Class Demoman
			Name "Demoknight"
			ClassIcon demoknight_persian_nys
			Skill Hard
			Item "Sultan's Ceremonial"
			Item "The Splendid Screen"
			Item "Ali Baba's Wee Booties"
			Item "The Persian Persuader"
			WeaponRestrictions MeleeOnly
			ItemAttributes
			{
				ItemName "The Persian Persuader"
				"critboost on kill" 3
			}
		}
		T_TFBot_Medic_Kritz //Pops Kritz on entering field, has to recharge
		{
			Name "Kritzkrieg Medic"
			Class Medic
			Skill Expert
			ClassIcon medic_kritz
			Attributes SpawnWithFullCharge
			Item "The Kritzkrieg"
			ItemAttributes
			{
				ItemName "The Kritzkrieg"
				"ubercharge rate bonus"	10
				"uber duration bonus" 4
			}
			ItemAttributes
			{
				ItemName "TF_WEAPON_SYRINGEGUN_MEDIC"
				"damage penalty" 1
				"mad milk syringes" 1
			}
			CharacterAttributes
			{
				"bot medic uber health threshold" 500
			}
		}
		T_TFBot_Sniper_Assaultrifle // the classic is now an assault rifle
		{
			Class Sniper
			ClassIcon sniper_smg_tind
			Name "Sniper Enforcer"
			Skill Normal
			Health 175
			MaxVisionRange 2500
			Attributes AlwaysFireWeapon
			Item "The Classic"
			Item "The Triggerman's Tacticals"
			Item "Graybanns" // had a helmet but it clips too much and looks bad
			Item "Preventative Measure"
			WeaponRestrictions PrimaryOnly
		//	PainSound "=80|en_ouch.wav"     // gets kinda repetitive with flamers and other high fire rate guns
			DeathSound "=80|en_die.wav"    
			ItemAttributes
			{
				ItemName "TF_WEAPON_SMG"
				"is_passive_weapon" 1
				"fire rate bonus" 1.2
				"reload time increased hidden" 1.35 // only this seemed to work
				"damage bonus" 1.2
				"custom weapon fire sound" "=80|en_fire.wav"   // eat lead
			}
			ItemAttributes
			{
				ItemName "The Classic"
				"sniper crit no scope" -1 //doesn't seem to do anything worthwhile
				"sniper no headshot without full charge" -1
			}
			CharacterAttributes
			{
				"move speed bonus" 2.5 //counteract charging slow
			}
		}
		T_TFBot_Demoman_Grenadier // it throws grenades at you.. wow!
		{
			Class Demoman
			ClassIcon demo_caber_nys
			Name "Caber Tosser Demo"
			Skill Hard
			WeaponRestrictions PrimaryOnly
			Item "The Ullapool Caber"
			Item "Plaid Lad"
			Item "The Shrapnel Shell"

			ItemAttributes
			{
				ItemName "The Ullapool Caber"
				"is_passive_weapon" 1
				"fire rate penalty" 1.5
			}
			ItemAttributes
			{
				ItemName "TF_WEAPON_GRENADELAUNCHER"
				"faster reload rate" -1
				"fire rate penalty" 2 //sync better with melee animation
				"grenade no bounce" 1 //cabers don't bounce or roll
				"custom projectile model" "models/workshop/weapons/c_models/c_caber/c_caber.mdl"
				"custom kill icon" ullapool_caber    
				"damage bonus" 1.5
				"fuse bonus" 1.5
				"projectile speed increased" 0.7
				"custom item model" "models/workshop/weapons/c_models/c_caber/c_caber.mdl" 	   
			}
			CharacterAttributes
			{
				//"gesture speed increase" 2
			}
		}
		T_TFBot_Sniper_Arctic_Magnum // Pierces resistances, always deals 60 damage.
		{
			ClassIcon	sniper_ap
			Health	200
			Skill	Hard
			Name	"Armor Piercing Sniper"
			Class	sniper
			MaxVisionRange	2000
			ItemAttributes
			{
				ItemName    "the awper hand"
				"damage bonus"	1.2
				"sniper charge per sec"  0 //No charge on rifle means no increased damage.
				"dmg pierces resists absorbs" 1
			}
			CharacterAttributes
			{
				"airblast vulnerability multiplier"	0
				"damage force reduction"	0
				"rage giving scale"	0.2
				"override footstep sound set"  10
			}
			Item    "Cranium Cover"
			Item    "robin walkers"
			Item    "Preventative Measure"
			Item    "the awper hand"
		}
	}
	Mission // sentry buster
	{
		Objective DestroySentries

		InitialCooldown 5
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 7

		CooldownTime 40            

		TFBot
		{
			Template T_TFBot_SentryBuster
			Attributes DisableDodge // stop
			Attributes IgnoreEnemies // no
		}
	}
	Mission // Engineer w1-2
	{
		Objective Engineer

		InitialCooldown 50
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 2
		DesiredCount 1

		CooldownTime 40         
		
		TFBot
		{
			Template T_TFBot_Engineer_Sentry_Teleporter
			TeleportWhere flankers
			TeleportWhere spawnbot_invasion
			Item "Cargo Constructor"
			Item "Hazard Handler"
			CharacterAttributes
			{
				"engineer teleporter build rate multiplier" 2
			}
		}
	}
	Mission // Engineer w4-5
	{
		Objective Engineer

		InitialCooldown 50
		Where spawnbot
		BeginAtWave 5
		RunForThisManyWaves 1
		DesiredCount 1

		CooldownTime 30         
		
		TFBot
		{
			Template T_TFBot_Engineer_Sentry_Teleporter
			TeleportWhere flankers
			TeleportWhere spawnbot_invasion
			Item "Cargo Constructor"
			Item "Hazard Handler"
			CharacterAttributes
			{
				"engineer teleporter build rate multiplier" 2
			}
		}
	}
	Mission // Sniper w4
	{
		Objective Sniper

		InitialCooldown 10
		Where flankers
		BeginAtWave 4
		RunForThisManyWaves 1
		DesiredCount 2

		CooldownTime 30         
		
		TFBot
		{
			Template T_TFBot_Sniper_Arctic_Magnum
		}
	}
	Mission // Spy w5
	{
		Objective Spy

		InitialCooldown 25
		Where spawnbot_chief
		BeginAtWave 5
		RunForThisManyWaves 1
		DesiredCount 2

		CooldownTime 20         
		
		TFBot
		{
			Template T_TFBot_Spy
		}
	}
//	Mission // Sniper w5
//	{
//		Objective Sniper
//
//		InitialCooldown 25
//		Where flankers
//		BeginAtWave 5
//		RunForThisManyWaves 1
//		DesiredCount 2
//
//		CooldownTime 30         
//		
//		TFBot
//		{
//			Template T_TFBot_Sniper_Arctic_Magnum
//		}
//	}
	Mission // Spy w6
	{
		Objective Spy

		InitialCooldown 40
		Where spawnbot_chief
		BeginAtWave 6
		RunForThisManyWaves 1
		DesiredCount 2

		CooldownTime 35         
		
		TFBot
		{
			Template T_TFBot_Spy
		}
	}
	
///////////////////////////////////////////////////////////////////////////////////// 
// Humbridge Advanced (Hampton Helix)
// Cash given at start: $1200
// Wave payouts:
// W1: $900 W2: $900 W3: $1100
// W4: $1100 W5: $1500 W6: $700
// Max amount of money: $8000
// Max Amount without bonus: $7500
/////////////////////////////////////////////////////////////////////////////////////

	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes

		WaveSpawn
		{
			Where spawnbot
			TotalCount 3
			MaxActive 3
			SpawnCount 3
			WaitBeforeStarting 0
			WaitBetweenSpawns 2
			Totalcurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons_Shotgun
					Item "Sophisticated Smoker"
					CharacterAttributes
					{
						"attack projectiles" 0 // reconsider.
					}
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			//	TFBot
			//	{
			//		Template T_TFBot_Medic
			//	}
			//	TFBot
			//	{
			//		Template T_TFBot_Medic
			//	}
			}
		}
		WaveSpawn
		{
			Name "wave01a"
			Where flankers
			TotalCount 36
			MaxActive 9
			SpawnCount 3
			WaitBeforeStarting 18
			WaitBetweenSpawns 3
			Totalcurrency 100
			
			TFBot
			{
				Template T_TFBot_Scout_FAN
				ItemAttributes
				{
					ItemName "The Force-a-Nature"
					"fire full clip at once" 1   
				}
			}
		}
		WaveSpawn
		{
			Name "wave01a"
			Where spawnbot
			TotalCount 24
			MaxActive 12
			SpawnCount 6
			WaitBeforeStarting 18
			WaitBetweenSpawns 7
			Totalcurrency 100
			
			TFBot
			{
				Template T_TFBot_Scout_Jumping_Sandman
				Attributes AlwaysCrit
				Name "Jumping Sandman"
			}
		}
		WaveSpawn
		{
			Name "wave01b"
			Where spawnbot
			TotalCount 6
			MaxActive 6
			SpawnCount 3
			WaitBeforeStarting 8
			WaitBetweenSpawns 12
			WaitForAllSpawned "wave01a"
			Totalcurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons_Shotgun
					Item "Sophisticated Smoker"
					CharacterAttributes
					{
						"attack projectiles" 0 // reconsider.
					}
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			//	TFBot
			//	{
			//		Template T_TFBot_Medic
			//	}
			//	TFBot
			//	{
			//		Template T_TFBot_Medic
			//	}
			}
		}
		WaveSpawn
		{
	//		Name "wave01b"
			Where spawnbot
			TotalCount 24
			MaxActive 8
			SpawnCount 4
			WaitBeforeStarting 15
			WaitBetweenSpawns 3
			WaitForAllSpawned "wave01a"
			Totalcurrency 150
			
			TFBot
			{
				Class Pyro
				Skill Normal
			}
		}
		WaveSpawn
		{
	//		Name "wave01b"
			Where spawnbot
			TotalCount 16
			MaxActive 8
			SpawnCount 8
			WaitBeforeStarting 15
			WaitBetweenSpawns 0
			WaitForAllSpawned "wave01a"
			Totalcurrency 150
			
			TFBot
			{
				Class Heavy
				Skill Easy
			}
		}
		WaveSpawn
		{
			Name "wave01c"
			Where spawnbot
			TotalCount 3
			MaxActive 3
			SpawnCount 3
			WaitBeforeStarting 12
			WaitBetweenSpawns 0
			WaitForAllSpawned "wave01b"
			Totalcurrency 200
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heater
					Item "The Bunsen Brave"
					Name "Super Heavy Lighter" // haah
					UseMeleeThreatPrioritization 1   
					ItemAttributes
					{
						ItemName "The Huo Long Heatmaker"
						"Set DamageType Ignite" 1
						"attach particle effect" 13
					}
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
	}
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		
		WaveSpawn
		{
			Name "wave02a"
			Where flankers
			TotalCount 32
			MaxActive 16
			SpawnCount 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 5
			Totalcurrency 200
			
			Squad
			{
				TFBot
				{
					Class Soldier
					Skill Normal
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickFix
				}
			}
		}
		WaveSpawn
		{
			Name "wave02b"
			Where spawnbot
			TotalCount 24
			MaxActive 8
			SpawnCount 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 7
			Totalcurrency 100
			
			FirstSpawnWarningSound en_see.wav     // just ignore this because the sounds are fluff
			
			TFBot
			{
				Template T_TFBot_Sniper_Assaultrifle
			}
		}
		WaveSpawn
		{
			Name "wave02b"
			Where flankers
			TotalCount 24
			MaxActive 8
			SpawnCount 4
			WaitBeforeStarting 4
			WaitBetweenSpawns 5
			Totalcurrency 100
			
			TFBot
			{
				Class Scout
				Name Scout // why is your name in lowercase
				WeaponRestrictions MeleeOnly
				Attributes AlwaysCrit
			}
		}
		WaveSpawn
		{
			Name "wave02c"
			Where flankers
			TotalCount 45
			MaxActive 15
			SpawnCount 5
			WaitBeforeStarting 4
			WaitBetweenSpawns 5
			WaitForAllSpawned "wave02b"
			Totalcurrency 200
			
			TFBot
			{
				Class Soldier
				Skill Easy // hello hamlet, my old friend
				Attributes AlwaysCrit
				ClassIcon soldier_giant
			}
		}
		WaveSpawn
		{
			Name "w2tank"
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 45
			TotalCurrency 300
			
			Tank
			{
				Name tankboss
				Health 23000
				Speed 70
				StartingPathTrackNode tank_path_a1
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
	}
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		
		WaveSpawn
		{
			Name "wave03a"
			Where flankers
			TotalCount 24
			MaxActive 6
			SpawnCount 3
			WaitBeforeStarting 0
			WaitBetweenSpawns 3
			Totalcurrency 150
			
			TFBot
			{
				Class Demoman
				Skill Normal
				Attributes AlwaysCrit
			}
		}
		WaveSpawn
		{
			Name "wave03a"
			Where spawnbot
			TotalCount 15
			MaxActive 6
			SpawnCount 3
			WaitBeforeStarting 4
			WaitBetweenSpawns 4
			Totalcurrency 150
			
			TFBot
			{
				Class Heavy
				ClassIcon heavy_deflector
				Name "Deflector Heavy"
				Skill Normal
				Item "Deflector"
				Item "The U-Clank-A"
				ItemAttributes
				{
					ItemName "Deflector"
					"attack projectiles" 1
				}
			}
		}
		WaveSpawn
		{
		//	Name "wave03b"
			Where spawnbot
			Where flankers
			TotalCount 64
			MaxActive 16
			SpawnCount 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.6
			WaitForAllDead "wave03a"
			Totalcurrency 200
			
			RandomSpawn 1
			
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Concheror
					ClassIcon soldier_banner_trio
					Item "The Black Box"
					Attributes HoldFireUntilFullReload
					ItemAttributes
					{
						ItemName "The Black Box"
						"damage bonus" 0.33
						"fire rate bonus" 0.001
						"clip size upgrade atomic" 0
						"faster reload rate" 0.9
						"blast radius increased" 1.25
						"projectile spread angle penalty" 2
						"heal on hit for rapidfire" 60
					}
					CharacterAttributes
					{
						"deploy time decreased" 0.1
					}
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
					ClassIcon soldier_banner_trio
					Item "The Black Box"
					Attributes HoldFireUntilFullReload
					ItemAttributes
					{
						ItemName "The Black Box"
						"damage bonus" 0.33
						"fire rate bonus" 0.001
						"clip size upgrade atomic" 0
						"faster reload rate" 0.9
						"blast radius increased" 1.25
						"projectile spread angle penalty" 2
						"heal on hit for rapidfire" 60
					}
					CharacterAttributes
					{
						"deploy time decreased" 0.1
					}
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Buff_Banner
					ClassIcon soldier_banner_trio
					Item "The Black Box"
					Attributes HoldFireUntilFullReload
					ItemAttributes
					{
						ItemName "The Black Box"
						"damage bonus" 0.33
						"fire rate bonus" 0.001
						"clip size upgrade atomic" 0
						"faster reload rate" 0.9
						"blast radius increased" 1.25
						"projectile spread angle penalty" 2
						"heal on hit for rapidfire" 60
					}
					CharacterAttributes
					{
						"deploy time decreased" 0.1
					}
				}
			}
		}
		WaveSpawn
		{
			Name "wave03b"
			Where flankers
			TotalCount 4
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 15
			WaitBetweenSpawns 15
			WaitForAllDead "wave03a"
			Totalcurrency 200
			
			TFBot
			{
				Template T_TFBot_Giant_Demo_RapidFire
				Item "Plaid Lad"
			}
		}
		WaveSpawn
		{
			Name "wave03c"
			Where spawnbot
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 10
			WaitForAllSpawned "wave03b"
			Totalcurrency 300
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_Baseball
				Attributes AlwaysCrit
				Name "Yob League Scout"
				Item "The Carl"
				Item "Ye Oiled Baker Boy"
				ItemAttributes 
				{
					ItemName "The Sandman"
					"custom projectile model" models/weapons/c_models/c_scotland_shard/c_scotland_shard_broken.mdl  		   // crashes the game if it's used on non-demo
					"bleeding duration" 2			  			 	// and it's mainly here because the idea of someone launching bottles with a bat is funny
					"override projectile type extra" brick 	  	 
				}
			}
		}
		WaveSpawn
		{
			Name "wave03c"
			Where flankers
			TotalCount 2
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 15
			WaitBetweenSpawns 0
			WaitForAllSpawned "wave03b"
			Totalcurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_RocketPush
					Item "Sophisticated Smoker"
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
					ItemAttributes
					{
						ItemName "The Quick-Fix"
						"uber duration bonus" -5
					}
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot
			TotalCount 40
			MaxActive 4
			SpawnCount 4
			WaitBeforeStarting 7
			WaitBetweenSpawns 10
			Totalcurrency 100
			
			Support 1
			
			TFBot
			{
				Template T_TFBot_Scout_Bonk
				Name "Scout"
			}
		}
	}
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		
		WaveSpawn
		{
			Name "wave04a"
			Where flankers
			Where spawnbot
			TotalCount 12
			MaxActive 12
			SpawnCount 3
			WaitBeforeStarting 0
			WaitBetweenSpawns 8
			Totalcurrency 200
			
			RandomSpawn 1
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons_Deflector
					ItemAttributes
					{
						ItemName "Deflector"
						"attack projectiles" 2
					}
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
	//	WaveSpawn
	//	{
	//		Name "wave04b"
	//		Where spawnbot_invasion
	//		TotalCount 35
	//		MaxActive 14
	//		SpawnCount 7
	//		WaitBeforeStarting 5
	//		WaitBetweenSpawns 6
	//		WaitForAllDead "wave04a"
	//		Totalcurrency 100
	//		
	//		TFBot
	//		{
	//			Class Scout
	//			Skill Hard
	//			Attributes AlwaysCrit
	//			Name "Scout" // I don't know why they're all lowercase but it's really bugging me
	//		}
	//	}
		WaveSpawn
		{
			Name "wave04b"
			Where spawnbot
			TotalCount 10
			MaxActive 10
			SpawnCount 5
			WaitBeforeStarting 15
			WaitBetweenSpawns 15
			WaitForAllDead "wave04a"
			Totalcurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons_Shotgun
					Item "Sophisticated Smoker"
					CharacterAttributes
					{
						"attack projectiles" 0 // reconsider.
					}
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Name "wave04c"
			Where spawnbot
			TotalCount 6
			MaxActive 6
			SpawnCount 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 7
			WaitForAllSpawned "wave04b"
			Totalcurrency 300
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer
				}
			//	TFBot
			//	{
			//		Template T_TFBot_Medic
			//	}
			}
		}
		WaveSpawn
		{
			Name "wave04d"
			Where spawnbot
			TotalCount 3
			MaxActive 3
			SpawnCount 3
			WaitBeforeStarting 10
			WaitBetweenSpawns 0
			WaitForAllSpawned "wave04c"
			Totalcurrency 300
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heater
					Item "The Bunsen Brave"
					Name "Super Heavy Lighter" // haah
					UseMeleeThreatPrioritization 1   
					ItemAttributes
					{
						ItemName "The Huo Long Heatmaker"
						"Set DamageType Ignite" 1
						"attach particle effect" 13
					}
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
					ItemAttributes
					{
						ItemName "The Quick-Fix"
						"uber duration bonus" -5
					}
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
					ItemAttributes
					{
						ItemName "The Quick-Fix"
						"uber duration bonus" -5
					}
				}
			}
		}
		WaveSpawn
		{
			Where spawnbot
			TotalCount 40
			MaxActive 8
			SpawnCount 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 4
			WaitForAllDead "wave04a"
			Totalcurrency 200
			
			Support 1
			
			TFBot
			{
				Template T_TFBot_Demoman_Grenadier
			}
		}
	}
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		
		WaveSpawn
		{
			Name "wave05a"
			Where spawnbot
			TotalCount 16
			MaxActive 8
			SpawnCount 4
			WaitBeforeStarting 5
			WaitBetweenSpawns 15
			Totalcurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_RocketPush
					Item "Sophisticated Smoker"
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Concheror
					ClassIcon soldier_banner_trio
					Item "The Black Box"
					Attributes HoldFireUntilFullReload
					ItemAttributes
					{
						ItemName "The Black Box"
						"damage bonus" 0.33
						"fire rate bonus" 0.001
						"clip size upgrade atomic" 0
						"faster reload rate" 0.9
						"blast radius increased" 1.25
						"projectile spread angle penalty" 2
						"heal on hit for rapidfire" 60
					}
					CharacterAttributes
					{
						"deploy time decreased" 0.1
					}
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Battalion
					ClassIcon soldier_banner_trio
					Item "The Black Box"
					Attributes HoldFireUntilFullReload
					ItemAttributes
					{
						ItemName "The Black Box"
						"damage bonus" 0.33
						"fire rate bonus" 0.001
						"clip size upgrade atomic" 0
						"faster reload rate" 0.9
						"blast radius increased" 1.25
						"projectile spread angle penalty" 2
						"heal on hit for rapidfire" 60
					}
					CharacterAttributes
					{
						"deploy time decreased" 0.1
					}
				}
				TFBot
				{
					Template T_TFBot_Soldier_Extended_Buff_Banner
					ClassIcon soldier_banner_trio
					Item "The Black Box"
					Attributes HoldFireUntilFullReload
					ItemAttributes
					{
						ItemName "The Black Box"
						"damage bonus" 0.33
						"fire rate bonus" 0.001
						"clip size upgrade atomic" 0
						"faster reload rate" 0.9
						"blast radius increased" 1.25
						"projectile spread angle penalty" 2
						"heal on hit for rapidfire" 60
					}
					CharacterAttributes
					{
						"deploy time decreased" 0.1
					}
				}
			}
		}
		WaveSpawn
		{
			Name "wave05a"
			Where spawnbot_invasion
			TotalCount 48
			MaxActive 12
			SpawnCount 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 4
			Totalcurrency 100
			
			TFBot
			{
				Template T_TFBot_Sniper_Huntsman
				ClassIcon sniper_bow_multi  
				Item "The Glorious Gambeson"	
				ItemAttributes
				{
					ItemName "The Huntsman"
					"damage bonus" 1
					"arrow mastery" 1   
					"faster reload rate" 0.6
				}
			}
		}
		WaveSpawn
		{
			Name "wave05b"
			Where spawnbot
			TotalCount 36
			MaxActive 12
			SpawnCount 6
			WaitBeforeStarting 6
			WaitBetweenSpawns 6
			WaitForAllSpawned "wave05a"
			Totalcurrency 150
			
			FirstSpawnWarningSound en_see.wav     // just ignore this because the sounds are fluff
			
			TFBot
			{
				Template T_TFBot_Sniper_Assaultrifle
				Skill Hard
			//	Attributes AlwaysCrit // too good at killing people with crits
			}
		}
		WaveSpawn
		{
			Name "wave05b"
			Where flankers
			TotalCount 24
			MaxActive 6
			SpawnCount 6
			WaitBeforeStarting 6
			WaitBetweenSpawns 0
			WaitForAllSpawned "wave05a"
			Totalcurrency 150
			
			TFBot
			{
				Class Soldier
				Skill Hard
				Attributes AlwaysCrit
				CharacterAttributes
				{
					"damage bonus" 1.2
				}
			}
		}
		WaveSpawn
		{
			Name "wave05c"
			Where spawnbot
			Where flankers
			TotalCount 15
			MaxActive 15
			SpawnCount 3
			WaitBeforeStarting 0
			WaitBetweenSpawns 8
			WaitForAllSpawned "wave05b"
			Totalcurrency 500
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons
					Attributes AlwaysCrit
					Item "Squatter's Right"
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
				TFBot
				{
					Template T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Name "tanks"
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 30
			WaitBetweenSpawns 30
			TotalCurrency 500
			
			Tank
			{
				Name tankboss
				Health 26000
				Speed 70
				StartingPathTrackNode tank_path_a1
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
	}
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		
		WaveSpawn // we have broken parts at home
		{
			Name "wave06a"
			Where spawnbot_invasion
			Where spawnbot_tank
			TotalCount 80
			MaxActive 18
			SpawnCount 3
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.6
			Totalcurrency 200
			
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Demo_Burst
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Demo_Burst
					Attributes AlwaysCrit
				}
				TFBot
				{
					Template T_TFBot_Demo_Burst
					Attributes AlwaysCrit
				}
				TFBot
				{
					Class Heavy
					ClassIcon heavy_deflector
					Name "Deflector Heavy"
					Skill Normal
					Item "Deflector"
					Item "The U-Clank-A"
					ItemAttributes
					{
						ItemName "Deflector"
						"attack projectiles" 1
					}
				}
				TFBot
				{
					Class Heavy
					ClassIcon heavy_deflector
					Name "Deflector Heavy"
					Skill Normal
					Item "Deflector"
					Item "The U-Clank-A"
					ItemAttributes
					{
						ItemName "Deflector"
						"attack projectiles" 1
					}
				}
				TFBot
				{
					Class Pyro
					Skill Normal
					Item "The Dragon's Fury"
					Attributes AlwaysCrit
					ClassIcon pyro_dragon_fury_swordstone
					CharacterAttributes
					{
						"move speed bonus" 1.2
					}
				}
				TFBot
				{
					Class Pyro
					Skill Normal
					Item "The Dragon's Fury"
					Attributes AlwaysCrit
					ClassIcon pyro_dragon_fury_swordstone
					CharacterAttributes
					{
						"move speed bonus" 1.2
					}
				}
			}
		}
		WaveSpawn
		{
	//		Name "wave06b"
			Where spawnbot
			TotalCount 5
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 5
			WaitBetweenSpawnsAfterDeath 10
			WaitForAllDead "wave06a"
			Totalcurrency 100
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}
		}
		WaveSpawn
		{
			Name "wave06c"
			Where spawnbot
			TotalCount 16
			MaxActive 16
			SpawnCount 2
			WaitBeforeStarting 6
			WaitBetweenSpawns 7
			WaitForAllSpawned "wave06a"
			Totalcurrency 200
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Spammer
					Item "Sophisticated Smoker"
				}
				TFBot
				{
					Template T_TFBot_Medic
					Item "Sophisticated Smoker"
				}
			}
		}
		WaveSpawn
		{
			Name "wave06d"
			Where spawnbot
			TotalCount 12
			MaxActive 12 // HAAH going 22+ but functionally should NOT matter
			SpawnCount 2
			WaitBeforeStarting 6
			WaitBetweenSpawns 6
			WaitForAllSpawned "wave06c"
			Totalcurrency 300
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demo_RapidFire
					Attributes AlwaysCrit
					Item "Plaid Lad"
				}
			}
		}
		WaveSpawn
		{
			Name "wave06e"
			Where spawnbot_tank
			TotalCount 4
			MaxActive 4
			SpawnCount 2
			WaitBeforeStarting 12
			WaitBetweenSpawns 16
			WaitForAllSpawned "wave06d"
			Totalcurrency 300
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons
					Attributes AlwaysCrit
					Item "Squatter's Right"
				}
				TFBot
				{
					Template T_TFBot_Giant_Medic
				//	Item "Sophisticated Smoker"
					ItemAttributes
					{
						ItemName "The Quick-Fix"
						"uber duration bonus" -5
					}
				}
			}
		}
		WaveSpawn
		{
			Name "justonetankwithalotofhealthtowrapthingsup"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 7
			WaitBetweenSpawns 0
	//		WaitForAllDead "wave06a"
			TotalCurrency 100
			
			FirstSpawnWarningSound MVM.TankStart
			
			Tank
			{
				Name tankboss
				Health 42000
				Speed 70
				StartingPathTrackNode tank_path_a1
				Skin 1
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
	}
}