#base	robot_giant.pop
#base	robot_standard.pop
#base	robot_gatebot.pop
#base	texas_upgrades.pop
// Have Paths (Where spawn + Robot Atribute/Tag):
// LEFT SIDE : 	spawnbot +
// Tag	"nav_prefer_flank_left"
// Tag	"path_2"
//
// CENTER : 		"spawnbot"
// RIGHT SIDE : 	"spawnbot_path_3"
//
// (InitWaveOutput) Set Paths
// CENTER :     	 "bombpath_set_1_path"
// LEFT SIDE :  	 "bombpath_set_2_path"
// RIGHT SIDE : 	 "bombpath_set_3_path"
// RIGHT 2 SIDE : 	 "bombpath_set_4_path"
//
// CENTER + LEFT :  " bombpath_set_1+2_path "
// CENTER + RIGHT : " bombpath_set_1+3_path "
// LEFT + RIGHT :   " bombpath_set_2+3_path "
// ALL PATHS :   	" bombpath_set_all_path "
//
// Stealth path
// CENTER : 	spawnbot_stealth_path_1
// LEFT SIDE : 	spawnbot_stealth_path_2
// RIGHT SIDE :	spawnbot_stealth_path_3
//
// Tank Path
// BLIMP : 		blimp_path (moving in left side how "boss_path_1")
// LEFT SIDE : 	boss_path_1
// RIGHT SIDE :	boss_path_2
// RIGHT SIDE STREET : boss_path_4
//
// Starting Currency: 300
//
// +----------+----------+----------+
// | Wave     | Currency | A+       |
// +----------+----------+----------+
// | Wave 1   | 1000     | 1100     |
// | Wave 2   | 900      | 1000     |
// | Wave 3   | 1000     | 1100     |
// | Wave 4   | 1100     | 1200     |
// | Wave 5   | 1700     | 1800     |
// +----------+----------+----------+
// | Total    | 5700     | 6200     |
// +----------+----------+----------+
//

