//mvm_gravelpass_b1

#base robot_giant.pop
#base robot_standard.pop


WaveSchedule
{
	StartingCurrency	1500
	RespawnWaveTime	4
	CanBotsAttackWhileInSpawnRoom	no
	
	Mission
	{
		Objective	DestroySentries
		BeginAtWave	1
		RunForThisManyWaves	8
		CooldownTime	35
		DesiredCount	1
		Where	spawnbot_main_mission_sentrybuster
		
		TFBot
		{
			Template	T_TFBot_SentryBuster	
		}
	}
	
	Mission
	{
		BeginAtWave	2
		RunForThisManyWaves	1
		Objective	Spy
		Where	spawnbot_flank_mission_spy
		InitialCooldown	30
		CooldownTime	30
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Spy
		}
	}	
	
	Mission
	{
		BeginAtWave	3
		RunForThisManyWaves	1
		Objective	Spy
		Where	spawnbot_flank_mission_spy
		InitialCooldown	30
		CooldownTime	30
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Spy
		}
	}
	
	Mission
	{
		BeginAtWave	1
		RunForThisManyWaves	1
		Objective	Sniper
		Where	spawnbot_flank_mission_sniper
		InitialCooldown	30
		CooldownTime	30
		DesiredCount	2
		TFBot
		{
			Template	T_TFBot_Sniper
		}
	}

