#base robot_giant.pop
#base robot_standard.pop
#base robot_gatebot.pop
population
{
	StartingCurrency	50
	RespawnWaveTime	6
	CanBotsAttackWhileInSpawnRoom	No
	EventPopfile	Halloween
	Templates
	{
		Browncoat_Zombie
		{
			ClassIcon	browncoat
			Health	200
			Name	"Zombie"
			Class	Scout
			Skill	Expert
			BehaviorModifiers	Push
			WeaponRestrictions	MeleeOnly
			CharacterAttributes
			{
				"move speed bonus"	0.3
				"damage bonus"	2
				"damage force reduction"	-1
				"dmg taken from bullets reduced"	0.95
				"dmg taken from blast reduced"	0.95
				"dmg taken from crit reduced"	0.95
				"dmg taken from fire reduced"	0.95
				"afterburn immunity"	1
				"airblast vulnerability multiplier" 0
			}
			Item	"unarmed combat"
			Item	"baseball bill's sports shine"
			Item	"zombie scout"
			Item	"the soot suit"
		}
		Conehead_Zombie
		{
			ClassIcon	cone
			Health	570
			Name	"Conehead Zombie"
			Class	Pyro
			Skill	Expert
			BehaviorModifiers	Push
			WeaponRestrictions	MeleeOnly
			CharacterAttributes
			{
				"move speed bonus"	0.4
				"dmg taken from bullets reduced"	0.6
				"dmg taken from blast reduced"	0.75
				"dmg taken from crit reduced"	0.75
				"dmg taken from fire reduced"	0.85
				"damage force reduction"	-1
				"afterburn immunity"	1
				"airblast vulnerability multiplier"	0
			}
			Item	"zombie pyro"
			Item	"traffic cone"
			Item	"the soot suit"
		}
		Buckethead_Zombie
		{
			ClassIcon	bucket
			Health	1300
			Name	"Buckethead Zombie"
			Class	Soldier
			Skill	Expert
			BehaviorModifiers	Push
			WeaponRestrictions	MeleeOnly
			CharacterAttributes
			{
				"dmg taken from blast reduced"	0.75
				"dmg taken from bullets reduced"	0.5
				"dmg taken from crit reduced"	0.5
				"dmg taken from fire reduced"	0.75
				"move speed bonus"	0.45
				"damage force reduction"	-1
				"afterburn immunity"	1
				"airblast vulnerability multiplier"	0
			}
			Item	"bucket hat"
			Item	"zombie soldier"
			Item	"the soot suit"
		}
		Flag_Zombie
		{
			ClassIcon	flag
			Health	200
			Name	"Flag Zombie"
			Class	Soldier
			Skill	Expert
			BehaviorModifiers	Push
			WeaponRestrictions	SecondaryOnly
			Attributes	"SpawnWithFullCharge"
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage bonus"	2
				"damage force reduction"	5
				"increase buff duration"	5000
				"damage force reduction"	-1
				"dmg taken from bullets reduced"	0.95
				"dmg taken from blast reduced"	0.95
				"dmg taken from crit reduced"	0.95
				"dmg taken from fire reduced"	0.95
				"afterburn immunity"	1
				"airblast vulnerability multiplier"	0
			}
			ItemAttributes
			{
				ItemName "TF_WEAPON_SHOVEL"
				"Is_Passive_Weapon" 1
			}
			Item	"the concheror"
			Item	"TF_WEAPON_SHOVEL"
			Item	"zombie soldier"
			Item	"hero's hachimaki"
			Item	"the soot suit"
		}
		Pole_vaulting_Zombie
		{
			ClassIcon	polevaulter
			Health	340
			AutoJumpMin	5
			AutoJumpMax	5
			Name	"Pole vaulting Zombie"
			Scale	1.2
			Class	Scout
			Skill	Expert
			BehaviorModifiers	Mobber
			WeaponRestrictions	MeleeOnly
			Attributes	"AutoJump"
			CharacterAttributes
			{
				"move speed bonus"	0.55
				"major increased jump height"	5
				"dmg taken from bullets reduced"	0.8
				"dmg taken from fire reduced"	0.5
				"damage force reduction"	-1
				"afterburn immunity"	1
				"cancel falling damage"	500
				"airblast vulnerability multiplier"	0
			}
			Item	"the atomizer"
			Item	"zombie scout"
			Item	"the bigg mann on campus"
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		InitWaveOutput
		{
			Target	wave_day_relay
			Action	Trigger
		}
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave1browncoats
			RandomSpawn 1 
			TotalCurrency	30
			TotalCount	15
			MaxActive	15
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	4
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			TFBot
				{
					Template	Browncoat_Zombie
				}
		}
		WaveSpawn
		{
			Name wave1break
			WaitForAllDead wave1browncoats
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave1browncoats
			RandomSpawn 1 
			WaitForAllDead wave1break
			TotalCurrency	20
			TotalCount	10
			MaxActive	10
			SpawnCount	10
			WaitBeforeStarting	8
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			TFBot
				{
					Template	Browncoat_Zombie
				}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave2browncoats
			RandomSpawn 1 
			TotalCurrency	50
			TotalCount	30
			MaxActive	30
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	3
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			TFBot
				{
					Template	Browncoat_Zombie
				}
		}
		WaveSpawn
		{
			Name wave2browncoats2
			RandomSpawn 1 
			WaitForAllDead wave2browncoats
			TotalCurrency	50
			TotalCount	30
			MaxActive	30
			SpawnCount	5
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Where	spawnbot
			TFBot
				{
					Template	Browncoat_Zombie
				}
		}
		WaveSpawn
		{
			Name wave2break
			WaitForAllDead wave2browncoats2
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave2browncoats
			RandomSpawn 1 
			WaitForAllDead wave2break
			TotalCurrency	45
			TotalCount	15
			MaxActive	15
			SpawnCount	15
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			TFBot
				{
					Template	Browncoat_Zombie
				}

		}
		WaveSpawn
		{
			Name finalwave2flag
			RandomSpawn 1 
			WaitForAllDead wave2break
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave3browncoats
			RandomSpawn 1 
			TotalCurrency	50
			TotalCount	20
			MaxActive	20
			SpawnCount	5
			WaitBeforeStarting	10
			WaitBetweenSpawns	5
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			TFBot
				{
					Template	Browncoat_Zombie
				}
		}
		WaveSpawn
		{
			Name wave3coneheads
			RandomSpawn 1 
			WaitForAllSpawned wave3browncoats
			TotalCurrency	50
			TotalCount	10
			MaxActive	10
			SpawnCount	2
			WaitBeforeStarting	8
			WaitBetweenSpawns	3
			Where	spawnbot
			TFBot
				{
					Template	Conehead_Zombie
				}
		}
		WaveSpawn
		{
			Name wave3browncoats2
			RandomSpawn 1 
			WaitForAllDead wave3coneheads
			TotalCurrency 50
			TotalCount	25
			MaxActive	25
			SpawnCount	8
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Where	spawnbot
			TFBot
				{
					Template	Browncoat_Zombie
				}
		}
		WaveSpawn
		{
			Name wave3break
			WaitForAllDead wave3browncoats2
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave3browncoats
			RandomSpawn 1 
			WaitForAllDead wave3break
			TotalCurrency	20
			TotalCount	15
			MaxActive	15
			SpawnCount	15
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			TFBot
				{
					Template	Browncoat_Zombie
				}

		}
		WaveSpawn
		{
			Name finalwave3coneheads
			RandomSpawn 1 
			WaitForAllDead wave3break
			TotalCurrency	25
			TotalCount	5
			MaxActive	5
			SpawnCount	5
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Conehead_Zombie
				}

		}
		WaveSpawn
		{
			Name finalwave3flag
			RandomSpawn 1 
			WaitForAllDead wave3break
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave4browncoats
			RandomSpawn 1 
			TotalCurrency	50
			TotalCount	25
			MaxActive	25
			SpawnCount	5
			WaitBeforeStarting	10
			WaitBetweenSpawns	5
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			TFBot
				{
					Template	Browncoat_Zombie
				}
		}
		WaveSpawn
		{
			Name wave4coneheads
			RandomSpawn 1 
			WaitForAllSpawned wave4browncoats
			TotalCurrency	75
			TotalCount	15
			MaxActive	15
			SpawnCount	3
			WaitBeforeStarting	10
			WaitBetweenSpawns	6
			Where	spawnbot
			TFBot
				{
					Template	Conehead_Zombie
				}
		}
		WaveSpawn
		{
			Name wave4browncoats2
			RandomSpawn 1 
			WaitForAllDead wave4coneheads
			TotalCurrency	50
			TotalCount	25
			MaxActive	25
			SpawnCount	5
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Where	spawnbot
			TFBot
				{
					Template	Browncoat_Zombie
				}
		}
		WaveSpawn
		{
			Name wave4coneheads2
			RandomSpawn 1 
			WaitForAllSpawned wave4coneheads
			TotalCurrency	50
			TotalCount	10
			MaxActive	10
			SpawnCount	3
			WaitBeforeStarting	8
			WaitBetweenSpawns	5
			Where	spawnbot
			TFBot
				{
					Template	Conehead_Zombie
				}
		}
		WaveSpawn
		{
			Name wave4break
			WaitForAllDead wave4coneheads2
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave4browncoats
			RandomSpawn 1 
			WaitForAllDead wave4break
			TotalCurrency	20
			TotalCount	15
			MaxActive	15
			SpawnCount	15
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			TFBot
				{
					Template	Browncoat_Zombie
				}

		}
		WaveSpawn
		{
			Name finalwave4coneheads
			RandomSpawn 1 
			WaitForAllDead wave4break
			TotalCurrency	50
			TotalCount	5
			MaxActive	5
			SpawnCount	5
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Conehead_Zombie
				}

		}
		WaveSpawn
		{
			Name finalwave4flag
			RandomSpawn 1 
			WaitForAllDead wave4break
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes

		StartWaveOutput
		{
			Target	wave_start_bowling_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_bowling_finished
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave5browncoats
			RandomSpawn 1 
			TotalCurrency	50
			TotalCount	50
			MaxActive	50
			SpawnCount	5
			WaitBeforeStarting	6
			WaitBetweenSpawns	5
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			TFBot
				{
					Template	Browncoat_Zombie
					Attributes "BulletImmune"  
					Attributes "FireImmune"
					Attributes "BlastImmune"
				}
		}
		WaveSpawn
		{
			Name wave5rush
			RandomSpawn 1 
			WaitForAllSpawned wave5browncoats
			TotalCurrency	150
			TotalCount	75
			MaxActive	75
			SpawnCount	5
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Conehead_Zombie
					Attributes "BulletImmune" 
					Attributes "FireImmune"
					Attributes "BlastImmune"
				}
				TFBot
				{
					Template	Browncoat_Zombie
					Attributes "BulletImmune" 
					Attributes "FireImmune"
					Attributes "BlastImmune"
					
				}
				TFBot
				{
					Template	Browncoat_Zombie
					Attributes "BulletImmune" 
					Attributes "FireImmune"
					Attributes "BlastImmune"
				}
				TFBot
				{
					Template	Browncoat_Zombie
					Attributes "BulletImmune" 
					Attributes "FireImmune"
					Attributes "BlastImmune"
				}
			}
		}
		WaveSpawn
		{
			Name wave5break
			WaitForAllDead wave5rush
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave5browncoats
			RandomSpawn 1 
			WaitForAllDead wave5break
			TotalCurrency	50
			TotalCount	20
			MaxActive	20
			SpawnCount	20
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			TFBot
				{
					Template	Browncoat_Zombie
					Attributes "BulletImmune" 
					Attributes "FireImmune"
					Attributes "BlastImmune"
				}
		}
		WaveSpawn
		{
			Name finalwave5coneheads
			RandomSpawn 1 
			WaitForAllDead wave5break
			TotalCurrency	50
			TotalCount	5
			MaxActive	5
			SpawnCount	5
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Conehead_Zombie
					Attributes "BulletImmune" 
					Attributes "FireImmune"
					Attributes "BlastImmune" 
				}
		}
		WaveSpawn
		{
			Name finalwave5flag
			RandomSpawn 1 
			WaitForAllDead wave5break
			TotalCurrency	50
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
					Attributes "BulletImmune" 
					Attributes "FireImmune"
					Attributes "BlastImmune" 
				}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave6browncoats
			RandomSpawn 1 
			TotalCurrency	50
			TotalCount	25
			MaxActive	25
			SpawnCount	5
			WaitBeforeStarting	12
			WaitBetweenSpawns	4
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave6rush
			RandomSpawn 1 
			WaitForAllSpawned wave6browncoats
			TotalCurrency	75
			TotalCount	30
			MaxActive	30
			SpawnCount	3
			WaitBeforeStarting	5
			WaitBetweenSpawns	2
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave6pole
			RandomSpawn 1 
			WaitForAllDead wave6rush
			TotalCurrency	50
			TotalCount	6
			MaxActive	6
			SpawnCount	1
			WaitBeforeStarting	5
			WaitBetweenSpawns	1
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave6browncoats2
			RandomSpawn 1 
			WaitForAllDead wave6pole
			TotalCurrency	100
			TotalCount	50
			MaxActive	50
			SpawnCount	10
			WaitBeforeStarting	3
			WaitBetweenSpawns	5
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave6break
			WaitForAllDead wave6browncoats2
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave6browncoats
			RandomSpawn 1 
			WaitForAllDead wave6break
			TotalCurrency	50
			TotalCount	15
			MaxActive	15
			SpawnCount	15
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}

		}
		WaveSpawn
		{
			Name finalwave6coneheads
			RandomSpawn 1 
			WaitForAllDead wave6break
			TotalCurrency	20
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Conehead_Zombie
				}
			}

		}
		WaveSpawn
		{
			Name finalwave6flag
			RandomSpawn 1 
			WaitForAllDead wave6break
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
		WaveSpawn
		{
			Name finalwave6polevault
			RandomSpawn 1 
			WaitForAllDead wave6break
			TotalCurrency	50
			TotalCount	2
			MaxActive	2
			SpawnCount	2
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave7browncoats
			RandomSpawn 1 
			TotalCurrency	100
			TotalCount	50
			MaxActive	50
			SpawnCount	10
			WaitBeforeStarting	12
			WaitBetweenSpawns	5
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave7rush
			RandomSpawn 1 
			WaitForAllSpawned wave7browncoats
			TotalCurrency	100
			TotalCount	50
			MaxActive	50
			SpawnCount	5
			WaitBeforeStarting	5
			WaitBetweenSpawns	3
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave7break
			WaitForAllDead wave7rush
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name wave7browncoats2
			RandomSpawn 1 
			WaitForAllDead wave7break
			TotalCurrency	55
			TotalCount	14
			MaxActive	14
			SpawnCount	14
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave7flag
			RandomSpawn 1 
			WaitForAllDead wave7break
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/siren.wav"
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
		WaveSpawn
		{
			Name wave7rush2
			RandomSpawn 1 
			WaitForAllSpawned wave7browncoats2
			TotalCurrency	125
			TotalCount	50
			MaxActive	50
			SpawnCount	5
			WaitBeforeStarting	5
			WaitBetweenSpawns	3
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave7break2
			WaitForAllDead wave7rush2
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave7browncoats
			RandomSpawn 1 
			WaitForAllDead wave7break2
			TotalCurrency	30
			TotalCount	15
			MaxActive	15
			SpawnCount	15
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name finalwave7coneheads
			RandomSpawn 1 
			WaitForAllDead wave7break2
			TotalCurrency	30
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Conehead_Zombie
				}
			}

		}
		WaveSpawn
		{
			Name finalwave7flag
			RandomSpawn 1 
			WaitForAllDead wave7break2
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
		WaveSpawn
		{
			Name finalwave7polevault
			RandomSpawn 1 
			WaitForAllDead wave7break2
			TotalCurrency	50
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave8browncoats
			RandomSpawn 1
			TotalCurrency	50
			TotalCount	30
			MaxActive	30
			SpawnCount	5
			WaitBeforeStarting	12
			WaitBetweenSpawns	1
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave8rush
			RandomSpawn 1 
			WaitForAllSpawned wave8browncoats
			TotalCurrency	100
			TotalCount	50
			MaxActive	50
			SpawnCount	10
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave8break
			WaitForAllDead wave8rush
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name wave8browncoats3
			RandomSpawn 1 
			WaitForAllDead wave8break
			TotalCurrency	30
			TotalCount	15
			MaxActive	15
			SpawnCount	15
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave8flag
			RandomSpawn 1 
			WaitForAllDead wave8break
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/siren.wav"
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
		WaveSpawn
		{
			Name wave8browncoats4
			RandomSpawn 1 
			WaitForAllDead wave8browncoats3
			TotalCurrency	50
			TotalCount	30
			MaxActive	30
			SpawnCount	5
			WaitBeforeStarting	3
			WaitBetweenSpawns	1
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave8buckethead
			RandomSpawn 1 
			WaitForAllDead wave8browncoats4
			TotalCurrency	150
			TotalCount	15
			MaxActive	15
			SpawnCount	3
			WaitBeforeStarting	2
			WaitBetweenSpawns	2
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Buckethead_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave8rush2
			RandomSpawn 1 
			WaitForAllDead wave8buckethead
			TotalCurrency	100
			TotalCount	50
			MaxActive	50
			SpawnCount	5
			WaitBeforeStarting	5
			WaitBetweenSpawns	2
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Buckethead_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave8break2
			WaitForAllDead wave8rush2
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave8browncoats
			RandomSpawn 1 
			WaitForAllDead wave8break2
			TotalCurrency	30
			TotalCount	15
			MaxActive	15
			SpawnCount	15
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name finalwave8coneheads
			RandomSpawn 1 
			WaitForAllDead wave8break2
			TotalCurrency	45
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Conehead_Zombie
				}
			}

		}
		WaveSpawn
		{
			Name finalwave8flag
			RandomSpawn 1 
			WaitForAllDead wave8break2
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
		WaveSpawn
		{
			Name finalwave8buckets
			RandomSpawn 1 
			WaitForAllDead wave8break2
			TotalCurrency	35
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Buckethead_Zombie
				}
			}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave9browncoats
			RandomSpawn 1 
			TotalCurrency	100
			TotalCount	60
			MaxActive	60
			SpawnCount	15
			WaitBeforeStarting	12
			WaitBetweenSpawns	5
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave9rush
			RandomSpawn 1 
			WaitForAllDead wave9browncoats
			TotalCurrency	100
			TotalCount	50
			MaxActive	50
			SpawnCount	10
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Where	spawnbot
			RandomChoice
			{
			
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Buckethead_Zombie
				}
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave9break
			WaitForAllDead wave9rush
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name wave9flag
			RandomSpawn 1 
			WaitForAllDead wave9break
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
		WaveSpawn
		{
			Name wave9browncoats2
			RandomSpawn 1 
			WaitForAllDead wave9break
			TotalCurrency	30
			TotalCount	19
			MaxActive	19
			SpawnCount	19
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/siren.wav"
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave9rush2
			RandomSpawn 1 
			WaitForAllDead wave9browncoats2
			TotalCurrency	120
			TotalCount	80
			MaxActive	80
			SpawnCount	15
			WaitBeforeStarting	7
			WaitBetweenSpawns	10
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Buckethead_Zombie
				}
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave9break2
			WaitForAllDead wave9rush2
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave9flag
			RandomSpawn 1 
			WaitForAllDead wave9break2
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
		WaveSpawn
		{
			Name finalwave9browncoats
			RandomSpawn 1 
			WaitForAllDead wave9break2
			TotalCurrency	40
			TotalCount	15
			MaxActive	15
			SpawnCount	15
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name finalwave9coneheads
			RandomSpawn 1 
			WaitForAllDead wave9break2
			TotalCurrency	75
			TotalCount	5
			MaxActive	5
			SpawnCount	5
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Conehead_Zombie
				}
			}

		}
		WaveSpawn
		{
			Name finalwave9buckets
			RandomSpawn 1 
			WaitForAllDead wave9break2
			TotalCurrency	100
			TotalCount	4
			MaxActive	4
			SpawnCount	4
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Buckethead_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name finalwave9polevaulters
			RandomSpawn 1 
			WaitForAllDead wave9break2
			TotalCurrency	125
			TotalCount	3
			MaxActive	3
			SpawnCount	3
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
	}
	Wave
	{
		WaitWhenDone	65
		Checkpoint	Yes
		InitWaveOutput
		{
			Target	wave_prefinal_relay
			Action	Trigger
		}
		StartWaveOutput
		{
			Target	wave_final_relay
			Action	Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaveSpawn
		{
			Name wave10browncoats
			RandomSpawn 1 
			TotalCurrency	100
			TotalCount	100
			MaxActive	100
			SpawnCount	10
			WaitBeforeStarting	8
			WaitBetweenSpawns	1
			Where	spawnbot
			FirstSpawnWarningSound "pvz_soundeffect/thezombiesarecoming.wav"
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave10rush
			RandomSpawn 1 
			WaitForAllDead wave10browncoats
			TotalCurrency	100
			TotalCount	100
			MaxActive	100
			SpawnCount	10
			WaitBeforeStarting	5
			WaitBetweenSpawns	2
			Where	spawnbot
			RandomChoice
			{
			
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Buckethead_Zombie
				}
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave10rush2
			RandomSpawn 1 
			WaitForAllDead wave10rush
			TotalCurrency	150
			TotalCount	150
			MaxActive	150
			SpawnCount	15
			WaitBeforeStarting	8
			WaitBetweenSpawns	2
			Where	spawnbot
			RandomChoice
			{
			
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Buckethead_Zombie
				}
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave10break
			WaitForAllDead wave10rush2
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name wave10flag
			RandomSpawn 1 
			WaitForAllDead wave10break
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/siren.wav"
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
		WaveSpawn
		{
			Name wave10browncoats2
			RandomSpawn 1 
			WaitForAllDead wave10break
			TotalCurrency	50
			TotalCount	20
			MaxActive	20
			SpawnCount	20
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
				TFBot
				{
					Template	Browncoat_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave10rush4
			RandomSpawn 1 
			WaitForAllDead wave10browncoats2
			TotalCurrency	200
			TotalCount	80
			MaxActive	80
			SpawnCount	20
			WaitBeforeStarting	8
			WaitBetweenSpawns	10
			Where	spawnbot
			RandomChoice
			{
			
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Buckethead_Zombie
				}
				TFBot
				{
					Template	Buckethead_Zombie
				}
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
		WaveSpawn
		{
			Name wave10break2
			WaitForAllDead wave10rush4
			TotalCount	0
			MaxActive	0
			SpawnCount	0
			WaitBeforeStarting	5
			FirstSpawnWarningSound "pvz_soundeffect/hugewave.wav"
		}
		WaveSpawn
		{
			Name finalwave10flag
			RandomSpawn 1 
			WaitForAllDead wave10break2
			TotalCurrency	5
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			FirstSpawnWarningSound "pvz_soundeffect/finalwave.wav"
			Where	spawnbot
			TFBot
				{
					Template	Flag_Zombie
				}
		}
		WaveSpawn
		{
			Name finalwave10rush
			RandomSpawn 1 
			WaitForAllDead wave10break2
			TotalCurrency	190
			TotalCount	23
			MaxActive	23
			SpawnCount	1
			WaitBeforeStarting	7
			WaitBetweenSpawns	0
			Where	spawnbot
			RandomChoice
			{
			
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Conehead_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Browncoat_Zombie
				}
				TFBot
				{
					Template	Buckethead_Zombie
				}
				TFBot
				{
					Template	Buckethead_Zombie
				}
				TFBot
				{
					Template	Pole_vaulting_Zombie
				}
			}
		}
	}
}