//Advanced Swamp Fever by Andrew Xtreme and Skin King
//Wave 1 and 2 by Andrew Xtreme
//Wave 3 and 4 by SKin king
#base robot_giant.pop
#base robot_standard.pop
HelloEverybodyMyNameIsMarkiplier
{
	StartingCurrency	1500
	RespawnWaveTime	4
	CanBotsAttackWhileInSpawnRoom	no
	Mission
	{
		BeginAtWave	1
		RunForThisManyWaves	1
		Objective	Sniper
		Where	spawnbot_mission_sniper
		InitialCooldown	45
		CooldownTime	45
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Sniper
		}
	}
	Mission
	{
		Objective	Spy
		Where	spawnbot
		BeginAtWave	2
		RunForThisManyWaves	1
		InitialCooldown	10
		CooldownTime	45
		DesiredCount	3
		TFBot
		{
			Template	T_TFBot_Spy
		}
	}	
	Mission
	{
		Objective	Spy
		Where	spawnbot
		BeginAtWave	3
		RunForThisManyWaves	1
		InitialCooldown	5
		CooldownTime	45
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Spy
		}
	}
	Mission
	{
		Objective	DestroySentries
		Where	spawnbot
		BeginAtWave	1
		RunForThisManyWaves	4
		InitialCooldown	45
		CooldownTime	45
		DesiredCount	1
		TFBot
		{
			Template	T_TFBot_SentryBuster
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay_endurance //Clueless
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name	w1a
			TotalCurrency	50
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	3
			WaitBetweenSpawns	13
			Where	spawnbot
			Squad
			{
				TFBot
				{
					ClassIcon demo_rapid_giant
					Template	T_TFBot_Giant_Demoman
				}
			}
		}
		WaveSpawn
		{
			Name	w1a
			TotalCurrency	50
			TotalCount	18
			MaxActive	12
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	3.5
			Where	spawnbot
			TFBot
			{
				ClassIcon scout_pop
				Name	"Soda Popper Scout"
				Class Scout
                        	Skill Normal
				Item	"the soda popper"
				Item	"Bonk Helm"
                        	MaxVisionRange 500
                        	ItemAttributes
		        	{
			  	      ItemName	"Bonk Helm"
			  	      "set item tint rgb" 8208497
		        	}
			}
		}
		WaveSpawn
		{
			Name	w1a1
			WaitForAllSpawned	w1a
			TotalCurrency	50
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	10
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Giant_Scout_Fast
			}
		}
		WaveSpawn
		{
			Name	w1b
			WaitForAllSpawned	w1a1
			TotalCurrency	100
			TotalCount	6
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	7
			WaitBetweenSpawns	12
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Pyro
					Attributes	"AlwaysFireWeapon"
				}
				TFBot
				{
                              	        Name "Big-heal Medic"
					Template	T_TFBot_Medic_BigHeal	
					Tag bot_squad_member
				}
			}
		}
		WaveSpawn
		{
			Name	w1b
			WaitForAllDead	w1a1
			TotalCurrency	50
			TotalCount	15
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	3
			Where	spawnbot_left
			TFBot
			{
				ClassIcon	soldier_bison_b
				Health	200
				Name	"Bison Soldier"
				Class	Soldier
				Skill	Expert
				WeaponRestrictions	SecondaryOnly
				Item	"the righteous bison"
				Item	"tyrant's helm"
				ItemAttributes
				{
					ItemName	"the righteous bison"
					"set item tint RGB"	4345659
					"dmg bonus vs buildings"	3
				}
				ItemAttributes
				{
					ItemName	"tyrant's helm"
					"set item tint RGB"	4345659
				}
			}
		}
		WaveSpawn
		{
			Name	w1b
			WaitForAllSpawned	w1a1
			TotalCurrency	25
			TotalCount	20
			MaxActive	10
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	1.25
			Where	spawnbot
			TFBot
			{
                        	Class Demoman
				Name "Sticky Demoman"
				Skill Normal
				ClassIcon demo_sticky_daan
				WeaponRestrictions	SecondaryOnly
				ItemAttributes
				{
					ItemName "TF_WEAPON_GRENADELAUNCHER"
					"is_passive_weapon" 1
					"override projectile type" 15
				}
				ItemAttributes
				{
					ItemName "TF_WEAPON_PIPEBOMBLAUNCHER"
					"damage bonus" .75
					"stickybomb charge rate" -3
					"sticky arm time bonus" 2
					"max pipebombs decreased" -6
				}
			}
		}
		WaveSpawn
		{
			Name	w1c
			WaitForAllSpawned	w1b
			TotalCurrency	50
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	9
			WaitBetweenSpawns	21
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Giant_DemoMan_PrinceTavish
			}
		}
		WaveSpawn
		{
			Name	w1c
			WaitForAllSpawned	w1b
			TotalCurrency	50
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	22
			Where	spawnbot_left
			TFBot
			{
				Template	T_TFBot_Giant_DemoMan_PrinceTavish
			}
		}
		WaveSpawn
		{
			Name	w1c
			WaitForAllSpawned	w1b
			TotalCurrency	50
			TotalCount	21
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	12
			WaitBetweenSpawns	2.5
			Where	spawnbot
			TFBot
			{
				ClassIcon scout_pop
				Name	"Soda Popper Scout"
				Class Scout
                        	Skill Easy
				Item	"the soda popper"
				Item	"Bonk Helm"
                        	ItemAttributes
		        	{
			  	      ItemName	"Bonk Helm"
			  	      "set item tint rgb" 8208497
		        	}
			}
		}
		WaveSpawn
		{
			Name	w1c
			WaitForAllSpawned	w1b
			TotalCurrency	50
			TotalCount	9
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	12
			WaitBetweenSpawns	7
			Where	spawnbot_flank_right
			TFBot
			{
				Template	T_TFBot_Soldier_RocketPush
			}
		}
		WaveSpawn
		{
			Name	w1d1
			WaitForAllDead	w1c
			TotalCurrency	200
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	4
			WaitBetweenSpawns	10
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Class Soldier
					Name "Giant Bazooka Soldier"
					ClassIcon soldier_bazooka
					Skill Hard
					Health 3800
					WeaponRestrictions PrimaryOnly
					Attributes HoldFireUntilFullReload
					Attributes MiniBoss
					Item "The Beggar's Bazooka"
                                	ItemAttributes
			        	{
				 	       ItemName "The Beggar's Bazooka"
						"gesture speed increase" 1.75
				 	       "auto fires full clip" 0
					        "can overload" 0
			        	}	
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
					}
					Item	"stainless pot"
					Item	"the shogun's shoulder guard"
				}
				TFBot
			        {
                                ClassIcon pyro_dragon_fury_swordstone
				        Name	"Giant Dragon's Fury Pyro"
				        Template	T_TFBot_Giant_Pyro
					Skill Normal
                                        Item    "The Dragon's Fury"
					MaxVisionRange 600
                                        ItemAttributes
				        {
					        ItemName	"The Dragon's Fury"
					        "airblast disabled"	1
				        }
			        }
			}
		}
		WaveSpawn
		{
			Name	w1d
			WaitForAllSpawned	w1d1
			TotalCurrency	200
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	10
			Where	spawnbot
			TFBot
			{
				Name "Giant Demoman"
				Template	T_TFBot_Giant_Demo_RapidFire
			}
		}
		WaveSpawn
		{
			Name	w1da
			WaitForAllDead	w1c
			TotalCurrency	50
			TotalCount	50
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	3
			WaitBetweenSpawns	3.75
			Support	1
			Where	spawnbot_invasion
			TFBot
			{
				Skill	Normal
				Template	T_TFBot_Sniper_Huntsman
			}
		}
		WaveSpawn
		{
			Name	w1e
			WaitForAllDead	w1d
			TotalCurrency	200
			TotalCount	4
			MaxActive	3
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	12
			Where	spawnbot
			TFBot
			{
				Template	T_TFBot_Giant_Soldier_Crit
			}
		}
		WaveSpawn
		{
			Name	w1e
			WaitForAllSpawned	w1d
			TotalCurrency	25
			TotalCount	50
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	12
			WaitBetweenSpawns	2
			Where	spawnbot
			Support 1
			TFBot
			{
			ClassIcon pyro_reflect_daan
				Class	Pyro
				Skill	Hard
				Item	"traffic cone"
			}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay_endurance
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name	w2a
			TotalCurrency	100
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where	spawnbot
			Squad
			{
				TFBot
				{
				ClassIcon pyro_reflect_daan
					Template	T_TFBot_Giant_Pyro
					Item	"traffic cone"
				}
				TFBot
				{
					Name	"Giant Regen Medic"
					Template	T_TFBot_Giant_Medic_Regen
					CharacterAttributes
					{
						"move speed bonus"	1.5
                                	}
				}
			}
		}
		WaveSpawn
		{
			Name	w2aa
			TotalCurrency	50
			TotalCount	8
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	5
			WaitBetweenSpawns	3.5
			Where	spawnbot_left
			TFBot
			{
				ClassIcon soldier_armored
				Health	600
				Name	"Armored Soldier"
				Class	Soldier
				Skill	Normal
				Scale 1.35
			}
		}
		WaveSpawn
		{
			Name	w2bb
			WaitForAllDead	w2a
			TotalCurrency	50
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	3
			WaitBetweenSpawns	10
			Where	spawnbot
			Squad
			{
				TFBot
				{
                        		Template	T_TFBot_Giant_Heavyweapons
				}
			}
		}
		WaveSpawn
		{
			Name	w2b
			WaitForAllSpawned	w2bb
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	15
			WaitBetweenSpawns	20
			Where	spawnbot
			TFBot
			{
                        ClassIcon sniper_smg_tind
				WeaponRestrictions	SecondaryOnly
				Health	3300
				MaxVisionRange 1200
				Skill	Normal
				Name	"Giant Smg Sniper"
				Class	Sniper
				Attributes	"MiniBoss"
				CharacterAttributes
				{
					"voice pitch scale"	0 
					"override footstep sound set"	5
					"move speed bonus"	0.5
                                }
			}
		}
		WaveSpawn
		{
			Name	w2b
			WaitForAllSpawned	w2bb
			TotalCurrency	50
			TotalCount	30
			MaxActive	20
			SpawnCount	10
			WaitBeforeStarting	15
			WaitBetweenSpawns	15
			Where	spawnbot_left
			TFBot
			{
                        	Class Demoman
				Skill Normal
			}
		}
		WaveSpawn
		{
			Name	w2c
			WaitForAllSpawned	w2b
			TotalCurrency	100
			TotalCount	16
			MaxActive	12
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	10
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Spammer_Reload
				}
				TFBot
				{
					Name "Quick Uber Medic"
					Template	T_TFBot_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Pyro
					Attributes	"AlwaysFireWeapon"
				}
				TFBot
				{
					Template	T_TFBot_Pyro
					Attributes	"AlwaysFireWeapon"
				}
			}
		}
		WaveSpawn
		{
			Name	w2cc
			WaitForAllSpawned	w2b
			TotalCurrency	50
			TotalCount	18
			MaxActive	9
			SpawnCount	3
			WaitBeforeStarting	15
			WaitBetweenSpawns	3
			Where	spawnbot_left
			TFBot
			{
				Health	300
				Name	Heavy
				Class	HeavyWeapons
				Skill	Easy
				MaxVisionRange	600
			}
		}
		WaveSpawn
		{
			Name	w2c1
			WaitForAllSpawned	w2cc
			TotalCurrency	25
			TotalCount	9
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	5
			WaitBetweenSpawns	3
			Where	spawnbot_invasion
			TFBot
			{
				ClassIcon	heavy_heater
				Health	300
				Name	"Heater Heavy"
				Class	HeavyWeapons
				Skill	Easy
				MaxVisionRange	600
				Item	"the huo long heatmaker"
				Item	"the bunsen brave"
			}
		}
		WaveSpawn
		{
			Name	w2d
			WaitForAllDead	w2c
			TotalCurrency	100
			TotalCount	3
			MaxActive	2
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	13
			Where	spawnbot
			Squad
			{
				TFBot
				{
					ClassIcon demo_rapid_giant
					Template	T_TFBot_Giant_Demoman
				}
			}
		}
		WaveSpawn
		{
			Name	w2da
			WaitForAllDead	w2c
			TotalCurrency	50
			TotalCount	22
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	3
			WaitBetweenSpawns	2
			Where	spawnbot
			TFBot
			{
				ClassIcon	scout_pistol_nys
				Health	125
				Name	"Pistol Scout"
				Class	Scout
				Skill	Normal
				MaxVisionRange	600
				WeaponRestrictions	SecondaryOnly
			}
		}
		WaveSpawn
		{
			Name	w2da
			WaitForAllDead	w2c
			TotalCurrency	50
			TotalCount	8
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	5
			WaitBetweenSpawns	3.5
			Where	spawnbot_flank_right
			TFBot
			{
				ClassIcon	soldier_armored
				Health	600
				Scale 1.35
				Name	"Armored Soldier"
				Class	Soldier
				Skill	Normal
			}
		}
		WaveSpawn
		{
			Name	w2e
			WaitForAllSpawned	w2d
			TotalCurrency	100
			TotalCount	6
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	15
			WaitBetweenSpawns	15
			Where	spawnbot
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons_Deflector
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
				}
			}
		}
		WaveSpawn
		{
			Name	w2e
			WaitForAllSpawned	w2da
			TotalCurrency	75
			TotalCount	50
			MaxActive	12
			SpawnCount	4
			WaitBeforeStarting	7
			WaitBetweenSpawns	4
			Support	1
			Where	spawnbot_invasion
			TFBot
			{
				Template	T_TFBot_Heavyweapons_Shotgun
			}
		}
	}


	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay_endurance
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		
		WaveSpawn
		{
			Name	w3support
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			Support	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	10
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Scout_Fish
				ClassIcon	scout_fish_nys

			}
		}	
		
		WaveSpawn
		{
			Name	w3a
			TotalCurrency	100
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			Where	spawnbot_left
			FirstSpawnWarningSound "vo/mvm/norm/sniper_mvm_specialcompleted04.mp3"
			
			TFBot
			{
				Class	Sniper
				ClassIcon	sniper_jarate_bushwacka_nolod
				Health 25000
				Name	"Cobra King JFS"
				WeaponRestrictions MeleeOnly
				Item	"Jarate"
				Item "The Bushwacka"
				Item "The Slithering Scarf"
				Item "The Backstabber's Boomslang"
				Item "Wild Brim Slouch"
				Attributes	MiniBoss
				Attributes	UseBossHealthBar
				
				ItemAttributes
				{
					ItemName "The Bushwacka"
					"dmg taken increased" 1
					"dmg bonus vs buildings" 4
					"fire rate bonus" 0.7
				}		

				ItemAttributes
				{
					ItemName "jarate"
					"effect bar recharge rate increased"	0.5
					"is_passive_weapon" 1
				}	
				
				CharacterAttributes
				{
					"move speed penalty" 0.5
					"damage force reduction" 0.4
					"airblast vulnerability multiplier" 0.4
					"override footstep sound set" 7
					"airblast vertical vulnerability multiplier" 0.1
					"rage giving scale" 0.25
				}
			}
		}

		WaveSpawn
		{
			Name	w3a-1
			TotalCurrency	100
			TotalCount	36
			MaxActive	8
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	2
			Where	spawnbot
	
			TFBot
			{
				Template	T_TFBot_Demoman_Knight
			}	
		}		
		
		WaveSpawn
		{
			Name	w3a-1
			TotalCurrency	100
			TotalCount	18
			MaxActive	6
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	7
			Where	spawnbot_left
	
			TFBot
			{
				Class	Soldier
				Skill Normal
			}	
		}

		WaveSpawn
		{
			Name	w3b
			WaitForAllDead	w3a
			TotalCurrency	400
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	7

			Tank
			{
				Health	18000
				Name	"tank"
				Speed	75
				StartingPathTrackNode tank_path_a1
				
				OnKilledOutput
				{	
					Target	boss_dead_relay
					Action	Trigger
				}
				
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action Trigger
				}	
			}
		}

		WaveSpawn
		{
			Name	w3b
			WaitForAllSpawned	w3a-1
			TotalCurrency	100
			TotalCount	6
			MaxActive	6
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	18
			Where	spawnbot_right
				
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons_Shotgun
					ClassIcon heavy_shotgun_giant
				}	
				
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Scale	1.25
					Health	300
					ClassIcon	medic_uber_armored_nolod
					Name	"Armored Quick-Uber Medic"
					Tag	bot_squad_member
					
					CharacterAttributes
					{
						"bot medic uber health threshold" 150
					}
				}
			}
		}
			
		WaveSpawn
		{
			Name	w3b
			WaitForAllSpawned	w3a-1
			TotalCurrency	100
			TotalCount	40
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	10
			WaitBetweenSpawns	2.5
			Where	spawnbot_flank_right
			
			TFBot
			{
				Template	T_TFBot_Sniper_Huntsman
				Attributes	AlwaysCrit
			}	
		}		
		
		WaveSpawn
		{
			Name	w3c
			WaitForAllSpawned	w3b
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	15
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Giant_Soldier_Spammer

			}	
		}	

		WaveSpawn
		{
			Name	w3c
			WaitForAllSpawned	w3b
			TotalCurrency	100
			TotalCount	40
			MaxActive	10
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	1
			Where	spawnbot_invasion
			
			TFBot
			{
				Class	Pyro
				Attributes	AlwaysFireWeapon
				Skill	Hard
			}	
		}	

		WaveSpawn
		{
			Name	w3c
			WaitForAllSpawned	w3b
			TotalCurrency	100
			TotalCount	16
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	1
			Where	spawnbot_right
			
			TFBot
			{
				Template	T_TFBot_Heavyweapons_Fist
				ClassIcon heavy_steelfist_nys_nolod
			}	
		}		
		
		WaveSpawn
		{
			Name	w3d
			WaitForAllDead	w3c
			TotalCurrency	100
			Support	limited
			TotalCount	8
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			Where	spawnbot
			
			TFBot
			{
				Template	T_TFBot_Soldier_Extended_Battalion
			}	
		}	
	
		WaveSpawn
		{
			Name	w3d
			WaitForAllDead	w3c
			TotalCurrency	100
			TotalCount	40
			MaxActive	12
			SpawnCount	4
			WaitBeforeStarting	0
			WaitBetweenSpawns	1
			Where	spawnbot_invasion
			
			RandomChoice
			{
				TFBot
				{
					Class	Scout	
					Skill	Hard
				}	
				TFBot
				{
					Class	Scout	
					Skill	Normal
					Attributes	AlwaysCrit
				}	
				TFBot
				{
					Class	Scout	
					Skill	Normal
				}
			}	
		}		
		
		WaveSpawn
		{
			Name	w3d
			WaitForAllDead	w3c
			TotalCurrency	200
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	15
			Where	spawnbot
				
			Squad	
			{	
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Spammer_Reload
				}	
				
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Regen
					Tag bot_squad_member
				}	
			}	
		}
	}
	
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay_endurance
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}

		WaveSpawn
		{
			Name	w4Tank
			TotalCurrency	300
			TotalCount	3
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	40
			Where	spawnbot
			
			Tank
			{
				Health	20000
				Name	"tank"
				Speed	75
				StartingPathTrackNode tank_path_b1
				
				OnKilledOutput
				{	
					Target	boss_dead_relay
					Action	Trigger
				}
				
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action Trigger
				}	
			}
		}

		WaveSpawn
		{
			Name	w4a1
			TotalCurrency	200
			TotalCount	15
			MaxActive	15
			SpawnCount	15
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
			Where	spawnbot_flank_right
	
			TFBot
			{
				Template	T_TFBot_Demo_Burst
				Attributes	AlwaysCrit
			}	
		}	

		WaveSpawn
		{
			Name	w4b
			WaitForAllDead w4a1
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	15
			Where	spawnbot_left
	
			TFBot
			{
				Template	T_TFBot_Giant_Scout_Baseball
			}	
		}		
		
		WaveSpawn
		{
			Name	w4b
			WaitForAllDead w4a1
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	15
			Where	spawnbot_flank_right
	
			TFBot
			{
				Template	T_TFBot_Giant_Pyro
				Attributes	AlwaysFireWeapon
				Attributes	AlwaysCrit
			}	
		}		
		
		WaveSpawn
		{
			Name	w4b
			WaitForAllDead w4a1
			TotalCurrency	100
			TotalCount	30
			MaxActive	10
			SpawnCount	5
			WaitBeforeStarting	0
			WaitBetweenSpawns	3
			Where	spawnbot
	
			TFBot
			{
				Class	Demoman
				Skill	Hard
			}	
		}		
		
		WaveSpawn
		{
			Name	w4c
			WaitForAllSpawned w4b
			TotalCurrency	100
			TotalCount	25
			MaxActive	15
			SpawnCount	5
			WaitBeforeStarting	10
			WaitBetweenSpawns	5
			Where	spawnbot
	
			TFBot
			{
				Class Scout
				Skill Normal
				Item "Bonk! Atomic Punch"
				Item "Bonk Helm"
				Item "Baby Face's Blaster"
				WeaponRestrictions PrimaryOnly
				ClassIcon scout_bonk
				Name "Bonk Blaster Scout"	
			}	
		}
		
		WaveSpawn
		{
			Name	w4c
			WaitForAllSpawned	w4b
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	20
			Where	spawnbot_flank_left
				
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_SlowBarrage
				}	
				
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Regen
					Tag	bot_squad_member
				}
			}
		}
		
		WaveSpawn
		{
			Name	w4c-1
			WaitForAllSpawned	w4c
			TotalCurrency	100
			TotalCount	48
			MaxActive	12
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	7
			Where	spawnbot_invasion
				
			TFBot
			{
				Class Soldier
				Skill	Expert
				Item	"The Direct Hit"
				ClassIcon 	soldier_directhit_lite
			}	
		}		
		
		WaveSpawn
		{
			Name	w4c-1
			WaitForAllSpawned	w4c
			TotalCurrency	100
			TotalCount	3
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	0
			Where	spawnbot
				
			TFBot
			{
				ClassIcon soldier_burstfire_hyper_lite
				Template	T_TFBot_Soldier_BurstFire
			}	
		}		
		
		WaveSpawn
		{
			Name	w4c-1
			WaitForAllSpawned	w4c
			TotalCurrency	100
			TotalCount	28
			MaxActive	7
			SpawnCount	7
			WaitBeforeStarting	10
			WaitBetweenSpawns	2
			Where	spawnbot_flank_right
				
			TFBot
			{
			ClassIcon pyro_reflect_daan
				Class Pyro
				Skill	Expert
				Item	"traffic cone"
			}	
		}		
		
		WaveSpawn
		{
			Name	w4c-1
			WaitForAllSpawned	w4c
			TotalCurrency	100
			TotalCount	14
			MaxActive	7
			SpawnCount	7
			WaitBeforeStarting	10
			WaitBetweenSpawns	2
			Where	spawnbot_invasion
				
			TFBot
			{
				Class Sniper
				Skill	Hard
				WeaponRestrictions	SecondaryOnly
				Attributes	AlwaysCrit
				ClassIcon	sniper_smg_tind
			}	
		}
			
		WaveSpawn
		{
			Name	w4d
			WaitForAllDead	w4c-1
			TotalCurrency	100
			TotalCount	12
			MaxActive	12
			SpawnCount	3
			WaitBeforeStarting	0
			WaitBetweenSpawns	16
			Where	spawnbot
				
			TFBot
			{
				Template	T_TFBot_Giant_Soldier_Spammer
				Attributes	AlwaysCrit
			}	
		}		
		
		WaveSpawn
		{
			Name	w4d-1
			WaitForAllSpawned	w4c-1
			TotalCurrency	300
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	12
			Where	spawnbot
			Tank
			{
				Health	30000
				Name	"tank"
				Speed	75
				Skin	1
				StartingPathTrackNode tank_path_a1
				
				OnKilledOutput
				{	
					Target	boss_dead_relay
					Action	Trigger
				}
				
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action Trigger
				}	
			}
		}
		
		WaveSpawn
		{
			Name	w4d
			WaitForAllDead	w4c-1
			TotalCurrency	100
			TotalCount	50
			MaxActive	9
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	1
			Where	spawnbot_right
			Support Limited
			TFBot
			{
				Class	Heavy
				Skill	Hard
			}	
		}		
				
	}	
}			
