#base robot_giant.pop 
#base robot_standard.pop

WaveSchedule
{

	StartingCurrency		550
	RespawnWaveTime 		5
	CanBotsAttackWhileInSpawnRoom no

	Mission // sentry buster
	{
		Objective DestroySentries

		InitialCooldown 30
		Where spawnbot_mission_sentrybuster
		BeginAtWave 1
		RunForThisManyWaves 4

		CooldownTime 40            

        TFBot
		{
			Template T_TFBot_SentryBuster
		}
	}
	Mission // sentry buster //////// second set
	{
		Objective DestroySentries

		InitialCooldown 30
		Where spawnbot_mission_sentrybuster
		BeginAtWave 6
		RunForThisManyWaves 2

		CooldownTime 40            

        TFBot
		{
			Template T_TFBot_SentryBuster
		}
	}
	Mission // sentry buster - UNDERWOLRD 1 ////////////////////////
	{
		Objective DestroySentries

		InitialCooldown 30
		Where spawnbot_mission_sentrybuster_underworld
		BeginAtWave 5
		RunForThisManyWaves 1

		CooldownTime 40            

        TFBot
		{
			Template T_TFBot_SentryBuster
		}
	}
	Mission // sentry buster - UNDERWOLRD 2 ////////////////////////
	{
		Objective DestroySentries

		InitialCooldown 30
		Where spawnbot_mission_sentrybuster_underworld
		BeginAtWave 8
		RunForThisManyWaves 1

		CooldownTime 40            

        TFBot
		{
			Template T_TFBot_SentryBuster
		}
	}
	///////////////////////////////////////////////////////////////end of sentry busters///////////////////
	Mission // Sniper - wave 3
	{
		Objective Sniper

		InitialCooldown 20
		Where spawnbot_mission_sniper
		BeginAtWave 3
		RunForThisManyWaves 1
		CooldownTime 20
		DesiredCount 2

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

		InitialCooldown 20
		Where spawnbot_mission_sniper
		BeginAtWave 7
		RunForThisManyWaves 1
		CooldownTime 45
		DesiredCount 2

		TFBot
		{
			Class Sniper
			Skill Hard
			Name Sniper
			MaxVisionRange 3000
		}
	}	
	Mission // Spy - wave 3 and 4
	{
		Objective Spy  

		InitialCooldown 30
		Where spawnbot_mission_spy
		BeginAtWave 3
		RunForThisManyWaves 2
		CooldownTime 60
		DesiredCount 2

		TFBot
		{
			Class Spy
			Skill Expert
			Name Spy
		}
	}	
	Mission // Spy - wave 6 and 7
	{
		Objective Spy  

		InitialCooldown 30
		Where spawnbot_mission_spy
		BeginAtWave 6
		RunForThisManyWaves 2
		CooldownTime 60
		DesiredCount 2

		TFBot
		{
			Class Spy
			Skill Expert
			Name Spy
		}
	}	
	












//WAVE 1 //Currency 600, Melee scouts, demoknights, pyros///////////////////////////////////////////////////////////////////////////////////////////////////////
Wave
{
	StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
	DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
	WaitWhenDone 65
	Checkpoint Yes
	
	WaveSpawn
	{
		Where spawnbot
		TotalCount 30
		MaxActive 30
		SpawnCount 2
		RandomSpawn 1
		WaitBetweenSpawns 1
		WaitBeforeStarting 2
		TotalCurrency 250
			
			TFBot
				{
				Class Scout
				Name "Bat Scout"
				Skill Easy
				WeaponRestrictions MeleeOnly
				}
	}
	
	WaveSpawn
	{
		Where "spawnbot_mid"
		TotalCount 10
		MaxActive 5
		SpawnCount 5
		//WaitBetweenSpawns 10
		//WaitBeforeStarting 0
		TotalCurrency 150
			
			TFBot
				{
					Template T_TFBot_Demoman_Knight
				}
	}

	WaveSpawn
	{
		Where "spawnbot_mid"
		TotalCount 10
		MaxActive 5
		SpawnCount 5
		//WaitBetweenSpawns 10
		//WaitBeforeStarting 0
		TotalCurrency 100
			
			TFBot
				{
				Class Pyro
				Skill Normal
				}
	}	
			
}
















//WAVE 2 //Currency 600, Tank then Giant Heavy+quick fix medics, scout support. ///////////////////////////////////////////////////////////////////////////////////////////////////////
Wave
{
	StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
	DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
	WaitWhenDone 65
	Checkpoint Yes

	WaveSpawn //WAVE 3a: [TANK1]
	{
		TotalCount 1
		WaitBeforeStarting 0
		TotalCurrency 300

        FirstSpawnOutput                                                                                                                                                            
		{
             Target boss_spawn_relay                                            
             Action Trigger                         
        }

	Tank
		{
			Health 17000
			Speed 65
			Name "tank"
			StartingPathTrackNode "tank_path_b_1"

			OnKilledOutput                                  
			{
				Target boss_dead_relay
				Action Trigger                         
			}
			OnBombDroppedOutput                             
			{
				Target boss_deploy_relay 
				Action Trigger                         
			}
		}			
	}

	WaveSpawn //WAVE 5b: [GIANT] 2 total, 1 active, Heavy 
	{
		Where spawnbot_right
		TotalCount 8
		MaxActive 4
		SpawnCount 4
		WaitBeforeStarting 30
		WaitBetweenSpawns 15
		TotalCurrency 400
		
		Squad	
		{	
			TFBot
			{
				Class Heavyweapons
				Name "Giant Heavy"
				ClassIcon heavy_giant
				Skill Expert
				Health 3500
				WeaponRestrictions PrimaryOnly
				MaxVisionRange 1200
				CharacterAttributes
				{
					"move speed bonus"	0.5
					"damage bonus"	1.3
					"damage force reduction" 0.3
					"airblast vulnerability multiplier" 0.3
					"override footstep sound set" 2
				}
			}
			TFBot
			{
				Template T_TFBot_Medic_QuickFix
			}
			TFBot
			{
				Template T_TFBot_Medic_QuickFix
			}
			TFBot
			{
				Template T_TFBot_Medic_QuickFix
			}
		}
	}

	WaveSpawn 
	{
		Where spawnbot_mid
		TotalCount 30
		MaxActive 10
		SpawnCount 2
		RandomSpawn 1
		WaitBetweenSpawns 5
		WaitBeforeStarting 10
		Support 1
			
			TFBot
				{
				Class Scout
				Name "Bat Scout"
				Skill Easy
				Health 50
				WeaponRestrictions MeleeOnly
				Item "The Sandman"
				}
	}
	WaveSpawn
	{
		Where spawnbot_mid
		TotalCount 30
		MaxActive 10
		SpawnCount 2
		RandomSpawn 1
		WaitBetweenSpawns 4
		WaitBeforeStarting 15
		Support 1
			
			TFBot
				{
				Class Scout
				Name "Scat Scout"
				Skill Easy
				Health 50
				WeaponRestrictions PrimaryOnly
				//Item "The Sandman"
				}
	}

}



















//WAVE 3 //Currency 800, Soldiers, melee heavies, melee pyros then a tank with demo support///////////////////////////////////////////////////////////////////////////////////////////////////////
Wave
{
	StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
	DoneOutput					
	{
		Target wave_finished_relay
		Action trigger
	}
	WaitWhenDone 65
	Checkpoint Yes
	
	// Sniper mission - 2 active	
	// Spy mission - 2 active	
	
	WaveSpawn 
	{
		Name "wave3primarywave"
		Where spawnbot_mid
		TotalCount 15
		MaxActive 5
		SpawnCount 3
		WaitBetweenSpawns 2
		WaitBeforeStarting 0
		TotalCurrency 300		
		
		TFBot
		{
			Class Soldier
		}
	}
	WaveSpawn 
	{
		Name "wave3primarywave"
		Where spawnbot
		TotalCount 30
		MaxActive 9
		SpawnCount 2
		RandomSpawn 1
		WaitBetweenSpawns 1
		WaitBeforeStarting 2
		TotalCurrency 150		
		
		TFBot
		{
			Template T_TFBot_Heavyweapons_Heavyweight_Champ
		}
	}
	WaveSpawn 
	{
		Name "wave3primarywave"
		Where spawnbot
		TotalCount 15
		MaxActive 8
		SpawnCount 2
		RandomSpawn 1
		WaitBetweenSpawns 1
		WaitBeforeStarting 2
		TotalCurrency 100		
		
		TFBot
		{
			Class Pyro
			Name "Tortured Axeman"
			WeaponRestrictions MeleeOnly
		}
	}


	WaveSpawn //WAVE 3a: [TANK1]
	{
		WaitForAllSpawned "wave3primarywave"

		TotalCount 1
		WaitBeforeStarting 0
		TotalCurrency 250

        	FirstSpawnOutput                                                                                                                                                            
		{
    	   	      Target boss_spawn_relay                                            
    	 	      Action Trigger                         
      		}

		Tank
		{
			Health 17000
			Speed 65
			Name "tank"
			StartingPathTrackNode "tank_path_a_1"

			OnKilledOutput                                  
			{
				Target boss_dead_relay
				Action Trigger                         
			}
			OnBombDroppedOutput                             
			{
				Target boss_deploy_relay 
				Action Trigger                         
			}
		}			
	}
	
	WaveSpawn 
	{
		WaitForAllSpawned "wave3primarywave"
		Where spawnbot_left
		MaxActive 3
		SpawnCount 2
		WaitBetweenSpawns 2
		WaitBeforeStarting 5	
		Support 1	
		
		TFBot
		{
			Class Demoman
			WeaponRestrictions PrimaryOnly
		}
	}
	WaveSpawn 
	{
		WaitForAllSpawned "wave3primarywave"
		Where spawnbot_right
		TotalCount 15
		MaxActive 5
		SpawnCount 3
		WaitBetweenSpawns 6
		WaitBeforeStarting 0
		TotalCurrency 100		
		
		TFBot
		{
			Class Soldier
		}
	}
}




















//WAVE 4 //Currency 700 ///////////////////////////////////////////////////////////////////////////////////////////////////////
Wave
{
	StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
	DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
			Target underworld_into
			Action Trigger
		}
	WaitWhenDone 65
	Checkpoint Yes
	
	// Spy mission - 2 active	

	WaveSpawn 
	{
		Where spawnbot_mid
		TotalCount 6
		MaxActive 3
		SpawnCount 3
		WaitBeforeStarting 0
		WaitBetweenSpawns 20
		TotalCurrency 400
		
		Squad	
		{	
			TFBot
			{
				Class Heavyweapons
				Name "Giant Heavy"
				ClassIcon heavy_giant
				Skill Expert
				Health 3500
				WeaponRestrictions PrimaryOnly
				MaxVisionRange 1200
				CharacterAttributes
				{
					"move speed bonus"	0.5
					"damage bonus"	1.3
					"damage force reduction" 0.3
					"airblast vulnerability multiplier" 0.3
					"override footstep sound set" 2
				}
			}
			TFBot
			{
				Template T_TFBot_Medic_QuickFix
			}
			TFBot
			{
				Template T_TFBot_Medic_QuickFix
			}
		}
	}
	WaveSpawn
	{
		Where spawnbot
		TotalCount 20
		MaxActive 8
		SpawnCount 3
		RandomSpawn 1
		WaitBetweenSpawns 2
		WaitBeforeStarting 20
		TotalCurrency 300
		
		RandomChoice
		{
		TFBot
			{
			Class Soldier
				Skill Easy
			}
		TFBot
			{
				Class Scout
				Skill Easy
				BehaviorModifiers push
			}
		TFBot
			{
				Class Pyro
				Skill Easy
				BehaviorModifiers push
			}
		}
	}
}

