//Cobblestone created by A+drew
//Difficulty Expert
#base robot_giant.pop
#base robot_standard.pop
population
{
	StartingCurrency	400
	RespawnWaveTime	4
	CanBotsAttackWhileInSpawnRoom	no
	Mission
	{
		Objective	DestroySentries
		Where	spawnbot_mission_sentrybuster
		BeginAtWave	1
		RunForThisManyWaves	5
		InitialCooldown	45
		CooldownTime	45
		DesiredCount	1
		TFBot
		{
			Template	T_TFBot_SentryBuster
		}
	}
	Mission
	{
		Objective	Sniper
		Where	spawnbot_mission_sniper
		BeginAtWave	2
		RunForThisManyWaves	2
		InitialCooldown	30
		CooldownTime	30
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Sniper
		}
	}
	Mission
	{
		Objective	Sniper
		Where	spawnbot_mission_sniper
		BeginAtWave	5
		RunForThisManyWaves	1
		InitialCooldown	30
		CooldownTime	30
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Sniper
		}
	}
	Mission
	{
		Objective	Spy
		Where	spawnbot_mission_spy
		InitialCooldown 60
		CooldownTime	60
		DesiredCount	3
		BeginAtWave	1
		RunForThisManyWaves	1
		TFBot
		{
			Template	T_TFBot_Spy
		}
	}
	Mission
	{
		Objective	Engineer
		Where spawnbot
		BeginAtWave	3
		RunForThisManyWaves	2
		InitialCooldown 60
		CooldownTime	60
		DesiredCount	1
		TFBot
		{
			Template	T_TFBot_Engineer_Sentry_Tele_Battle
                        TeleportWhere spawnbot
			TeleportWhere spawnbot_low
			TeleportWhere spawnbot_high
			Attributes TeleportToHint
		}
	}
	Mission
	{
		Objective	Spy
		Where	spawnbot_mission_spy
		InitialCooldown	45
		CooldownTime	45
		DesiredCount	4
		BeginAtWave	4
		RunForThisManyWaves	1
		TFBot
		{
			Template	T_TFBot_Spy
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
		}
        	InitWaveOutput
        	{
            		Target gamerules
            		Action RunScriptCode
            		Param "
                	local ent = Entities.FindByClassname(null, `tf_objective_resource`)
                	if (ent)
                	{
                    		NetProps.SetPropString(ent, `m_iszMvMPopfileName`, `Cobblestone (Expert)`)
                	}	
            	"
        	}
		WaveSpawn
		{
			Name	w1a
			TotalCurrency	100
			TotalCount	6
			MaxActive	6
			SpawnCount	3
			Where	spawnbot_low
			WaitBeforeStarting	5
			WaitBetweenSpawns	25
                        Squad
                        {
                                TFBot
				{
                        		ClassIcon sniper_smg_tind
					Health	3300
					Name	"Giant SMG Sniper"
					Scale	1.75
					Class	Sniper
					Skill	Expert
					WeaponRestrictions	SecondaryOnly
					Attributes MiniBoss
					MaxVisionRange	1200
					CharacterAttributes
					{
						"damage force reduction" 0.3
						"airblast vulnerability multiplier" 0.3
						"override footstep sound set"	5
				        	"move speed bonus"	0.45
					}
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
                        }
		}
		WaveSpawn
		{
			Name	w1a
			TotalCurrency	50
			TotalCount	22
			MaxActive	9
			SpawnCount	3
			Where	spawnbot_low
			WaitBeforeStarting	0
			WaitBetweenSpawns	2
			TFBot
			{
				Template	T_TFBot_Sniper_Huntsman
			}
		}
		WaveSpawn
		{
			Name	w1a
			TotalCurrency	50
			TotalCount	8
			MaxActive	4
			SpawnCount	2
			Where	spawnbot_high
			WaitBeforeStarting	3
			WaitBetweenSpawns	5
			TFBot
			{
				Name "Armored Blast Soldier"
				Health	600
				Scale	1.35
				Template	T_TFBot_Soldier_RocketPush
			}
		}
		WaveSpawn
		{
			Name	w1a2
			WaitForAllSpawned	w1a
			TotalCurrency	100
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			Where	spawnbot_high
			WaitBeforeStarting	3
			WaitBetweenSpawns	0
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_SlowBarrage
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Name	w1a2a
			WaitForAllSpawned	w1a
			TotalCurrency	100
			TotalCount	10
			MaxActive	6
			SpawnCount	2
			Where	spawnbot_high
			WaitBeforeStarting	10
			WaitBetweenSpawns	2.5
			TFBot
			{
				Name "Armored Pyro"
				Class Pyro
				Skill Normal
				Scale 1.35
				Health 525
				Attributes	"AlwaysFireWeapon"
				Item	"the centurion"
				Item	"the steel sixpack"
			}
		}
		WaveSpawn
		{
			Name	w1b1
			WaitForAllDead	w1a2
			TotalCurrency	150
			TotalCount	3
			MaxActive	3
			SpawnCount	1
			Where	spawnbot_low
			WaitBeforeStarting	0
			WaitBetweenSpawns	15
			TFBot
			{
                        ClassIcon demo_spammer
				Template	T_TFBot_Giant_Demoman
			}
		}
		WaveSpawn
		{
			Name	w1b
			WaitForAllDead	w1a2
			TotalCurrency	50
			TotalCount	20
			MaxActive	8
			SpawnCount	2
			Where	spawnbot_low
			WaitBeforeStarting	2
			WaitBetweenSpawns	2
			TFBot
			{
				Health	300
				Name	Heavy
				Class	HeavyWeapons
				Skill	Easy
				MaxVisionRange 800
			}
		}
		WaveSpawn
		{
			Name	w1b
			WaitForAllDead	w1a2
			TotalCurrency	50
			TotalCount	12
			MaxActive	6
			SpawnCount	6
			Where spawnbot_high
			WaitBeforeStarting	3
			WaitBetweenSpawns	0
			TFBot
			{
                        ClassIcon soldier_directhit_lite
				Health	200
				Name	"Direct Hit Soldier"
				Class	Soldier
				Skill	Normal
				Item	"the direct hit"
				Item	"worms gear"
			}
		}
		WaveSpawn
		{
			Name	w1c
			WaitForAllSpawned	w1b1
			TotalCurrency	250
			TotalCount	6
			MaxActive	6
			SpawnCount	2
			Where	spawnbot_low
			WaitBeforeStarting	15
			WaitBetweenSpawns	18
                        Squad 
                        {
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Spammer_Reload
                                }
				TFBot
				{
					Name	"Quick Uber Medic"
					Template	T_TFBot_Medic_QuickUber
				}
			}
		}
		WaveSpawn
		{
			Name	w1c
			WaitForAllSpawned	w1b
			TotalCurrency	100
			TotalCount	50
			MaxActive	6
			SpawnCount	2
			Where	spawnbot_low
			WaitBeforeStarting	12
			WaitBetweenSpawns	3
			Support	Limited
			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	w1c
			WaitForAllSpawned	w1b
			TotalCurrency	100
			TotalCount	50
			MaxActive	6
			SpawnCount	3
			Where	spawnbot_high
			WaitBeforeStarting	15
			WaitBetweenSpawns	3
			Support	Limited
			TFBot
			{
				Template	T_TFBot_Pyro_Flaregun
			}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name	w2a
			TotalCurrency	150
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			Where	spawnbot_high
			WaitBeforeStarting	0
			WaitBetweenSpawns	18
			TFBot
			{
				Template	T_TFBot_Giant_Heavyweapons_Shotgun
			}
		}
		WaveSpawn
		{
			Name	w2a
			TotalCurrency	50
			TotalCount	20
			MaxActive	10
			SpawnCount	2
                        Where spawnbot_high
			WaitBeforeStarting	7
			WaitBetweenSpawns	2.25
			Squad
			{
				TFBot
				{
					Class	Soldier
					Skill	Normal
					Attributes	"AlwaysCrit"
				}
				TFBot
				{
					Class Demoman
					Skill Normal
					Attributes	"AlwaysCrit"
				}
			}
		}
		WaveSpawn
		{
			Name	w2b
			WaitForAllSpawned	w2a
			TotalCurrency	150
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			FirstSpawnOutput                                                                                                                                                            
	                {
		                Target boss_spawn_relay                                            
		                Action Trigger                         
	                }
			Tank
			{
				Health	20000
				Name	"tankboss"
				Speed	75
				StartingPathTrackNode	"tank_path_a_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		WaveSpawn
		{
			Name	w2b
			WaitForAllSpawned	w2a
			TotalCurrency	200
			TotalCount	4
			MaxActive	4
			SpawnCount	1
			Where	spawnbot_low
			WaitBeforeStarting	13
			WaitBetweenSpawns	13
			TFBot
			{
				Template	T_TFBot_Giant_Soldier
			}
		}
		WaveSpawn
		{
			Name	w2b
			WaitForAllSpawned	w2a
			TotalCurrency	50
			TotalCount	22
			MaxActive	8
			SpawnCount	4
			Where	spawnbot_low
			WaitBeforeStarting	18
			WaitBetweenSpawns	3.5
			TFBot
			{
                        ClassIcon pyro_dragon_fury_swordstone
                                Name "Dragon's Fury Pyro"
				Class Pyro
                                Skill Normal
                                Item "The Dragon's Fury"
				MaxVisionRange	600
				CharacterAttributes
				{
					"airblast disabled" 1
				}
			}
		}
		WaveSpawn
		{
			Name	w2c
			WaitForAllSpawned	w2b
			TotalCurrency	50
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			Where	spawnbot_low
			WaitBeforeStarting	17
			WaitBetweenSpawns	17
			Squad
			{
				TFBot
				{
					Class Pyro
					Name "Giant Phlogistinator Pyro"
					ClassIcon pyro_phlog_v2
					Skill Hard
					WeaponRestrictions PrimaryOnly
					Attributes	"SpawnWithFullCharge"
					Attributes MiniBoss
					Health 3000
					Item	"The Phlogistinator"
					Item	"the bubble pipe"
					ItemAttributes
					{
						ItemName "The Phlogistinator"
						"airblast disabled" 0
						"increase buff duration" 6.2
						"mod rage on hit bonus" 420
						"mult airblast refire time" 0.01
					}
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.6
						"airblast vulnerability multiplier" 0.6
						"override footstep sound set" 6
					}
				}
				TFBot
				{
                                        Name "Quick Uber Medic"
					Template	T_TFBot_Medic_QuickUber
				}
			}
		}
		WaveSpawn
		{
			Name	w2c1
			WaitForAllSpawned	w2c
			TotalCurrency	50
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			Where	spawnbot_low
			WaitBeforeStarting	18
			WaitBetweenSpawns	17
			Squad
			{
				TFBot
                		{
                    		Class Demoman
					Name "Giant Iron Burst Demo"
					ClassIcon demo_clusterbomb
					Skill Expert
					Health 3300
					WeaponRestrictions PrimaryOnly
					//MaxVisionRange 800
					Attributes MiniBoss
					Attributes HoldFireUntilFullReload
					Item "The Iron Bomber"
					Item "The Hurt Locher"
					Item "Conjurer's Cowl"
					ItemAttributes
					{
						ItemName "The Iron Bomber"
						// "damage bonus"						1.2
						"faster reload rate" 0.6
						"fire rate bonus" 0.1
						"clip size upgrade atomic" 8
						"Projectile speed increased" 1.2
						"projectile spread angle penalty" 3
						"fuse bonus" 0.2
					}
					CharacterAttributes
					{
						"move speed bonus" 0.5
						"damage force reduction" 0.5
						"airblast vulnerability multiplier" 0.5
						"override footstep sound set" 4
					}
                		}
				TFBot
				{
					ClassIcon	medic_kritz_armored
					Health	450
					Name	"Armored Kritz Medic"
					Scale 1.4
					Class	Medic
					Skill	Expert
					WeaponRestrictions	SecondaryOnly
					Attributes	"SpawnWithFullCharge"
					ItemAttributes
					{
						ItemName	"the kritzkrieg"
						"uber duration bonus"	2000
					}
					CharacterAttributes
					{
						"bot medic uber health threshold"	500
					}
					Item	"the kritzkrieg"
				}
			}
		}
		WaveSpawn
		{
			Name	w2cc
			WaitForAllSpawned	w2b
			TotalCurrency	50
			TotalCount	20
			MaxActive	8
			SpawnCount	4
			Where	spawnbot_low
			WaitBeforeStarting	13
			WaitBetweenSpawns	4.25
			Support 1
			TFBot
			{
				Class	Scout
				Skill	Hard
				MaxVisionRange	600
			}
		}
		WaveSpawn
		{
			Name	w2cc
			WaitForAllSpawned	w2b
			TotalCurrency	50
			TotalCount	18
			MaxActive	7
			SpawnCount	1
			Where	spawnbot_high
			WaitBeforeStarting	13
			WaitBetweenSpawns	1.25
			Support 1
			TFBot
			{
				Template	T_TFBot_Demoman_Knight
			}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name	w3a
			TotalCurrency	200
			TotalCount	8
			MaxActive	8
			SpawnCount	4
			Where	spawnbot_high
			WaitBeforeStarting	0
			WaitBetweenSpawns	20
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons_Deflector
				}
				TFBot
				{
                              	ClassIcon medic_shield_lite
					Class Medic
					Skill Easy
                              		Name   "Shield Medic"
			      		ItemAttributes
			      		{
				      		ItemName "TF_WEAPON_SYRINGEGUN_MEDIC"
				      		"damage penalty" 0.1
			      		}
			      		CharacterAttributes
            			      	{
                			      	"bot medic uber deploy delay duration" 900
            			      	}
                              		Attributes 	"ProjectileShield"
                              		Attributes	"SpawnWithFullCharge"
					Attributes	"IgnoreEnemies"
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
				TFBot
				{
					Template	T_TFBot_Medic
				}
			}
		}
		WaveSpawn
		{
			Name	w3a
			TotalCurrency	50
			TotalCount	24
			MaxActive	8
			SpawnCount	4
			Where	spawnbot_high
			WaitBeforeStarting	2
			WaitBetweenSpawns	4
			TFBot
			{
				Template	T_TFBot_Demo_Burst
			}
		}
		WaveSpawn
		{
			Name	w3aa
			TotalCurrency	50
			TotalCount	18
			MaxActive	6
			SpawnCount	2
			Where	spawnbot_low
			WaitBeforeStarting	4
			WaitBetweenSpawns	2
			TFBot
			{
                        ClassIcon sniper_bow_ignite
				Skill	Hard
				Name	"Fire Bowman"
				Template	T_TFBot_Sniper_Huntsman
				Item	"spine-chilling skull"
                                ItemAttributes
                                {
                                        Itemname "the huntsman"
                                        "attach particle effect"	13
                                        "Set DamageType Ignite" 1
                                }
			}
		}
		WaveSpawn
		{
			Name	w3b
			WaitForAllSpawned	w3a
			TotalCurrency	150
			TotalCount	6
			MaxActive	5
			SpawnCount	1
			Where	spawnbot_low
			WaitBeforeStarting	12
			WaitBetweenSpawns	10
			TFBot
			{
				Template	T_TFBot_Giant_Soldier_RocketShotgun
			}
		}
		WaveSpawn
		{
			Name	w3b
			WaitForAllSpawned	w3a
			TotalCurrency	50
			TotalCount	24
			MaxActive	6
			SpawnCount	3
			Where	spawnbot_low
			WaitBeforeStarting	13
			WaitBetweenSpawns	2
			TFBot
			{
                        ClassIcon pyro_dragon_fury_swordstone
                                Name "Dragon's Fury Pyro"
				Class Pyro
                                Skill Normal
                                Item "The Dragon's Fury"
				MaxVisionRange	600
				CharacterAttributes
				{
					"voice pitch scale"	0 
				}
			}
		}
		WaveSpawn
		{
			Name	w3bb
			WaitForAllDead	w3a
			TotalCurrency	50
			TotalCount	16
			MaxActive	8
			SpawnCount	4
			Where	spawnbot_low
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			TFBot
			{
				Class	Scout
				Skill	Easy
				Attributes	"AlwaysCrit"

			}
		}
		WaveSpawn
		{
			Name	w3c
			WaitForAllDead	w3b
			TotalCurrency	250
			TotalCount	9
			MaxActive	6
			SpawnCount	3
			Where	spawnbot_high
			WaitBeforeStarting	3
			WaitBetweenSpawns	17
			TFBot
			{
				Template	T_TFBot_Giant_Scout
				Attributes	"AlwaysCrit"
			}
		}
		WaveSpawn
		{
			Name	w3c
			WaitForAllSpawned	w3b
			TotalCurrency	100
			TotalCount	100
			MaxActive	8
			SpawnCount	4
			Where	spawnbot_low
			WaitBeforeStarting	12
			WaitBetweenSpawns	2
			Support	Limited
			TFBot
			{
				Health	300
				Name	Heavy
				Class	HeavyWeapons
				Skill	Normal
				MaxVisionRange	800
			}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name	w4a
			TotalCurrency	225
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			Where	spawnbot_low
			WaitBeforeStarting	0
			WaitBetweenSpawns	20
			Squad
			{
				TFBot
				{
				ClassIcon	pyro_ricochet_nys
					Health	3300
					Name	"Giant Richochet Pyro"
					Class	Pyro
					Skill	Expert
					WeaponRestrictions	PrimaryOnly
					Attributes	"AlwaysFireWeapon"
					Attributes	"MiniBoss"
					Item "The Last Breath"
					Item "The Smoking Skid Lid"
					Item "The Lunatic's Leathers"
					ItemAttributes
					{
						ItemName	"tf_weapon_flamethrower"
						"flame_drag" 6
						"max_flame_reflection_count" 1000
						"flame_reflect_on_collision" 1000
						"flame_spread_degree" 5
						"flame_up_speed" -25
						"lunchbox adds minicrits" 2
					}
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"airblast vulnerability multiplier"	0.1
						"override footstep sound set"	4
						"rage giving scale"	0.5
						"airblast vertical vulnerability multiplier"	0.1
					}
				}
				TFBot
				{
					Class Pyro
					Name "Giant Pyro"
					ClassIcon pyro_reflect_daan //had too add this useless icon
					Skill Expert
					Health 3000
					WeaponRestrictions PrimaryOnly
					Attributes MiniBoss
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.6
						"airblast vulnerability multiplier" 0.6
						"override footstep sound set" 6
					}
				}
			}
		}
		WaveSpawn
		{
			Name	w4a
			TotalCurrency	75
			TotalCount	22
			MaxActive	12
			SpawnCount	4
			Where	spawnbot_high
			WaitBeforeStarting	1
			WaitBetweenSpawns	3.5
			TFBot
			{
				Health	300
				Name	Heavy
				Class	HeavyWeapons
				Skill	Hard
				MaxVisionRange	800
			}
		}
		WaveSpawn
		{
			Name	w4b
			WaitForAllSpawned	w4a
			TotalCurrency	250
			TotalCount	3
			MaxActive	2
			SpawnCount	1
			Where	spawnbot_high
			WaitBeforeStarting	12
			WaitBetweenSpawns	12
			TFBot
			{
                        ClassIcon soldier_buff_spammer
				Name	"Giant Rapid Fire Buff Soldier"
				Template	T_TFBot_Giant_Soldier_Extended_Buff_Banner
				ItemAttributes
				{
					ItemName	tf_weapon_rocketlauncher
					"fire rate bonus"	0.5
					"Projectile speed increased" 0.65
					"faster reload rate"	-0.8
				}
			}
		}
		WaveSpawn
		{
			Name	w4b
			WaitForAllSpawned	w4a
			TotalCurrency	200
			TotalCount	3
			MaxActive	2
			SpawnCount	1
			Where	spawnbot_high
			WaitBeforeStarting	15
			WaitBetweenSpawns	14
			TFBot
			{
                        	Template	T_TFBot_Giant_Heavyweapons_Shotgun
			}
		}
		WaveSpawn
		{
			Name	w4b
			WaitForAllSpawned	w4a
			TotalCurrency	50
			TotalCount	30
			MaxActive	8
			SpawnCount	2
			Where	spawnbot_high
			WaitBeforeStarting	17
			WaitBetweenSpawns	2
			TFBot
			{
				Health	175
				Name	Demoman
				Class	Demoman
				Skill	Hard
			}
		}
		WaveSpawn
		{
			Name	w4c1
			WaitForAllSpawned	w4b
			TotalCurrency	200
			TotalCount	8
			MaxActive	6
			SpawnCount	2
                        Where spawnbot_low
			WaitBeforeStarting	7
			WaitBetweenSpawns	16
			Squad
			{
				TFBot
				{
                                ClassIcon soldier_burstfire_hyper_lite
					Class Soldier
					Name "Giga Burst Fire Soldier"
					Health 4200
					Skill Expert
					WeaponRestrictions PrimaryOnly
					Attributes MiniBoss
					Attributes HoldFireUntilFullReload
					Item "Tyrant's Helm"
					ItemAttributes
					{
						ItemName "TF_WEAPON_ROCKETLAUNCHER"
						"damage bonus" 2.0
						"faster reload rate" 0.4
						"fire rate bonus" 0.2
						"clip size upgrade atomic" 5.0
					}
					CharacterAttributes
					{
						"move speed bonus"	0.5
						"damage force reduction" 0.4
						"airblast vulnerability multiplier" 0.4
						"override footstep sound set" 3
						"Projectile speed increased" 0.9
					}
				}
				TFBot
				{
					ClassIcon	medic_kritz_armored
					Health	450
					Name	"Armored Kritz Medic"
					Scale 1.4
					Class	Medic
					Skill	Expert
					WeaponRestrictions	SecondaryOnly
					Attributes	"SpawnWithFullCharge"
					ItemAttributes
					{
						ItemName	"the kritzkrieg"
						"uber duration bonus"	2000
					}
					CharacterAttributes
					{
						"bot medic uber health threshold"	500
					}
					Item	"the kritzkrieg"
				}
			}
		}
		WaveSpawn
		{
			Name	w4c
			WaitForAllSpawned	w4b
			TotalCurrency	200
			TotalCount	2
			MaxActive	2
			SpawnCount	1
			Where	spawnbot_high
			WaitBeforeStarting	15
			WaitBetweenSpawns	20
			TFBot
			{
				Template	T_TFBot_Giant_Heavyweapons
				Attributes	"AlwaysCrit"
			}
		}
		WaveSpawn
		{
			Name	w4c
			WaitForAllSpawned	w4b
			TotalCurrency	100
			TotalCount	50
			MaxActive	8
			SpawnCount	4
			Where	spawnbot_high
			WaitBeforeStarting	12
			WaitBetweenSpawns	4
                        Support Limited
			TFBot
			{
                  	ClassIcon sniper_carbine
				Health	125
				Name	"Carbine Sniper"
				MaxVisionRange 1200
				Class	Sniper
				Skill	Hard
				WeaponRestrictions	SecondaryOnly
				Item	"the cleaner's carbine"
			}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name	w5a1
			TotalCurrency	250
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			FirstSpawnOutput                                                                                                                                                            
	                {
		                Target boss_spawn_relay                                            
		                Action Trigger                         
	                }
			Tank
			{
				Health	43000
				Name	"tankboss"
				Speed	75
				StartingPathTrackNode	"tank_path_a_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		WaveSpawn
		{
			Name	w5a
			TotalCurrency	150
			TotalCount	4
			MaxActive	4
			SpawnCount	2
			Where	spawnbot_low
			WaitBeforeStarting	10
			WaitBetweenSpawns	20
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Soldier_Spammer
				        Attributes	"AlwaysCrit"
				}
				TFBot
				{
				ClassIcon medic_pop
					Template	T_TFBot_Giant_Medic
				}
			}
		}
		WaveSpawn
		{
			Name	w5a
			TotalCurrency	150
			TotalCount	18
			MaxActive	9
			SpawnCount	3
			Where	spawnbot
			WaitBeforeStarting	15
			WaitBetweenSpawns	2.75
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Heavyweapons_Shotgun
				}
				TFBot
				{
				ClassIcon pyro_reflect_daan
                               		Name "Pyro"
					Skill	Hard
					Class Pyro
				}
				TFBot
				{
				ClassIcon pyro_reflect_daan
                               		Name "Pyro"
					Skill	Hard
					Class Pyro
				}
			}
		}
		WaveSpawn
		{
			Name	w5b
			WaitForAllSpawned	w5a
			TotalCurrency	150
			TotalCount	12
			MaxActive	10
			SpawnCount	2
			Where	spawnbot_low
			WaitBeforeStarting	15
			WaitBetweenSpawns	9
			TFBot
			{
                                Template	T_TFBot_Giant_Demo_Burst
			}
		}
		WaveSpawn
		{
			Name	w5b
			WaitForAllSpawned	w5a
			TotalCurrency	50
			TotalCount      24
			MaxActive	6
			SpawnCount	3
			Where	spawnbot_low
			WaitBeforeStarting	12
			WaitBetweenSpawns	3
			TFBot
			{
				ClassIcon heavy_deflector
				Health	300
				Skill	Hard
				Name	"Deflector Heavy"
				Class	HeavyWeapons
				Item	"deflector"
				Item	"the u-clank-a"
				MaxVisionRange	800
                        	ItemAttributes
				{
					ItemName "Deflector"
					"attack projectiles" 1	
				}
			}
		}
		WaveSpawn
		{
			Name	w5b
			WaitForAllDead	w5a
			TotalCurrency	50
			TotalCount	21
			MaxActive	6
			SpawnCount	2
			Where	spawnbot_high
			WaitBeforeStarting	5
			WaitBetweenSpawns	2
			TFBot
			{
                        ClassIcon demoknight_persian_nys
				Name	"Persian Demoknight"
				Template	T_TFBot_Demoman_Knight
				Attributes	"AlwaysCrit"
				Item	"the persian persuader"
				Item	"sultan's ceremonial"
			}
		}
		WaveSpawn
		{
			Name	w5c
			WaitForAllSpawned	w5b
			TotalCurrency	100
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	12
			FirstSpawnOutput                                                                                                                                                            
	                {
		                Target boss_spawn_relay                                            
		                Action Trigger                         
	                }
			Tank
			{
				Health	35000
				Name	"tankboss"
				Speed	90
                                Skin 1
				StartingPathTrackNode	"tank_path_a_1"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		WaveSpawn
		{
			Name	w5c
			WaitForAllSpawned	w5b
			TotalCurrency	50
			TotalCount	3
			MaxActive	3
			SpawnCount	1
			Where	spawnbot_high
			WaitBeforeStarting	12
			WaitBetweenSpawns	15
			TFBot
			{
                        ClassIcon heavy_heal
				Name	"Giant Heal on Kill Heavy"
				Template	T_TFBot_Giant_Heavyweapons
				Attributes	"UseBossHealthBar"
				Attributes	"AlwaysCrit"
				Item	"tough guy's toque"
				CharacterAttributes
				{
					"heal on kill"	5000
				}
			}
		}
		WaveSpawn
		{
			Name	w5c
			WaitForAllSpawned	w5b
			TotalCurrency	50
			TotalCount	5
			MaxActive	4
			SpawnCount	1
			Where	spawnbot_low
			WaitBeforeStarting	15
			WaitBetweenSpawns	11
			TFBot
			{
				Template	T_TFBot_Giant_Soldier_SlowBarrage
				Attributes	"AlwaysCrit"
			}
		}
		WaveSpawn
		{
			Name	w5c
			WaitForAllDead	w5b
			TotalCurrency	50
			TotalCount	50
			MaxActive	12
			SpawnCount	3
			Where	spawnbot
			WaitBeforeStarting	5
			WaitBetweenSpawns	2.5
			Support	Limited
			TFBot
			{
                        ClassIcon pyro_dragon_fury_swordstone
                                Name "Dragon's Fury Pyro"
				Class Pyro
                                Skill Expert
                                Item "The Dragon's Fury"
				MaxVisionRange	600
				CharacterAttributes
				{
					"airblast disabled" 1
				}
			}
		}
	}
}