#base robot_giant.pop
#base robot_standard.pop
#base robot_standard_victora.pop
#base robot_giant_victora.pop

WaveSchedule
{

	StartingCurrency		500
	RespawnWaveTime 		7
	CanBotsAttackWhileInSpawnRoom no

	Mission // sentry buster
	{
		Objective DestroySentries

		InitialCooldown 5
		Where spawnbot_mission_sentrybuster
		BeginAtWave 1
		RunForThisManyWaves 9

		CooldownTime 20            

            TFBot
			{
				Template T_TFBot_SentryBuster
            }
	}
	Mission // Spy - wave 2
	{
		Objective Spy  

		InitialCooldown 40
		Where spawnbot_mission_spy
		BeginAtWave 2
		RunForThisManyWaves 1
		CooldownTime 30
		DesiredCount 4

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

		InitialCooldown 20
		Where spawnbot_mission_spy
		BeginAtWave 4
		RunForThisManyWaves 1
		CooldownTime 30
		DesiredCount 4

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

		InitialCooldown 30
		Where spawnbot_mission_spy
		BeginAtWave 5
		RunForThisManyWaves 1
		CooldownTime 15
		DesiredCount 2

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

		InitialCooldown 45
		Where spawnbot_mission_sniper
		BeginAtWave 3
		RunForThisManyWaves 1
		CooldownTime 20
		DesiredCount 4
              
	    TFBot
		{
			Class Spy
			Skill Expert
			Name Spy
		}
	}
	Mission // Sniper - wave 6
	{
		Objective Sniper

		InitialCooldown 25
		Where spawnbot_mission_sniper
		BeginAtWave 6
		RunForThisManyWaves 1
		CooldownTime 20
		DesiredCount 4

		TFBot
		{
			Class Soldier 
			Skill Hard
			Name SOldier
			MaxVisionRange 3000
		}
	}
	Mission // Sniper - wave 7
	{
		Objective Sniper

		InitialCooldown 70
		Where spawnbot_mission_sniper
		BeginAtWave 7
		RunForThisManyWaves 1
		CooldownTime 40
		DesiredCount 4

		TFBot
		{
			Class Sniper
			Skill Hard
			Name Sniper
			MaxVisionRange 3000
		}
	}
	
	//WAVE 1 //Currency 700 ///////////////////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes
		
		WaveSpawn //WAVE 03a: 8 total, 8 active, Soldier + Uber medic (first push)
		{
			Name "wave03a"
			Where spawnbot
			TotalCount 32
			MaxActive 16
			SpawnCount 8
			WaitBetweenSpawns 5
			WaitBeforeStarting 0
			TotalCurrency 150

			Squad
			{			
				TFBot
				{
					Class Pyro
					Skill Easy
					Item    "The Axtinguisher"
				}
				TFBot
				{
					Class T_TFBot_Scout_Sandman
					Skill Hard
				}
			}
		}		
		WaveSpawn //WAVE 03b: [GIANT] 4 total, 4 active, Demoknight
		{
			Name "wave03b"
			Where spawnbot
			TotalCount 16
			MaxActive 6
			SpawnCount 2
			WaitBetweenSpawns 7
			WaitBeforeStarting 20
			TotalCurrency 200

			TFBot
			{
				Class Scout
			}
		}	
		WaveSpawn //WAVE 03c: 16 total, 16 active, Soldier + medic (maintain)
		{
			Name "wave03c"
			WaitForAllSpawned "wave03a"
			Where spawnbot_foward
			TotalCount 16
			MaxActive 8
			SpawnCount 4
			WaitBetweenSpawns 10
			WaitBeforeStarting 5
			TotalCurrency 200

			Squad
			{			
				TFBot
				{
					Class Pyro 
					Attributes AlwaysFireWeapon
					Item    "The Axtinguisher"
					Skill Easy
				}
				TFBot
				{
					Template T_TFBot_Scout_Sandman
					Skill Expert
				}
			}
		}		
		WaveSpawn //WAVE 03d: 24 total, 12 active, Scouts (bonk, melee only) WAITFORSPAWNED 03c
		{
			Name "wave03d"
			WaitForAllSpawned "wave03c"
			Where spawnbot_foward
			TotalCount 44
			MaxActive 22
			SpawnCount 22
			WaitBetweenSpawns 6
			WaitBeforeStarting 0
			TotalCurrency 200

			TFBot
			{
				Class Heavyweapons
				Skill Expert
				Item   "The Eviction Notice"
			}
		}
		WaveSpawn //WAVE 03e: 12 total, 12 active, Pyro WAITFORSPAWNED 03c
		{
			Name "wave03e"
			WaitForAllSpawned "wave03c"
			Where spawnbot_foward
			TotalCount 5
			MaxActive 5
			SpawnCount 5
			WaitBetweenSpawns 0
			WaitBeforeStarting 15
			TotalCurrency 200

			TFBot
			{
				Class Scout
				Skill Hard
			}
		}				
	}
	//WAVE 2 //Currency 700 //////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes

		// Spy mission - 2 active		

		WaveSpawn //WAVE 02a: 42 total, 14 active, scout (crit melee only)
		{
			Name "wave02a"
			Where spawnbot
			TotalCount 100
			MaxActive  10
			SpawnCount 10
			WaitBeforeStarting 0
			WaitBetweenSpawns 10
			TotalCurrency 200

			Support 1
			
				TFBot
				{
					Template T_TFBot_Scout_Sandman
				}
		}
		WaveSpawn //WAVE 02b: [GIANT] 1 total, 1 active, heavyweapons (flank right)
		{
			Name "wave02b"
			Where spawnbot
			TotalCount 15
			MaxActive 5
			WaitBeforeStarting 10
			SpawnCount 5
			WaitBetweenSpawns 0
			TotalCurrency 150		
			
			TFBot
			{
				Template T_TFBot_Heavyweapons_Fist
				Tag nav_prefer_flank_left
			}
		}
		WaveSpawn //WAVE 02c: [GIANT] 1 total, 1 active, heavyweapons (flank left)
		{
			Name "wave02c"
			Where spawnbot_foward
			TotalCount 30
			MaxActive 15
			WaitBeforeStarting 30
			SpawnCount 5
			WaitBetweenSpawns 5
			TotalCurrency 150		
			
			TFBot
			{
				Template T_TFBot_Heavyweapons_Heavyweight_Champ_Fast
				Tag nav_prefer_flank_left
			}
		}
		WaveSpawn //WAVE 02d: [GIANT] 5 total, 2 active, scout (Super Scouts) 
		{
			Name "wave02d"
			Where spawnbot
			TotalCount 12
			MaxActive 6
			WaitBeforeStarting 60
			SpawnCount 6
			WaitBetweenSpawns 8
			TotalCurrency 150		
			
			TFBot
			{
				Template T_TFBot_Demoman_Knight
			}
		}
		WaveSpawn //WAVE 02e: 21 total, 7 active, pyro
		{
			Name "wave02e"
			Where spawnbot
			TotalCount 20
			MaxActive 20
			SpawnCount 5
			WaitBeforeStarting 30
			WaitBetweenSpawns 5
			TotalCurrency 100

				TFBot
				{
					Class Pyro
					Skill Easy
				}
		}
	}	
	//WAVE 3 //Currency 800 //////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes

		// Sniper mission - 4 active		

		WaveSpawn //WAVE 03a: 40 total, 10 active, Heavy (Steel fist)
		{
			Name "wave03a"
			Where spawnbot
			TotalCount 60
			MaxActive 22
			SpawnCount 10
			WaitBeforeStarting 0
			WaitBetweenSpawns 2
			TotalCurrency 300

			TFBot
			{
				Template T_TFBot_Demoman_Knight
			}
		}
		WaveSpawn //WAVE 03b: 20 total, 8 active, Soldier + Uber medic
		{
			Name "wave03b"
			Where spawnbot_foward
			TotalCount 20
			MaxActive 8
			SpawnCount 2
			WaitBeforeStarting 60
			WaitBetweenSpawns 5
			TotalCurrency 250

			Squad
			{
				TFBot
				{
					Template T_TFBot_Heavyweapons_Heavyweight_Champ_Fast
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_Soldier_Buff_Banner
				}
			}	
		}
		WaveSpawn //WAVE 03c: 20 total, 8 active, Pyro
		{
			Name "wave03c"
			Where spawnbot_foward
			TotalCount 100
			MaxActive 8
			SpawnCount 4
			WaitBeforeStarting 70
			WaitBetweenSpawns 5
			TotalCurrency 200
			
			Support 1

			Squad
			{
				TFBot
				{
					Template T_TFBot_Pyro_melee
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_Pyro_melee
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_Scout_Jumping_Sandman
					Skill Expert
					Attributes AlwaysFireWeapon
				}
				TFBot
				{
					Template T_TFBot_Scout_Jumping_Sandman
					Skill Expert
					Attributes AlwaysFireWeapon
				}
			}					
		}
		WaveSpawn //WAVE 03d: [GIANT] 1 total, 1 active, Soldier (slow crit)
		{
			Name "wave03d"
			Where spawnbot
			TotalCount 8
			MaxActive 2
			WaitBeforeStarting 100
			SpawnCount 2
			WaitBetweenSpawns 0
			TotalCurrency 50		
			
			TFBot
			{
				Template T_TFBot_Chief_Gauntlet_Victora

			}
		}
	}	
	//WAVE 4 //Currency 800 //////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes

		WaveSpawn //WAVE 04a: [2 TANKS]  
		{
			Name "wave04a"
			TotalCount 1
			Where spawnbot
			WaitBeforeStarting 0
			WaitBetweenSpawns 0
			TotalCurrency 400    
            SpawnCount 1	
            MaxActive 1		
		
			TFBot
			{
				Template T_TFBot_Giant_DemoMan_Victora 
				Skill Expert
			}
		}
		WaveSpawn //WAVE 04b: 24 total, 10 active, Sniper (Huntsman)
		{
			Name "wave04b"
			Where spawnbot
			TotalCount 27
			MaxActive 12
			SpawnCount 6
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 200
			
			Support 1

			TFBot
			{
				Template T_TFBot_Soldier_Stomp
				Attributes AutoJump
				AutoJumpMin 3
				AutoJumpMax 7
			CharacterAttributes
			{
				"increased jump height" 20
			}
			}
		}
		WaveSpawn //WAVE 04b: 24 total, 10 active, Pyro 
		{
			Name "wave04b"
			Where spawnbot
			TotalCount 50
			MaxActive 15
			SpawnCount 15
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 200
			
			Support 1

			TFBot
			{
				Class Scout
				Skill Expert
			}
		}
		WaveSpawn //WAVE 04c: [GIANT] 4 total, 2 active, Soldier (clow crit)
		{
			Name "wave04c"
			Where spawnbot
			TotalCount 66
			MaxActive 22
			SpawnCount 22
			WaitBeforeStarting 30
			WaitBetweenSpawns 7
			TotalCurrency 200
			
			TFBot
			{
				Template T_TFBot_Soldier_Stomp
			}
		}
	}	
	//WAVE 5 //Currency 800 //////////////////////////////////////////////////////////////////////////////////////////
	Wave
	{
		StartWaveOutput
			{
				Target wave_start_relay
				Action Trigger
			}
		DoneOutput					
			{
				Target wave_finished_relay
				Action trigger
			}
		Checkpoint Yes

		// Spy mission - 8 active		

		WaveSpawn //WAVE 05a: [GIANT] 4(16) total, 2(8) active,  Heavyweapons (Deflector) + Giant Medic + Pyro
		{
			Name "wave05a"
			Where spawnbot
			TotalCount 16
			MaxActive 16
			SpawnCount 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 25
			TotalCurrency 500		
		
			Squad
			{
				TFBot
				{
					Template T_TFBot_Giant_Boxing_Heavy_Victora
				}
				TFBot
				{
					Template T_TFBot_Giant_Soldier_Extended_Buff_Banner
				}
				TFBot
				{
					Template T_TFBot_Medic_Healhit
					Skill Expert
					Attributes AlwaysFireWeapon
				}
				TFBot
				{
					Template T_TFBot_Medic_Healhit
					Skill Expert
					Attributes AlwaysFireWeapon
				}
			}
		}
		WaveSpawn //WAVE 05b: 12 total, 4 active, Soldier 
		{
			Name "wave05b"
			Where spawnbot_foward
			TotalCount 36
			MaxActive 12
			SpawnCount 6
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 300

			TFBot
			{
				Class Heavyweapons
				Skill Expert
				Item "The Eviction Notice"
			}
		}
		WaveSpawn //WAVE 05c: 12 total, 4 active, Soldier 
		{
			Name "wave05c"
			Where spawnbot
			TotalCount 36
			MaxActive 12
			SpawnCount 6
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 300

			TFBot
			{
				Class Soldier
				Skill Expert
				Item "The Disciplinary Action"
			}
		}
	}	
}