Wave // UNDERWORLD WAVE - NO CHECKPOINT SO FAILING DOESN'T SCREW EVERYTHING UP
{
	StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
			
		}
	DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
			Target underworld_outfrom
			Action Trigger
		}
	WaitWhenDone 65
	//Checkpoint No
	WaveSpawn
	{
		Where spawnbot_left_underworld
		TotalCount 25
		MaxActive 12
		SpawnCount 3
		WaitBetweenSpawns 2
		WaitBeforeStarting 15
		TotalCurrency 150
		
		RandomChoice
		{
		TFBot
			{
			Class Soldier
				Skill Easy
			}
		TFBot
			{
				Class Scout
				Skill Easy
				BehaviorModifiers push
			}
		TFBot
			{
				Class Pyro
				Skill Easy
				BehaviorModifiers push
			}
		}
	}
	WaveSpawn
	{
		Where spawnbot_mid_underworld
		TotalCount 25
		MaxActive 12
		SpawnCount 3
		WaitBetweenSpawns 2
		WaitBeforeStarting 15
		TotalCurrency 150
		
		RandomChoice
		{
		TFBot
			{
			Class Soldier
				Skill Easy
			}
		TFBot
			{
				Class Scout
				Skill Easy
				BehaviorModifiers push
			}
		TFBot
			{
				Class Pyro
				Skill Easy
				BehaviorModifiers push
			}
		}
	}
	WaveSpawn
	{
		Where spawnbot_right_underworld
		TotalCount 25
		MaxActive 12
		SpawnCount 3
		WaitBetweenSpawns 2
		WaitBeforeStarting 15
		TotalCurrency 150
		
		RandomChoice
		{
		TFBot
			{
			Class Soldier
				Skill Easy
			}
		TFBot
			{
				Class Scout
				Skill Easy
				BehaviorModifiers push
			}
		TFBot
			{
				Class Pyro
				Skill Easy
				BehaviorModifiers push
			}
		}
	}
}



















