#base robot_standard.pop
#base robot_giant.pop
#base robot_zilloy.pop
#base robot_zilloy_standard.pop // Спасибо, Зиллой)))

WaveSchedule
{
    StartingCurrency 500 // CHANGED FROM : 600
	RespawnWaveTime 6
	FixedRespawnWaveTime Yes
	CanBotsAttackWhileInSpawnRoom No
	ImprovedAirblast 1  
	FlagResetTime  
	{
		Name "bomb_1"
		ResetTime 90
	}
	FlagResetTime  
	{
		Name "bomb_2"
		ResetTime 90
	}
	FlagResetTime  
	{
		Name "bomb_3"
		ResetTime 90
	}
	Templates
	{
	   T_TFBot_Pyro_Giant_FlareBarrage
	   {
	     Class Pyro
		 Name "Giant Flare Barrage Pyro"
		 Health 3000
		 Skill Expert
		 ClassIcon pyro_flare_rain_nys
		 Attributes MiniBoss
		 WeaponRestrictions SecondaryOnly
		 Item "the detonator"
		 CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 6
			}
		 ItemAttributes
		 {
		    ItemName "the detonator"
			"fire rate bonus" 0.2 // 500% faster fire rate
			"mult projectile count" 4.0
			"projectile spread angle penalty" +7.0 // CHANGED FROM : +5.0
			"Projectile speed increased HIDDEN" 0.3
			"projectile gravity native" 0.00001 // completely removes gravity from flares
	     }
	   }
	   T_TFBot_Scout_Giant_FaN_Bonk
	   {
		    Template T_TFBot_Giant_Scout_Bonk
			Action EscortFlag
			Name "Giant Bonk FaN Scout"
			WeaponRestrictions PrimaryOnly
			Item "the force-a-nature"
			ItemAttributes
			{
				ItemName "the Force-a-Nature"
				"bullets per shot bonus" 2
				"fire rate bonus" 0.5
				"faster reload rate" 1.7
				"scattergun knockback mult" 6
				"damage penalty" 0.35
				"weapon spread bonus" 0.4
			}
	   }
	   T_TFBot_Heavy_Vampire_Bear
	   {
	     Class Heavy
		 Name "Vampire Bear"
		 ClassIcon heavy_warrior
		 Item "warrior's spirit"
		 Item "The Bear Necessities"
		 Skill Hard
		 UseHumanModel 1
		 WeaponRestrictions MeleeOnly
		 Action Mobber
		 ItemAttributes
		 {
		    ItemName "warrior's spirit"
			"bleeding duration" 5
			"add cond when active" 32 // whip cond
			"add cond when active" 30 // marked for death cond
		 }
	   }
	   T_TFBot_The_Defender
		 {
		    Class Engineer
			Name "The Defender"
			Action Mobber
			AimTrackingInterval 0  
			UseMeleeThreatPrioritization 1  
			Health 300
			Scale 1.3
			UseHumanModel 1
			ClassIcon engineer_ally
			Attributes IgnoreFlag
			Item "The Frontier Justice"
			Item "The Tools of the Trade"
			Item "Western Wear"
			AddCond { Name TF_COND_REPROGRAMMED }
			CharacterAttributes
			{
			  "faster reload rate" 0.01
			  "heal on hit for slowfire" 200
			  "collect currency on kill" 1
			}
			ItemAttributes
			{
			  ItemName "The Frontier Justice"
			  "bullets per shot bonus" 5
			  "fire rate bonus" 0.85
			  "cannot be upgraded" 1
			  "clip size bonus" 0.66
			}
		 }
	}
	Mission // WAVE 1 Sniper
	{
	   Objective Sniper
	   Where spawnbot_a_mission_sniper
	   BeginAtWave 1
	   RunForThisManyWaves 1
	   InitialCooldown 30
	   CooldownTime 30
	   DesiredCount 2
	   TFBot
	   {
	    Template T_TFBot_Sniper_Sydney_Sleeper
	   }
	}
	Mission
	{
	   Objective DestroySentries
	   Where spawnbot_chief
	   BeginAtWave 1
	   RunForThisManyWaves 6
	   InitialCooldown 30
	   CooldownTime 45
	   DesiredCount 1
	   TFBot
	   {
	    Template T_TFBot_SentryBuster
	   }
	}
	Mission // WAVE 3 SPIES
	{
	   Objective Spy
	   Where spawnbot
	   BeginAtWave 3
	   RunForThisManyWaves 1
	   InitialCooldown 30
	   CooldownTime 45
	   DesiredCount 2
	   TFBot
	   {
	     Template T_TFBot_Spy
	   }
	}
	Mission // WAVE 2 ENGINEER, Teleports the main spawn (spawnbot), and the spawn on the side (spawnbot_a_giant)
	{
	   Objective Engineer
	   Where spawnbot
	   BeginAtWave 2
	   RunForThisManyWaves 1
	   InitialCooldown 60
	   CooldownTime 60
	   DesiredCount 1
	   TFBot
	   {
	     Template T_TFBot_Engineer_Sentry_Teleporter
		 TeleportWhere spawnbot_a_giant
	   }
	}
    Mission // WAVE 4 ENGINEER, Teleports same spawns as above
	{
	   Objective Engineer
	   Where spawnbot
	   BeginAtWave 4
	   RunForThisManyWaves 1
	   InitialCooldown 60
	   CooldownTime 60
	   DesiredCount 1
	   TFBot
	   {
	     Template T_TFBot_Engineer_Sentry_Teleporter
		 TeleportWhere spawnbot_a_giant
	   }
	}
    Mission // WAVE 6 SNIPERS. Same as WAVE 1, but with decreased InitialCooldown 
    {
	    Objective Sniper
		Where spawnbot_a_mission_sniper
		BeginAtWave 6
		RunForThisManyWaves 1
	    InitialCooldown 20
		CooldownTime 30
	    DesiredCount 3
		TFBot
	    {
	       Template T_TFBot_Sniper_Sydney_Sleeper
	    }
    }
	Mission // WAVE 5 SNIPERS. Same as WAVE 1.
    {
	    Objective Sniper
		Where spawnbot_a_mission_sniper
		BeginAtWave 5
		RunForThisManyWaves 1
	    InitialCooldown 30
		CooldownTime 30
	    DesiredCount 2
		TFBot
	    {
	       Template T_TFBot_Sniper_Sydney_Sleeper
	    }
    }
    Mission // WAVE 6 SPIES, Same as WAVE 3 spies, but with decreased CooldownTime and InitialCooldown.
	{
	   Objective Spy
	   Where spawnbot
	   BeginAtWave 6
	   RunForThisManyWaves 1
	   InitialCooldown 20
	   CooldownTime 35
	   DesiredCount 2
	   TFBot
	   {
	     Template T_TFBot_Spy
	   }
	}	
	ExtraSpawnPoint // Red bot spawn
    {
        Name "spawnbot_red"
        TeamNum 3 
        X	"-4664.596680"                     
        Y	"287.231506"                  
        Z	"54.263996" 

    }
	Wave // Wave 1 CURRENCY : 500
	{
	   StartWaveOutput
	   {
            Target wave_start_relay
            Action Trigger			
	   }
	   DoneOutput
	   {
		    Target wave_finished_relay
			Action Trigger
	   }
	   InitWaveOutput
	   {
	        Target bomb_1
			Action Enable
	   }
	   WaveSpawn
	   {
	     Where spawnbot_chief
		 Name wave01_1
		 TotalCurrency 114
		 TotalCount 16
		 SpawnCount 4
		 MaxActive 8
		 WaitBetweenSpawns 20
		 Squad
		 {
		   TFBot
		   {
		    Template T_TFBot_Pyro_Giant_FlareBarrage
		   }
           TFBot
           {
		    Template T_TFBot_Medic_Kritzkrieg
			ClassIcon medic_kritz2 
		   }
           TFBot
           {
		    Template T_TFBot_Medic_Kritzkrieg
			ClassIcon medic_kritz2
		   }
           TFBot
           {
		    Template T_TFBot_Medic_Kritzkrieg
			ClassIcon medic_kritz2
		   }		   
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_a_giant 
		 TotalCurrency 50
		 TotalCount 25
		 SpawnCount 3
		 Support 1
		 WaitBetweenSpawns 10
		 WaitBeforeStarting 5
		 MaxActive 3
		 TFBot
		 {
		    Template T_TFBot_Heavy_Vampire_Bear
			Action Mobber
			Tag nav_prefer_flank_right
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_red
		 Support 1
		 SpawnCount 1
		 MaxActive 1
		 TotalCount 1
		 WaitBetweenSpawns 30
		 TFBot
		 {
		    Template T_TFBot_The_Defender
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_chief
		 Name wave01_2
		 WaitForAllDead wave01_1
		 TotalCurrency 136
         TotalCount 24
		 SpawnCount 6
		 MaxActive 12
		 WaitBetweenSpawns 20
		 Squad
		 {
		    TFBot
			{
			  Template T_TFBot_Giant_Soldier_Spammer_Reload
			}
			TFBot
			{
			  Class Pyro
			  Skill Expert
			}
			TFBot
			{
			  Class Pyro
			  Skill Expert
			}
			TFBot
			{
			  Class Pyro
			  Skill Expert
			}
			TFBot
			{
			  Class Pyro
			  Skill Expert
			}
			TFBot
			{
			  Class Pyro
			  Skill Expert
			}
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_a_giant
		 Name wave01_1a
		 TotalCount 16
		 TotalCurrency 100
		 SpawnCount 4
		 MaxActive 4
		 WaitBeforeStarting 10
		 WaitBetweenSpawns 8
		 TFBot
		 {
		   Template T_TFBot_Demo_Burst
		   Tag nav_prefer_flank_right
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_a_giant
		 Name wave01_2a
		 TotalCount 20
		 SpawnCount 4
		 MaxActive 4
		 TotalCurrency 100
		 WaitBeforeStarting 5
		 WaitBetweenSpawns 10
		 WaitForAllDead wave01_1a
		 TFBot
		 {
		    Class Heavyweapons
			Skill Expert
			Tag nav_prefer_flank_right
		 }
	   }
	}
	Wave // WAVE 2 : 600 CURRENCY
	{
	  StartWaveOutput
	   {
            Target wave_start_relay
            Action Trigger			
	   }
	   DoneOutput
	   {
		    Target wave_finished_relay
			Action Trigger
	   }
	   InitWaveOutput
	   {
	        Target bomb_1
			Action Enable
	   }
	   WaveSpawn
	   {
	     Where spawnbot_a_giant
		 Name wave02_supportbison
		 Support 1
		 TotalCurrency 50
		 TotalCount 24
		 SpawnCount 3
		 MaxActive 3
		 WaitBeforeStarting 10
		 WaitBetweenSpawns 7
		 TFBot
		 {
		    Template T_TFBot_Soldier_Bison
			Attributes AlwaysCrit
			Tag nav_prefer_flank_right
			WeaponRestrictions SecondaryOnly
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot
		 Name wave02_1
		 TotalCurrency 100
		 TotalCount 20
		 SpawnCount 5
		 MaxActive 5
		 WaitBeforeStarting 1
		 WaitBetweenSpawns 5
		 Squad
		 {
		  TFBot
		  {
		    Template T_TFBot_Sniper_Bow_Bleed
		  }
		  TFBot
		  {
		    Template T_TFBot_Sniper_Bow_Bleed
		  }
		  TFBot
		  {
		    Template T_TFBot_Sniper_Bow_Bleed
		  }
		  TFBot
		  {
		    Template T_TFBot_Sniper_Bow_Bleed
		  }
		  TFBot
		  {
		    Template T_TFBot_Sniper_Bow_Bleed
		  }
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_chief
		 Name wave02_1
		 TotalCurrency 150
		 TotalCount 4
		 SpawnCount 1
		 MaxActive 1
		 WaitBeforeStarting 0
		 WaitBetweenSpawns 20
		 TFBot
		 {
		    Template T_TFBot_Giant_Heavyweapons_Shotgun			
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_red
		 Support 1
		 TotalCount 1
		 SpawnCount 1
		 MaxActive 1
		 WaitBetweenSpawns 30
		 TFBot
		 {
		    Template T_TFBot_The_Defender
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_a_giant
		 Name wave02_1a
		 SpawnCount 3
		 TotalCount 12
		 TotalCurrency 120
		 MaxActive 3
		 WaitBeforeStarting 15
		 WaitBetweenSpawns 15
		 TFBot
		 {
		    Template T_TFBot_Demoman_Samurai
			Action Mobber
		 }
	   }
	   WaveSpawn
	   {
	     Name wave02_2_1
		 TotalCurrency 90
		 TotalCount 5
		 SpawnCount 1
		 Where spawnbot_chief
		 MaxActive 1
		 WaitBeforeStarting 5
		 WaitForAllDead wave02_1
		 WaitBetweenSpawns 20
		 TFBot
		 {
		    Template T_TFBot_Giant_Scout
			CharacterAttributes
			{
			   "damage bonus" 1.5
			}
		 }
	   }
	   WaveSpawn
	   {
	     Name wave02_2_2
		 TotalCurrency 90
		 TotalCount 24
		 SpawnCount 8
		 Where spawnbot
		 MaxActive 8
		 WaitBeforeStarting 5
		 WaitForAllDead wave02_1
		 WaitBetweenSpawns 5
		 Squad
		 { // Look at this perfect formating, everything is on the same level hehehehehe
		 TFBot
		 {
		    Template T_TFBot_Soldier_RocketShotgun
		 }
		 TFBot
		 {
		    Template T_TFBot_Soldier_RocketPush
		 }
		 }
	   }
	}
	Wave // WAVE 3 CURRENCY : 400
	{
	   StartWaveOutput
	   {
            Target wave_start_relay
            Action Trigger			
	   }
	   DoneOutput
	   {
		    Target wave_finished_relay
			Action Trigger
	   }
	   InitWaveOutput
	   {
	        Target bomb_1
			Action Enable
	   }
	   WaveSpawn
	   {
	      TotalCount 1
		  SpawnCount 1
		  MaxActive 1
		  WaitBeforeStarting 0
		  TotalCurrency 75
		  Name wave03_tank
		  Tank
		  {
		    Health  30000
		    Name    "Tank"
			Speed   75
			StartingPathTrackNode  "02_tank_path1"
				   
		    OnKilledOutput
			{
		      Target boss_dead_relay
			  Action Trigger
			}
				   
			OnBombDroppedOutput
			{
			  Target bomb_deploy_relay
			  Action Trigger
			}
		  }
	   } 
	   WaveSpawn
	   {
	      Where spawnbot_chief
		  TotalCount 4
		  SpawnCount 2
		  MaxActive 4
		  WaitBeforeStarting 0
		  WaitBetweenSpawns 45
		  TotalCurrency 50
		  Name wave03_1
		  Squad
		  {
		    TFBot
			{
			  Template T_TFBot_Pyro_Giant_FlareBarrage
			}
			TFBot
			{
			  Template T_TFBot_Giant_Medic
			}
		  }
	   }
	   WaveSpawn
	   {
	     Where spawnbot
		 Name wave03_doesntmatterlmao
		 TotalCurrency 75
		 SpawnCount 4
		 WaitBeforeStarting 1
		 WaitBetweenSpawns 15
		 MaxActive 8
		 TotalCount 16
		 TFBot
		 {
		   Template T_TFBot_Demoman_LochnLoad
		   Skill Hard
		   ClassIcon demo_lochload
		   Name "Loch-n-Load Demoman"
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_chief
		 Name wave03_2
		 WaitForAllDead wave03_1
		 SpawnCount 2
		 MaxActive 4
		 TotalCount 6
		 TotalCurrency 50
		 WaitBeforeStarting 10
		 WaitBetweenSpawns 35
		 TFBot
		 {
		    Template T_TFBot_Giant_Demo_Burst
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_a_giant
		 Name wave03_2a
		 TotalCount 48
		 SpawnCount 8
		 WaitForAllDead wave03_1
		 MaxActive 8
		 TotalCurrency 50
		 WaitBeforeStarting 3
		 WaitBetweenSpawns 5
		 Squad
		 {
		 TFBot
		 {
		    Class Soldier
			Skill Hard
		 }
		 TFBot
		 {
		    Class Pyro
			Skill Hard
		 }
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_red
		 TotalCount 1
		 Support 1
		 SpawnCount 1
		 MaxActive 1
		 WaitBetweenSpawns 30
		 TFBot
		 {
		    Template T_TFBot_The_Defender
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot
		 TotalCurrency 100
		 TotalCount 25
		 MaxActive 5
		 SpawnCount 5
		 WaitForAllSpawned wave03_2a
		 WaitBeforeStarting 10
		 Support 1
		 WaitBetweenSpawns 5
		 Squad
		 {
		   TFBot
		   {
		     Template T_TFBot_Demoman_Knight_LongCharge
			 Attributes AlwaysCrit
		   }
		   TFBot
		   {
		     Template T_TFBot_Demoman_Knight_LongCharge
			 Attributes AlwaysCrit
		   }
		   TFBot
		   {
		     Template T_TFBot_Demoman_Knight_LongCharge
			 Attributes AlwaysCrit
		   }
		   TFBot
		   {
		     Template T_TFBot_Demoman_Knight_LongCharge
			 Attributes AlwaysCrit
		   }
		   TFBot
		   {
		     Template T_TFBot_Demoman_Knight_LongCharge
			 Attributes AlwaysCrit
		   }
		 }
	   }
	}
	Wave // WAVE 4 CURRENCY : 500
	{
	   StartWaveOutput
	   {
            Target wave_start_relay
            Action Trigger			
	   }
	   DoneOutput
	   {
		    Target wave_finished_relay
			Action Trigger
	   }
	   InitWaveOutput
	   {
	        Target bomb_1
			Action Enable
	   }
	   WaveSpawn
	   {
	      SpawnCount 0
		  TotalCount 0
		  Where spawnbot
		  Name 04dummy1
		  WaitBeforeStarting 0
		  FirstSpawnOutput
		  {
		    Target bomb_3
			Action Enable
		  }
	   }
	   WaveSpawn
	   {
	      Where spawnbot_chief
		  Name wave04_bonk
		  TotalCurrency 50
		  TotalCount 3
		  MaxActive 3
		  WaitBeforeStarting 1
		  SpawnCount 3
		  Squad
		  {
		  NoFormation 1  
		  TFBot
		  {
		    Template T_TFBot_Scout_Giant_FaN_Bonk
		  }
		  TFBot
		  {
		    Template T_TFBot_Scout_Giant_FaN_Bonk
		  }
		  TFBot
		  {
		    Template T_TFBot_Scout_Giant_FaN_Bonk
		  }
		  }
	   }
	   WaveSpawn
	   {
	      Where spawnbot
		  Name wave04_yes
	      TotalCurrency 50
		  TotalCount 30
		  SpawnCount 6
		  MaxActive 12
		  WaitForAllDead wave04_bonk
		  WaitBeforeStarting 5
		  WaitBetweenSpawns 15
		  TFBot
		  {
		    Class Scout
			Skill Normal
		  }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_red
		 TotalCount 1
		 Support 1
		 SpawnCount 1
		 MaxActive 1
		 WaitBetweenSpawns 30
		 TFBot
		 {
		    Template T_TFBot_The_Defender
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_chief
		 Name wave04_1
		 TotalCurrency 50
		 TotalCount 12
		 MaxActive 12
		 SpawnCount 6
		 WaitForAllDead wave04_bonk
		 WaitBeforeStarting 5
		 WaitBetweenSpawns 30
		 Squad
		 {
		 TFBot
		 {
		    Template T_TFBot_Giant_Heavyweapons
		 }
		 TFBot
		 {
		    Template T_TFBot_Medic
		 }
		 TFBot
		 {
		    Template T_TFBot_Medic
		 }
		 TFBot
		 {
		    Template T_TFBot_Medic
		 }
		 TFBot
		 {
		    Template T_TFBot_Medic
		 }
		 TFBot
		 {
		    Template T_TFBot_Medic
		 }
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_chief
		 Name wave04_bonk2
		 TotalCurrency 50
		 TotalCount 3
		 SpawnCount 3
		 MaxActive 3
		 WaitBeforeStarting 5
		 WaitForAllDead wave04_1
		 Squad
		 {
		 NoFormation 1  
		 TFBot
		 {
		    Template T_TFBot_Scout_Giant_FaN_Bonk
		 }
		 TFBot
		 {
		    Template T_TFBot_Scout_Giant_FaN_Bonk
		 }
		 TFBot
		 {
		    Template T_TFBot_Scout_Giant_FaN_Bonk
		 }
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_a_giant
		 Name wave04_lol
		 TotalCurrency 37
		 TotalCount 2
		 SpawnCount 1
		 MaxActive 2
		 WaitBetweenSpawns 30
		 WaitBeforeStarting 0
		 WaitForAllDead wave04_bonk2
		 TFBot
		 {
		   Template T_TFBot_Giant_Heavyweapons_Shotgun
		   Tag nav_prefer_flank_right
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_a_giant
		 TotalCurrency 75
		 TotalCount 24
		 SpawnCount 6
		 MaxActive 6
		 WaitForAllDead wave04_lol
		 WaitBeforeStarting 5
		 WaitBetweenSpawns 40
		 Squad
		 {
		   TFBot
		   {
		     Template T_TFBot_Soldier_Extended_Buff_Banner
			 Skill Hard
		   }
		   TFBot
		   {
		     Class Heavyweapons
			 Skill Easy
		   }
		   TFBot
		   {
		     Class Heavyweapons
			 Skill Easy
		   }
		   TFBot
		   {
		     Class Heavyweapons
			 Skill Easy
		   }
		   TFBot
		   {
		     Class Heavyweapons
			 Skill Easy
		   }
		   TFBot
		   {
		     Class Heavyweapons
			 Skill Easy
		   }
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_a_giant
		 Name wave04_2
		 TotalCurrency 38
		 TotalCount 2
		 SpawnCount 1
		 MaxActive 2
		 WaitBetweenSpawns 30
		 WaitBeforeStarting 30
		 WaitForAllDead wave04_lol
		 TFBot
		 {
		   Template T_TFBot_Giant_Heavyweapons_Shotgun
		   Tag nav_prefer_flank_right
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_chief
		 Name wave04_3
		 TotalCurrency 50
		 TotalCount 2
		 WaitForAllSpawned wave04_2
		 MaxActive 2
		 SpawnCount 2
		 WaitBeforeStarting 15
		 Squad
		 {
		 TFBot
		 {
		    Template T_TFBot_Giant_Soldier_Spammer_Reload
			ClassIcon soldier_burstfire_homing_nys
			AddCond
			{
			  Name "TF_COND_SODAPOPPER_HYPE"
			}
			CharacterAttributes
			{
			  "mod projectile heat aim error" 125
			  "mod projectile heat seek power" 45
			  "projectile trail particle" eyeboss_projectile
			}
		 }
		 TFBot
		 {
		    Template T_TFBot_Medic_Kritzkrieg_Giant
			ClassIcon medic_kritz2
		 }
		 }
	   }
	}
    Wave // WAVE 5 : 400 CURRENCY
	{
	   StartWaveOutput
	   {
            Target wave_start_relay
            Action Trigger			
	   }
	   DoneOutput
	   {
		    Target wave_finished_relay
			Action Trigger
	   }
	   InitWaveOutput
	   {
	        Target bomb_1
			Action Enable
	   }
	   WaveSpawn
       {
         SpawnCount 1
		 Name wave05_tank
		 TotalCount 1
		 WaitBeforeStarting 2
		 TotalCurrency 50
		 Tank
		  {
		    Health  18000
		    Name    "Tank"
			Speed   75
			StartingPathTrackNode  "02_tank_path1"	   
		    OnKilledOutput
			{
		      Target boss_dead_relay
			  Action Trigger
			}
				   
			OnBombDroppedOutput
			{
			  Target bomb_deploy_relay
			  Action Trigger
			}
		  }
       }
	   WaveSpawn
	   {
	     SpawnCount 1
		 Name wave05_tank
		 TotalCount 1
		 TotalCurrency 50
		 Tank
		 {
		    Health 18000
		    Name "Tank"
            Speed 75
            StartingPathTrackNode "01_tank_path"		
            OnKilledOutput
			{
		      Target boss_dead_relay
			  Action Trigger
			}
				   
			OnBombDroppedOutput
			{
			  Target bomb_deploy_relay
			  Action Trigger
			}	   
		 }
	   }
	   WaveSpawn
	   {
	     Name wave05_1
		 TotalCurrency 50
		 TotalCount 12
		 SpawnCount 6
		 Where spawnbot_chief
		 MaxActive 6
		 WaitBeforeStarting 0
		 WaitBetweenSpawns 30
		 Squad
		 {
		    FormationSize 100
		    TFBot
			{
			  Template T_TFBot_Pyro_Giant_Jumping // "Very terryfying with crits and QF medic..." Да, Зиллой?))))
			  Attributes AlwaysCrit
			}
			TFBot
			{
			  Template T_TFBot_Medic_BigHeal
			  Action EscortFlag
			  CharacterAttributes
			  {
			    "move speed bonus" 1.5 // Without this the meds can't keep up with the giant pyro 
			  }
			}
			TFBot
			{
			  Template T_TFBot_Medic_BigHeal
			  Action EscortFlag
			  CharacterAttributes
			  {
			    "move speed bonus" 1.5 
			  }
			}
			TFBot
			{
			  Template T_TFBot_Medic_BigHeal
			  Action EscortFlag
			  CharacterAttributes
			  {
			    "move speed bonus" 1.5 
			  }
			}
			TFBot
			{
			  Template T_TFBot_Medic_BigHeal
			  Action EscortFlag
			  CharacterAttributes
			  {
			    "move speed bonus" 1.5 
			  }
			}
			TFBot
			{
			  Template T_TFBot_Medic_BigHeal
			  Action EscortFlag
			  CharacterAttributes
			  {
			    "move speed bonus" 1.5 
			  }
			}
		 }
	   }
	   WaveSpawn
	   {
	     Name wave05_1a
		 TotalCount 18
		 SpawnCount 3
		 MaxActive 6
		 TotalCurrency 25
		 Where spawnbot_a_giant
		 WaitBeforeStarting 10
		 WaitBetweenSpawns 25
		 Squad
		 {
		   TFBot
		   {
		     Template T_TFBot_Heavyweapons_Fist
			 Tag nav_prefer_flank_right
		   }
           TFBot
		   {
		     Template T_TFBot_Heavyweapons_Fist
			 Tag nav_prefer_flank_right
		   }
           TFBot
		   {
		     Template T_TFBot_Heavyweapons_Fist
			 Tag nav_prefer_flank_right
		   }		   
		 }
	   }
	   WaveSpawn
	   {
	     Name wave05_2a
		 TotalCurrency 50
		 TotalCount 15
		 SpawnCount 3
		 MaxActive 6
		 WaitBeforeStarting 5
		 WaitBetweenSpawns 25
		 WaitForAllDead wave05_tank
		 Where spawnbot_a_giant
		 Squad
		 {
		 TFBot
		 {
		    Template T_TFBot_Giant_Soldier_Spammer
			Tag nav_prefer_flank_right
		 }
		 TFBot
		 {
		    Template T_TFBot_Medic_QuickUber
		 }
		 TFBot
		 {
		    Template T_TFBot_Medic_QuickUber
		 }
		 }
	   }
	   WaveSpawn
	   {
	     Where spawnbot_red
		 Support 1
		 SpawnCount 1
		 MaxActive 1
		 TotalCount 1
		 WaitBetweenSpawns 30
		 TFBot
		 {
		    Template T_TFBot_The_Defender
		 }
	   }
	   WaveSpawn
	   {
	     Name wave05_2b
		 TotalCurrency 25
		 TotalCount 15
		 SpawnCount 5
		 MaxActive 5
		 Where spawnbot_a_giant
		 WaitForAllDead wave05_1a
		 WaitBeforeStarting 5
		 WaitBetweenSpawns 10
		 TFBot
		 {
		    Template T_TFBot_Scout_Shortstop
			Action Mobber
			Skill Normal
		 }
	   }
	   WaveSpawn
	   {
	     Name wave05_2
		 TotalCurrency 50
		 Where spawnbot_chief
		 TotalCount 12
		 SpawnCount 6
		 MaxActive 6
		 WaitForAllDead wave05_1
		 WaitBeforeStarting 10
		 WaitBetweenSpawns 35
		 Squad
		 {
		   TFBot
		   {
		     Template T_TFBot_Giant_Heavyweapons_Deflector
		   }
		   TFBot
		   {
		     Template T_TFBot_Scout_Milk_Combo
			 ItemAttributes
			 {
			   ItemName "mad milk"
			   "effect bar recharge rate increased"	0.25
			 }
		   }
		   TFBot
		   {
		     Template T_TFBot_Scout_Milk_Combo
			 ItemAttributes
			 {
			   ItemName "mad milk"
			   "effect bar recharge rate increased"	0.25
			 }
		   }
		   TFBot
		   {
		     Template T_TFBot_Scout_Milk_Combo
			 ItemAttributes
			 {
			   ItemName "mad milk"
			   "effect bar recharge rate increased"	0.25
			 }
		   }
		   TFBot
		   {
		     Template T_TFBot_Scout_Milk_Combo
			 ItemAttributes
			 {
			   ItemName "mad milk"
			   "effect bar recharge rate increased"	0.25
			 }
		   }
		   TFBot
		   {
		     Template T_TFBot_Scout_Milk_Combo
			 ItemAttributes
			 {
			   ItemName "mad milk"
			   "effect bar recharge rate increased"	0.25
			 }
		   }
		 }
	   }
	   WaveSpawn
	   {
	     Name wave05_3
		 TotalCount 4
		 Where spawnbot_chief
		 TotalCurrency 50
		 SpawnCount 2
		 MaxActive 4
		 WaitBetweenSpawns 30
		 WaitBeforeStarting 5
		 WaitForAllDead wave05_2
		 Squad
		 {
		   TFBot
		   {
		     Template T_TFBot_Giant_Soldier_RocketShotgun
		   }
		   TFBot
		   {
		     Template T_TFBot_Giant_Soldier_RocketPush
		   }
		 }
	   } 
	}
    Wave
    {
	   StartWaveOutput
	   {
            Target wave_start_relay
            Action Trigger			
	   }
	   DoneOutput
	   {
		    Target wave_finished_relay
			Action Trigger
	   }
	   WaveSpawn
	   {
	     Where spawnbot_red
		 Support 1
		 SpawnCount 1
		 MaxActive 1
		 TotalCount 1
		 WaitBetweenSpawns 30
		 TFBot
		 {
		    Template T_TFBot_The_Defender
		 }
	   }
	   WaveSpawn
	   {
	     Name wave06_boss
		 TotalCount 1
		 SpawnCount 1
		 Where spawnbot_chief
		 WaitBeforeStarting 5
		 TFBot
		 {
		    Class Sniper
			Item "the huntsman"
			Scale 1.9
			Name "Chief Homing Huntsman"
			Health 65000
			Attributes AlwaysCrit
			Skill Expert
			ClassIcon sniper_bow_multi_homing
			Attributes MiniBoss
			Attributes UseBossHealthBar
			AddCond
			{
			   Name "TF_COND_SODAPOPPER_HYPE"
			}
			ItemAttributes
			{
			    ItemName "the huntsman"
				"mult projectile count" 5
				"projectile speed increased" 0.3
				"mod projectile heat seek power" 45
				"mod projectile heat aim error" 360
				"projectile spread angle penalty" +12.0 // CHANGED FROM : +8.0
				"projectile trail particle" eyeboss_projectile
				"fire rate bonus" 0.5
				"faster reload rate" 0.5
				"projectile penetration" 1 // Works on huntsman... I think.
				"SRifle Charge rate increased" 0.1
			}
			CharacterAttributes
			{
				"move speed bonus"	0.45
				"damage force reduction" 0.3
				"airblast vulnerability multiplier" 0.4
				"airblast vertical vulnerability multiplier" 0.1
				"rage giving scale"	0.2
				"override footstep sound set" 6 // Pyro footstep sound. Sad that there is no footstep sounds for GSniper.
			}
		 }
	   }
	   WaveSpawn
	   {
	     Support 1
		 Where spawnbot_chief
		 SpawnCount 5
		 MaxActive 5
		 WaitBetweenSpawns 5
		 WaitBeforeStarting 6
		 TFBot
		 {
		    Class Soldier
			Action EscortFlag
			Skill Hard
		 }
	   }
    }  	
}