#base robot_giant.pop
#base robot_standard.pop

WaveSchedule
{
	StartingCurrency 900
	RespawnWaveTime 4
	FixedRespawnWaveTime no
	CanBotsAttackWhileInSpawnRoom no
	AddSentryBusterWhenDamageDealtExceeds 3000
	AddSentryBusterWhenKillCountExceeds 15
	Advanced	0
	
	Mission // sentry buster
	{
		Objective DestroySentries

		InitialCooldown 20
		Where spawnbot_mission_sentrybuster
		BeginAtWave 1
		RunForThisManyWaves 9

		CooldownTime 40            

            TFBot
			{
				Template T_TFBot_SentryBuster
            }
	}

	Mission // Spy - wave 1
	{
		Objective Spy  

		InitialCooldown 120
		Where spawnbot_mission_spy
		BeginAtWave 1
		RunForThisManyWaves 3
		CooldownTime 120
		DesiredCount 4

		TFBot
		{
			Class Spy
			Skill Expert
			Name Spy
		}
	}	
		
	Wave //WAVE 1
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
			Target wave_1_start_clock_relay
			Action trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
			Target wave_stop_clock_relay1
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
			
		WaveSpawn
		{
			Where spawnbot1
			TotalCount 5
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 20
			TotalCurrency 100

			Support 1
			
			TFBot
			{
				Name	D.E.M.O.
				Template T_TFBot_Demo_Burst
				EventChangeAttributes
				{
					Default
					{
						Item	"the glasgow great helm"
						Item	"the dark age defender"
					}
				}
			}		
		}
		WaveSpawn
		{
			Where spawnbot1
			TotalCount 30
			MaxActive 10
			SpawnCount 5
			WaitBeforeStarting 5
			WaitBetweenSpawns 15
			TotalCurrency 100

			Support 2

			TFBot
			{
				Name	BurningRobotness
				Template T_TFBot_Heavyweapons_Shotgun
				EventChangeAttributes
				{
					Default
					{
						ItemAttributes
						{
							ItemName	tf_weapon_fists
							"damage bonus"	0.2
						}
						WeaponRestrictions SecondaryOnly
						Item	"the bunsen brave"
						Item	"the outdoorsman"
					}
				}
			}
		}

		WaveSpawn
		{
			Where spawnbot1
			TotalCount 30
			MaxActive 6
			SpawnCount 2
			WaitBeforeStarting 5
			WaitBetweenSpawns 10
			TotalCurrency 100
		
			TFBot
			{
				ClassIcon scout_fan
				Health	125
				Name	ScootyBooty
				Class	Scout
				EventChangeAttributes
				{
					Default
					{
						Item	"festive force-a-nature"
						Item	"the sandman"
						Item	"ye oiled baker boy"
						Item	"the bot dogger"
					}
				}
			}
		}
		
		WaveSpawn
		{
			Where spawnbot1
			TotalCount 30
			MaxActive 6
			SpawnCount 2
			WaitBeforeStarting 5
			WaitBetweenSpawns 10
			TotalCurrency 200
			
			TFBot
			{
				Template T_TFBot_Sniper_Huntsman
			}
		}
		
		WaveSpawn //WAVE 01b: 50 total, 10 active, Demoman (demoknight)
		{
			Name "wave01b"
			Where spawnbot1
			TotalCount 50
			MaxActive 10
			SpawnCount 5
			WaitBeforeStarting 2
			WaitBetweenSpawns 35
			TotalCurrency 100

			Support 3
		
			TFBot
			{
					Template T_TFBot_Demoman_Knight
			}
		}
	}
	
	Wave //WAVE 2
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
			Target wave_2_start_clock_relay
			Action trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
			Target wave_stop_clock_relay2
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
			
		WaveSpawn
		{
			Where spawnbot2
			TotalCurrency	400
			TotalCount	6
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	60
			WaitBetweenSpawns	10
			Squad
			{
				TFBot
				{
					Name "DoughBot"
					Health 3000
					Class Soldier
					ClassIcon soldier_crit
					Template T_TFBot_Giant_Medic
					Skill Expert
					Scale 1.8
					MaxVisionRange 400
					Attributes MiniBoss
					Attributes AlwaysCrit
					Item "the team captain"
				}
				TFBot
				{
					Name "Mechanical Socks"
					Health 2000
					Class Medic
					ClassIcon medic_giant
					Template T_TFBot_Giant_Medic
					Skill Expert
					Scale 1.8
					MaxVisionRange 400
					Attributes MiniBoss
					Item "titanium tyrolean"
				}
			}
		}
		
		WaveSpawn //WAVE 04b: 75 total, 6 active, Scout (bonk)
		{
			Name "wave04b"
			Where spawnbot2
			TotalCount 45
			MaxActive 10
			SpawnCount 5
			WaitBeforeStarting 30
			WaitBetweenSpawns 25
			TotalCurrency 500	

			TFBot
			{
				Template T_TFBot_Scout_Bonk
			}
		}
		
		WaveSpawn
		{
			Where spawnbot2
			TotalCount 5
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 40
			WaitBetweenSpawns 40
			TotalCurrency 300
			
			TFBot
			{
				Template T_TFBot_Giant_Scout_Fast
			}
		}
		
		WaveSpawn
		{
			Where spawnbot2
			TotalCount 30
			MaxActive 6
			SpawnCount 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 10
			TotalCurrency 100
			
			TFBot
			{
				Template T_TFBot_Sniper_Huntsman
			}
		}
		
		WaveSpawn //WAVE 01b: 50 total, 10 active, Demoman (demoknight)
		{
			Name "wave01b"
			Where spawnbot2
			TotalCount 50
			MaxActive 10
			SpawnCount 5
			WaitBeforeStarting 50
			WaitBetweenSpawns 20
			TotalCurrency 450

			Support 1
		
			TFBot
			{
					Template T_TFBot_Demoman_Knight
			}
		}
	}
	
	Wave //WAVE 3
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
			Target wave_3_start_clock_relay
			Action trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action trigger
			Target wave_stop_clock_relay3
			Action trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
			
		WaveSpawn
		{
			Where spawnbot
			TotalCount 150
			MaxActive 20
			SpawnCount 10
			WaitBeforeStarting 5
			WaitBetweenSpawns 10
			TotalCurrency 500
			
			TFBot
			{
				Template T_TFBot_Sniper_Huntsman
			}
		}
			
		WaveSpawn //WAVE 01b: 50 total, 10 active, Demoman (demoknight)
		{
			Name "wave01b"
			Where spawnbot
			TotalCount 50
			MaxActive 10
			SpawnCount 5
			WaitBeforeStarting 4
			WaitBetweenSpawns 30
			TotalCurrency 600

			Support 1
		
			TFBot
			{
					Template T_TFBot_Demoman_Knight
			}
		}
		
		WaveSpawn
		{
			Where spawnbot
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 5
			TotalCurrency 1000
			
			TFBot
			{
				Name "Notch"
				Health 5000
				Class Heavy
				ClassIcon heavy_chief
				Skill Expert
				Scale 1.8
				MaxVisionRange 400
				Attributes UseBossHealthBar
				WeaponRestrictions MeleeOnly
				Item "Gold Botkiller Minigun Mk.II"
				Item "The Buffalo Steak Sandvich"
				Item "Upgradeable TF_WEAPON_FISTS"
				Item "The Top Notch"
				Item "The Rump-o\'-Lantern"
			}
		}
			
		WaveSpawn
		{
			Where spawnbot
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 5
			TotalCurrency 1000
			
			TFBot
			{
				Name "Jeb"
				Health 5000
				Class Sniper
				ClassIcon sniper_bow
				Skill Expert
				Scale 1.8
				MaxVisionRange 400
				Attributes UseBossHealthBar
				Item "Festive Huntsman"
				Item "The Cozy Camper"
				Item "The Memory Maker"
				Item "Your Worst Nightmare"
				Item "The Rump-o\'-Lantern"
			}
		}
		
		WaveSpawn
		{
			Where spawnbot
			TotalCount 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 150
			TotalCurrency 200
			Support 1
			
			FirstSpawnOutput     
			{
				Target boss_spawn_relay                                            
				Action Trigger                         
			}
			Tank
			{
				Name "Tank"
				Health 20000
				Speed 75
				Skin 0
				StartingPathTrackNode "boss_path_a1"

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