//WAVE 6 //Currency 900 ///////////////////////////////////////////////////////////////////////////////////////////////////////
Wave
{
	StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
	DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
		}
	WaitWhenDone 65
	Checkpoint Yes
	
	WaveSpawn //WAVE 05a: 50 total, 12 active, scout (melee only)
	{
		Where spawnbot_left
		TotalCount 22
		MaxActive 12
		SpawnCount 5
		WaitBeforeStarting 10
		WaitBetweenSpawns 4
		TotalCurrency 200
		

		TFBot
		{
			Class Scout
			Skill Normal
			WeaponRestrictions MeleeOnly
			Scale 0.8
		}
	}
	WaveSpawn //WAVE 05a: 50 total, 12 active, scout 
	{
		Where spawnbot_right
		TotalCount 15
		MaxActive 12
		SpawnCount 5
		WaitBeforeStarting 40
		WaitBetweenSpawns 4
		TotalCurrency 200
		

		TFBot
		{
			Class Scout
			Skill Normal
			Scale 0.8
		}
	}
	
	WaveSpawn
	{
		Where spawnbot_mid
		TotalCount 18
		MaxActive 5
		SpawnCount 5
		WaitBeforeStarting 0
		WaitBetweenSpawns 4
		TotalCurrency 150
		Support 1
		
		TFBot
		{
			Class Demoman
			Skill Expert
			WeaponRestrictions MeleeOnly
			Item "The Eyelander"
			Item "The Splendid Screen"
			Scale 1.3
		}
	}

	WaveSpawn
	{
		Where spawnbot_mid
		TotalCount 6
		MaxActive 2
		SpawnCount 2
		WaitBeforeStarting 0
		WaitBetweenSpawns 20
		TotalCurrency 500
		
		Squad
		{		
			TFBot
			{
				Class Pyro
				Name "Giant Pyro"
				ClassIcon pyro_giant
				Skill Expert
				Health 2500
				WeaponRestrictions PrimaryOnly
				CharacterAttributes
				{
					"move speed bonus"	0.5
					"damage force reduction" 0.6
					"airblast vulnerability multiplier" 0.6
					"override footstep sound set" 6
				}
			}
			TFBot
			{
				Class Medic
				Name "Giant Medic"
				Skill Normal
				Scale 1.7
				Health 2500
				Attributes SpawnWithFullCharge
				WeaponRestrictions SecondaryOnly
				Item "The Quick-Fix"
				CharacterAttributes
			        {
					"ubercharge rate bonus" 0.1
					"heal rate bonus" 10
			        }
			}
		}
	}
}