population
{
	StartingCurrency				400
	RobotLimit						45
	AllowBotExtraSlots				1
	RespawnWaveTime					3
	FixedRespawnWaveTime			Yes
	CanBotsAttackWhileInSpawnRoom	no

	CustomWeapon	// precise airborne rifle
	{
		Name								"Paratrooper Rifle"
		OriginalItemName					"Upgradeable TF_WEAPON_SHOTGUN_PRIMARY"
		"special item description"			"Crits while airborne; press JUMP for parachute"
		"bullets per shot bonus"			0.1
		"clip size bonus"					3.3
		"hidden secondary max ammo penalty"	1.25
		"damage bonus hidden"				2	// 8.3
		"fire rate bonus"					0.35
		"reload full clip at once"			1
		"reload time increased"				8
		"provide on active"					1
		"no damage view flinch"				1
		"parachute attribute"				1
		"mod crit while airborne"			1
		"mult dmg vs giants"				1.75	// less dmg vs giants
		"mult dmg vs tanks"					1.25	// less dmg vs tanks
		"crit mod disabled"					0
		"cannot be upgraded"				0
		"no damage falloff"					1
		"parachute redeploy"				1
		"special damage type"				1
		"custom kill icon"					sniperrifle
		"custom weapon fire sound"			=80|fg42f1.wav
		"custom weapon reload sound"		=80|fg42_reload.wav
		"custom item model"					models/weapons/c_models/c_chains_of_command/c_chains_of_command.mdl
	}

	CustomWeapon
	{
		"The Decoy Watch"
		{
			OriginalItemName				TF_WEAPON_INVIS
			"mult cloak meter consume rate"	0.0	// script handles this
			mod_cloak_no_regen_from_items	1
			"mult cloak meter regen rate"	0.65
			"fire input on effect"			popscript^$decoyWatchActivate^
			"special item description 2"	"Spawn an invincible, immobile, and harmless sniper bot on your position that lives for 10 seconds, consumes and requires full cloak to do so. No longer functions as an invis watch"
		}
	}
	LuaScriptFile					scripts/virus_knife.lua

	ExtraLoadoutItems
	{
		Soldier
		{
			Secondary	"Paratrooper Rifle"
		}

		Spy
		{
			PDA2	"The Decoy Watch"
		}
	}
	// ItemWhitelist  
	// {
	// Classname	tf_weapon_scattergun
	// Classname	tf_weapon_parachute
	// Classname	tf_wearable
	// Classname	saxxy
	// Classname	tf_powerup_bottle
	// Classname	tf_weapon_spellbook
	// Classname	"Crate Smasher"
	// SimilarTo	TF_WEAPON_PISTOL
	// SimilarTo	TF_WEAPON_PISTOL_SCOUT
	// Classname	TF_WEAPON_SHOTGUN_PRIMARY
	// Classname	tf_weapon_shotgun
	// Classname	tf_weapon_lunchbox_drink
	// Classname	tf_weapon_jar_milk
	// Classname	tf_weapon_cleaver
	// Classname	tf_weapon_bat
	// Classname	tf_weapon_bat_wood
	// Classname	tf_weapon_bat_fish
	// Classname	tf_weapon_bat_giftwrap
	// ItemName	"Pretty Boy's Pocket Pistol"
	// ItemName	"The Winger"
	//// Classname "tf_weapon_rocketlauncher" //TESTING ONLY
	// Name		"Rocket Jumper"
	// Name		"Sticky Jumper"
	// Classname	tf_weapon_pipebomblauncher
	// Classname	tf_weapon_buff_item
	// Classname	tf_weapon_shovel
	// Classname	tf_weapon_katana
	//// ItemName "The Righteous Bison"
	// Classname	TF_WEAPON_SHOTGUN_SOLDIER
	// Name		"The Detonator"
	// Name		"Festive Flare Gun"
	// Name		"The Flare Gun"
	// Name		"The Scorch Shot"
	// Classname	tf_weapon_jar_gas
	// Classname	tf_weapon_flaregun_revenge
	// Classname	tf_weapon_rocketpack
	// Classname	tf_weapon_fireaxe
	// Classname	tf_weapon_breakable_sign
	// Classname	tf_weapon_slap
	// Classname	TF_WEAPON_SHOTGUN_PYRO
	// Name		"The Loose Cannon"
	// Name		"Sticky Jumper"
	// Classname	tf_wearable_demoshield
	// Classname	tf_weapon_bottle
	// Classname	tf_weapon_sword
	// Classname	tf_weapon_stickbomb
	// Classname	tf_weapon_lunchbox
	// Classname	tf_weapon_fists
	// Classname	TF_WEAPON_SHOTGUN_HWG
	// Classname	tf_weapon_laser_pointer
	//// Classname "tf_weapon_mechanical_arm" // Short Circuit
	// Classname	tf_weapon_wrench
	// Classname	tf_weapon_robot_arm	// Gunslinger
	// Name		"The Frontier Justice"
	// Classname	tf_weapon_pda_engineer_build
	// Classname	tf_weapon_pda_engineer_destroy
	// Classname	tf_weapon_builder
	// Classname	tf_weapon_crossbow
	// Classname	tf_weapon_syringegun_medic
	// Classname	tf_weapon_bonesaw
	// Classname	TF_WEAPON_MEDIGUN
	// Classname	tf_weapon_compound_bow
	// Classname	TF_WEAPON_SNIPERRIFLE
	// Name		"the bazaar bargain"
	// Name		"the classic"
	// Classname	tf_weapon_razorback
	// Classname	tf_weapon_jar
	// Classname	tf_weapon_club	// Now *this*, is a knife.
	//// Classname "tf_weapon_sapper"
	// Classname	tf_weapon_revolver
	//// DefIndex  735 // Sapper
	//// DefIndex  736 // Sapper (Renamed/Strange)
	// Classname	tf_weapon_knife
	// Classname	tf_weapon_pda_spy
	// Classname	tf_weapon_invis
	// ItemSlot	11	// taunt slots
	// ItemSlot	12
	// ItemSlot	13
	// ItemSlot	14
	// ItemSlot	15
	// ItemSlot	16
	// ItemSlot	17
	// ItemSlot	18
	// }
	LuaScriptFile					scripts/bot_frontier_gain_on_teammate_death.lua

	PointTemplates
	{
		FrontierGainOnTeammateDeath
		{
			OnSpawnOutput
			{
				Target	popscript
				Action	$FrontierGainOnTeammateDeath
				Delay	0.01
			}
		}
	}

	Mission
	{
		Objective			Engineer
		Where				spawnbot_mission_spy
		BeginAtWave			4
		RunForThisManyWaves	1
		InitialCooldown		15
		CooldownTime		45
		DesiredCount		2

		TFBot
		{
			Class		Engineer
			ClassIcon	engineer_minisentry_nys_badversion
			Name		Engineer
			Skill		Expert
			Health		300
			Item		"the gunslinger"
			Item		"Western Wear"
			Item		"The Pencil Pusher"
			Item		"The Builder's Blueprints"
			Item		"The Teufort Tooth Kicker"
			Item		"Battery Canteens"
			Item		"The Trash Toter"
			Item		"The Flared Frontiersman"
			Item		"El Patron"
			Item		"Aim Assistant"
			Item		"The Trencher's Tunic"
			// Attributes "TeleportToHint"
			// Classicon	engineer_gunslinger_lite

			CharacterAttributes
			{
				"building max level"			1	// RAF
				"destroy buildings on death"	1
			}
		}
	}

	Mission
	{
		Objective			Engineer
		Where				spawnbot
		InitialCooldown		5
		WaitForAllDead		support_engi
		CooldownTime		30
		DesiredCount		1
		BeginAtWave			5
		RunForThisManyWaves	1

		TFBot
		{
			Item			"The Tin-1000"
			Item			"The Trash Toter"
			Item			"The Flared Frontiersman"
			Item			"The Gold Digger"
			Item			"dec2014 engineer_detectiveholster"
			TeleportWhere	spawnbot_stealth_path_3
			Class			Engineer
			Name			Engineer
			Skill			Expert
			Health			275
			Attributes		TeleportToHint

			CharacterAttributes
			{
				"building max level"			1	// RAF
				"destroy buildings on death"	1
			}
		}
	}

	Mission
	{
		Objective			Spy
		Where				spawnbot_mission_spy
		BeginAtWave			3
		RunForThisManyWaves	2
		InitialCooldown		10
		CooldownTime		30
		DesiredCount		2

		TFBot
		{
			TeleportWhere	spawnbot_mission_spy
			Template		T_TFBot_Spy
			Item			"ttg sam revolver"
			Item			"nightmare hunter"
			Item			"the au courant assassin"
		}
	}

	Mission
	{
		Objective			Sniper
		Where				spawnbot
		BeginAtWave			2
		RunForThisManyWaves	3
		InitialCooldown		10
		CooldownTime		45
		DesiredCount		2

		TFBot
		{
			Health			175
			ClassIcon		sniper_bow
			Template		T_TFBot_Sniper_Huntsman_Spammer
			Scale			1
			MaxVisionRange	700

			ItemAttributes
			{
				ItemName		"the huntsman"
				"no headshots"	1
			}
			Item			"the anger"
			Item			"the birdman of australiacatraz"
		}
	}

	Mission
	{
		Objective			Sniper
		Where				spawnbot
		BeginAtWave			1
		RunForThisManyWaves	2
		InitialCooldown		10
		CooldownTime		10
		DesiredCount		1

		TFBot
		{
			Template	T_TFBot_Sniper
			Attributes	IgnoreFlag
			Item		"the bazaar bargain"
			Item		"the bloodhound"
			Item		"support spurs"
		}
	}

	Mission
	{
		Objective			Sniper
		Where				spawnbot_mission_sniper
		BeginAtWave			3
		RunForThisManyWaves	2
		InitialCooldown		30
		CooldownTime		30
		DesiredCount		4

		TFBot
		{
			Template	T_TFBot_Sniper_Sydney_Sleeper
			Item		"The Lone Star"
			Item		"Guilden Guardian"
			Item		"The Triggerman's Tacticals"
		}
	}
	// WAVE 1 - Path_1

	Wave
	{
		WaitWhenDone	65
		Checkpoint		Yes
		Sound			banjo1.mp3

		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}

		InitWaveOutput
		{
			Target	wave_start_relay	// gamerules or tf_gamerules, depending on the map
			Action	RunScriptCode
			Param	"
				// The original InitWaveOutput trigger, change if necessary
				 EntFire(`bombpath_set_1_path`, `Trigger`)
				 EntFire(`item_teamflag`, `SetReturnTime`  `12`)
				// Load popextensions script
				IncludeScript(`popextensions_main.nut`, getroottable())

			MissionAttrs({
					`NoReanimators`: 1
					`NoRome`: 2
					`ForceHoliday`: 8
					`WaveStartCountdown`: 3

					`ItemAttributes`: {
						`The Amputator` : {
							`add cond on hit`: [27, 5]
						},
						`The Killing Gloves of Boxing` : {
							`critboost on kill`: 2.5
						},			
						`The Gas Passer` : {
							`weapon burn time increased`: 2
							`weapon burn dmg increased`: 2
						},		
						`The Equalizer` : {
							`mod shovel damage boost`: 0
							//`dmg bonus while half dead`: 1.5
							//`dmg penalty while half alive`: 0.5
						},							
					}

                    `LoadoutControl`: {
					//ENGIE BLACKLIST
					`tf_weapon_wrench` : `The Gunslinger`, //no level 3

                    },
				})
			"
		}

		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}

		WaveSpawn
		{
			Name				Scum
			TotalCurrency		100
			TotalCount			20
			MaxActive			10
			SpawnCount			5
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Support				1
			Where				spawnbot

			Squad
			{
				TFBot
				{
					ClassIcon	scout_stun_gry
					Name		Scum
					Health		125
					Template	T_TFBot_Scout_Melee
					Tag			path_1
					Item		"the sandman"
					Item		"Baseball Bill's Sports Shine"
					Item		"The Teufort Tooth Kicker"
					Item		"The Criminal Cloak"
					Item		"Pure Tin Capotain"
					Item		"The Bruiser's Bandanna"
				}
			}
		}

		WaveSpawn
		{
			Name				"Scum soldier"
			TotalCurrency		200
			TotalCount			15
			MaxActive			4
			SpawnCount			2
			WaitBeforeStarting	5
			WaitBetweenSpawns	10
			Where				spawnbot

			Squad
			{
				TFBot
				{
					ClassIcon			shotgun_reserve
					Health				200
					Name				Neighbor
					Class				Soldier
					Skill				Normal
					WeaponRestrictions	SecondaryOnly
					MaxVisionRange		800
					Tag					path_1
					Item				"the reserve shooter"
					Item				"the slo-poke"
					Item				"the teufort tooth kicker"
					Item				"The Killer's Kit"
					Item				"The Cuban Bristle Crisis"
					Item				"Dillinger's Duffel"
				}
			}
		}

		WaveSpawn
		{
			Name				"Scum Heavy"
			TotalCurrency		300
			TotalCount			10
			MaxActive			5
			SpawnCount			2
			WaitBeforeStarting	15
			WaitBetweenSpawns	10
			Where				spawnbot

			Squad
			{
				TFBot
				{
					ClassIcon			heavy_fists_nys
					Health				500
					Name				"The Bouncer"
					Scale				1.25
					Tag					path_1
					Tag					giant_avoid
					Class				HeavyWeapons
					Skill				Hard
					WeaponRestrictions	MeleeOnly

					CharacterAttributes
					{
						"override footstep sound set"	2
						"apply look velocity on damage"	5
						"generate rage on damage"		50
						"boost on damage"				50
						"sapper damage penalty hidden"	50
						"move speed bonus"				0.75
					}
					Item				"Security Shades"
					Item				"Prairie Heel Biters"
					Item				"The Teufort Tooth Kicker"
					Item				"The Tuxxy"
					Item				"Minnesota Slick"
					Item				"The Mann of the House "
				}
			}
		}
		// support

		WaveSpawn
		{
			Name				Scum
			TotalCurrency		100
			TotalCount			9
			MaxActive			3
			SpawnCount			3
			WaitBeforeStarting	5
			WaitBetweenSpawns	10
			RandomSpawn			1
			Where				spawnbot

			Squad
			{
				TFBot
				{
					Tag					path_1
					ClassIcon			vex_demo_bottle
					Health				150
					Name				Alcoholics
					Class				Demoman
					Action				Mobber
					Skill				Normal
					WeaponRestrictions	MeleeOnly
					Item				"halloween mask - demoman"
					Item				"The Criminal Cloak"
					Item				"The Breakneck Baggies"
					Item				"The Rogue's Brogues"
				}
			}
		}

		WaveSpawn
		{
			Name				Boss
			WaitForAllDead		"Scum soldier"
			TotalCurrency		300
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	10
			WaitBetweenSpawns	0
			Where				spawnbot
			FirstSpawnMessage	"{70472f}Gru's Scum. Watch out, that drunkard can take you down with one punch!"

			Squad
			{
				TFBot
				{
					ClassIcon			vex_demo_bottle_giant
					Health				5000
					Name				"Gru's Scum"
					Scale				1.5
					Class				Demoman
					Skill				Expert
					Action				Mobber
					WeaponRestrictions	MeleeOnly
					Tag					bot_giant
					Tag					giant_avoid
					UseCustomModel		models/player/demo.mdl
					Attributes			IgnoreFlag
					Attributes			UseBossHealthBar
					Attributes			MiniBoss
					Tag					path_1
					Item				"The Scottish Handshake"

					ItemAttributes
					{
						ItemName					"The Scottish Handshake"
						"custom name attr"			"Zveronaclonitel"
						"item name text override"	"Penis"
						"elevate quality"			"Valve"
						"attach particle effect"	2
						"damage bonus"				100
					}

					CharacterAttributes
					{
						"override footstep sound set"	5
						"move speed bonus"				0.6
					}
					Item				"The Teufort Tooth Kicker"
					Item				"The Mutton Mann"
					Item				"The Toowoomba Tunic"
					Item				"EOTL_demo_dynamite"
					Item				"dec2014 Comforter"
					Item				"Taunt: Scotsmann's Stagger"
				}
			}
		}

		WaveSpawn
		{
			Name				Bandit
			WaitForAllSpawned	Boss
			TotalCount			24
			MaxActive			12
			SpawnCount			3
			WaitBeforeStarting	1
			WaitBetweenSpawns	6
			Where				spawnbot
			Support				1
			RandomSpawn			1

			Squad
			{
				TFBot
				{
					ClassIcon			scout
					Health				125
					Name				Scum
					Class				Scout
					Skill				Normal
					Tag					path_1
					WeaponRestrictions	MeleeOnly
					Item				"the ham shank"
					Item				"the bruiser's bandanna"
					Item				"the fed-fightin' fedora"
					Item				"The Criminal Cloak"
					Item				EOTL_beard
				}

				TFBot
				{
					ClassIcon			scout
					Health				125
					Name				Scum
					Class				Scout
					Skill				Normal
					Tag					path_1
					WeaponRestrictions	MeleeOnly
					Item				"the ham shank"
					Item				"Poolside Polo"
					Item				"the frontier djustice"
					Item				"Blizzard Britches"
					Item				"The Mustachioed Mann"
					Item				"The Mutton Mann"
					Item				"Baseball Bill's Sports Shine"
				}

				TFBot
				{
					ClassIcon			scout
					Health				125
					Name				Scum
					Class				Scout
					Skill				Normal
					Tag					path_1
					WeaponRestrictions	MeleeOnly
					Item				"the bat outta hell"
					Item				"The Slo-Poke"
					Item				"The Archers Groundings"
					Item				"The Bruiser's Bandanna"
					Item				"The Paisley Pro"
					Item				Binoculus
				}
			}
		}
	}
	// WAVE 2 - Path_1

	Wave
	{
		WaitWhenDone	65
		Checkpoint		Yes
		Sound			banjo2.mp3

		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}

		InitWaveOutput
		{
			Target	bombpath_set_1_path
			Action	Trigger
		}

		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}

		WaveSpawn
		{
			Name				Armed
			TotalCurrency		200
			TotalCount			24
			MaxActive			6
			SpawnCount			6
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Where				spawnbot

			Squad
			{
				TFBot
				{
					ClassIcon	heafy
					Health		250
					Name		Concierge
					Class		HeavyWeapons
					Skill		Normal
					Tag			path_1
					Tag			bot_gatebot

					ItemAttributes
					{
						ItemName						"iron curtain"
						"damage penalty"				1.5
						"fire rate penalty"				1.5
						"mod flamethrower back crit"	1
					}
					Item		"iron curtain"
					Item		"the family business"
					Item		"the bat outta hell"
					Item		"combat slacks"
					Item		"white russian"
				}

				TFBot
				{
					ClassIcon			soldier_beggars
					Health				200
					Name				"Where did he get his RPG from?"
					Class				Soldier
					Skill				Normal
					Tag					path_1
					Tag					bot_gatebot
					WeaponRestrictions	PrimaryOnly

					ItemAttributes
					{
						ItemName						"the beggar's bazooka"
						"damage penalty"				1.5
						"fire rate penalty"				1.5
						"Projectile speed decreased"	0.65
					}
					Item				"the beggar's bazooka"
					Item				graybanns
					Item				"bucket hat"
				}
			}
		}

		WaveSpawn
		{
			Name				Giant_pyro_wave2
			WaitForAllDead		Armed
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	0
			WaitBetweenSpawns	5
			Where				spawnbot

			Squad
			{
				TFBot
				{
					ClassIcon	robo_gibus_nys
					Health		5000
					Name		Gentleman
					Class		Pyro
					Skill		Hard

					CharacterAttributes
					{
						"move speed bonus"				0.5
						"override footstep sound set"	5
					}
					Tag			path_1
					Tag			bot_giant
					Attributes	MiniBoss
					Item		"The Bonedolier"
					Item		"The Soot Suit"
					Item		"dec2014 Armoured Appendages"
					Item		Hypno-Eyes
					Item		"The Galvanized Gibus"
					Item		"Torcher's Trench Coat"
				}

				TFBot
				{
					MaxVisionRange	800
					Template		T_TFBot_Scout_Scattergun_SlowFire
					Tag				nav_prefer_gate1_flank
					Tag				path_1
					Tag				bot_gatebot
					Attributes		IgnoreFlag
					Attributes		HoldFireUntilFullReload

					ItemAttributes
					{
						ItemName							tf_weapon_scattergun
						"clip size upgrade atomic"			26
						"faster reload rate"				0.22
						"projectile spread angle penalty"	5
						"bullets per shot bonus"			2
						"scattergun knockback mult"			6
						"weapon spread bonus"				0.4
					}
				}

				TFBot
				{
					MaxVisionRange	800
					Template		T_TFBot_Scout_Scattergun_SlowFire
					Tag				nav_prefer_gate1_flank
					Tag				path_1
					Tag				bot_gatebot
					Attributes		IgnoreFlag
					Attributes		HoldFireUntilFullReload

					ItemAttributes
					{
						ItemName							tf_weapon_scattergun
						"clip size upgrade atomic"			26.0
						"faster reload rate"				0.22
						"projectile spread angle penalty"	5
						"bullets per shot bonus"			2
						"scattergun knockback mult"			6
						"weapon spread bonus"				0.4
					}
				}

				TFBot
				{
					MaxVisionRange	800
					Template		T_TFBot_Scout_Scattergun_SlowFire
					Tag				nav_prefer_gate1_flank
					Tag				path_1
					Tag				bot_gatebot
					Attributes		IgnoreFlag
					Attributes		HoldFireUntilFullReload

					ItemAttributes
					{
						ItemName							tf_weapon_scattergun
						"clip size upgrade atomic"			26.0
						"faster reload rate"				0.22
						"projectile spread angle penalty"	5
						"bullets per shot bonus"			2
						"scattergun knockback mult"			6
						"weapon spread bonus"				0.4
					}
				}
			}
		}

		WaveSpawn
		{
			Name				First
			TotalCurrency		100
			TotalCount			30
			MaxActive			5
			SpawnCount			5
			WaitBeforeStarting	0
			WaitBetweenSpawns	10
			Where				spawnbot
			RandomSpawn			1

			Squad
			{
				TFBot
				{
					ClassIcon			scout_luger
					Health				125
					Name				Bandit
					Class				Scout
					Tag					path_1
					Skill				Normal
					MaxVisionRange		500
					WeaponRestrictions	SecondaryOnly
					Item				"ttg max pistol"

					ItemAttributes
					{
						ItemName			"ttg max pistol"
						"fire rate penalty"	0.5
					}
					Item				"the teufort tooth kicker"
					Item				"the frontier djustice"
				}

				TFBot
				{
					ClassIcon			scout_luger
					Health				125
					Name				Bandit
					Class				Scout
					Tag					path_1
					Skill				Normal
					MaxVisionRange		500
					WeaponRestrictions	PrimaryOnly
					Item				"the shortstop"
					Item				"the teufort tooth kicker"
					Item				"the bruiser's bandanna"
				}

				TFBot
				{
					ClassIcon			spy_bigkill_sif
					Health				125
					Name				Cowboy
					Class				Scout
					Skill				Normal
					Tag					path_1
					Action				Mobber
					MaxVisionRange		500
					WeaponRestrictions	SecondaryOnly
					Item				"ttg sam revolver"
					Item				"The After Dark"
					Item				"The Frontier Djustice"
					Item				"Bandit's Boots"
				}
			}
		}

		WaveSpawn
		{
			Name				"Shortstop Scout"
			WaitForAllSpawned	Armed
			TotalCurrency		200
			TotalCount			5
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	10
			WaitBetweenSpawns	15
			Where				spawnbot
			Support				1

			Squad
			{
				TFBot
				{
					ClassIcon			scout_shortstop
					WeaponRestrictions	PrimaryOnly
					Tag					path_1
					Template			T_TFBot_Scout_Shortstop
					MaxVisionRange		800

					CharacterAttributes
					{
						"override footstep sound set"	5
						"move speed bonus"				1.5
					}
					Item				"ye olde baker boy"
					Item				"sidekick's side slick"
				}
			}
		}

		WaveSpawn
		{
			Name				"Squad 19"
			TotalCurrency		200
			TotalCount			8
			MaxActive			8
			SpawnCount			8
			WaitForAllSpawned	Giant_pyro_wave2
			WaitBeforeStarting	5
			WaitBetweenSpawns	2
			Where				spawnbot
			Support				1

			Squad
			{
				TFBot
				{
					Name				Pyro
					ClassIcon			pyro
					Health				200
					Class				Pyro
					Skill				Hard
					Scale				1.2
					WeaponRestrictions	SecondaryOnly

					ItemAttributes
					{
						ItemName					Shotgun
						is_operation_pass			1
						"attach particle effect"	1
					}
					Item				"Pyrobot Armor"
					Item				"Honest Halo"
					Item				"Hottie's Hoodie"
					Item				"Pyrobot Helmet"
					Item				"The Soot Suit"
					Item				"The Nabler"
					Item				"The Special Eyes"
				}
			}
		}

		WaveSpawn
		{
			WaitForAllDead		Giant_pyro_wave2
			Name				Boss
			TotalCurrency		400
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	10
			WaitBetweenSpawns	0
			Where				spawnbot
			FirstSpawnMessage	"{4d2f70}Jack Crooked Fingers. Watch out, he may be a weasel, but if he hits you, it'll hurt!"

			Squad
			{
				TFBot
				{
					ClassIcon			shotgun_reserve_lite_giant
					Health				5000
					Name				"Jack Crooked Fingers"
					Scale				1.75
					Tag					path_1
					Class				Soldier
					Skill				Hard
					Action				Mobber
					UseCustomModel		models/player/soldier.mdl
					WeaponRestrictions	SecondaryOnly
					Tag					bot_giant
					Tag					giant_avoid
					Attributes			HoldFireUntilFullReload
					Attributes			UseBossHealthBar
					Attributes			IgnoreFlag
					Attributes			MiniBoss
					Item				"Paratrooper Rifle"

					ItemAttributes
					{
						ItemName			"Paratrooper Rifle"
						"spread penalty"	4
						"damage penalty"	4
					}

					CharacterAttributes
					{
						"override footstep sound set"	5
						"move speed bonus"				0.5
					}
					Item				"Fancy Dress Uniform"
					Item				"The Soldier's Stogie"
					Item				"The Compatriot"
					Item				"The Cuban Bristle Crisis"
					Item				"The Slo-Poke"
					Item				"The Killer's Kit"
					Item				"Lone Survivor"
					Item				"EOTL_Coldfront Curbstompers"
					Item				"Sharp Chest Pain"
				}
			}
		}
	}
	// WAVE 3 - Path_2

	Wave
	{
		WaitWhenDone	65
		Checkpoint		Yes
		Sound			banjo3.mp3

		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}

		InitWaveOutput
		{
			Target	wave_start_relay
			Action	runscriptcode
			Param	"
				EntFire(`bombpath_set_2_path`, `Trigger`)
				IncludeScript(`tankextensions_main`, getroottable())

				TankExt.SetValueOverrides({
					COMBATTANK_ROTATE_SPEED_DEFAULT = 2    // default: 0.8
					COMBATTANK_MAX_RANGE = 2000            // default: 1200
					COMBATTANK_MINIGUN_BULLET_DAMAGE = 45  // default: 22
					COMBATTANK_ROCKETPOD_RELOAD_DELAY = 0  // default: 0.3
				})
				IncludeScript(`tankextensions/blimp`, getroottable())

				TankExt.StartingPathNames([
					// map paths
					`blimp_path`
				])
			"
		}

		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}

		WaveSpawn
		{
			Name				Tank_blimp
			TotalCurrency		400
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	7
			WaitForAllSpawned	"Banda"
			Where				"spawnbot_path_3"
			FirstSpawnMessage	"{0093fc}The Blimp with 5k (5000) HP is taking off, look up!"

			Squad
			{
				Tank
				{
					ClassIcon				blimp2_lite
					Health					5000
					Name					blimp
					Speed					60
					StartingPathTrackNode	blimp_path

					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}

					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}

		WaveSpawn
		{
			Name				rpg
			WaitForAllDead		Banda
			WaitForAllSpawned	Tank_blimp
			TotalCurrency		100
			TotalCount			36
			MaxActive			12
			SpawnCount			6
			WaitBeforeStarting	2
			WaitBetweenSpawns	10
			Where				spawnbot

			Squad
			{
				TFBot
				{
					ClassIcon			scout_pistol_nys
					Health				75
					Name				Scout
					Class				Scout
					Skill				Easy
					Attributes			IgnoreFlag
					Tag					bot_gatebot
					Tag					nav_prefer_flank_left
					Tag					path_2
					Action				Mobber
					MaxVisionRange		700
					WeaponRestrictions	SecondaryOnly
					Item				"ttg max pistol"

					ItemAttributes
					{
						ItemName			"ttg max pistol"
						"fire rate penalty"	0.85
					}
					Item				"the paisley pro"
					Item				"tough stuff muffs"
				}

				TFBot
				{
					ClassIcon			pyro_back_scratcher
					Health				125
					Name				Pyro
					Class				Pyro
					Skill				Normal
					Attributes			IgnoreFlag
					Action				Mobber
					Tag					bot_gatebot
					Tag					nav_prefer_flank_left
					Tag					path_2
					WeaponRestrictions	MeleeOnly
					Item				"the back scratcher"
					Item				"stately steel toe"
					Item				"kf pyro tie"
				}
			}
		}

		WaveSpawn
		{
			Name				Banda
			TotalCurrency		100
			TotalCount			27
			MaxActive			9
			SpawnCount			9
			WaitBeforeStarting	2
			WaitBetweenSpawns	10
			Where				spawnbot

			Squad
			{
				TFBot
				{
					ClassIcon		soldier
					Attributes		SpawnWithFullCharge
					Health			175
					Name			Robber
					Class			Soldier
					Skill			Normal
					Tag				nav_prefer_flank_left
					Tag				path_2
					MaxVisionRange	800
					Attributes		HoldFireUntilFullReload

					ItemAttributes
					{
						ItemName						tf_weapon_rocketlauncher
						"Projectile speed decreased"	0.75
						"Reload time increased"			1.5
						"auto fires when full"			1
					}
					Item			"the hat with no name"
					Item			"the bruiser's bandanna"
				}

				TFBot
				{
					ClassIcon	demo_paintrain
					Health		150
					Name		Robber
					Class		Demoman
					Skill		Normal
					Action		Mobber
					Tag			nav_prefer_flank_left
					Tag			path_2
					Attributes	IgnoreFlag
					Item		"ali baba's wee booties"
					Item		"the chargin' targe"
					Item		"the pain train"
					Item		"carouser's capotain"
					Item		"the teufort tooth kicker"
				}

				TFBot
				{
					ClassIcon			scout_pistol_nys
					Health				125
					Name				Robber
					Class				Scout
					Skill				Normal
					Tag					nav_prefer_flank_left
					MaxVisionRange		800
					Tag					path_2
					WeaponRestrictions	SecondaryOnly
					Item				"ttg max pistol"

					ItemAttributes
					{
						ItemName			"ttg max pistol"
						"fire rate penalty"	0.85
					}
					Item				"the bruiser's bandanna"
					Item				"the fed-fightin' fedora"
				}
			}
		}

		WaveSpawn
		{
			Name				"Family Disputes"
			WaitForAllSpawned	"Family Disputes Giant"
			TotalCurrency		200
			TotalCount			15
			MaxActive			10
			SpawnCount			5
			WaitBeforeStarting	2
			WaitBetweenSpawns	10
			Where				spawnbot

			Squad
			{
				TFBot
				{
					ClassIcon			heavy_family_business_lite
					Health				200
					Name				HeavyWeapons
					Class				HeavyWeapons
					Skill				Easy
					Tag					nav_prefer_flank_left
					Tag					path_2
					MaxVisionRange		700
					WeaponRestrictions	SecondaryOnly

					CharacterAttributes
					{
						"mod medic killed minicrit boost"	3
						"fire rate penalty"					2.5
						"heal rate penalty"					1.5
					}
					Item				"the family business"
					Item				"capone's capper"
					Item				"the siberian sophisticate"
				}

				TFBot
				{
					ClassIcon			medic
					Health				75
					Name				Medic
					Class				Medic
					Skill				Easy
					Tag					nav_prefer_flank_left
					Tag					path_2
					MaxVisionRange		800
					WeaponRestrictions	SecondaryOnly

					ItemAttributes
					{
						ItemName						pyroland_medigun_flowerpower
						"health from healers reduced"	-0.5
					}
					Item				pyroland_medigun_flowerpower
					Item				"ze ubermensch"
					Item				"tipped lid"
				}
			}
		}

		WaveSpawn
		{
			Name				"Family Disputes Giant"
			WaitForAllDead		Tank_Blimp
			WaitForAllSpawned	rpg
			TotalCurrency		200
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	10
			WaitBetweenSpawns	0
			Where				spawnbot

			Squad
			{
				TFBot
				{
					ClassIcon		vex_heavy_deflector_giant
					Template		T_TFBot_Giant_Heavyweapons_Deflector
					MaxVisionRange	1200
					Health			5000
					Skill			Normal
					Tag				giant_avoid
					Tag				nav_prefer_flank_left
					Tag				path_2

					CharacterAttributes
					{
						"move speed bonus"			0.5
						"overheal decay penalty"	2
					}
					Item			"capone's capper"
					Item			"the siberian sophisticate"
				}

				TFBot
				{
					ClassIcon	medic_giant_support
					Health		5000
					Template	T_TFBot_Giant_Medic_Regen

					ItemAttributes
					{
						ItemName						tf_weapon_syringegun_medic
						"damage bonus"					1.75
						"attack projectiles"			1
						"dmg taken from fire increased"	2.5
					}
					Skill		Expert
					Tag			giant_avoid
					Tag			nav_prefer_flank_left
					Tag			path_2

					CharacterAttributes
					{
						"move speed bonus"	0.65
					}
					Item		pyroland_medigun_flowerpower
					Item		"ze ubermensch"
					Item		"tipped lid"
				}
			}
		}
	}
	// WAVE 4 - Path_3

	Wave
	{
		WaitWhenDone	65
		Checkpoint		Yes
		Sound			banjo4.mp3

		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}

		InitWaveOutput
		{
			Target	wave_start_relay
			Action	runscriptcode
			Param	"
				EntFire(`bombpath_set_3_path`, `Trigger`)
				EntFire(`wave_init_nogate_relay`,`Trigger`); EntFire(`intel`,`ForceResetSilent`);
				IncludeScript(`tankextensions_main`, getroottable())

				IncludeScript(`tankextensions/ubertank`, getroottable())

				TankExt.StartingPathNames([
					// map paths
					`boss_path_2`
				])
			"
		}

		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}

		WaveSpawn
		{
			Name				Cowboy
			TotalCurrency		100
			TotalCount			18
			MaxActive			18
			SpawnCount			6
			WaitBeforeStarting	1
			WaitBetweenSpawns	5
			Where				spawnbot_path_3
			RandomSpawn			1

			Squad
			{
				TFBot
				{
					ClassIcon			spy_bigkill_sif
					Health				125
					Name				Cowboy
					Class				Spy
					Skill				Expert
					Action				FetchFlag
					Action				Mobber
					MaxVisionRange		800
					WeaponRestrictions	PrimaryOnly

					CharacterAttributes
					{
						"cannot disguise"	1
					}
					Item				"ttg sam revolver"
					Item				"nightmare hunter"
					Item				"the au courant assassin"
				}

				TFBot
				{
					ClassIcon			spy_bigkill_sif
					Health				125
					Name				Cowboy
					Class				Spy
					Action				FetchFlag
					Skill				Normal
					Action				Mobber
					MaxVisionRange		800
					WeaponRestrictions	PrimaryOnly

					CharacterAttributes
					{
						"cannot disguise"	1
					}
					Item				l'etranger
					Item				"cosa nostra cap"
					Item				"the after dark"
				}

				TFBot
				{
					ClassIcon			spy_bigkill_sif
					Health				125
					Name				Cowboy
					Class				Spy
					Action				FetchFlag
					Skill				Easy
					Action				Mobber
					MaxVisionRange		800
					WeaponRestrictions	PrimaryOnly

					CharacterAttributes
					{
						"cannot disguise"	1
					}
					Item				"the enforcer"
					Item				"the bloodhound"
					Item				"the au courant assassin"
				}
			}
		}

		WaveSpawn
		{
			Name				Gentleman
			WaitForAllSpawned	Cowboy
			TotalCount			3
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	15
			WaitBetweenSpawns	12
			Where				spawnbot_path_3

			Squad
			{
				TFBot
				{
					ClassIcon	pyro_hot_giant
					Template	T_TFBot_Giant_Pyro
					Health		5000
					Scale		1.5
					Skill		Expert
					Tag			bot_giant
					Tag			giant_avoid
					Attributes	HoldFireUntilFullReload
					Attributes	AlwaysCrit
					Attributes	SpawnWithFullCharge
					Item		"The Moonman Backpack"
					Item		"The Filamental"
					Item		"The Sengoku Scorcher"
					Item		"Propaniac"
					Item		"Firebrand"
					Item		"The Flame Warrior"

					ItemAttributes
					{
						ItemName							tf_weapon_flamethrower
						"damage causes airblast"			1
						"damage bonus"						0.45
						"fire rate bonus"					0.001
						"clip size upgrade atomic"			-2
						"faster reload rate"				1.5
						"Blast radius decreased"			1.2
						"projectile spread angle penalty"	2
						"clip size penalty"					0.5
						"move speed bonus"					0.5
						"Projectile speed increased"		0.65
						"attach particle effect"			32
					}

					ItemAttributes
					{
						ItemName					tf_weapon_shotgun_pyro
						"override projectile type"	13
						"faster reload rate"		-1.5
						"fire rate bonus"			0.3
					}

					ItemAttributes
					{
						ItemName								tf_weapon_fireaxe
						"effect bar recharge rate increased"	0.05
					}
				}
			}
		}

		WaveSpawn
		{
			WaitForAllDead		Cowboy
			TotalCurrency		100
			TotalCount			36
			MaxActive			9
			SpawnCount			3
			WaitBeforeStarting	5
			WaitBetweenSpawns	7
			Where				spawnbot_path_3
			RandomSpawn			1

			Squad
			{
				TFBot
				{
					ClassIcon			pyro_poly
					Health				175
					Name				"Some Guy"
					Class				Pyro
					Skill				Normal
					WeaponRestrictions	MeleeOnly
					Attributes			IgnoreFlag
					Action				Mobber
					Tag					bot_gatebot
					Item				"the back scratcher"
					Item				"mildly disturbing halloween mask"
					Item				"the death support pack"
				}

				TFBot
				{
					ClassIcon			pyro_poly
					Health				175
					Name				"Some Guy"
					Class				Pyro
					Action				Mobber
					Skill				Normal
					WeaponRestrictions	PrimaryOnly
					Attributes			IgnoreFlag
					Item				"tough stuff muffs"
					Item				"the special eyes"
				}

				TFBot
				{
					ClassIcon			pyro_poly
					Health				175
					Name				"Some Guy"
					Class				Pyro
					Skill				Normal
					MaxVisionRange		1200
					Action				Mobber
					Attributes			IgnoreFlag
					WeaponRestrictions	SecondaryOnly
					Item				"Festive Flare Gun"
					Item				"old guadalajara"
					Item				"el muchacho"
				}
			}
		}

		WaveSpawn
		{
			Name				support_engi
			WaitForAllDead		Gentleman
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	15
			WaitBetweenSpawns	10
			Where				spawnbot_path_3

			Squad
			{
				TFBot
				{
					ClassIcon	engineer_combover
					Health		3000
					Name		"From the bar"
					Scale		1.35
					Class		Engineer
					Action		Mobber
					Skill		Expert
					Tag			bot_giant
					Tag			nav_prefer_flank_left
					Tag			path_2
					Tag			bot_gatebot
					Tag			giant_avoid
					Attributes	IgnoreFlag

					CharacterAttributes
					{
						"cannot be backstabbed"	1
						"move speed bonus"		0.65
					}
					Item		"the frontier justice"
					Item		"ttg max pistol"
					Item		"necro smasher"
					Item		"the grizzled growth"
					Item		"the last straw"
				}

				TFBot
				{
					ClassIcon			engineer_combover
					Health				3000
					Scale				1.35
					Name				"From the bar"
					Class				Engineer
					Action				Mobber
					Skill				Expert
					BehaviorModifiers	Mobber
					Tag					giant_avoid
					Tag					bot_giant
					Tag					nav_prefer_flank_left
					Tag					path_2
					Attributes			IgnoreFlag

					CharacterAttributes
					{
						"cannot be backstabbed"	1
						"move speed bonus"		0.75
					}
					Item				"the widowmaker"
					Item				"ttg max pistol - poker night"
					Item				"the southern hospitality"
					Item				"the hat with no name"
					Item				"the teufort tooth kicker"
				}

				TFBot
				{
					ClassIcon	engineer_combover
					Health		3000
					Scale		1.35
					Name		"From the bar"
					Class		Engineer
					Action		Mobber
					Skill		Expert

					CharacterAttributes
					{
						"move speed bonus"		0.8
						"cannot be backstabbed"	1
					}
					Tag			bot_giant
					Tag			giant_avoid
					Tag			bot_gatebot
					Tag			nav_prefer_flank_left
					Tag			path_2
					Attributes	IgnoreFlag
					Item		"ttg max pistol"
					Item		"the plug-in prospector"
					Item		"el patron"
				}
			}
		}

		WaveSpawn
		{
			Name				"Scout Support"
			TotalCurrency		0
			TotalCount			1
			MaxActive			4
			SpawnCount			4
			WaitForAllDead		Gentleman
			WaitBeforeStarting	5
			WaitBetweenSpawns	10
			Where				spawnbot_path_3
			Support				1
			RandomSpawn			1

			Squad
			{
				TFBot
				{
					Name				"Scout Back Scatter"
					ClassIcon			scout_backscatt_h
					Health				100
					Class				Scout
					Skill				Normal
					Scale				1
					WeaponRestrictions	PrimaryOnly
					Item				"The Back Scatter"
					Item				Pistol
					Item				Bat
					Item				"The Well-Rounded Rifleman"
					Item				"The Blizzard Breather"
					Item				"The Imp's Imprint"
				}
			}
		}

		WaveSpawn
		{
			Name				"Demo Support"
			WaitForAllSpawned	support_engi
			TotalCount			30
			MaxActive			6
			SpawnCount			3
			WaitBeforeStarting	5
			WaitBetweenSpawns	20
			Where				spawnbot_path_3
			Support				1

			Squad
			{
				TFBot
				{
					ClassIcon	demo_burst
					Template	T_TFGateBot_Demo_Burst_Normal

					CharacterAttributes
					{
						"Reload time increased"			1.25
						"Blast radius decreased"		1.5
						"Projectile range decreased"	1.5
						"Projectile speed increased"	1.75
						"stickies detonate stickies"	1
					}
					Attributes	HoldFireUntilFullReload
					Item		EOTL_demo_dynamite
					Item		"dec2014 Viking Boots"
					Item		"Alcoholic Automaton"
					Item		"The Plaid Lad"
					Item		"Lazy Lounger"
				}
			}
		}

		WaveSpawn
		{
			WaitForAllDead	Sheriff
			Support			Limited

			FirstSpawnOutPut
			{
				Target	wave_start_relay
				Action	RunScriptCode
				Param	"
                EntFire(`ubertank*`,`CallScriptFunction`,`ToggleUber`)
                "
			}
		}

		WaveSpawn	// WAVE 08d: [FINAL TANK]
		{
			Name				OObertank
			WaitForAllDead		support_engi
			Where				spawnbot	// required for squadded tanks to spawn
			TotalCount			1
			WaitBeforeStarting	5

			Tank
			{
				Health					10000
				Speed					65
				Name					ubertank|0|-1
				Skin					1
				StartingPathTrackNode	boss_path_2
				ClassIcon				tank_uber_lite  

				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}

			FirstSpawnOutPut
			{
				Target	wave_start_relay
				Action	RunScriptCode
				Param	"
                SendGlobalGameEvent(`show_annotation`, { //add a pointer.
                    text = `Destroy the giants first!`
                    lifetime = 10
                    worldPosX = 1760
                    worldPosY = 0
                    worldPosZ = -96
                    id = 111
                    play_sound = `misc/null.wav`
                })
                "
			}
		}

		WaveSpawn
		{
			Name				Tank_Support_Soldier
			WaitForAllSpawned	OObertank
			TotalCount			10
			MaxActive			6
			SpawnCount			3
			WaitBeforeStarting	3
			WaitBetweenSpawns	10
			Where				spawnbot_path_3
			Support				1

			Squad
			{
				TFBot
				{
					ClassIcon			shotgun_panic
					Health				200
					Name				Robber
					Class				Soldier
					Skill				Normal
					Action				Mobber
					Tag					nav_prefer_flank_left
					Tag					path_2
					MaxVisionRange		500
					WeaponRestrictions	SecondaryOnly
					Item				"Panic Attack Shotgun"

					ItemAttributes
					{
						ItemName		"Panic Attack Shotgun"
						panic_attack	1
					}
					Item				"the hat with no name"
					Item				"the bruiser's bandanna"
				}
			}
		}

		WaveSpawn
		{
			Name				Sheriff
			WaitForAllSpawned	OObertank
			TotalCurrency		500
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	15
			WaitBetweenSpawns	0
			Where				spawnbot_path_3
			FirstSpawnMessage	"{e3d53d}Sheriff's Deputy Duke is on the horizon. Watch out, he's too hot :D"

			Squad
			{
				TFBot
				{
					ClassIcon			engineer_firering
					Health				15000
					Name				"Sheriff's Deputy Duke"
					Scale				1.65
					Class				Engineer
					RingOfFire			25	// Enable Ring of Fire from Huo Long Heater. Value is damage done by the ring

					WeaponSwitch
					{
						Type			Secondary
						MaxTargetRange	9999
						MinTargetRange	0
						Delay			0.1
						Repeats			0
						Cooldown		0.2
						IfSeeTarget		1
					}

					WeaponSwitch
					{
						Type			Primary
						MaxTargetRange	300
						MinTargetRange	0
						Delay			0.1
						Repeats			0
						Cooldown		0.2
						IfSeeTarget		1
					}
					Action				Mobber
					Skill				Expert
					WeaponRestrictions	PrimaryOnly
					Tag					bot_giant
					Tag					giant_avoid
					UseCustomModel		models/player/engineer.mdl
					Attributes			HoldFireUntilFullReload
					Attributes			UseBossHealthBar
					Attributes			MiniBoss
					Attributes			IgnoreFlag

					CharacterAttributes
					{
						"move speed bonus"					0.75
						"override footstep sound set"		5
						"become fireproof on hit by fire"	1
					}
					Item				"The Degreaser"

					ItemAttributes
					{
						ItemName					"The Degreaser"
						"slow enemy on hit major"	2
						"flame life bonus"			1.5
						"fists have radial buff"	1
						"killstreak idleeffect"		2
						"attach particle effect"	701
						// Team Serviced warpaint
						paintkit_proto_def_index	417
						set_item_texture_wear		0
						"fire rate bonus"			15
						"auto fires when full"		1
						"damage bonus"				1.5
					}
					Item				"Prairie Heel Biters"
					Item				"The Teufort Tooth Kicker"
					Item				"The Texas Half-Pants"
					Item				"The Tuxxy"
					Item				"The Gold Digger"
					Item				"The Western Wraps"
					Item				"More Gun Marshal"
				}
			}
		}
	}
	// WAVE 5 - Path_2

	Wave
	{
		WaitWhenDone	65
		Checkpoint		Yes
		Sound			banjo5_love.mp3

		StartWaveOutput
		{
			Target	wave_start_relay
			Action	Trigger
		}

		InitWaveOutput
		{
			Target	wave_start_relay
			Action	runscriptcode
			Param	"
				EntFire(`bombpath_set_4_path`, `Trigger`)
				IncludeScript(`tankextensions_main`, getroottable())

				TankExt.SetValueOverrides({
					COMBATTANK_ROTATE_SPEED_DEFAULT = 	1.25   // default: 0.8
					COMBATTANK_MAX_RANGE = 				1000            // default: 1200
					COMBATTANK_MINIGUN_BULLET_DAMAGE = 	20  // default: 22
					COMBATTANK_ROCKETPOD_RELOAD_DELAY = 5  // default: 0.3
				})
				IncludeScript(`tankextensions/stickytank`, getroottable())

				TankExt.StartingPathNames([
					// map paths
					`boss_path_4`
				])
			"
		}

		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}

		WaveSpawn
		{
			TotalCurrency		100
			TotalCount			40
			MaxActive			15
			SpawnCount			5
			WaitBeforeStarting	0
			WaitBetweenSpawns	6
			Where				spawnbot_path_3

			Squad
			{
				TFBot
				{
					ClassIcon			scout_milk_2
					Health				125
					Name				"The Farmer"
					Class				Scout
					Skill				Normal
					Tag					nav_prefer_flank_left
					MaxVisionRange		800
					Tag					path_2
					WeaponRestrictions	SecondaryOnly
					Tag					bot_gatebot
					Item				"mad milk"
					Item				"ye olde baker boy"
					Item				"the breakneck baggies"
				}

				TFBot
				{
					ClassIcon			heavy_shotgun_burst
					Template			T_TFBot_Heavyweapons_Shotgun
					Health				300
					Name				Worker
					Class				HeavyWeapons
					Skill				Normal
					Tag					nav_prefer_flank_left
					Tag					path_2
					WeaponRestrictions	SecondaryOnly

					ItemAttributes
					{
						ItemName						tf_weapon_shotgun_hwg
						"reload time increased hidden"	2
					}

					CharacterAttributes
					{
						"killstreak effect"	1
					}
					Item				"the soviet gentleman"
					Item				"the apparatchik's apparel"
				}
			}
		}

		WaveSpawn
		{
			Name				"Giant Scout"
			TotalCurrency		200
			TotalCount			3
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	30
			WaitBetweenSpawns	40
			Where				spawnbot_path_3

			Squad
			{
				TFBot
				{
					ClassIcon	soldier_bedouin_lite
					Health		750
					Scale		1.5
					Template	T_TFBot_Giant_Scout
					Skill		Easy

					CharacterAttributes
					{
						"override footstep sound set"	5
						"move speed bonus"				0.85
					}
					Tag			bot_giant
					Tag			path_2
					Tag			giant_avoid
					Tag			nav_prefer_flank_left

					ItemAttributes
					{
						ItemName					tf_weapon_scattergun
						"attack projectiles"		1
						"damage penalty"			0.1
						"damage causes airblast"	10
						"heal on kill"				1000
					}
					Item		"Blood Botkiller Scattergun Mk.I"
					Item		"The Teufort Tooth Kicker"
					Item		"Orion's Belt"
					Item		"Bedouin Bandana"
					Item		"Fuel Injector"
					Item		"Dead of Night"

					ItemAttributes
					{
						ItemName				tf_weapon_pistol_scout
						"ubercharge rate bonus"	0.01
					}
				}
			}
		}

		WaveSpawn
		{
			TotalCurrency		150
			TotalCount			8
			MaxActive			4
			SpawnCount			2
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Where				spawnbot_path_3

			Squad
			{
				TFBot
				{
					ClassIcon			fatman
					Health				500
					Name				"Fatty Bill"
					Scale				1.15
					Class				HeavyWeapons
					Skill				Expert
					WeaponRestrictions	SecondaryOnly
					MaxVisionRange		800
					Stripitemslot		0

					CharacterAttributes
					{
						"move speed bonus"				0.75
						"override footstep sound set"	2
						"health regen"					15
					}
					Action				Mobber
					Tag					giant_avoid
					Tag					bot_giant
					Tag					path_2
					Attributes			IgnoreFlag
					Item				"the dalokohs bar"

					ItemAttributes
					{
						ItemName						"the dalokohs bar"
						"max health additive bonus"		1500
						"mod no reload DISPLAY ONLY"	1
						"faster reload rate"			10
					}
					Item				"Ham Shank"

					ItemAttributes
					{
						ItemName					"Ham Shank"
						"fists have radial buff"	1
						"slow enemy on hit"			3
					}
					Item				"heavy's hockey hair"
					Item				"the hunger force"
				}
			}
		}

		WaveSpawn
		{
			Name				Giant_HeavySoldier
			TotalCurrency		200
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	10
			Where				spawnbot_path_3

			Squad
			{
				TFBot
				{
					ClassIcon		demo_nuker_giant
					Name			"Sir Nukesalot"
					Action			Mobber
					UseCustomModel	models/player/demo.mdl
					Tag				bot_giant
					Tag				nav_prefer_flank_left
					Tag				path_2
					Tag				bot_gatebot
					Tag				giant_avoid
					Attributes		IgnoreFlag
					Attributes		HoldFireUntilFullReload
					Template		T_TFBot_Chief_Demo_Atomic
					Scale			2.15
					Health			20000

					ItemAttributes
					{
						ItemName							"the loose cannon"
						"attach particle effect"			704
						paintkit_proto_def_index			403
						set_item_texture_wear				0
						"damage bonus"						5
						"fire rate bonus"					0.25
						"reload time increased hidden"		1
						"Blast radius decreased"			1.2
						"projectile spread angle penalty"	2
					}

					CharacterAttributes
					{
						"override footstep sound set"	5
						"move speed bonus"				0.6
					}
					Item			"The Dark Age Defender"
					Item			"The Hurt Locher"
					Item			"The Sole Saviors"
					Item			"The Sangu Sleeves"
					Item			"frontier djustice"
					Item			"The Outta Sight"
					Item			"The Demo's Dustcatcher"
					Item			"Unforgiven Glory"
				}
			}
		}

		WaveSpawn
		{
			Name				pyro_scout
			WaitForAllDead		Giant_HeavySoldier
			TotalCurrency		100
			TotalCount			34
			MaxActive			12
			SpawnCount			6
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Support				1
			RandomSpawn			1
			Where				spawnbot_path_3

			Squad
			{
				TFBot
				{
					ClassIcon			scout_pistol_nys
					Health				125
					Name				Scout
					Class				Scout
					Skill				Normal
					Tag					nav_prefer_flank_left
					Tag					path_2
					Tag					bot_gatebot
					MaxVisionRange		500
					WeaponRestrictions	SecondaryOnly
					Item				"ttg max pistol"
					Item				"the paisley pro"
					Item				"tough stuff muffs"
				}

				TFBot
				{
					ClassIcon			pyro_back_scratcher
					Health				175
					Name				Pyro
					Class				Pyro
					Skill				Normal
					MaxVisionRange		800
					Tag					nav_prefer_flank_left
					Tag					bot_gatebot
					Tag					path_2
					WeaponRestrictions	MeleeOnly
					Item				"the back scratcher"
					Item				"stately steel toe"
					Item				"kf pyro tie"
				}
			}
		}

		WaveSpawn
		{
			Name				Tank
			WaitForAllDead		"Solder squad"
			TotalCurrency		350
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	5
			WaitBetweenSpawns	5
			Where				spawnbot_path_3
			FirstSpawnMessage	"{CC974E}Sticky Tank started with 20k (20000) HP down the right side!"

			Squad
			{
				Tank
				{
					Health					20000
					ClassIcon				tank_sticky_hellmet
					Name					stickytank
					Speed					50
					Skin					1
					StartingPathTrackNode	boss_path_4

					OnKilledOutput
					{
						Target	boss_dead_relay
						Action	Trigger
					}

					OnBombDroppedOutput
					{
						Target	boss_deploy_relay
						Action	Trigger
					}
				}
			}
		}
		WaveSpawn
		{
			Name				"Solder squad"
			WaitForAllDead		"Pre Solder squad"
			TotalCount			4
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	7
			Where				spawnbot_path_3

			Squad
			{
				TFBot
				{
					ClassIcon	soldier_conch_burstfire_yoovy_giant
					Class		Soldier
					Health		10000
					Skill		Hard
					Tag			bot_giant
					Tag			giant_avoid
					Tag			bot_gatebot
					Attributes	MiniBoss
					Attributes	HoldFireUntilFullReload
					Scale		2

					Template 	Giant_Soldier_Spammer

					CharacterAttributes
					{
						"move speed bonus"				0.5
						"override footstep sound set"	2
					}

					Item		"Soldier's Stash"
					Item		"Lucky Shot"
					Item		"The Soldier's Stogie"
					Item		"The Killer's Kit"
					Item		EOTL_beard
					Item		"Veterans Attire"
				}

				TFBot
				{
					Template		T_TFBot_Soldier_Buff_Banner
					Health			500
					Scale			1.25
					MaxVisionRange	700
					Tag				bot_gatebot
					Attributes		HoldFireUntilFullReload
					Attributes		IgnoreFlag
					Item			"Lucky Shot"
					Item			"The Soldier's Stogie"

					ItemAttributes
					{
						ItemName							tf_weapon_rocketlauncher
						"damage causes airblast"			1
						"fire rate penalty"					0.15
						"clip size penalty"					2
						"projectile spread angle penalty"	2
						"Projectile speed decreased"		0.55
					}

					ItemAttributes
					{
						ItemName					"the buff banner"
						"increase buff duration"	10000
					}
				}

				TFBot
				{
					Template		T_TFBot_Soldier_Buff_Banner
					Health			500
					Scale			1.25
					MaxVisionRange	700
					Tag				bot_gatebot
					Attributes		IgnoreFlag
					Attributes		HoldFireUntilFullReload
					Item			"Lucky Shot"
					Item			"The Soldier's Stogie"

					ItemAttributes
					{
						ItemName							tf_weapon_rocketlauncher
						"damage causes airblast"			1
						"fire rate penalty"					0.15
						"clip size upgrade atomic"			-2
						"projectile spread angle penalty"	2
						"Projectile speed decreased"		0.55
					}

					ItemAttributes
					{
						ItemName					"the buff banner"
						"increase buff duration"	1000
					}
				}

				TFBot
				{
					Template		T_TFBot_Soldier_Buff_Banner
					Health			500
					Scale			1.25
					Tag				bot_gatebot
					Attributes		IgnoreFlag
					Attributes		HoldFireUntilFullReload
					MaxVisionRange	800
					Item			"Lucky Shot"
					Item			"The Soldier's Stogie"

					ItemAttributes
					{
						ItemName							tf_weapon_rocketlauncher
						"damage causes airblast"			1
						"fire rate penalty"					0.15
						"clip size penalty"					0.25
						"projectile spread angle penalty"	2
						"Projectile speed decreased"		0.6
					}

					ItemAttributes
					{
						ItemName					"the buff banner"
						"increase buff duration"	1000
					}
				}
			}
		}

		WaveSpawn
		{
			Name				"Pre Solder squad"
			WaitForAllDead		Giant_HeavySoldier
			TotalCount			8
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	10
			WaitBetweenSpawns	20
			Where				spawnbot_path_3

			Squad
			{
				TFBot
				{
					ClassIcon	soldier_conch_burstfire_yoovy_giant
					Class		Soldier
					Health		7000
					Skill		Hard
					Tag			bot_giant
					Tag			giant_avoid
					Tag			bot_gatebot
					Attributes	MiniBoss
					Attributes	HoldFireUntilFullReload
					Scale		2

					ItemAttributes
					{
						ItemName							tf_weapon_rocketlauncher
						"damage causes airblast"			1
						"Projectile speed decreased"		0.5
						"projectile spread angle penalty"	2
						"dmg falloff decreased"				1.5
						"mark for death"					1
					}

					CharacterAttributes
					{
						"move speed bonus"				0.5
						"override footstep sound set"	2
					}
					Item		"Soldier's Stash"
					Item		"Lucky Shot"
					Item		"The Soldier's Stogie"
					Item		"The Killer's Kit"
					Item		EOTL_beard
					Item		"Veterans Attire"
				}

				TFBot
				{
					Template		T_TFBot_Soldier_Buff_Banner
					Health			300
					Scale			1
					MaxVisionRange	700
					Tag				bot_gatebot
					Attributes		HoldFireUntilFullReload
					Attributes		IgnoreFlag
					Item			"Lucky Shot"
					Item			"The Soldier's Stogie"

					ItemAttributes
					{
						ItemName							tf_weapon_rocketlauncher
						"damage causes airblast"			1
						"fire rate penalty"					0.15
						"clip size penalty"					2
						"projectile spread angle penalty"	2
						"Projectile speed decreased"		0.55
					}

					ItemAttributes
					{
						ItemName					"the buff banner"
						"increase buff duration"	10000
					}
				}

				TFBot
				{
					Template		T_TFBot_Soldier_Buff_Banner
					Health			300
					Scale			1
					MaxVisionRange	700
					Tag				bot_gatebot
					Attributes		IgnoreFlag
					Attributes		HoldFireUntilFullReload
					Item			"Lucky Shot"
					Item			"The Soldier's Stogie"

					ItemAttributes
					{
						ItemName							tf_weapon_rocketlauncher
						"damage causes airblast"			1
						"fire rate penalty"					0.15
						"clip size upgrade atomic"			-2
						"projectile spread angle penalty"	2
						"Projectile speed decreased"		0.55
					}

					ItemAttributes
					{
						ItemName					"the buff banner"
						"increase buff duration"	1000
					}
				}

				TFBot
				{
					Template		T_TFBot_Soldier_Buff_Banner
					Health			500
					Scale			1
					Tag				bot_gatebot
					Attributes		IgnoreFlag
					Attributes		HoldFireUntilFullReload
					MaxVisionRange	800
					Item			"Lucky Shot"
					Item			"The Soldier's Stogie"

					ItemAttributes
					{
						ItemName							tf_weapon_rocketlauncher
						"damage causes airblast"			1
						"fire rate penalty"					0.15
						"clip size penalty"					0.25
						"projectile spread angle penalty"	2
						"Projectile speed decreased"		0.6
					}

					ItemAttributes
					{
						ItemName					"the buff banner"
						"increase buff duration"	1000
					}
				}
			}
		}

		WaveSpawn
		{
			Name				Support_spy
			WaitForAllDead		"Solder squad"
			TotalCount			48
			MaxActive			6
			SpawnCount			2
			Support				1
			WaitBeforeStarting	2
			WaitBetweenSpawns	15
			Where				spawnbot_stealth_path_3

			Squad
			{
				TFBot
				{
					ClassIcon			spy_ambassador
					Health				150
					Name				Gentleman
					Class				Spy
					Action				Mobber
					Skill				Normal
					MaxVisionRange		500
					Tag					nav_prefer_flank_left
					Tag					path_2
					WeaponRestrictions	PrimaryOnly

					CharacterAttributes
					{
						"cannot disguise"	1
					}
					Attributes			IgnoreFlag
					Item				"the ambassador"
					Item				"the blood banker"
					Item				"the belgian detective"
				}

				TFBot
				{
					ClassIcon			pyro_cmoon
					Health				175
					Name				Girlfriend
					Class				Pyro
					Skill				Expert
					Tag					nav_prefer_flank_left
					Tag					path_2
					WeaponRestrictions	MeleeOnly
					Item				"the freedom staff"
					Item				"the brutal bouffant"
					Item				"the burning bandana"
				}
			}
		}

		WaveSpawn
		{
			Name				"The Villager"
			WaitForAllDead		Tank
			TotalCurrency		600
			TotalCount			1
			MaxActive			1
			SpawnCount			1
			WaitBeforeStarting	10
			WaitBetweenSpawns	10
			Where				spawnbot_path_3
			FirstSpawnMessage	"{bf965c}The Villager is on the horizon. Watch out, he gets krites for killing his allies!"

			Squad
			{
				TFBot
				{
					ClassIcon			engineer_frontier_justice_nys_giant
					Health				30000
					Name				"The Villager"
					Scale				2.35
					Class				Engineer
					Action				Mobber
					Skill				Expert
					Tag					bot_giant
					Tag					nav_prefer_flank_left
					Tag					path_2
					Tag					giant_avoid
					Attributes			DisableDodge
					Attributes			UseBossHealthBar
					Attributes			IgnoreFlag
					Attributes			MiniBoss
					Attributes			HoldFireUntilFullReload
					UseCustomModel		"models/player/engineer.mdl"

					SpawnTemplate
					{
						Name	FrontierGainOnTeammateDeath
					}
					WeaponRestrictions	PrimaryOnly
					Item				"the frontier justice"

					ItemAttributes
					{
						ItemName							"the frontier justice"
						"attach particle effect"			704
						"turn to gold"						1
						"fists have radial buff"			1
						"faster reload rate"				1.5
						"clip size bonus"					1.25
						"heal on kill"						1000
						"accuracy scales damage"			0.25
						"airblast vulnerability multiplier"	0.5
						"clip size bonus upgrade"			2
						"reveal disguised victim on hit"	1
						"damage all connected"				1
						"projectile penetration heavy"		2
						"headshot damage increase"			0.25
						"fire rate bonus"					0.2
						"crit vs disguised players"			4
						"dmg taken from crit reduced"		0.25
					}

					CharacterAttributes
					{
						"move speed bonus"				0.75
						"override footstep sound set"	5
						"cannot be backstabbed"			1
					}
					Item				"the gold digger"
					Item				"the hat with no name"
					Item				"The Teufort Tooth Kicker"
					Item				"Ein"
					Item				"The Level Three Chin"
					Item				"Hillbilly Speed-Bump"
					Item				"El Caballero"
					Item				"Prinny Pouch"
				}
			}
		}

		WaveSpawn
		{
			Name				"Support vilager"
			WaitForAllSpawned	"The Villager"
			TotalCount			28
			MaxActive			2
			SpawnCount			1
			WaitBeforeStarting	5
			WaitBetweenSpawns	15
			Where				spawnbot_path_3
			Support				1
			RandomSpawn			1

			Squad
			{
				TFBot
				{
					ClassIcon			scout_luger
					Health				125
					Name				Bandit
					Class				Scout
					Skill				Normal
					MaxVisionRange		500
					Tag					path_2
					WeaponRestrictions	SecondaryOnly
					Item				"ttg max pistol"
					Item				"the teufort tooth kicker"
					Item				"the frontier djustice"
				}

				TFBot
				{
					ClassIcon		scout
					Template		T_TFBot_Scout_Scattergun_SlowFire
					Scale			1
					MaxVisionRange	500
					Tag				path_2
					Tag				nav_prefer_gate1_flank
					Tag				bot_gatebot
					Attributes		HoldFireUntilFullReload
					Attributes		SpawnWithFullCharge

					CharacterAttributes
					{
						"move speed bonus"	0.75
					}

					ItemAttributes
					{
						ItemName							tf_weapon_scattergun
						"damage bonus"						1.5
						"clip size upgrade atomic"			26.0
						"faster reload rate"				0.22
						"fire rate bonus"					0.2
						"projectile spread angle penalty"	5
					}

					ItemAttributes
					{
						ItemName					tf_weapon_pistol_scout
						"fire rate bonus"			2.5
						"bullets per shot bonus"	10
						"damage penalty"			0.75
						"faster reload rate"		0.1
					}

					ItemAttributes
					{
						ItemName								tf_weapon_bat
						"effect bar recharge rate increased"	0.5
					}
				}
			}
		}
	}
}