#base robot_giant.pop
#base robot_standard.pop

WaveSchedule
{

	StartingCurrency		400
	RespawnWaveTime 5

	AllowJoinTeamBlue 1  
	CanBotsAttackWhileInSpawnRoom no
	WaveStartCountdown 1

	PointTemplates
	{
		init
		{
			logic_auto
			{
				"onmapspawn" "spawnbot*,Disable,0,0,-1"
				"onmapspawn" "wave_start_relay,AddOutput,OnTrigger player:SetHudVisibility:0:0:-1,0,-1"
			}
		}
	}

	SpawnTemplate "init"
	
	Mission // sentry buster
	{
		Objective DestroySentries

		InitialCooldown 5
		Where spawnbot
		BeginAtWave 1
		RunForThisManyWaves 6

		CooldownTime 35            

            TFBot
			{
				Template T_TFBot_SentryBuster
            }
	}
	Mission // Sniper - wave 4
	{
		Objective Sniper

		InitialCooldown 15
		Where spawnbot_mission_sniper
		BeginAtWave 4
		RunForThisManyWaves 1
		CooldownTime 35
		DesiredCount 2

		TFBot
		{
			Class Sniper
			Skill Expert
			Name Sniper
		}
	}	
	Mission // Spy - wave 3
	{
		Objective Spy  

		InitialCooldown 20
		Where spawnbot_mission_spy
		BeginAtWave 3
		RunForThisManyWaves 1
		CooldownTime 15
		DesiredCount 1

		TFBot
		{
			Class Spy
			Skill Expert
			Name Spy
		}
	}	

	//"paintkit_proto_def_index"-104 for Carpet Bomber
	//"paintkit_proto_def_index"-208 for Star Crossed
	//"paintkit_proto_def_index"-212 for Dream Piped
	//"paintkit_proto_def_index"-214 for Neo Tokyo
	//"paintkit_proto_def_index"-215 for Geometrical Teams
	//"paintkit_proto_def_index"-225 for Cosmic Calamity
	//"paintkit_proto_def_index"-265 for Eyestalker
	//"paintkit_proto_def_index"-271 for Saccharine Striped
	//"paintkit_proto_def_index"-276 for Gifting Mann's Wrapping Paper
	//"paintkit_proto_def_index"-282 for Glacial Glazed
	//"paintkit_proto_def_index"-285 for Swashbuckled
	//"paintkit_proto_def_index"-289 for Neon-ween
	//"paintkit_proto_def_index"-290 for Simple Spirits
	//"paintkit_proto_def_index"-291 for Broken Bones
	//"paintkit_proto_def_index"-293 for Searing Souls
	//"paintkit_proto_def_index"-297 for Necromanced
	//"paintkit_proto_def_index"-301 for Park Pigmented
	//"paintkit_proto_def_index"-304 for Sax Waxed
	//"paintkit_proto_def_index"-405 for Bonzo Gnawed
	//"paintkit_proto_def_index"-409 for Pumpkin Plastered

	CustomWeapon
	{
		"Rescue Ranger but cool"
		{
			OriginalItemName "The Rescue Ranger"
			"special item description" "Cool af"
			"paintkit_proto_def_index" 266
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"set_item_texture_wear"    0.2
		}
		"Skullcutter but cool"
		{
			OriginalItemName "The Scotsman's Skullcutter"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Wrench but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_WRENCH"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Minigun but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_MINIGUN"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Bazaar Bargain but cool"
		{
			OriginalItemName "The Bazaar Bargain"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Air Strike but cool"
		{
			OriginalItemName "The Air Strike"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Grenade Launcher but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_GRENADELAUNCHER"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Rocket Launcher but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_ROCKETLAUNCHER"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Flamethrower but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_FLAMETHROWER"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Powerjack but cool"
		{
			OriginalItemName "The Powerjack"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Reserve Shooter but cool"
		{
			OriginalItemName "The Reserve Shooter"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Revolver but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_REVOLVER"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Knife but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_KNIFE"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Crusader's Crossbow but cool"
		{
			OriginalItemName "The Crusader's Crossbow"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Medi gun but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_MEDIGUN"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Ubersaw but cool"
		{
			OriginalItemName "The Ubersaw"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Stickybomb Launcher but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_PIPEBOMBLAUNCHER"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"SMG but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_SMG"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Sniper Rifle but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_SNIPERRIFLE"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Scattergun but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_SCATTERGUN"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Pistol but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_PISTOL"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Soda Popper but cool"
		{
			OriginalItemName "The Soda Popper"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Shortstop but cool"
		{
			OriginalItemName "The Shortstop"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Disciplinary Action but cool"
		{
			OriginalItemName "The Disciplinary Action"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Black Box but cool"
		{
			OriginalItemName "The Black Box"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Winger but cool"
		{
			OriginalItemName "The Winger"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Jag but cool"
		{
			OriginalItemName "The Jag"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Holy Mackerel but cool"
		{
			OriginalItemName "The Holy Mackerel"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Iron Bomber but cool"
		{
			OriginalItemName "The Iron Bomber"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Brass Beast but cool"
		{
			OriginalItemName "The Brass Beast"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Family Business but cool"
		{
			OriginalItemName "The Family Business"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Shotgun but cool"
		{
			OriginalItemName "Upgradeable TF_WEAPON_SHOTGUN_PRIMARY"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Tomislav but cool"
		{
			OriginalItemName "Tomislav"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Persian but cool"
		{
			OriginalItemName "The Persian Persuader"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Detonator but cool"
		{
			OriginalItemName "The Detonator"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Amputator but cool"
		{
			OriginalItemName "The Amputator"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Shahanshah but cool"
		{
			OriginalItemName "The Shahanshah"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Loch-n-Load but cool"
		{
			OriginalItemName "The Loch-n-Load"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Loose Cannon but cool"
		{
			OriginalItemName "The Loose Cannon"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Panic Attack but cool"
		{
			OriginalItemName "Panic Attack Shotgun"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Degreaser but cool"
		{
			OriginalItemName "The Degreaser"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Scorch Shot but cool"
		{
			OriginalItemName "The Scorch Shot"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Back Scratcher but cool"
		{
			OriginalItemName "The Back Scratcher"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
		"Claidheamohmor but cool"
		{
			OriginalItemName "The Claidheamohmor"
			"special item description" "Cool af"
			"custom_paintkit_seed_lo" 0
			"custom_paintkit_seed_hi" 1234567
			"paintkit_proto_def_index" 266
			"set_item_texture_wear"    0.2
		}
	}

	ExtraLoadoutItems	 
	{
		Scout
		{
			Primary		"Scattergun but cool"
			Primary		"Soda Popper but cool"
			Primary		"Shortstop but cool"
			Secondary "Pistol but cool"
			Secondary "Winger but cool"
			Melee "Holy Mackerel but cool"
		}
		Soldier
		{
			Primary "Rocket Launcher but cool"
			Primary		"Air Strike but cool"
			Primary		"Black Box but cool"
			Secondary "Shotgun but cool"
			Secondary "Reserve Shooter but cool"
			Secondary "Panic Attack but cool"
			Melee "Disciplinary Action but cool"
		}
		Pyro
		{
			Primary "Flamethrower but cool"
			Primary "Degreaser but cool"
			Secondary "Shotgun but cool"
			Secondary "Reserve Shooter but cool"
			Secondary "Panic Attack but cool"
			Secondary "Detonator but cool"
			Secondary "Scorch Shot but cool"
			Melee		"Back Scratcher but cool"
			Melee		"Powerjack but cool"
		}
		Demoman
		{
			Primary "Grenade Launcher but cool"
			Primary "Iron Bomber but cool"
			Primary "Loch-n-Load but cool"
			Primary "Loose Cannon but cool"
			Secondary "Stickybomb Launcher but cool"
			Melee		"Skullcutter but cool"
			Melee		"Persian but cool"
			Melee		"Claidheamohmor but cool"
		}
		HeavyWeapons
		{
			Primary		"Minigun but cool"
			Primary		"Brass Beast but cool"
			Primary		"Tomislav but cool"
			Secondary "Shotgun but cool"
			Secondary "Panic Attack but cool"
			Secondary "Family Business but cool"
		}
		Engineer
		{
			Primary		"Shotgun but cool"
			Primary		"Rescue Ranger but cool"
			Primary "Reserve Shooter but cool"
			Primary "Panic Attack but cool"
			Secondary "Pistol but cool"
			Melee		"Wrench but cool"
			Melee		"Jag but cool"
		}
		Medic
		{
			Primary		"Crusader's Crossbow but cool"
			Secondary "Medi gun but cool"
			Melee		"Ubersaw but cool"
			Melee		"Amputator but cool"
		}
		Sniper
		{
			Primary		"Sniper Rifle but cool"
			Primary		"Bazaar Bargain but cool"
			Secondary "SMG but cool"
			Melee		"Shahanshah but cool"
		}
		Spy
		{
			Secondary		"Revolver but cool"
			Melee "Knife but cool"
		}
	}

	//WAVE 1 //Melee Heavies and Scout Melees //Currency 500 ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Description "Melee Heavies and Scouts"
		Checkpoint Yes
		
		WaveSpawn
		{
			Name "primarywave"
			
			Where spawnbot
			TotalCount 24
			MaxActive 10
			SpawnCount 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 4
			TotalCurrency 100

			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ

				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ_Fast
				}
			}
		}
		
		WaveSpawn
		{
			WaitForAllSpawned "primarywave"
			
			Where spawnbot
			TotalCount 20
			MaxActive 12
			SpawnCount 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 4
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				
				TFBot
				{
					Class Scout
					Skill Easy
					WeaponRestrictions MeleeOnly
				}
				
				TFBot
				{
					Class Scout
					Skill Easy
					WeaponRestrictions MeleeOnly
				}
				
				TFBot
				{
					Class Scout
					Skill Easy
					WeaponRestrictions MeleeOnly
				}
			}
		}	
		WaveSpawn
		{
			WaitForAllSpawned "primarywave"
			
			Where spawnbot
			TotalCount 6
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			TotalCurrency 100	

			TFBot
			{
				Class Scout
				Skill Easy
				WeaponRestrictions MeleeOnly
			}
		}	
		WaveSpawn
		{
			WaitForAllSpawned "primarywave"
			
			Where spawnbot
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 7
			TotalCurrency 200
			
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ_Fast
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
			}
		}
	}	
	//WAVE 2 //Heavies and Pyros squads, Giant Pyro and pyro and heavy squad//Currency 500 ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		
		
		WaveSpawn 
		{
			
			Name wave2primarywave
			
			Where spawnbot
			TotalCount 24
			MaxActive 15
			SpawnCount 3
			WaitBetweenSpawns 3
			WaitBeforeStarting 0
			TotalCurrency 200		
			
			Squad
			{
				TFBot
				{
					Class HeavyWeapons
					Skill Easy
				}
				TFBot
				{
					Class Pyro
					Skill Easy
				}
				TFBot
				{
					Class Pyro
					Skill Easy
				}
			}
			
		}
		WaveSpawn
		{
			WaitForAllSpawned "wave2primarywave"
			
			Where spawnbot
			TotalCount 10
			MaxActive 10
			SpawnCount 5
			WaitBeforeStarting 0
			WaitBetweenSpawns 10
			TotalCurrency 300
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Pyro
				}
				TFBot
				{
					Class Pyro
					Skill Easy
				}
				TFBot
				{
					Class Pyro
					Skill Easy
				}
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ
				}
				TFBot
				{
					Class HeavyWeapons
					Skill Easy
				}
			}
		}
	}
	//WAVE 3 //Tank Boss 28k, Scout melee support, Spy Mission//Currency 900 ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		
		// Spy mission - 1 active
		
		
		WaveSpawn //WAVE
		{
			TotalCount 1
			WaitBeforeStarting 0
			TotalCurrency 900
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}

			Tank
			{
				Health 28000
				Speed 75
				Name "tankboss"
				StartingPathTrackNode "boss_path_a1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}

			}			
		}
		WaveSpawn
		{			
			Where spawnbot
			TotalCount 8
			MaxActive 8
			SpawnCount 8
			WaitBeforeStarting 15
			WaitBetweenSpawns 0
			
			Support 1
			
			TotalCurrency 0

			TFBot
			{
				Class Scout
				Skill Easy
				WeaponRestrictions MeleeOnly
			}
		}
		WaveSpawn
		{			
			Where spawnbot
			TotalCount 18
			MaxActive 18
			SpawnCount 18
			WaitBeforeStarting 25
			WaitBetweenSpawns 0
			
			Support 1
			
			TotalCurrency 0
			
			TFBot
			{
				Class Scout
				Skill Easy
				WeaponRestrictions MeleeOnly
			}
		}		
	}
	//WAVE 4 //Demos, Scout melees, Soldiers, Giant Demos, Sniper Mission MB //Currency 500 ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		
		// Sniper mission - 2 active		

		
		WaveSpawn 
		{
			
			Name "wave4primarywave"
			
			Where spawnbot
			TotalCount 24
			MaxActive 8
			SpawnCount 2
			WaitBetweenSpawns 3
			WaitBeforeStarting 0
			TotalCurrency 100		
			
			TFBot
			{
				Class Demoman
				Skill Easy
			}
		}
		WaveSpawn 
		{
			
			Where spawnbot
			TotalCount 12
			MaxActive 6
			SpawnCount 2
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			TotalCurrency 100		
			
			TFBot
			{
				Class Scout
				Skill Easy
				WeaponRestrictions MeleeOnly
			}
		}
		WaveSpawn 
		{
			
			Where spawnbot
			TotalCount 12
			MaxActive 4
			SpawnCount 3
			WaitBetweenSpawns 2
			WaitBeforeStarting 0
			TotalCurrency 100		
			
			TFBot
			{
				Class Soldier
				Skill Easy
			}
		}
		
		WaveSpawn 
		{
			
			WaitForAllSpawned "wave4primarywave"
			
			Where spawnbot
			TotalCount 2
			MaxActive 2
			SpawnCount 2
			WaitBetweenSpawns 15
			WaitBeforeStarting 0
			TotalCurrency 160		
			
			TFBot
			{
				Template T_TFBot_Giant_Demoman
			}
		}
		WaveSpawn 
		{
			
			WaitForAllSpawned "wave4primarywave"
			
			Where spawnbot
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBetweenSpawns 15
			WaitBeforeStarting 20
			TotalCurrency 40		
			
			TFBot
			{
				Template T_TFBot_Giant_Demoman
			}
		}
	}
	//WAVE 5 //Tank Boss 30k, Giant Demo with pyro escort//Currency 1200 ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes	
			
		WaveSpawn 
		{
			TotalCount 1
			WaitBeforeStarting 20
			TotalCurrency 700
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}

			Tank
			{
				Health 30000
				Speed 75
				Name "tankboss"
				StartingPathTrackNode "boss_path_a1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}

			}			
		}

		WaveSpawn //WAVE
		{
			Where spawnbot
			TotalCount 15
			MaxActive 10
			SpawnCount 5
			WaitBeforeStarting 0
			WaitBetweenSpawns 2
			TotalCurrency 500
			
			Squad // Tavish + pyros
			{
				TFBot
				{
					Template T_TFBot_Giant_Demoman
				}
				TFBot
				{
					Class Pyro
					Skill Easy                                         
				}
				TFBot
				{
					Class Pyro
					Skill Easy 
					//WeaponRestrictions MeleeOnly				
				}
				TFBot
				{
					Class Pyro
					Skill Normal                                        
				}
				TFBot
				{
					Template T_TFBot_Pyro_Flaregun
				}
			}
		}
	}
	//WAVE 6 //Giant Demos, Giant geavy with Quick fix medics, Giant Pyros, Tank Boss 33K, Giant Baseball, scout support.//Currency 1200 ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput					
		{
			Target humans_win
			Action RoundWin
		}
		WaitWhenDone 65
		Checkpoint Yes	
		

		WaveSpawn //WAVE 
		{
			Where spawnbot
			TotalCount 4
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 2
			TotalCurrency 400
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Demoman
				}
				TFBot
				{
					Template T_TFBot_Giant_Demoman
				}
			}
		}
		WaveSpawn //WAVE 
		{
			Name "heavywave"
			
			Where spawnbot
			TotalCount 12
			MaxActive 6
			SpawnCount 6
			WaitBeforeStarting 10
			WaitBetweenSpawns 1
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Heavyweapons
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickFix
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickFix
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickFix
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickFix
				}
				TFBot
				{
					Template T_TFBot_Medic_QuickFix
				}
			}
		}
		
		WaveSpawn 
		{
			WaitForAllSpawned "heavywave"
			
			TotalCount 1
			WaitBeforeStarting 25
			TotalCurrency 400
			
			FirstSpawnOutput                                                                                                                                                            
			
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}

			Tank
			{
				Health 33000
				Speed 75
				Name "tankboss"
				Skin 1
				StartingPathTrackNode "boss_path_a1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}

			}			
		}
		
		WaveSpawn 
		{
			WaitForAllSpawned "heavywave"
		
			Where spawnbot
			TotalCount 2
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 35
			WaitBetweenSpawns 2
			TotalCurrency 100
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Pyro
				}
				TFBot
				{
					Template T_TFBot_Giant_Pyro
				}
			}
		}
		// WaveSpawn 
		// {
			// WaitForAllSpawned "heavywave"
		
			// Where spawnbot
			// TotalCount 2
			// MaxActive 2
			// SpawnCount 2
			// WaitBeforeStarting 27
			// WaitBetweenSpawns 2
			// TotalCurrency 100
			
			// Squad
			// {
				// TFBot
				// {
					// Template T_TFBot_Giant_Scout_Baseball
				// }
				// TFBot
				// {
					// Template T_TFBot_Giant_Scout_Baseball
				// }
			// }
		// }
		
		WaveSpawn
		{	
			Where spawnbot
			TotalCount 18
			MaxActive 12
			SpawnCount 2
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 100
			
			TFBot
			{
				Class Scout
				Skill Easy
				WeaponRestrictions MeleeOnly
				
			}
		}
	}
}