//WAVE 6 //Currency 1000 ///////////////////////////////////////////////////////////////////////////////////////////////////////
Wave
{
	StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
	DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
			Target underworld_into
			Action Trigger
		}
	WaitWhenDone 65
	Checkpoint Yes
	
	// Spy mission - 3 active	

	WaveSpawn 
	{
		Where spawnbot
		TotalCount 50
		MaxActive 12
		SpawnCount 4
		WaitBeforeStarting 7
		WaitBetweenSpawns 4
		TotalCurrency 300

		RandomChoice
		{
			TFBot
			{
				Class Pyro
				Skill Easy
			}
			TFBot
			{
				Class Scout
				Skill Easy
			}
			TFBot
			{
				Class Heavy
				Skill Easy
			}
		}
	}
	WaveSpawn 
	{
		Name "wave6firstwave"
		Where spawnbot_mid
		TotalCount 10
		MaxActive 5
		SpawnCount 5
		WaitBeforeStarting 5
		WaitBetweenSpawns 6
		TotalCurrency 200
				
		TFBot
		{
			Template T_TFBot_Sniper_Huntsman
		}
	}

	WaveSpawn 
	{
		WaitForAllSpawned "wave6firstwave"
		Where spawnbot_mid
		TotalCount 24
		MaxActive 12
		SpawnCount 4
		WaitBeforeStarting 5
		WaitBetweenSpawns 4
		TotalCurrency 600
		
		Squad
		{		
			TFBot
			{
				Class Heavy
			}
			TFBot
			{
				Template T_TFBot_Medic_QuickUber
			}
			TFBot
			{
				Template T_TFBot_Medic_QuickUber
			}
			TFBot
			{
				Template T_TFBot_Medic_QuickUber
			}
		}
	}	
	
	
}		