//	Mission // use of this is broken for now until someone fixes something
//	{
//		Objective Engineer  
//		InitialCooldown 0 //35
//		Where spawnbot_flank
//		BeginAtWave 1
//		RunForThisManyWaves 1
//		CooldownTime 0 //35
//		DesiredCount 1
//		TFBot
//		{
//			Template	T_TFBot_Engineer_Sentry_Teleporter
//			Name "Teleporter Engineer"
//			ClassIcon engineer_telein
//		}
//	}
	
	Wave	//900 credits 1000 bonus	
    {
        StartWaveOutput
        {
            Target    wave_start_relay
            Action    Trigger
        }
        DoneOutput
        {
            Target    wave_finished_relay
            Action    Trigger
        }
		
		InitWaveOutput
        {
            Target bombpath_left_relay
            Action Trigger
        }
		
		
		WaveSpawn
		{
			Name	wave1a
			TotalCurrency 100
			TotalCount	60
			MaxActive 	12
			SpawnCount	12
			WaitBeforeStarting	3
			WaitBetweenSpawns	5
			Where	spawnbot_flank
			
			TFBot
			{
				Template	T_TFBot_Sniper_Huntsman
				Attributes	AlwaysCrit
			}	
		}	

		WaveSpawn
		{
			Name	wave1a
			TotalCurrency 100
			TotalCount	4
			MaxActive 	4
			SpawnCount	1
			WaitBeforeStarting	3
			WaitBetweenSpawns	15
			Where	spawnbot_main
			
			TFBot
			{
				Template	T_TFBot_Giant_Soldier_Spammer
			}	
		}
		
		WaveSpawn
		{
			Name	wave1b
			WaitForAllSpawned wave1a
			TotalCurrency 200
			TotalCount	5
			MaxActive 	5
			SpawnCount	1
			WaitBeforeStarting	10
			WaitBetweenSpawns	12
			Where	spawnbot_flank
			
			TFBot
			{
				Template	T_TFBot_Giant_Demoman
				ClassIcon	demo_spammer
				Attributes	AlwaysCrit
			}	
		}		
		
		WaveSpawn
		{
			Name	wave1b
			WaitForAllSpawned wave1a
			TotalCurrency 100
			TotalCount	40
			MaxActive 	10
			SpawnCount	5
			WaitBeforeStarting	10
			WaitBetweenSpawns	2
			Where	spawnbot_main
			
			TFBot
			{
				Template	T_TFBot_Scout_Bonk
			}	
		}		
		
		WaveSpawn
		{
			Name	wave1c
			WaitForAllSpawned wave1b
			TotalCurrency 100
			TotalCount	24
			MaxActive 	8
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	2
			Where	spawnbot_main
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Heavyweapons_Fist
				}	
				TFBot
				{
					Template	T_TFBot_Medic_BigHeal
					Name	"Big-Heal Medic"
					Tag	bot_squad_member
				}	
			}	
		}		
		
		WaveSpawn
		{
			Name	wave1c
			WaitForAllSpawned wave1b
			TotalCurrency 100
			TotalCount	8
			MaxActive 	8
			SpawnCount	4
			WaitBeforeStarting	10
			WaitBetweenSpawns	2
			Where	spawnbot_main
			
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons
				}
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Name	"Quick Uber Medic"
					Tag	bot_squad_member
				}				
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Name	"Quick Uber Medic"
					Tag	bot_squad_member
				}				
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Name	"Quick Uber Medic"
					Tag	bot_squad_member
				}				
			}
		}
		
		WaveSpawn
		{
			Name	wave1c
			WaitForAllSpawned wave1b
			TotalCurrency 200
			TotalCount	6
			MaxActive 	2
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	15
			Where	spawnbot_flank
			
			TFBot
			{
				Template	T_TFBot_Giant_Scout_Baseball
			}	
		}	
	}	
	
	Wave	//1100 credits 1200 bonus	
    {
        StartWaveOutput
        {
            Target    wave_start_relay
            Action    Trigger
        }
        DoneOutput
        {
            Target    wave_finished_relay
            Action    Trigger
        }
		
		InitWaveOutput
        {
            Target bombpath_right_relay
            Action Trigger
        }
				
		WaveSpawn
		{
			Name	wave2a-1
			TotalCurrency 200
			TotalCount	1
			MaxActive 	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	0
		
			Tank
			{
				Health	25000
				Name	"Tank"
				Speed	75
				StartingPathTrackNode "tank_path_front"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}	
		}	
	
		WaveSpawn
		{
			Name	wave2a
			TotalCurrency 100
			TotalCount	45
			MaxActive 	9
			SpawnCount	3
			WaitBeforeStarting	3
			WaitBetweenSpawns	5
			Where	spawnbot_flank
			
			RandomChoice
			{
				TFBot
				{
					Class Soldier
					Skill Normal
				}				
				TFBot
				{
					Class Soldier
					Skill Normal
				}				
				TFBot
				{
					Class Soldier
					Skill Hard
				}
			}	
		}	
		
		WaveSpawn
		{
			Name	wave2a
			TotalCurrency 100
			TotalCount	36
			MaxActive 	6
			SpawnCount	2
			WaitBeforeStarting	3
			WaitBetweenSpawns	2.5
			Where	spawnbot_main
			
			TFBot
			{
				Class	Scout
				Skill	Normal
			}
		}		
		
		WaveSpawn
		{
			Name	wave2a
			TotalCurrency 100
			TotalCount	4
			MaxActive 	4
			SpawnCount	1
			WaitBeforeStarting	3
			WaitBetweenSpawns	12.5
			Where	spawnbot_main
			
			TFBot
			{
				Template	T_TFBot_Giant_Pyro
				Attributes	AlwaysCrit
				Attributes AlwaysFireWeapon
			}
		}	

		WaveSpawn
		{
			Name	wave2b
			WaitForAllSpawned wave2a
			TotalCurrency 100
			TotalCount	4
			MaxActive 	4
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	12.5
			Where	spawnbot_flank
			
			TFBot
			{
				Template	T_TFBot_Giant_Soldier_Extended_Concheror
			}
		}	

		WaveSpawn
		{
			Name	wave2b
			WaitForAllSpawned wave2a
			TotalCurrency 100
			TotalCount	36
			MaxActive 	9
			SpawnCount	3
			WaitBeforeStarting	7
			WaitBetweenSpawns	2.5
			Where	spawnbot_flank
			
			TFBot
			{
				Class	Heavy
				Skill	Easy
				Attributes	AlwaysCrit
			}
		}		
		
		WaveSpawn
		{
			Name	wave2c
			WaitForAllSpawned wave2b
			TotalCurrency 100
			TotalCount	24
			MaxActive 	6
			SpawnCount	3
			WaitBeforeStarting	7
			WaitBetweenSpawns	5
			Where	spawnbot_flank
			
			TFBot
			{
				Class Pyro
				ClassIcon	pyro_dragon_fury_swordstone
				Name	"Dragon's Fury Pyro"
				Item	"The Dragon's Fury" 
				Skill	Hard
				Item	"The Rusty Reaper"
				//Attributes	AlwaysCrit
			}
		}		
		
		WaveSpawn
		{
			Name	wave2c
			WaitForAllSpawned wave2b
			TotalCurrency 200
			TotalCount	4
			MaxActive 	4
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	15
			Where	spawnbot_main
			
			TFBot
			{
				Template	T_TFBot_Giant_Heavyweapons_Shotgun
			}
		}		
		
		WaveSpawn
		{
			Name	wave2c
			WaitForAllSpawned wave2b
			TotalCurrency 100
			TotalCount	27
			MaxActive 	9
			SpawnCount	3
			WaitBeforeStarting	7
			WaitBetweenSpawns	3.5
			Where	spawnbot_main
			RandomChoice
			{
				TFBot
				{
					Class	Soldier
					Skill	Normal
					Attributes	AlwaysCrit
				}			

				TFBot
				{
					Class	Demoman
					Skill	Normal
					Attributes	AlwaysCrit
				}
			}	
		}
	}	
		
	Wave	//1000 credits 1100 bonus	
    {
        StartWaveOutput
        {
            Target    wave_start_relay
            Action    Trigger
        }
        DoneOutput
        {
            Target    wave_finished_relay
            Action    Trigger
        }
		
		InitWaveOutput
        {
            Target bombpath_right_relay
            Action Trigger
        }
		
		WaveSpawn
		{
			Name	wave3a
			TotalCurrency 50
			TotalCount	10
			MaxActive 	10
			SpawnCount	10
			WaitBeforeStarting	4
			WaitBetweenSpawns	5
			Where	spawnbot_main
			
			TFBot
			{
				Class	Soldier
				Name	"Direct Backup Soldier"
				Item	"The Direct Hit"
				ClassIcon	soldier_directhit_battalion
				Attributes SpawnWithFullCharge
				Item "The Battalion's Backup"
			}	
		}
		
		WaveSpawn
		{
			Name	wave3a
			TotalCurrency 50
			TotalCount	2
			MaxActive 	2
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Where	spawnbot_main
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Soldier_BurstFire
					ClassIcon	soldier_burstfire_hyper_lite
				}				
				
				TFBot
				{
					Template	T_TFBot_Giant_Medic_Regen
					Tag	bot_squad_member
				}
			}	
		}	
		
		WaveSpawn
		{
			Name	wave3b
			WaitForAllDead wave3a
			TotalCurrency 100
			TotalCount	8
			MaxActive 	2
			SpawnCount	2
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Where	spawnbot_flank
			
			TFBot
			{
				Template	T_TFBot_Demoman_Samurai
			}	
		}		
		
		WaveSpawn
		{
			Name	wave3b
			WaitForAllDead wave3a
			TotalCurrency 100
			TotalCount	40
			MaxActive 	10
			SpawnCount	5
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Where	spawnbot_flank
			Where	spawnbot_main
			
			TFBot
			{
				Template	T_TFBot_Scout_FAN	
			}	
		}		
	
		WaveSpawn
		{
			Name	wave3b
			WaitForAllDead wave3a
			TotalCurrency 100
			TotalCount	9
			MaxActive 	9
			SpawnCount	3
			WaitBeforeStarting	4
			WaitBetweenSpawns	15
			Where	spawnbot_main
			Squad
			{
				TFBot
				{
					Template	T_TFBot_Giant_Heavyweapons_Deflector
					Attributes	AlwaysCrit	
				}	
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Name	"Quick Uber Medic"
					Tag	bot_squad_member
				}		
				TFBot
				{
					Template	T_TFBot_Medic_QuickUber
					Name	"Quick Uber Medic"
					Tag	bot_squad_member
				}	
			}	
		}
		
		WaveSpawn
		{
			Name	wave3c-1
			WaitForAllSpawned wave3b
			TotalCurrency 200
			TotalCount	1
			MaxActive 	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	30
			
			Tank
			{
				Health	35000
				Name	"Tank"
				Speed	75
				StartingPathTrackNode "tank_path_front"
				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		
		WaveSpawn
		{
			Name	wave3c
			WaitForAllSpawned wave3b
			TotalCurrency 300
			TotalCount	12
			MaxActive 	12
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	10
			Where	spawnbot_main
			
			TFBot
			{
				Template	T_TFBot_Giant_Scout_Fast
			}
		}		
		
		WaveSpawn
		{
			Name	wave3c
			WaitForAllSpawned wave3b
			TotalCurrency 100
			TotalCount	36
			MaxActive 	8
			SpawnCount	2
			WaitBeforeStarting	10
			WaitBetweenSpawns	2
			Where	spawnbot_main
			Where	spawnbot_flank
			//Where	spawnbot_tanktunnel
			Support 1
			
			TFBot
			{
				Template T_TFBot_Demo_Burst
				Attributes	AlwaysCrit
			}
		}
	}	
}