Wave // UNDERWORLD WAVE - NO CHECKPOINT SO FAILING DOESN'T SCREW EVERYTHING UP
{
	StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
			
		}
	DoneOutput					
		{
			Target wave_finished_relay
			Action trigger
			Target underworld_outfrom
			Action Trigger
		}
	WaitWhenDone 65
	//Checkpoint No


	WaveSpawn 
	{
		Where spawnbot_left_underworld
		TotalCount 50
		MaxActive 12
		SpawnCount 4
		WaitBeforeStarting 15
		TotalCurrency 300 
		Support 1

			TFBot
			{
				Class Pyro
				Name "Scorching Furnace"
				Skill Easy
			}
		
	}
	
	WaveSpawn 
	{
		Where spawnbot_right_underworld
		TotalCount 50
		MaxActive 12
		SpawnCount 4
		WaitBeforeStarting 10
		TotalCurrency 300 
		Support 1

			TFBot
			{
				Class Pyro
				Name "Tortured Axeman"
				WeaponRestrictions MeleeOnly
			}
		
	}

	WaveSpawn //HHH
	{
		Where Spawnbot_mid_underworld
		TotalCount 1
		MaxActive 1
		SpawnCount 1
		WaitBeforeStarting 30
		WaitBetweenSpawns 60
		TotalCurrency 200
		
		TFBot
		{
		Class Demoman
		ClassIcon demoknight
		Name "Horseless Headless Horseman"
		Skill Expert
		Health 14000
		Item "Horseless Headless Horseman's Head"
		Item "The Horseless Headless Horseman's Headtaker"
		Item "Splendid Screen"
		WeaponRestrictions MeleeOnly
		Scale 2
		CharacterAttributes
		{
		"move speed bonus" 0.9
		"damage force reduction" 0.4
		"airblast vulnerability multiplier" 0.4
		"override footstep sound set" 4
		"dmg from sentry reduced" "0.6"
		}
		}
	}
}

}