#base robot_standard.pop
#base robot_giant.pop

//
// Starting Currency: 999
//
// +----------+----------+----------+
// | Wave     | Currency | A+       |
// +----------+----------+----------+
// | Wave 1   | 2000     | 2100     |
// | Wave 2   | 2550     | 2650     |
// | Wave 3   | 1750     | 1850     |
// | Wave 4   | 600      | 700      |
// | Wave 5   | 1450     | 1550     |
// | Wave 6   | 0        | 100      |
// +----------+----------+----------+
// | Total    | 8350     | 8950     |
// +----------+----------+----------+
//

//diary v2

//day 1 [1] (27.12.2022)
//starting very early because of finals literally 1 month after memes 5 goes live, didn't do very much though and will resume this when i get back home

//day 3 [2]
//finished making scout weapons

//day 4 [3]
//all scout weapons are in the mission file apart from the ones that require more attention, 1/9 done

//day 10 [4]
//(counting this since the starting day) came up with a godlike idea, already made noises for it, will start making the other weapons

//day 12 [5]
//all soldier weapons fully implemented, 2/9 done

//day 16 [6] (12.01.23)
//all pyro weapons fully implemented, 3/9 done, also the entire mission, apart from the final final boss phases are all planned out, will probably start to write it soonish

//day 18 [7]
//fully implemented all demo weapons, tested all of them and almost made wave 1, if only i had such motivation to study LOL

//day 19 [8]
//wave 1 is done, started work on wave 2

//day 20 [9] 
//got some more work done on w2, will probably hold it off for a while due to exams

//day 24 [10]
//finally found some time to take care of it, will probably finish w2 tmrw or something

//day 25 [11]
//wave 2 is finally done, didn't expect this one to take me so long, only thing left to do is the teleport but i'll start to work on w3 since i don't really know how to make it work

//day 26 [12] (21.01.23)
//started making robots for w3 

//day 34 [13] (29.01.23)
//im kinda putting it off (being lazy), i should really start working on this while i have the time, i finished w2, also managed to make a big chunk of w3

//day 35 [14]
//busy day, did a whole lot of w3, i also realized how time consuming this wave will be 

//day 38 [15]
//made further progress on w3, closer to finishing development of w3

//day 39 [16]
//like yesterday, further progress is made, but the most problematic parts have been done, which means that the end is near

//day 40 [17]
//work on w3 was done

//day 41 [18] (05.02.23)
//wave 3 is now fully functional, hooray!!!

//day 42 [19] (07.02.2023)
//made a plan for how w4 will play out

//day 43 [20] 
//created the first area for the ultrakill wave, thinking about music 

//day 44 [21]
//i have understandably done nothing, as tomorrow i have an exam (and exams automatically take priority over mvm), but i picked music for the wave
//Castle Vein (main wave), Halls of Sacrilegous Remains (miniboss), Versus -> Duel (boss if the it will have 2 phases)

//day 48 [22] (13.02.2023)
//finally found some time to work, didn't do much sadly 

//day 49 [23]
//made almost all robots for w4, boss excluded, also made a plan for the w4 boss and w6 boss

//day 50 [24]
//tested all the robots in w4, apart from the boss

//day 51 [25]
//started to chomp away at the spawnbots

//day 52 [26]
//finished the first portion (the lengthiest) and fixed some robots

//day 53 [27]
//made a breakthrough today, made a dynamic music change system, also made area 2, i'll give it like 2 days maybe to complete w2 at this pace

//day 54 [28]
//didn't do much, as tomorrow i have an exam, but i managed to squeeze in a couple of items: remade weapon rebalances, made area 3.1

//day 55 [29]
//same as above, did some shit on w4

//day 56 [30]
//made further progress, got cut off by my mom coming over but i feel like tomorrow is the day that i complete this wave, at least to the point of bugfixing

//day 58 [31] (23.02.2023)
//completed the regular stage and miniboss, only the boss left, i can see the end

//day 59 [32]
//wave 4 is more or less complete, only thing that remains is to give cosmetics to the bots and to handle the w5 prelude cutscene

//day 60 [33]
//WAVE 4 IS COMPLETE FUCK YES I CAN FEEL THE MOTIVATION RETURNING!!!

//day 61 [34]
//exams tomorrow, so i didn't do much apart from thinking what w5 could be

//day 63 [35]
//made the first part of w5, the gauntlet that you can totally just skip, only need to troubleshoot

//day 64 [36]
//gauntlet is complete, the boss fight remains 

//day 65 [37]
//prelude to the bossfight is complete, although not tested

//day 66 [38]
//prelude is complete, as well as the cutscene

//day 68 [39]
//astonishing w5 progress has been made, the only thing that remains is glitter and bug fixes

//day 72 [40]
//studying things happened and i couldn't do anything with this, but only fixing jingu and w6 prelude is all that remains

//day 73 [41]
//i've managed to somewhat complete w5, only things to do is to fix jingu not shooting and fix some misc things like the spawns and the w6_init not barricading players in

//day 74 [42]
//fixed the issue, w5 is p much done save for the timer and the gunspy fix, started to make w6
//made the bossfight of w6, tomorrow i troubleshoot captain punch and apply feedback to w3

//day 75 [43] (12.03.2023)
//made some new punchlings and started to fix the issue

//day 76 [44] (13.03.2023)
//fixed captain punch phase 1 and added some new punchlings

//day 77 [45] (14.03.2023)
//did work on the collab, really need to think about how w6 will play out

//day 84 [46] (21.03.2023)
//took a break to do the collab mission (which is now complete) and to wait for P-2 music to come out, back in town baby but i need to clench my ass if i wanna get this out
//anyway, i made the 3rd phase boss and some music

//day 86 [47]
//been slacking off a little, but i did the boss and the miniboss, need ot think what he should on on phase 4

//day 87 [48] (24.03.2023)
//i can feel the end of this gauntlet approaching, all that is left is to:
//-connect everything in the wave
//-add music names
//-move any misc sound to ambient_generics

//day 88 [49] (25.03.2023)
//i am very close to completing, things that need to be implemented:
//-bots that run around (will turn off after miniboss comes)
//-end cutscene

//day 89 [50] (26.03.2023)
//literally inches away, only need to:
//-make the cutscene more dramatic

//day 90 [51] (27.03.2023)
//mission is complete, save for like 2 seperate issues, it sucks tho lmfao fuck my life

//Wave 1: Introductory cutscene wave [complete and functional]
//Wave 2: Regular wave but with things slightly wrong [complete and functional]
//Wave 3: Hollow Knight Eternal Ordeal but with Heavy TF2, respawns the players in their spawn with no way out [complete and functional]
//Wave 4: Ultrakill like wave where you are tasked with going to the front to kill a boss, respawns the players in the front area [complete and functional]
//Wave 5: Jingu fight like wave where you are tasked with going to your spawn to kill a boss, respawns the players in the hatch area [p much complete]
//Wave 6: Secret final boss fight with The Last Captain Punch [completed/slightly bugged]



POLSKA_POLSKA_POZDROWIENIA_DLA_POLAKOW
{
	StartingCurrency 999
	RespawnWaveTime  1
	CanBotsAttackWhileInSpawnRoom no
	FixedRespawnWaveTime Yes 

	WaveStartCountdown 5
    NoThrillerTaunt 1  
	MaxSpeedLimit 700  
	TextPrintTime 0  
	FlagCarrierMovementPenalty 0.4  
	BodyPartScaleSpeed 10  

	CustomUpgradesFile "mvm_upgrades_fatty_calico.txt"
	LuaScriptFile "scripts/scout_logic_gate.lua"

	SpawnTemplate "BonkAttributes"
	SpawnTemplate "LookAtChat"
	SpawnTemplate "SolemnVowLogic"
	SpawnTemplate "Wave1Stuff"  
	SpawnTemplate "Wave3_Spawn_Logic"  
	SpawnTemplate "Wave4_Init"  
	SpawnTemplate "W5_Init"  
	SpawnTemplate "W6_Init"

	PrecacheModel "models/props_mvm/reversemvm_redwall_176x152.mdl"  
	PrecacheModel "models/props_mvm/reversemvm_redwall_512x320.mdl"  
	PrecacheModel "models/props_mvm/reversemvm_redwall_256x288.mdl"  
	PrecacheModel "models/props_mvm/reversemvm_redwall_112x320.mdl"  
	PrecacheModel "models/props_mvm/reversemvm_redwall_352x256.mdl"  
	PrecacheModel "models/props_mvm/reversemvm_redwall_696x337.mdl"  
	PrecacheModel "models/props_mvm/reversemvm_redwall_112x152.mdl"  
	PrecacheModel "models/props_mvm/reversemvm_redwall_352x196.mdl"  
	PrecacheModel "models/props_mvm/reversemvm_redwall_640x418.mdl"  

	PrecacheModel "weapons/w_models/w_revolver.mdl"  
	PrecacheModel "models/weapons/c_models/c_bread/c_bread_baguette.mdl"  
	PrecacheModel "models\weapons\c_models\c_sandwich\c_robo_sandwich.mdl"
	PrecacheModel "models\weapons\c_models\c_fists_of_steel\c_fists_of_steel.mdl"
	PrecacheModel "models\props_halloween\fist_projectile_darkblue.mdl"

	PrecacheSound "solemnvow_law_theme.mp3"
	PrecacheSound "fatty_wave1soundmain.mp3"
	PrecacheSound "fatty_epic_rap_battle.mp3"
	PrecacheSound "fatty_wave3_music1.mp3"
	PrecacheSound "fatty_wave3_music2.mp3"
	PrecacheSound "fatty_w4_calm.mp3"
	PrecacheSound "fatty_w4_combat.mp3"
	PrecacheSound "fatty_w4_miniboss.mp3"
	PrecacheSound "fatty_w4_boss_intro.mp3"
	PrecacheSound "fatty_w4_boss_phase1_loop.mp3"
	PrecacheSound "fatty_w4_boss_phase2_loop.mp3"
	PrecacheSound "fatty_w4_boss_defeated.mp3"
	PrecacheSound "fatty_w5_intro.mp3"
	PrecacheSound "fatty_w5_loop.mp3"
	PrecacheSound "fatty_w5_boss_defeated.mp3"
	PrecacheSound "fatty_w5_end_voiceline.mp3"
	PrecacheSound "fatty_w5_wave_end.mp3"
	PrecacheSound "fatty_w6_setup.mp3"
	PrecacheSound "fatty_w6_boss_intro.mp3"
	PrecacheSound "fatty_w6_boss_phase1.mp3"
	PrecacheSound "fatty_w6_boss_phase2_loop.mp3"
	PrecacheSound "fatty_w6_boss_defeated.mp3"
	PrecacheSound "fatty_w6_fart.mp3"

	// Download overlay.
	PrecacheGeneric "materials/memes/fatty_w6_meme.vmt"  

	ExtraTankPath   //blimp
    {
        Name rapping_tank_path
      	Node "481 2486 -30"
        Node "481 1634 -30"
    }

	//multiclass
	ItemAttributes   
	{
		ItemName "Gold Frying Pan"
		"damage bonus" 10
		"dmg from melee increased" 2
		"hit self on miss" 1
		"special item description" "Your overwhelming wealth has made you stupid and missing with this weapon will inflict a sizeable dent in your forehead."
	}

	ItemAttributes   
	{
		ItemName "Prinny Machete"
		"allow bunny hop" 1
		"special item description" "Alllows you to bunny hop."
	}

	ItemAttributes   
	{
		ItemName "The B.A.S.E. Jumper"
		"parachute redeploy" 1
		"special item description" "Parachute can be redeployed in the air again."
	}

	ItemAttributes   
	{
		ItemName "Panic Attack Shotgun"
		"mult_spread_scales_consecutive" 0
		"auto fires full clip" 1
		"fire rate penalty" 0.4
		"Reload time decreased" 0.6
		"special item description" "Brings back it's old power and then some."
	}

	ItemAttributes   
	{
		ItemName "The Reserve Shooter"
		"damage bonus" 0.1
		"centerfire projectile" 1
		"override projectile type" 2
		"blast dmg to self increased" 0.5
		"special item description" "Fires a low damaging rocket instead of bullets, can be equipped by Heavy and his version will fire 3 rockets at once."
	}

	ItemAttributes   
	{
		ItemName "The Half-Zatoichi"
		"bleeding duration" 5
		"damage penalty" 2
		"heal on hit for rapidfire" 50
		"charge recharge rate increased" 3
		"full charge turn control" 1
		"charge time increased" 2
		"special item description" "Lethality of the weapon dramatically increased."
		"special item description 2" "It yearns to be bathed in the blood of your enemies."
	}

	ItemAttributes   
	{
		ItemName "The Pain Train"
		"increase player capture value" 5
		"dmg taken from bullets reduced" 5
		"special item description" "Both the buff and debuff has been boosted."
	}


    //Scout Weapons

	ItemAttributes   
	{
		ItemName "The Force-a-Nature"
		"fire rate penalty" 3
		"bullets per shot bonus" 15
		"damage penalty" 0.75
		"clip size penalty" 0.16
		"reload time increased" 5
		"maxammo primary reduced" 0.375
		"special item description" "We've put a lot of bullets in this gun's clip. A LOT of bullets."
	}

	ItemAttributes   
	{
		ItemName "The Soda Popper"
		"effect cond override" 79
		"special item description" "Hitting enemies gives you a 75% change to dodge all attacks for 0.75s."
	}

	ItemAttributes   
	{
		ItemName "Baby Face's Blaster"
		"fire rate penalty" 0.3
		"auto fires full clip" 1
		"hype resets on jump" 25
		"lose hype on take damage" 0
		"special item description" "Acts like a buffed Panic Attack and has improved boost mechanics."
	}

	ItemAttributes   
	{
		ItemName "The Back Scatter"
		"minicrits become crits" 1
		"spread penalty" 0.5
		"special item description" "Any minicrit damage will be turned into crits and is more accurate."
	}

	ItemAttributes   
	{
		ItemName "The Winger"
		"damage bonus" 8.82
		"spread penalty" 0.01
		"special item description" "The Winger is still the best Scout weapon."
	}

	ItemAttributes   
	{
		ItemName "Pretty Boy's Pocket Pistol"
		"heal on hit for rapidfire" 4
		"heal on hit for slowfire" 4
		"restore health on kill" 100
		"healing mastery" 1
		"healing received bonus" 5
		"health from healers increased" 5
		"health from packs increased" 5
		"ammo becomes health" 1
		"drop health pack on kill" 1
		"overheal expert" 1
		"health on radius damage" 1
		"throwable healing" 1
		"enables aoe heal" 1
		"health regen" 10
		"health from credits" 50
		"damage returns as health" 0.7
		"overheal from heal on kill" 1
		"medic machinery beam" 1
		"mult dmg with reduced health" 4
		"mult crit when health is below percent" 0.5
		"add give health to teammate on hit" 25
		"clip size penalty" 1
		"fire rate penalty" 0.4
		"special item description" "You will heal so much bro, trust me bro."
	}

	ItemAttributes   
	{
		ItemName "The Flying Guillotine"
		"effect bar recharge rate increased" 0.01
		"crit vs disguised players" 1
		"crit vs wet players" 1
		"crit vs stunned players" 1
		"critboost on kill" 4
		"special item description" "Recharges instantly, crits on kill and on burning, wet, stunned and disguised targets."
	}

	ItemAttributes   
	{
		ItemName "The Atomizer"
		"provide on active" 1
    	"increased jump height" 200
		"special item description" "Dude I'm like...... so high right now."
	}

	ItemAttributes   
	{
		ItemName "The Wrap Assassin"
		"bleeding duration" 99
		"special item description" "They will bleed forever."
	}

	ItemAttributes   
	{
		ItemName "The Direct Hit"
		"projectile speed increased" 4
		"special item description" "The rockets are very fast."
	}

	ItemAttributes   
	{
		ItemName "The Black Box"
		"damage penalty" 3
		"always crit" 1
		"fire rate penalty" 5.5
		"projectile speed increased" 0.35
		"blast radius increased" 4
		"use large smoke explosion" 1
		"special item description" "Rocket is very slow and deals a lot of damage in a big radius"
	}	

	ItemAttributes   
	{
		ItemName "Rocket Jumper"
		"faster reload rate" -0.4
		"fire rate bonus" 0.1
		"maxammo secondary reduced" 20
		"projectile speed increased" 2
		"single wep deploy time decreased"	0.01
		"switch from wep deploy time decreased"	0.01
		"ammo regen" 0.8
		"special item description" "Infinite clip and very fast fire rate."
	}

	ItemAttributes   
	{
		ItemName "The Liberty Launcher"
		"mult projectile count" 6
		"projectile spread angle penalty" 10
		"fire rate penalty" 3
		"damage penalty" 0.5
		"projectile speed increased" 0.75
		"mod projectile heat seek power" 30
		"mod projectile heat aim error" 360
		"blast dmg to self increased" 0.01
		"special item description" "Fires 5 homing rockets in a spread, it's most effective in the air."
	}

	ItemAttributes   
	{
		ItemName "The Cow Mangler 5000"
		"faster reload rate" -0.4
		"special item description" "Reloads instantly."
	}

	ItemAttributes   
	{
		ItemName "The Beggar's Bazooka"
		"provide on active" 1
		"dmg taken increased" 0.3
		"projectile spread angle penalty" 360
		"no primary ammo from dispensers while active" 0
		"damage penalty" 4
		"blast radius increased" 2
		"special item description" "Rockets deal more damage, but only the overload explosion is viable offensively."
	}

	ItemAttributes   
	{
		ItemName "The Air Strike"
		"mod projectile heat seek power" 360
		"mod projectile heat aim error" 20
		"mod projectile heat aim time" 0.25
		"projectile speed increased" 0.75
		"special item description" "Projectiles are slower and home on very sharply for 0.75 seconds."
	}

	ItemAttributes   
	{
		ItemName "The Gunboats"
		"blast dmg to self increased" 0.001
		"special item description" "Gives you complete immunity to self blast damage."
	}

	ItemAttributes   
	{
		ItemName "The Mantreads"
		"damage force reduction" 0.01
		"increased air control" 20
		"special item description" "Gives you complete immunity to knockback and full air control."
	}

	ItemAttributes   
	{
		ItemName "The Righteous Bison"
		"projectile speed decreased" 0.5
		"custom projectile size" 10
		"damage penalty" 2.5
		"reload time decreased" 0.5
		"mod projectile heat seek power" 75
		"mod projectile heat aim error" 180
		"set item tint RGB" 16738740
		"special item description" "Modifications stolen from that bloke in Terminal Stupidity and tweaked to increase it's lethality."
		"special item description 2" "The bison projectiles home on, deal more damage and travel slower."
	}

	ItemAttributes   
	{
		ItemName "The Buff Banner"
		"effect cond override" 84
		"increase buff duration HIDDEN" 3
		"special item description" "Changes the effect of the banner to big head."
	}

	ItemAttributes   
	{
		ItemName "The Concheror"
		"effect cond override" 32
		"increase buff duration HIDDEN" 0.75
		"special item description" "Changes the effect of the banner to the whip."
	}

	ItemAttributes   
	{
		ItemName "The Battalion's Backup"
		"effect cond override" 86
		"increase buff duration HIDDEN" 1.5
		"special item description" "Changes the effect of the banner to swimming in air."
	}

	ItemAttributes   
	{
		ItemName "The Equalizer" 
		"damage bonus" 3
		"special item description" "Bigger damage potential."
	}

	ItemAttributes   
	{
		ItemName "The Escape Plan"
		"self mark for death" 0
		"dmg taken increased" 0.5
		"provide on active" 1
		"move speed bonus" 1.4
		"special item description" "Grants a boost to defense and speed and removes self marking for death when active."
	}

	ItemAttributes   
	{
		ItemName "The Disciplinary Action"
		"fire rate penalty" 0.75
		"mult crit when health is below percent" 0.75
		"special item description" "Guaranteed critical hits below 75% health and attacks faster."
	}

	ItemAttributes   
	{
		ItemName "The Market Gardener"
		"fire rate penalty" 0.75
		"melee bounds multiplier" 20
    	"melee range multiplier" 20 
		"special item description" "Range dramatically increased and can attack faster."
	}

	ItemAttributes   
	{
		ClassName "tf_weapon_flamethrower"
		"airblast pushback scale" 0.01
		"special item description" "Airblast now doesn't inflict knockback."
	}

	ItemAttributes   
	{
		ItemName "The Degreaser"
        "flame_drag"  5
		"flame_up_speed" 60
		"mult airblast refire time" 0.5
		"single wep deploy time decreased"	0.01
		"switch from wep deploy time decreased"	0.01
		"special item description" "Instant switch speed, smaller airblast delay."
	}

	ItemAttributes   
	{
		ItemName "The Dragon's Fury"
		"item_meter_charge_rate" 0.5
		"maxammo primary reduced" 2
		"mod crit while airborne" 1
		"special item description" "Weapon fires faster, has more starting ammo, and deals critical hits when you're midair."
	}

	ItemAttributes   
	{
		ItemName "The Flare Gun"
		"attack_minicrits_and_consumes_burning" 1
		"minicrits become crits" 1
		"damage bonus" 4
		"projectile speed increased" 2
		"special item description" "Crits extinguish target, flare speed increased and deals way more damage."
	}

	ItemAttributes   
	{
		ItemName "The Detonator"
		"blast radius increased" 8
		"damage bonus" 3
		"special item description" "Massive boost to the explosion radius and damage."
	}

	ItemAttributes   
	{
		ItemName "The Scorch Shot"
		"override projectile type" 7
		"special item description" "This weapon fires nothing. Fuck you."
	}

	ItemAttributes   
	{
		ItemName "The Manmelter"
		"fire rate bonus" 0.05
		"attack_minicrits_and_consumes_burning" 1
		"crits_become_minicrits" 1
		"special item description" "Fire rate massively increased and minicrits on burning."
	}

	ItemAttributes   
	{
		ItemName "The Thermal Thruster"
		"damage force increase hidden"	30
		"increased air control"	20
		"item_meter_charge_rate" 1
		"special item description" "Grants you quick recharge, increased air control and definetly nothing else."
	}

	ItemAttributes   
	{
		ItemName "The Gas Passer"
		"provide on active" 1
		"health regen" -1000
		"special item description" "Kills you when you pull it out."
	}

	ItemAttributes   
	{
		ItemName "The Axtinguisher"
		"provide on active" 1
		"attack_minicrits_and_consumes_burning" 0
		"melee cleave attack" 1
		"crit vs burning players" 1
		"mult crit dmg" 2
		"melee bounds multiplier" 2
    	"melee range multiplier" 2
		"dmg taken increased" 0.4
		"special item description" "Weapon now crits on burning, doesn't extinguish on hit, all crits deal double damage and you get a 60% damage resistance when it's active."
	}

	ItemAttributes   
	{
		ItemName "The Powerjack"
		"provide on active" 1
		"move speed bonus" 2
		"melee bounds multiplier" 2
    	"melee range multiplier" 2
		"special item description" "Gives you a big speed boost when you hold the weapon."
	}

	ItemAttributes   
	{
		ItemName "The Homewrecker"
		"damage penalty" 4
		"hand scale" 3
		"melee bounds multiplier" 4
    	"melee range multiplier" 4
		"special item description" "Hammer big, hammer deals huge, reaches everywhere."
	}

	ItemAttributes   
	{
		ItemName "The Back Scratcher"
		"provide on active" 1
		"dmg taken increased" 0.6
		"damage bonus" 1.75
		"health regen" -5
		"restore health on kill" 75
		"critboost on kill" 4
		"health from packs increased" 2
		"melee bounds multiplier" 2
    	"melee range multiplier" 2
		"special item description" "Drains your HP when you hold it, but you deal increased damage and kills grant you various boosts."
	}

	ItemAttributes   
	{
		ItemName "The Hot Hand"
		"hit self on miss" 1
		"fire rate penalty" 0.7
		"speed_boost_on_hit" 1
		"melee bounds multiplier" 2
    	"melee range multiplier" 2
		"special item description" "You slap faster and receive a speedboost on slap, but you slap yourself on miss."
	}

	ItemAttributes   
	{
		ItemName "The Loch-n-Load"
		"faster reload rate" 0.5 
		"fire rate bonus" 0.1
		"clip size upgrade atomic" 8.0
		"projectile spread angle penalty" 2
		"Projectile speed increased"	1.1
		"maxammo primary reduced" 2.5
		"special item description" "Weapon functions simillarly to a Giant Burst Fire Demoman's grenade launcher."
	}

	ItemAttributes   
	{
		ItemName "Ali Baba's Wee Booties"
		"damage penalty" 0.65
		"health regen" 40
		"special item description" "Grants you 20HP regen and a significant damage penalty."
	}

	ItemAttributes   
	{
		ItemName "The Bootlegger"
		"damage penalty" 2
		"dmg taken increased" 1.50
		"special item description" "Grants you double damage and 50% more vulnerability to all damage."
	}

	ItemAttributes   
	{
		ItemName "The Loose Cannon"
		"grenade launcher mortar mode" 0
		"mult projectile count" 3
		"faster reload rate" 1.3
		"fire rate penalty" 4
		"clip size penalty" 0.5
		"Projectile speed increased" 0.5
		"damage bonus" 8
		"damage causes airblast" 1
		"blast radius increased" 3
		"use large smoke explosion" 1
		"special item description" "Fires 3 bombs that deal massive damage to everything in a big radius."
	}

	ItemAttributes   
	{
		ItemName "The Iron Bomber"
		"blast dmg to self increased" 0.001
		"special item description" "You take minimal damage from your own explosions."
	}

	ItemAttributes   
	{
		ItemName "Stickybomb Jumper"
		"crit mod disabled" 1
		"max pipebombs decreased" 0
		"faster reload rate" 0.2
		"special item description" "You can deploy 8 stickbombs, reload rate massively increased."
	}

	ItemAttributes   
	{
		ItemName "The Quickiebomb Launcher"
		"sticky arm time bonus" -0.6
		"fire rate penalty" 0.6
		"projectile speed increased" 1.5
		"stickybomb charge rate" 0.15
		"stickybomb_charge_damage_increase" 2
		"special item description" "Stickies are crazy fast and existing upsides have been boosted."
	}

	ItemAttributes   
	{
		ItemName "The Splendid Screen"
		"charge impact damage increased" 6
		"dmg taken increased" 0.75
		"special item description" "Impact damage massively increased and 25% resistance to all damage."
	}

	ItemAttributes   
	{
		ItemName "The Chargin' Targe"
		"dmg taken from fire reduced" 0.4
		"dmg taken from blast reduced" 0.4
		"dmg taken from bullets reduced" 0.4
		"special item description" "Grants you 60% resist to every damage type, excluding melee and typeless."
	}

	ItemAttributes   
	{
		ItemName "The Tide Turner"
		"lose demo charge on damage when charging" 0
		"charge time increased" 3
		"kill refills meter" 1
		"special item description" "Removed charge loss on damage, charge time increased."
	}

	ItemAttributes   
	{
		ItemName "The Scotsman's Skullcutter"
		"melee bounds multiplier" 2
    	"melee range multiplier" 2
		"gunslinger punch combo" 1
		"special item description" "Increased range and every third consecutive non-crit hit is a guaranteed critical hit."
	}

	ItemAttributes   
	{
		ItemName "The Ullapool Caber"
		"damage bonus" 20
		"blast dmg to self increased" 10
		"blast radius increased" 5
		"teleport instead of die" 1
		"regenerate stickbomb" 1
		"fire rate bonus" 6
		"special item description" "Explodes violently, but leaves you with 1HP when it does explode"
	}

	ItemAttributes   
	{
		ItemName "The Claidheamohmor"
		"melee bounds multiplier" 4
    	"melee range multiplier" 4
		"damage penalty" 1.4
		"special item description" "Massive range increase and deals more damage."
	}

	ItemAttributes   
	{
		ItemName "The Persian Persuader"
		"melee bounds multiplier" 1.5
    	"melee range multiplier" 1.5
		"critboost on kill" 5
		"kill refills meter" 1
		"special item description" "Killing refills your charge meter fully and you get an innate critboost on kill."
	}

	ItemAttributes   
	{
		ClassName "tf_weapon_minigun"
		"no primary ammo from dispensers while active" 1
		"special item description" "All miniguns do not receive ammo from dispensers if they are pulled out."
	}

	ItemAttributes   
	{
		ItemName "Tomislav"
		"no damage falloff" 1
    	"spread penalty" 0.1
		"special item description" "Weapon is unaffected by distance modifiers and is more accurate"
	}

	ItemAttributes   
	{
		ItemName "The Huo Long Heatmaker"
		"uses ammo while aiming" 1
    	"spunup_damage_resistance" 0.25
		"special item description" "Reduced passive ammo consumption, 75% damage resistance below 50% health and spun up."
	}

	ItemAttributes   
	{
		ItemName "The Family Business"
		"fire rate penalty" 0.2
		"clip size penalty" 1.5
		"reload time increased" 0.4
		"maxammo secondary reduced" 3
		"special item description" "Stock fire rate and reload speed dramatically increased."
	}

	ItemAttributes   
	{
		ClassName "tf_weapon_lunchbox"
		"gesture speed increase" 3
		"item_meter_charge_rate" 0.1
		"special item description" "All food items recharge instantly."
	}

	ItemAttributes   
	{
		ItemName "Gloves of Running Urgently"
		"provide on active" 1
		"mod_maxhealth_drain_rate" 0
		"self mark for death" 1
		"special item description" "No longer drains your HP when active and instead marks you for death."
	}

	ItemAttributes   
	{
		ItemName "Warrior's Spirit"
		"provide on active" 1
		"mult dmg vs tanks" 3
		"dmg taken increased" 0.7
		"special item description" "Grants you 30% damage resistance instead of vulnerability and deals more damage to tanks."
	}

	ItemAttributes   
	{
		ItemName "Fists of Steel"
		"single wep deploy time decreased"		0.01
		"switch from wep deploy time decreased"	0.01
		"mult_patient_overheal_penalty_active" 1
        "mult_health_fromhealers_penalty_active" 1
		"special item description" "Instant melee switch and disables the healing penalties."
	}

	ItemAttributes   
	{
		ItemName "The Eviction Notice"
		"mod_maxhealth_drain_rate" 0
		"damage penalty" 1
		"special item description" "Removed the damage penalty and HP drain when active."
	}

	ItemAttributes   
	{
		ItemName "The Widowmaker"
		"fire rate bonus" 0.4
		"fire rate bonus with reduced health" 0.1
		"special item description" "Base fire rate reduced and weapon fires faster as your health decreases."
	}

	ItemAttributes   
	{
		ItemName "The Pomson 6000"
		"mult projectile count" 2
		"projectile spread angle penalty" 5
		"mod projectile heat seek power" 75
		"mod projectile heat aim error" 90
		"damage bonus" 2
		"fire rate penalty" 0.5
		"clip size penalty" 3
		"special item description" "Fires 2 bolts that home in and deal 100% more damage, increased clip and fire rate bonus."
	}

	ItemAttributes   
	{
		ItemName "The Rescue Ranger"
		"fire rate bonus" 0.01
		"special item description" "Fires the entire clip at once."
	}

	ItemAttributes   
	{
		ItemName "The Short Circuit"
		"metal regen" 200
		"special item description" "Grants you an inate 200 metal regen."
	}

	ItemAttributes   
	{
		ItemName "The Gunslinger"
		"mod wrench builds minisentry" 0
		"build small sentries" 1
		"engy disposable sentries" 3
		"mult dispenser rate" 3
		"mod dispenser cost" 0.5
		"mult teleporter recharge rate" 0.5
		"special item description" "Dispenser and teleporter effectiveness increased, replaces minisentry with a smaller upgradeable sentry."
		"special item description 2" "Grants you 3 disposable minisentries."
	}

	ItemAttributes   
	{
		ItemName "The Jag"
		"fire rate bonus" 0.25
		"special item description" "Grants maximum possible fire rate."
	}

	ItemAttributes   
	{
		ItemName "The Blutsauger"
		"fire rate bonus" 0.1
		"faster reload rate" 3
		"maxammo primary reduced" 3
		"special item description" "Unloads the entire clip at once, but reloads slower."
	}

	ItemAttributes   
	{
		ItemName "The Crusader's Crossbow"
		"always crit" 1
		"provide on active" 1
		"special item description" "The weapon has a 100% chance to deal crits."
	}

	ItemAttributes   
	{
		ItemName "The Overdose"
		"speed_boost_on_hit" 2
		"provide on active" 1
		"dmg taken increased" 0.25
		"special item description" "Grants you speed on hit and 75% damage reduction when active."
	}

	ItemAttributes   
	{
		ItemName "The Amputator"
		"provide on active" 1
		"gesture speed increase" 4
		"special item description" "Medicinating Melody casting speed increased."
	}

	ItemAttributes
    {
        ItemName "The Solemn Vow"
        "fire input on kill" "solemn_vow_init^Trigger"
        "special item description" "On kill: meet God."
    }

	ItemAttributes   
	{
		ClassName "tf_weapon_compound_bow"
		"mult projectile count" 4
		"arrow mastery" 2
		"projectile spread angle penalty" 4
		"special item description" "Fires a cluster of arrows."
		"special item description 2" "Do not buy penetration, it significantly lowers DPS of the weapon."
	}

	ItemAttributes   
	{
		ItemName "The Sydney Sleeper"
		"provide on active" 1
		"add cond on hit" 24
		"add cond on hit duration" 5
		"minicrits become crits" 1
		"damage penalty" 0.75
		"heal on hit for rapidfire" 10
		"special item description" "Any damage applies jarate for 5s, minicrits become crits and heals 20HP for every shot at the cost of 25% damage penalty."
	}

	ItemAttributes   
	{
		ItemName "The Machina"
		"sniper full charge damage bonus" 2.5
		"Reload time decreased" 2
		"mult bleeding dmg" 5
		"bleeding duration" 4
		"special item description" "Deals an ungodly amount of damage when fully charged, applies stronger bleed on hit, but has a longer reload."
	}

	ItemAttributes   
	{
		ItemName "The Razorback"
		"dmg taken increased" 0.25
		"special item description" "Gives you 75% damage resistance."
	}

	//Spy Weapons
    ItemAttributes   
	{
		ClassName "tf_weapon_revolver"
		"weapon spread bonus" 0.01
		"fire rate bonus" 0.08
		"damage penalty" 1
		"faster reload rate" 0.5
        //new
        "mult dmg vs airborne" 2
        "maxammo secondary reduced" 3
		"special item description" "Modified with so many black market parts that even thinking about it in public gets you arrested."
	}

    ItemAttributes   
	{
		ClassName "tf_weapon_knife"
        "provide on active" 1
		"damage force reduction" 0.01
        "airblast vulnerability multiplier" 0.01
        "airblast vertical vulnerability multiplier" 0.01
		"damage penalty" 0
		"add cond when active" 51
        "single wep deploy time decreased"		0.01
		"switch from wep deploy time decreased"	0.01
		"special item description" "Deals no damage, but grants you full knockback and damage immunity whenever the weapon is active."
	} 


	//PLAYER SPAWNBOTS
	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_player" 
		StartDisabled 1
        TeamNum 2 
        X	"281"                     
        Y	"-597"                  
        Z	"257"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_player" 
		StartDisabled 1
        TeamNum 2 
        X	"-840"                     
        Y	"168"                  
        Z	"129"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_player" 
		StartDisabled 1
        TeamNum 2 
        X	"725"                     
        Y	"177"                  
        Z	"65"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_player" 
		StartDisabled 1
        TeamNum 2 
        X	"-558"                     
        Y	"1618"                  
        Z	"4"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_player_jingu" 
		StartDisabled 1
        TeamNum 2 
        X	"459"                     
        Y	"-3378"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_player_jingu" 
		StartDisabled 1
        TeamNum 2 
        X	"656"                     
        Y	"-4544"                  
        Z	"92"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_player_jingu" 
		StartDisabled 1
        TeamNum 2 
        X	"-758"                     
        Y	"-4503"                  
        Z	"92"   	
    }

	//ROBOT SPAWNBOTS
	ExtraSpawnPoint    
    {
        Name "spawnbot_wave1_scout" 
        TeamNum 3 
        X	"-160"                     
        Y	"1774"                  
        Z	"1"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave1_sniper" 
        TeamNum 3 
        X	"180"                     
        Y	"1774"                  
        Z	"1"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave2_scout" 
        TeamNum 3
		StartDisabled 1 
        X	"481"                     
        Y	"1450"                  
        Z	"-45"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave2_boss" 
        TeamNum 3 
        X	"-16"                     
        Y	"1783"                  
        Z	"1"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-1029"                     
        Y	"1744"                  
        Z	"4"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-854"                     
        Y	"1857"                  
        Z	"4"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-581"                     
        Y	"1707"                  
        Z	"4"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-334"                     
        Y	"1894"                  
        Z	"4"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"134"                     
        Y	"2178"                  
        Z	"4"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zotemelee" 
        TeamNum 3 
        X	"-444"                     
        Y	"2383"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zoteturret" 
        TeamNum 3 
        X	"482"                     
        Y	"1889"                  
        Z	"-27"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zoteturret" 
        TeamNum 3 
        X	"444"                     
        Y	"2192"                  
        Z	"292"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zoteturret" 
        TeamNum 3 
        X	"-541"                     
        Y	"1916"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zoteturret" 
        TeamNum 3 
        X	"235"                     
        Y	"1108"                  
        Z	"251"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_zoteturret" 
        TeamNum 3 
        X	"-549"                     
        Y	"1455"                  
        Z	"238"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_boss_summons1" 
        TeamNum 3 
        X	"530"                     
        Y	"2853"                  
        Z	"353"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_boss_summons2" 
        TeamNum 3 
        X	"530"                     
        Y	"2853"                  
        Z	"353"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_boss_summons3" 
        TeamNum 3 
        X	"530"                     
        Y	"2853"                  
        Z	"353"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_fluke1" 
        TeamNum 3 
        X	"530"                     
        Y	"2853"                  
        Z	"353"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_fluke2" 
        TeamNum 3 
        X	"530"                     
        Y	"2853"                  
        Z	"353"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_boss" 
        TeamNum 3 
        X	"-15"                     
        Y	"1787"                  
        Z	"4"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave3_timer" 
        TeamNum 3 
        X	"-83"                     
        Y	"-4200"                  
        Z	"-251"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_test2" 
        TeamNum 3 
        X	"-93"                     
        Y	"-4535"                  
        Z	"1"   	
    }

	//w4 spawnbots, my sanity is dwindling

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_keymaster1" 
		StartDisabled 1
        TeamNum 3 
        X	"742"                     
        Y	"53"                  
        Z	"65"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_keymaster2" 
		StartDisabled 1
        TeamNum 3 
        X	"742"                     
        Y	"53"                  
        Z	"65"    	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area1_1" 
		StartDisabled 1
        TeamNum 3 
        X	"-213"                     
        Y	"-3948"                  
        Z	"1"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area1_5" 
		StartDisabled 1
        TeamNum 3 
        X	"174"                     
        Y	"-2978"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area1_7" 
		StartDisabled 1
        TeamNum 3 
        X	"810"                     
        Y	"-3607"                  
        Z	"4"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area1_10" 
		StartDisabled 1
        TeamNum 3 
        X	"-840"                     
        Y	"-3923"                  
        Z	"4"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area1_13" 
		StartDisabled 1
        TeamNum 3 
        X	"-931"                     
        Y	"-4236"                  
        Z	"164"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area1_14" 
		StartDisabled 1
        TeamNum 3 
        X	"959"                     
        Y	"-4119"                  
        Z	"193"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area1_15" 
		StartDisabled 1
        TeamNum 3 
        X	"836"                     
        Y	"-3454"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area1_16" 
		StartDisabled 1
        TeamNum 3 
        X	"36"                     
        Y	"-3420"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area2_1" 
		StartDisabled 1
        TeamNum 3 
        X	"-174"                     
        Y	"-2093"                  
        Z	"-57"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area2_2" 
		StartDisabled 1
        TeamNum 3 
        X	"-899"                     
        Y	"-1944"                  
        Z	"-57"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area2_3" 
		StartDisabled 1
        TeamNum 3 
        X	"-839"                     
        Y	"-1832"                  
        Z	"-62"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area2_4" 
		StartDisabled 1
        TeamNum 3 
        X	"-664"                     
        Y	"-1832"                  
        Z	"-59"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area2_5" 
		StartDisabled 1
        TeamNum 3 
        X	"-623"                     
        Y	"-1944"                  
        Z	"-57"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area2_6" 
		StartDisabled 1
        TeamNum 3 
        X	"267"                     
        Y	"-1942"                  
        Z	"-62"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area2_7" 
		StartDisabled 1
        TeamNum 3 
        X	"95"                     
        Y	"-1706"                  
        Z	"-58"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area3_1" 
		StartDisabled 1
        TeamNum 3 
        X	"884"                     
        Y	"-1749"                  
        Z	"-62"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area3_2" 
		StartDisabled 1
        TeamNum 3 
        X	"307"                     
        Y	"-1615"                  
        Z	"-62"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area3_3" 
		StartDisabled 1
        TeamNum 3 
        X	"810"                     
        Y	"-690"                  
        Z	"3"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area3_4" 
		StartDisabled 1
        TeamNum 3 
        X	"990"                     
        Y	"-921"                  
        Z	"-42"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area3_5" 
		StartDisabled 1
        TeamNum 3 
        X	"632"                     
        Y	"-849"                  
        Z	"-17"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_1" 
		StartDisabled 1
        TeamNum 3 
        X	"911"                     
        Y	"-1956"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_2" 
		StartDisabled 1
        TeamNum 3 
        X	"353"                     
        Y	"-1971"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_3" 
		StartDisabled 1
        TeamNum 3 
        X	"1667"                     
        Y	"-2200"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_4" 
		StartDisabled 1
        TeamNum 3 
        X	"267"                     
        Y	"-2203"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_5" 
		StartDisabled 1
        TeamNum 3 
        X	"1667"                     
        Y	"-2200"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_6" 
		StartDisabled 1
        TeamNum 3 
        X	"267"                     
        Y	"-2203"                  
        Z	"196"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_7" 
		StartDisabled 1
        TeamNum 3 
        X	"-935"                     
        Y	"-803"                  
        Z	"161"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_8" 
		StartDisabled 1
        TeamNum 3 
        X	"-461"                     
        Y	"-845"                  
        Z	"161"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_9" 
		StartDisabled 1
        TeamNum 3 
        X	"-935"                     
        Y	"-803"                  
        Z	"161"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_10" 
		StartDisabled 1
        TeamNum 3 
        X	"-461"                     
        Y	"-845"                  
        Z	"161"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area4_11" 
		StartDisabled 1
        TeamNum 3 
        X	"468"                     
        Y	"-695"                  
        Z	"257"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area5_1" 
		StartDisabled 1
        TeamNum 3 
        X	"289"                     
        Y	"76"                  
        Z	"68"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area5_2" 
		StartDisabled 1
        TeamNum 3 
        X	"46"                     
        Y	"132"                  
        Z	"132"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area5_3" 
		StartDisabled 1
        TeamNum 3 
        X	"515"                     
        Y	"184"                  
        Z	"68"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area5_4" 
		StartDisabled 1
        TeamNum 3 
        X	"289"                     
        Y	"76"                  
        Z	"68"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area5_5" 
		StartDisabled 1
        TeamNum 3 
        X	"46"                     
        Y	"132"                  
        Z	"132"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_area5_6" 
		StartDisabled 1
        TeamNum 3 
        X	"515"                     
        Y	"184"                  
        Z	"68"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_boss" 
		StartDisabled 1 
        TeamNum 3 
        X	"-15"                     
        Y	"1787"                  
        Z	"1"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave4_wavebar" 
		StartDisabled 1
        TeamNum 3 
        X	"468"                     
        Y	"-695"                  
        Z	"257"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area1_commons" 
        TeamNum 3 
        X	"192"                     
        Y	"-674"                  
        Z	"257"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area1_left" 
        TeamNum 3 
        X	"1123"                     
        Y	"-125"                  
        Z	"149"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area1_right" 
        TeamNum 3 
        X	"-631"                     
        Y	"-834"                  
        Z	"161"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area2_commons" 
        TeamNum 3 
		StartDisabled 1
        X	"277"                     
        Y	"-1788"                  
        Z	"185"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area2_commons" 
        TeamNum 3 
		StartDisabled 1
        X	"277"                     
        Y	"-1788"                  
        Z	"-62"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area2_giant" 
        TeamNum 3 
		StartDisabled 1
        X	"-34"                     
        Y	"-1587"                  
        Z	"161"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area2_giant" 
        TeamNum 3 
		StartDisabled 1
        X	"1301"                     
        Y	"-1447"                  
        Z	"289"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area2_giant" 
        TeamNum 3 
		StartDisabled 1
        X	"648"                     
        Y	"-1365"                  
        Z	"-62"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area3_guardian1" 
        TeamNum 3 
		StartDisabled 1
        X	"813"                     
        Y	"-3176"                  
        Z	"1"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_area3_guardian2" 
        TeamNum 3 
		StartDisabled 1
        X	"-819"                     
        Y	"-3078"                  
        Z	"-61"   	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_jingu" 
        TeamNum 3 
		StartDisabled 1
        X	"515"                     
        Y	"184"                  
        Z	"68"    	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_bodyguard" 
        TeamNum 3 
		StartDisabled 1
        X	"515"                     
        Y	"184"                  
        Z	"68"    	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave5_bodyguard2" 
        TeamNum 3 
		StartDisabled 1
        X	"515"                     
        Y	"184"                  
        Z	"68"    	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave6_punch" 
        TeamNum 3 
        X	"132"                     
        Y	"-2975"                  
        Z	"193"    	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave6_punch_teleporter" 
        TeamNum 3 
        X	"-1706"                     
        Y	"2329"                  
        Z	"129"    	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave6_punch_phase3" 
		StartDisabled 1
        TeamNum 3 
        X	"92"                     
        Y	"1771"                  
        Z	"4"    	
    }

	ExtraSpawnPoint    
    {
        Name "spawnbot_wave6_machine" 
		StartDisabled 1
        TeamNum 3 
        X	"92"                     
        Y	"1771"                  
        Z	"4"    	
    }

	PointTemplates
	{
		SolemnVowInit
		{
 			logic_relay
			{
				"targetname" "solemn_vow_init"
				"OnTrigger" "solemn_vow_relay,Trigger,,0,-1"
			}
		}
		SolemnVowLogic
		{
 			logic_relay
			{
				"targetname" "solemn_vow_relay"
				"OnTrigger" "solemn_vow_init,Kill,,0,-1"
				"OnTrigger" "!activator,$AddPlayerAttribute,voice pitch scale|0,0,-1"
				"OnTrigger" "player,$DisplayTextChat,$$='{red}'..string(!activator.m_szNetname)..'{FBECCB} has been chosen.',0,-1"
				"OnTrigger" "!activator,$AddCond,14,0,-1"

				"OnTrigger" "god_himself,$HideToAll,,0,-1"

				"OnTrigger" "god_fade,Fade,!activator,0.5,-1"
				"OnTrigger" "!activator,$SetLocalOrigin,-500 -1536 650,1.95,-1"
				"OnTrigger" "!activator,$FaceEntity,god_look,2,-1"
				"OnTrigger" "!activator,$AddCond,66,2,-1"

				"OnTrigger" "god_move,SetPosition,1,3.2,-1"
				"OnTrigger" "god_himself,Enable,,3.2,-1"

				"OnTrigger" "god_himself,$ShowTo,!activator,3.2,-1"

				"OnTrigger" "!activator,$PlaySoundToSelf,solemnvow_law_theme.mp3,3.2,-1"
				"OnTrigger" "!activator,$displaytextcenter,Be not afraid; for I am with thee.,6,-1"
				"OnTrigger" "!activator,$displaytextcenter,Be not dismayed; for I am thy God.,10,-1"
				"OnTrigger" "!activator,$displaytextcenter,I will strengthen thee; yea.,14,-1"
				"OnTrigger" "!activator,$displaytextcenter,I will help thee; yea.,17.5,-1"
				"OnTrigger" "!activator,$displaytextcenter,I will uphold thee with the right hand of my righteousness.,21,-1"
				"OnTrigger" "god_fade,Fade,!activator,24.25,-1"
				"OnTrigger" "!activator,$ForceRespawn,,26,-1"
				"OnTrigger" "god_himself,Disable,,26,-1"
				"OnTrigger" "player,$DisplayTextChat,$$='{red}'..string(!activator.m_szNetname)..'{FBECCB} has returned to us.',26,-1"
				"OnTrigger" "!activator,$AddCond,37 15,26.1,-1"
				"OnTrigger" "!activator,$AddCond,32 15,26.1,-1"
				"OnTrigger" "!activator,$AddCond,52 15,26.1,-1"
			}
			env_fade
			{
				"targetname" "god_fade"
				"duration" "1.5"
				"holdtime" "0.5"
				"renderamt" "255"
				"rendercolor" "255 255 255"
				"spawnflags" "4"
			}
			prop_dynamic
			{
				"targetname" "god_himself"
				"angles" "0 -135 0"
				"DisableBoneFollowers" "1"
				"model" "models/weapons/c_models/c_hippocrates_bust/c_hippocrates_bust.mdl"
				"disableshadows" "1"
				"disablereceiveshadows" "1"
				"origin" "-704 -1536 900"
				"modelscale" 3
				"startdisabled" 1
				"parentname" "god_move"
			}
			func_movelinear
			{
				"targetname" "god_move"
				"origin" "-704 -1536 900"
				"movedir" "90 0 0"
				"movedistance" "240"
				"spawnflags" "8"
				"speed" "50"
			}
			info_target
			{
				"targetname" "god_look"
				"origin" "-704 -1536 690"
			}
		}

		BonkAttributes
		{
			NoFixup 1
			trigger_multiple
            {
                "targetname"    "bonk_trigger"
                "origin"        "0 0 0"
                "mins"          "-9999 -9999 -9999"
                "maxs"          "9999 9999 9999"
                "spawnflags"    "1"
				"filtername" "bonk_death_filter"
				"OnStartTouch" "!activator,$PlaySoundToSelf,vo\taunts\scout_taunts04.mp3,0,-1"
                "OnStartTouch" "!activator,$AddPlayerAttribute,move speed bonus|4,2,-1"
				"OnStartTouch" "!activator,$PlaySoundToSelf,vo\scout_apexofjump01.mp3,3,-1"
				"OnStartTouch" "!activator,$AddCond,74|10,4,-1"
				"OnStartTouch" "!activator,$PlaySoundToSelf,vo\scout_triplejump01.mp3,5,-1"
				"OnStartTouch" "!activator,$AddCond,84|10,5,-1"
				"OnStartTouch" "!activator,$PlaySoundToSelf,vo\scout_triplejump03.mp3,5.4,-1"
				"OnStartTouch" "!activator,$AddCond,86|4,6,-1"
				"OnStartTouch" "!activator,$PlaySoundToSelf,vo\scout_apexofjump04.mp3,6.3,-1"
				"OnStartTouch" "!activator,$PlaySoundToSelf,vo\toughbreak\scout_quest_complete_hard_09.mp3,7,-1"
				"OnStartTouch" "!activator,$AddCond,123|4,7,-1"
				"OnStartTouch" "!activator,$TakeDamage,10000000,8.01,-1"
				"OnStartTouch" "!activator,$PlaySoundToSelf,vo\pauling\plng_give_contract_rare_scout_06.mp3,8,-1"
            }

			filter_multi
			{
				"targetname" "bonk_death_filter"
				"FilterType" "0"

				"Filter01" "scout_filter"
				"Filter01" "bonk_filter"
			}

			filter_tf_class
			{
				"targetname" "scout_filter"
				"Negated" "Allow entities that match criteria"
				"tfclass" "1"
			}

			filter_tf_condition
			{
				"targetname" "bonk_filter"
				"Negated" "Allow entities that match criteria"
				"condition" "14"
			}
		}

		LookAtChat
		{
			NoFixup 1
			training_annotation
            {
              "targetname"   "chat_hint1"
              "display_text" "Look at in-game chat. Messages incoming."
              "lifetime"     "6"
              "origin" "31 1786 4"
            }

			training_annotation
            {
              "targetname"   "chat_hint2"
              "display_text" "Look at in-game chat. Messages incoming."
              "lifetime"     "6"
              "origin" "-87 -4214 12"
            }
		}

		Wave1Stuff
		{
			NoFixup 1
			training_annotation
            {
              "targetname"   "heavy_hint_start"
              "display_text" "stupid tiny man"
              "lifetime"     "6"
              "origin" "-14 1774 150"
            }

			prop_dynamic
			{
				"targetname" "heavy_head"
				"DisableBoneFollowers" "1"
				"origin" "-14 1774 -380"
				"angles" "0 -90 0"
				"model" "models\player\heavy.mdl"
				"modelscale" "4"
			}	

			prop_dynamic
			{
				"targetname" "heavy_head2"
				"DisableBoneFollowers" "1"
				"origin" "-14 1774 -1310"
				"angles" "0 -90 0"
				"model" "models\player\heavy.mdl"
				"parentname" "heavy_rotate1"
				"StartDisabled" "1"
				"modelscale" "16"
			}

			prop_dynamic
			{
				"targetname" "heavy_head3"
				"DisableBoneFollowers" "1"
				"origin" "-14 1774 -1310"
				"angles" "0 -90 0"
				"model" "models\player\heavy.mdl"
				"parentname" "heavy_rotate2"
				"StartDisabled" "1"
				"modelscale" "16"
			}

			prop_dynamic
			{
				"targetname" "heavy_head4"
				"DisableBoneFollowers" "1"
				"origin" "-14 1774 -1000"
				"angles" "0 0 0"
				"model" "models\player\heavy.mdl"
				"StartDisabled" "1"
				"modelscale" "16"
			}

			func_rotating
            {
                "targetname" "heavy_rotate1"
                "origin" "-14 1774 -690"
                "mins" "-8 -8 -8"
                "maxs" "8 8 8"
                "fanfriction" "12"
                "maxspeed" "80"
                "rendermode" "10"
                "spawnflags" "64"
            }

			func_rotating
            {
                "targetname" "heavy_rotate2"
                "origin" "239 1756 -60"
                "mins" "-8 -8 -8"
                "maxs" "8 8 8"
                "fanfriction" "12"
                "maxspeed" "80"
                "rendermode" "10"
                "spawnflags" "72"
            }

			logic_relay
			{
				"targetname" "rotate1"

				"OnTrigger" "heavy_rotate1,Start,,0,-1"
				"OnTrigger" "heavy_rotate1,Stop,,1,-1"
			}

			logic_relay
			{
				"targetname" "rotate2"

				"OnTrigger" "heavy_rotate1,Reverse,,0,-1"
				"OnTrigger" "heavy_rotate1,Start,,0.1,-1"
				"OnTrigger" "heavy_rotate1,Stop,,1.1,-1"
			}

			logic_relay
			{
				"targetname" "rotate3"

				"OnTrigger" "heavy_rotate1,Reverse,,0,-1"
				"OnTrigger" "heavy_rotate1,Start,,0.1,-1"
				"OnTrigger" "heavy_rotate1,Stop,,1.1,-1"
			}

			logic_relay
			{
				"targetname" "rotate4"

				"OnTrigger" "heavy_rotate1,Reverse,,0,-1"
				"OnTrigger" "heavy_rotate1,Start,,0.1,-1"
				"OnTrigger" "heavy_rotate1,Stop,,1.1,-1"
			}

			logic_relay
			{
				"targetname" "sequence_start"

				"OnTrigger" "w1_start_sound,PlaySound,,2,-1"
				"OnTrigger" "heavy_hint_start,Show,,0,-1"
				"OnTrigger" "heavy_head,Disable,,10.4,-1"
				"OnTrigger" "heavy_head2,Enable,,10.4,-1"
				"OnTrigger" "rotate3,Trigger,,11.4,-1"
				"OnTrigger" "rotate4,Trigger,,16.4,-1"
				"OnTrigger" "rotate1,Trigger,,27,-1"
				"OnTrigger" "heavy_head2,Disable,,31.9,-1"
				"OnTrigger" "heavy_head4,Enable,,31.9,-1"
				"OnTrigger" "heavy_head4,SetAnimation,swim_PRIMARY,32,-1"
				"OnTrigger" "explosion,Start,,33.8,-1"
				"OnTrigger" "heavy_head2,Enable,,35,-1"
				"OnTrigger" "heavy_head4,Disable,,35,-1"
				"OnTrigger" "rotate2,Trigger,,38,-1"
				"OnTrigger" "heavy_head2,Disable,,40,-1"
				"OnTrigger" "heavy_head3,Enable,,40,-1"
				"OnTrigger" "heavy_rotate2,Start,,40.1,-1"
				"OnTrigger" "heavy_head3,Disable,,47,-1"
			}

			info_particle_system
            {
                "effect_name" "fireSmokeExplosion"
                "targetname" "explosion"
                "origin" "-14 1774 1"
				"flag_as_weather" "0"
                "start_active" "0"
            }
		}	

		Wave1Sound
		{
			NoFixup 1
			ambient_generic
            {
                "targetname" "w1_start_sound"
                "message" "fatty_wave1soundmain.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w1_start_sound"
                "message" "fatty_wave1soundmain.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }
		}

		TankSpinner
		{
			NoFixup 1
			func_rotating
			{
				"targetname" "spin_source"
				"origin" "446 2495 60" //Can be anywhere. Might be useful to put on Tank's first node!
				"mins" "-8 -8 -8"
				"maxs" "8 8 8"
				"fanfriction" "12"
				"maxspeed" "100" //Spin speed.
				"rendermode" "10"
				"spawnflags" "65" //Flags. This wil make the tank rotate right/left. 66 will reverse direction.
			}
		}	

		TankSpinner2
		{
			NoFixup 1
			func_rotating
			{
				"targetname" "spin_source2"
				"origin" "446 2495 60" //Can be anywhere. Might be useful to put on Tank's first node!
				"mins" "-8 -8 -8"
				"maxs" "8 8 8"
				"fanfriction" "12"
				"maxspeed" "200" //Spin speed.
				"rendermode" "10"
				"spawnflags" "65" //Flags. This wil make the tank rotate right/left. 66 will reverse direction.
			}
		}

		TankSpinner3
		{
			NoFixup 1
			func_rotating
			{
				"targetname" "spin_source3"
				"origin" "446 2495 60" //Can be anywhere. Might be useful to put on Tank's first node!
				"mins" "-8 -8 -8"
				"maxs" "8 8 8"
				"fanfriction" "12"
				"maxspeed" "500" //Spin speed.
				"rendermode" "10"
				"spawnflags" "65" //Flags. This wil make the tank rotate right/left. 66 will reverse direction.
			}
		}
		//Spawn this on the tank itself:
		ParentingSpin
		{
			logic_relay
			{
				"targetname" "spin_that_tank"
				"OnSpawn" "!parent,$AddModule,fakeparent,0.01,-1" //Fake-parent module.
				"OnSpawn" "!parent,AddOutput,$rotationonly 1,0.05,-1" //Only allow it to rotate, not move, with the parent.
				"OnSpawn" "!parent,$SetFakeParent,spin_source,0.1,-1" //Set the parent to the func_rotating. It should NOT move to its spot, but inherits its rotation!
			}
		}

		ParentingSpin2
		{
			logic_relay
			{
				"targetname" "spin_that_tank"
				"OnSpawn" "!parent,$AddModule,fakeparent,0.01,-1" //Fake-parent module.
				"OnSpawn" "!parent,AddOutput,$rotationonly 1,0.05,-1" //Only allow it to rotate, not move, with the parent.
				"OnSpawn" "!parent,$SetFakeParent,spin_source2,0.1,-1" //Set the parent to the func_rotating. It should NOT move to its spot, but inherits its rotation!
			}
		}

		ParentingSpin3
		{
			logic_relay
			{
				"targetname" "spin_that_tank"
				"OnSpawn" "!parent,$AddModule,fakeparent,0.01,-1" //Fake-parent module.
				"OnSpawn" "!parent,AddOutput,$rotationonly 1,0.05,-1" //Only allow it to rotate, not move, with the parent.
				"OnSpawn" "!parent,$SetFakeParent,spin_source3,0.1,-1" //Set the parent to the func_rotating. It should NOT move to its spot, but inherits its rotation!
			}
		}

		Fast_Explosive_Tank //very fast tank that explodes after 2s, functions like a decoy tank in a way
		{
			NoFixup 1
			KeepAlive 1
			trigger_hurt
			{
				"targetname" "damage_boom"
				"damage" "10000"
				"damagetype" "64"
				"origin" "0 0 0" 
				"mins" "-700 -700 -700"
				"maxs" "700 700 700"
				"spawnflags" "1"
				"startdisabled" "1"
			}

			info_particle_system
            {
                "effect_name" "fireSmokeExplosion"
                "targetname" "tank_boom"
                "origin" "0 0 0"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			logic_relay
			{
				"targetname" "tank_death_execute"

				"OnTrigger" "tankboss_boom,RemoveHealth,1000000,0,-1"
				"OnTrigger" "tank_boom,Start,,0,-1"
				"OnTrigger" "damage_boom,Enable,,0,-1"
				"OnTrigger" "damage_boom,Disable,,0.2,-1"
			}
		}

		StickyTank
		{
			OnParentKilledOutput // Clean up stickies
			{
				Target tf_projectile_pipe
				Action Kill
				Delay 0.1
			}
			logic_relay
			{
				"targetname" "stickytank_shooter_relay"
				
				"OnTrigger"  "stickytank_mimic,$StartFiring,,0,-1"
				"OnTrigger"  "stickytank_mimic,$StopFiring,,1,-1"
				
				"OnTrigger"  "stickytank_mimic_crit,FireOnce,,1.5,-1"
				"OnTrigger"  "stickytank_mimic_crit,FireMultiple,2,2,-1"
				"OnTrigger"  "stickytank_mimic_crit,FireMultiple,3,2.5,-1"
				"OnTrigger"  "stickytank_mimic_crit,FireMultiple,6,3,-1"
				
				"OnTrigger"  "stickytank_mimic,DetonateStickies,,7,-1"
				"OnTrigger"  "stickytank_mimic_crit,DetonateStickies,,7,-1"
			}
			logic_timer
			{
				"targetname"       "stickytank_timer"
				"spawnflags"       "0"
				"UpperRandomBound" "10"
				"LowerRandomBound" "7"
				"UseRandomTime"    "1"

				"OnTimer" "stickytank_shooter_relay,Trigger,,0,-1"
			}
			prop_dynamic
			{
				"targetname"    "stickytank_model"
				"model"         "models/props_frontline/tank_turret.mdl"
				"skin"          "2"
				"solid"         "0"
				"spawnflags"    "0"
				"origin"        "-16 -66 108"
				"angles"        "-56.5 0 -90"
			}
			prop_dynamic
			{
				"targetname"    "stickytank_model"
				"model"         "models/props_frontline/tank_turret.mdl"
				"skin"          "2"
				"solid"         "0"
				"spawnflags"    "0"
				"origin"        "-12 66 108"
				"angles"        "-58.5 0 90"
			}
			
			tf_point_weapon_mimic
			{
				"targetname"	"stickytank_mimic"
				"WeaponType"	"3"
				"ModelScale"	"1"
				"SpeedMax"		"525"
				"SpeedMin"		"525"
				"Crits"			"0"
				"Damage"		"0"
				"SpreadAngle"	"25"
				"SplashRadius"	"125"
				"FireSound"		"weapons/stickybomblauncher_shoot.wav"
				"modeloverride" "models\weapons\w_models\w_stickybomb2.mdl"
				"origin"		"54 -56 216"
				"angles"		"-58.5 359 180"
				"$firetime" 	"0.1"

				"$OnFire" "stickytank_shoot_sound*,PlaySound,,0,-1"
			}
			tf_point_weapon_mimic
			{
				"targetname"   "stickytank_mimic_crit"
				"WeaponType"   "3"
				"ModelScale"   "1"
				"SpeedMax"     "525"
				"SpeedMin"     "525"
				"Crits"        "1"
				"Damage"       "0"
				"SpreadAngle"  "25"
				"SplashRadius" "125"
				"FireSound"    "weapons/stickybomblauncher_shoot_crit.wav"
				"modeloverride" "models\weapons\w_models\w_stickybomb2.mdl"
				"origin"       "54 -56 216"
				"angles"       "-58.5 359 180"

				"$OnFire" "stickytank_shoot_sound_crit*,PlaySound,,0,-1"
			}
			
			tf_point_weapon_mimic
			{
				"targetname"   "stickytank_mimic"
				"WeaponType"   "3"
				"ModelScale"   "1"
				"SpeedMax"     "525"
				"SpeedMin"     "525"
				"Crits"        "0"
				"Damage"       "0"
				"SpreadAngle"  "25"
				"SplashRadius" "125"
				"FireSound"    "weapons/stickybomblauncher_shoot.wav"
				"modeloverride" "models\weapons\w_models\w_stickybomb2.mdl"
				"origin"       "54 56 214"
				"angles"       "-56.5 359 0"

				"$OnFire" "stickytank_shoot_sound*,PlaySound,,0,-1"
			}

			tf_point_weapon_mimic
			{
				"targetname"   "stickytank_mimic_crit"
				"WeaponType"   "3"
				"ModelScale"   "1"
				"SpeedMax"     "525"
				"SpeedMin"     "525"
				"Crits"        "1"
				"Damage"       "0"
				"SpreadAngle"  "25"
				"SplashRadius" "125"
				"FireSound"    "weapons/stickybomblauncher_shoot_crit.wav"
				"modeloverride" "models\weapons\w_models\w_stickybomb2.mdl"
				"origin"       "54 56 214"
				"angles"       "-56.5 359 0"

				"$OnFire" "stickytank_shoot_sound_crit*,PlaySound,,0,-1"
			}

			ambient_generic
			{
				"targetname" "stickytank_shoot_sound"            
				"health"     "10"
				"message"    "weapons\sticky_jumper_shoot.wav"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "5000"
				"spawnflags" "48"
				"origin"     "64 0 224"
			}
			ambient_generic
			{
				"targetname" "stickytank_shoot_sound_crit"            
				"health"     "10"
				"message"    "weapons\sticky_jumper_shoot.wav"
				"pitch"      "100"
				"pitchstart" "100"
				"radius"     "5000"
				"spawnflags" "48"
				"origin"     "64 0 224"
			}
		}

		FinalTank
		{
			NoFixup 1

			ambient_generic
            {
                "targetname" "w2_rap_sound"
                "message" "fatty_epic_rap_battle.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w2_rap_sound"
                "message" "fatty_epic_rap_battle.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "heavy_start"

				"OnTrigger" "heavy1,Enable,,0,-1"
				"OnTrigger" "w2_rap_sound,PlaySound,,2,-1"
				"OnTrigger" "wave2_teleporter,Enable,,0,-1"
				"OnTrigger" "wave2_teleporter,Disable,,0.25,-1"
				"OnTrigger" "heavy1,SetAnimation,heavy_taunt_replay,2,-1"
				"OnTrigger" "heavy_hint,Show,,0,-1"	
				"OnTrigger" "heavy1,Disable,,5.160,-1"
				"OnTrigger" "heavy1_turn1,Enable,,5.160,-1"
				"OnTrigger" "heavy1,Enable,,5.830,-1"
				"OnTrigger" "heavy1_turn1,Disable,,5.830,-1"
				"OnTrigger" "heavy1,Disable,,6.918,-1"
				"OnTrigger" "heavy1_turn2,Enable,,6.918,-1"
				"OnTrigger" "heavy1_turn2,Disable,,9.05,-1"
				"OnTrigger" "heavy1,Enable,,9.05,-1"
				"OnTrigger" "heavy2,Enable,,9.905,-1"
				"OnTrigger" "heavy1,Disable,,9.905,-1"
				"OnTrigger" "heavy2,Disable,,26.252,-1"
				"OnTrigger" "heavy3,Enable,,26.252,-1"
				"OnTrigger" "heavy3,Disable,,31.34,-1"
				"OnTrigger" "heavy_boom,Start,,31.34,-1"
			}

			logic_relay
			{
				"targetname" "rapping_tank_start"

				"OnTrigger" "popscript,$ScoutLogicGate,,0,-1"
				"OnTrigger" "scout_no_speed,Enable,,0,-1"	
			}

			logic_relay
			{
				"targetname" "rap_tank_die"

				"OnTrigger" "epic_rap_tank,RemoveHealth,1000000,0,-1"
				"OnTrigger" "final_tank_explosion,Enable,,0,-1"
				"OnTrigger" "final_tank_explosion,Disable,,0.2,-1"
			}

			trigger_hurt
			{
				"targetname" "final_tank_explosion"
				"damage" "60000"
				"damagetype" "64"
				"origin" "0 0 0" 
				"mins" "-8000 -8000 -8000"
				"maxs" "8000 8000 8000"
				"spawnflags" "1"
				"startdisabled" "1"
			}

			prop_dynamic
			{
				"targetname" "heavy1"
				"DisableBoneFollowers" "1"
				"origin" "241 1760 -60"
				"angles" "0 0 0"
				"model" "models\player\heavy.mdl"
				"StartDisabled" "1"
			}

			prop_dynamic
			{
				"targetname" "heavy1_turn1"
				"DisableBoneFollowers" "1"
				"origin" "241 1760 -60"
				"angles" "0 32.82 90" 
				"model" "models\player\heavy.mdl"
				"StartDisabled" "1"
				"DefaultAnim" "gesture_MELEE_go"
			}

			prop_dynamic
			{
				"targetname" "heavy1_turn2"
				"DisableBoneFollowers" "1"
				"origin" "241 1760 -60"
				"angles" "0 159.14 90"  
				"model" "models\player\heavy.mdl"
				"StartDisabled" "1"
				"DefaultAnim" "gesture_MELEE_go"
			}

			prop_dynamic
			{
				"targetname" "heavy2"
				"DisableBoneFollowers" "1"
				"origin" "484 1710 -90"
				"angles" "0 -90 0"
				"model" "models\player\heavy.mdl"
				"StartDisabled" "1"
				"DefaultAnim" "competitive_loserstate_idle"
			}

			prop_dynamic
			{
				"targetname" "heavy3"
				"DisableBoneFollowers" "1"
				"origin" "484 1710 -90"
				"angles" "0 90 0"
				"model" "models\player\heavy.mdl"
				"StartDisabled" "1"
				"DefaultAnim" "competitive_loserstate_idle"
			}

			info_particle_system
            {
                "effect_name" "fireSmokeExplosion"
                "targetname" "heavy_boom"
                "origin" "384 1710 -90"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			training_annotation
            {
              "targetname"   "heavy_hint"
              "display_text" "Look here!!!"
              "lifetime"     "3"
              "origin" "241 1760 -50"
            }

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave2_teleporter"
				"target" "wave2_target"
				"spawnflags" "1"
				"StartDisabled" "1"
				//"filtername" "anti_scout_filter"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			info_target
			{
				"targetname" "wave2_target"
				"origin" "-135 1743 4" 
			}

			filter_tf_class
			{
				"targetname" "anti_scout_filter"
				"Negated" "1"
				"tfclass" "1"
			}

			trigger_multiple
            {
                "targetname"    "scout_no_speed"
                "origin"        "481, 1450, -45"
                "mins"          "-10 -10 -10"
                "maxs"          "10 10 10"
                "StartDisabled" "1"
                "spawnflags"    "1"
				"filtername" "scout_filter"
                "OnStartTouch" "!activator,$AddPlayerAttribute,move speed bonus|0.001,0,-1"
				"OnStartTouch" "!activator,$AddPlayerAttribute,no_jump|1,0,-1"
            }

			filter_tf_class
			{
				"targetname" "scout_filter"
				"Negated" "Allow entities that match criteria"
				"tfclass" "1"
			}
		}

		Wave3_Intro
		{
			NoFixup 1
			KeepAlive 1

			env_shake //StartShake StopShake
            {
                "targetname" "quake_w3_intro"
                "spawnflags" "5" 
                "radius" "5000" 
                "frequency" "10"
                "duration" "99"
                "amplitude" "8" 
                "origin" "0 0 0" 
            }

			game_text
			{
				"targetname" "title_text"
				"message" "PUNCH THE MIGHTY"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.1"
				"fadeout" "0.1"
				"holdtime" "6"
				"spawnflags" "1"
			}

			ambient_generic
            {
                "targetname" "intro_sound1"
                "message" "vo\heavy_award08.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "intro_sound2"
                "message" "vo\heavy_laughterbig02.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "intro_sequence"

				"OnTrigger" "title_text,Display,,0,-1"
				"OnTrigger" "intro_sound1,PlaySound,,0,-1"
				"OnTrigger" "intro_sound2,PlaySound,,4,-1"
				"OnTrigger" "quake_w3_intro,StartShake,,0,-1"
				"OnTrigger" "quake_w3_intro,StopShake,,6,-1"
			}

			prop_dynamic
			{
				"targetname" "heavy_intro"
				"DisableBoneFollowers" "1"
				"origin" "0 0 0"
				"angles" "0 0 0"
				"model" "models\player\heavy.mdl"
				"StartDisabled" "1"
				"DefaultAnim" "dieviolent"
				"playbackrate" "0.5"
			}

			game_text
			{
				"targetname" "intro_text1"
				"message" "THE HEAVY ORDEAL"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.1"
				"fadeout" "0.1"
				"holdtime" "4"
				"spawnflags" "1"
			}

			ambient_generic
            {
                "targetname" "intro_scream"
                "message" "vo\heavy_paincrticialdeath01.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "intro_title_noise"
                "message" "ui/vote_started.wav"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "intro_initiate"

				"OnTrigger" "intro_scream,PlaySound,,0,-1"
				"OnTrigger" "heavy_intro,Enable,,0,-1"
				"OnTrigger" "heavy_intro,Disable,,2,-1"
				"OnTrigger" "intro_title_noise,PlaySound,,4,-1"
				"OnTrigger" "intro_text1,Display,,4,-1" //play the music 8s in
				"OnTrigger" "w3_music_master,Trigger,,8,-1"
				"OnTrigger" "wave3_phase2_song,Volume,0.1,0,-1"
				"OnTrigger" "wave3_phase2_song2,Volume,0.1,0,-1"
				"OnTrigger" "tankdoor_2_relay,Trigger,,8,-1"
			}
		}

		Wave3_Spawn_Logic
		{
			NoFixup 1

			logic_relay
			{
				"targetname" "w3_start"

				"OnTrigger" "tankdoor_2_relay,Trigger,,0,-1"
				"OnTrigger" "wave_start_relay,Trigger,,0,-1"
			}

			logic_relay
			{
				"targetname" "wave3_spawn_change"

				"OnTrigger" "red_spawn_primary,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave3_player,Enable,,0,-1"
				"OnTrigger" "wall1,Enable,,0,-1"
				"OnTrigger" "wall2,Enable,,0,-1"
				"OnTrigger" "wall3,Enable,,0,-1"
				"OnTrigger" "wall4,Enable,,0,-1"
				"OnTrigger" "wall5,Enable,,0,-1"
				"OnTrigger" "wall6,Enable,,0,-1"
				"OnTrigger" "wall7,Enable,,0,-1"
				"OnTrigger" "wall8,Enable,,0,-1"
				"OnTrigger" "wall1_ff,$TeleportToEntity,w3_forcefield1_target,0,-1"
				"OnTrigger" "wall2_ff,$TeleportToEntity,w3_forcefield2_target,0,-1"
				"OnTrigger" "wall3_ff,$TeleportToEntity,w3_forcefield3_target,0,-1"
				"OnTrigger" "wall4_ff,$TeleportToEntity,w3_forcefield4_target,0,-1"
				"OnTrigger" "w3_teleportation,Enable,,0.1,-1"
				"OnTrigger" "w3_teleportation,Disable,,0.3,-1"
				"OnTrigger" "obj_dispenser,RemoveHealth,10000,0,-1"
                "OnTrigger" "obj_sentrygun,RemoveHealth,10000,0,-1"
                "OnTrigger" "obj_teleporter,RemoveHealth,10000,0,-1"
			}

			logic_relay
			{
				"targetname" "wave3_spawn_change_boss"

				"OnTrigger" "red_spawn_primary,Enable,,0,-1"
				"OnTrigger" "wall1,Disable,,0,-1"
				"OnTrigger" "wall2,Disable,,0,-1"
				"OnTrigger" "wall3,Disable,,0,-1"
				"OnTrigger" "wall4,Disable,,0,-1"
				"OnTrigger" "wall5,Disable,,0,-1"
				"OnTrigger" "wall6,Disable,,0,-1"
				"OnTrigger" "wall7,Disable,,0,-1"
				"OnTrigger" "wall8,Disable,,0,-1"
				"OnTrigger" "wall1_ff,Disable,,0,-1"
				"OnTrigger" "wall2_ff,Disable,,0,-1"
				"OnTrigger" "wall3_ff,Disable,,0,-1"
				"OnTrigger" "wall4_ff,Disable,,0,-1"
				"OnTrigger" "barrier_drop,Show,,0,-1"
			}

			prop_dynamic
			{
				"targetname" "wall1"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256X288.mdl"
				"origin" "132 -931 257"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall1_ff"
				"TeamNum" "3"
				"origin" "-3496 -683 442"
				"renderamt" "255"
              	"rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "1"
				"mins" "-100 -1 -30"
				"maxs" "100 1 100"
			}

			func_forcefield
			{
				"targetname" "wall1_ff"
				"TeamNum" "2"
				"origin" "-3496 -683 442"
				"renderamt" "255"
              	"rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "1"
				"mins" "-100 -1 -30"
				"maxs" "100 1 100"
			}

			info_target
			{
				"targetname" "w3_forcefield1_target"
				"origin" "132 -931 257"
			}

			prop_dynamic
			{
				"targetname" "wall2"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256X288.mdl"
				"origin" "598 -720 260"
				"angles" "0 90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall2_ff"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -100 -30"
				"maxs" "1 100 100"
			}

			func_forcefield
			{
				"targetname" "wall2_ff"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -100 -30"
				"maxs" "1 100 100"
			}

			info_target
			{
				"targetname" "w3_forcefield2_target"
				"origin" "598 -720 260"
			}

			prop_dynamic
			{
				"targetname" "wall3"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "676 -437 60"
				"angles" "0 0 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall3_ff"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
        	    "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-100 -1 -30"
				"maxs" "800 1 3000"
			}

			func_forcefield
			{
				"targetname" "wall3_ff"
				"TeamNum" "2"
				"renderamt" "255"
                "rendercolor" "255 255 255"
        	    "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-100 -1 -30"
				"maxs" "800 1 3000"
			}

			info_target
			{
				"targetname" "w3_forcefield3_target"
				"origin" "676 -437 60"
			}


			prop_dynamic
			{
				"targetname" "wall4"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "1210 -437 196"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall5"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_112x320.mdl"
				"origin" "647 -437 350"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall6"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256x288.mdl"
				"origin" "-280 -420 124"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall7"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_512x320.mdl"
				"origin" "-600 -421 72"
				"angles" "0 0 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall4_ff"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
              	"renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-500-1 -30"
				"maxs" "500 1 3000"
			}

			func_forcefield
			{
				"targetname" "wall4_ff"
				"TeamNum" "2"
				"renderamt" "255"
                "rendercolor" "255 255 255"
              	"renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-500-1 -30"
				"maxs" "500 1 3000"
			}

			info_target
			{
				"targetname" "w3_forcefield4_target"
				"origin" "-676 -421 72"
			}

			prop_dynamic
			{
				"targetname" "wall8"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_176x152.mdl"
				"origin" "-908 -420 175"
				"angles" "0 0 0"
				"solid" "6"
			}

			trigger_multiple
            {
                "targetname"    "w3_teleportation"
                "origin"        "0 0 0"
                "mins"          "-9999 -9999 -9999"
                "maxs"          "9999 9999 9999"
                "StartDisabled" "1"
                "spawnflags"    "1"
                "OnStartTouch" "!activator,$TeleportToEntity,spawnbot_wave3_player,0,-1"
            }

			training_annotation
            {
              "targetname"   "barrier_drop"
              "display_text" "The barriers have been dropped."
              "lifetime"     "4"
              "origin" "-645 -428 231"
            }

			training_annotation
            {
              "targetname"   "barrier_drop"
              "display_text" "The barriers have been dropped."
              "lifetime"     "4"
              "origin" "883 -444 297"
            }
		}

		Wave3_Shit
		{
			NoFixup 1

			ambient_generic
            {
                "targetname" "wave3_phase1_song"
                "message" "#fatty_wave3_music1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "wave3_phase1_song"
                "message" "#fatty_wave3_music1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "wave3_phase1_song2"
                "message" "#fatty_wave3_music1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "wave3_phase1_song2"
                "message" "#fatty_wave3_music1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "wave3_phase2_song"
                "message" "#fatty_wave3_music2.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "wave3_phase2_song"
                "message" "#fatty_wave3_music2.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "wave3_phase2_song2"
                "message" "#fatty_wave3_music2.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "wave3_phase2_song2"
                "message" "#fatty_wave3_music2.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "w3_music_master"

				"OnTrigger" "wave3_phase1_song,PlaySound,,0,-1"
				"OnTrigger" "wave3_phase2_song,PlaySound,,0,-1"
				"OnTrigger" "wave3_phase2_song,Volume,0.1,0.1,-1"
				"OnTrigger" "wave3_phase2_song2,Volume,0.1,0.1,-1"
				"OnTrigger" "wave3_phase1_song2,PlaySound,,224,-1"
				"OnTrigger" "w3_second_music_switcher,Enable,,218,-1"
				"OnTrigger" "w3_first_music_switcher,Disable,,218,-1"
				"OnTrigger" "wave3_phase1_song2,PlaySound,,224,-1"
				"OnTrigger" "wave3_phase2_song2,PlaySound,,218,-1"
			}

			logic_relay
			{
				"targetname" "w3_second_music_switcher"
				"StartDisabled" "1"

				"OnTrigger" "wave3_phase2_song2,Volume,10,3.5,-1"
				"OnTrigger" "wave3_phase1_song2,FadeOut,3,0.5,-1"
			}

			logic_relay
			{
				"targetname" "w3_first_music_switcher"

				"OnTrigger" "wave3_phase2_song,Volume,10,3.5,-1"
				"OnTrigger" "wave3_phase1_song,FadeOut,3,0.5,-1"
			}

			logic_relay
			{
				"targetname" "boss_phase_transition"

				"OnTrigger" "w3_first_music_switcher,Trigger,,0,-1"
				"OnTrigger" "w3_second_music_switcher,Trigger,,0,-1"
				"OnTrigger" "boss_appear_state_timer,Enable,,3,-1"
				"OnTrigger" "boss_appear_state_timer,FireTimer,,3,-1"
			}

			logic_timer
			{
				"targetname" "boss_appear_state_timer"

				"RefireTime" "0.1"
				"StartDisabled" "1"

				"OnTimer" "wave3_phase1_song,Volume,0,0,-1"
				"OnTimer" "wave3_phase1_song2,Volume,0,0,-1"
			}


			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave3_fluke_teleporter"
				"target" "fluke_target"
				"filtername" "fluke_filter"
				"spawnflags" "1"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "fluke_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "fluke"
			}

			logic_relay
			{
				"targetname" "fluke_spawner_disable1"

				"OnTrigger" "spawnbot_wave3_fluke1,Disable,,0,-1"
			}

			logic_relay
			{
				"targetname" "fluke_spawner_disable2"

				"OnTrigger" "spawnbot_wave3_fluke2,Disable,,0,-1"
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave3_boss_teleporter1_summon"
				"target" "summon_target1"
				"filtername" "summon_filter"
				"spawnflags" "1"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave3_boss_teleporter2_boss"
				"target" "boss_target2"
				"filtername" "boss_filter2"
				"spawnflags" "1"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave3_boss_teleporter2_summon"
				"target" "summon_target2"
				"filtername" "summon_filter"
				"spawnflags" "1"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave3_boss_teleporter3_boss"
				"target" "summon_target3"
				"filtername" "summon_filter"
				"spawnflags" "1"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave3_boss_teleporter3_boss"
				"target" "boss_target3"
				"filtername" "boss_filter3"
				"spawnflags" "1"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave3_timer_teleporter"
				"target" "timer_target"
				"filtername" "timer_filter"
				"spawnflags" "1"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			info_target
			{
				"targetname" "timer_target"
				"origin" "7356 2482 606"
			}

			logic_relay
			{
				"targetname" "timer_expire_wave3"
				"OnTrigger" "boss_deploy_relay,Trigger,,1,-1"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "timer_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "timer"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "boss_filter2"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "wave3_boss2"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "boss_filter3"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "wave3_boss3"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "summon_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "summon"
			}

			logic_relay
			{
				"targetname" "spawner1_disabler"

				"OnTrigger" "spawnbot_wave3_boss_summons1,Disable,,0,-1"
				"OnTrigger" "boss_target2,Kill,,2,-1"
				"OnTrigger" "wave3_boss_teleporter1_summon,Disable,,1,-1"
				"OnTrigger" "wave3_boss_teleporter2_boss,Disable,,3,-1"
			}

			logic_relay
			{
				"targetname" "spawner2_disabler"

				"OnTrigger" "spawnbot_wave3_boss_summons2,Disable,,0,-1"
				"OnTrigger" "boss_target3,Kill,,1,-1"
				"OnTrigger" "wave3_boss_teleporter2_summon,Disable,,1,-1"
				"OnTrigger" "wave3_boss_teleporter3_boss,Disable,,1,-1"
			}

			logic_relay
			{
				"targetname" "spawner3_disabler"

				"OnTrigger" "spawnbot_wave3_boss_summons3,Disable,,0,-1"
				"OnTrigger" "boss_target3,Kill,,1,-1"
			}

			env_shake //StartShake StopShake
            {
                "targetname" "quake_w3_boss"
                "spawnflags" "5" 
                "radius" "5000" 
                "frequency" "20"
                "duration" "99"
                "amplitude" "12" 
                "origin" "0 0 0" 
            }

			game_text
			{
				"targetname" "boss_text1"
				"message" "Amazing"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "1"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_text2"
				"message" "Fabulous"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "0.5"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_text3"
				"message" "Excellent"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "0.4"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_text4"
				"message" "Incredible"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "0.3"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_text5"
				"message" "Outstanding"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "0.25"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_text6"
				"message" "Perfect"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "0.2"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_text7"
				"message" "Spectacular"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "0.15"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_text8"
				"message" "Wondrous"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "0.1"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_text9"
				"message" "Wanted for human trafficking"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "0.1"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_text10"
				"message" "GREY PRINCE PUNCH"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "3"
				"spawnflags" "1"
			}

			ambient_generic
            {
                "targetname" "boss_sound1"
                "message" "vo/heavy_award03.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "boss_sound2"
                "message" "vo/heavy_award09.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "boss_spawn_logic"

				"OnTrigger" "boss_text1,Display,,0.5,-1"
				"OnTrigger" "quake_w3_boss,StartShake,,0.5,-1"
				"OnTrigger" "boss_text2,Display,,1.5,-1"
				"OnTrigger" "boss_text3,Display,,2,-1"
				"OnTrigger" "boss_text4,Display,,2.4,-1"
				"OnTrigger" "boss_text5,Display,,2.7,-1"
				"OnTrigger" "boss_text6,Display,,2.95,-1"
				"OnTrigger" "boss_text7,Display,,3.15,-1"
				"OnTrigger" "boss_text8,Display,,3.3,-1"
				"OnTrigger" "boss_text9,Display,,3.4,-1"
				"OnTrigger" "boss_text10,Display,,3.5,-1"
				"OnTrigger" "quake_w3_boss,StopShake,,6.5,-1"
				"OnTrigger" "wave3_spawn_change_boss,Trigger,,7,-1"
				"OnTrigger" "boss_phase_transition,Trigger,,0,-1"
			}
		}

		Wave3_Fluke_Target
		{
			NoFixup 1
			info_target
			{
				"targetname" "fluke_target"
				"origin" "0 0 50" 
			}

			trigger_bot_tag 
            {        
                "targetname" "bot_teleported_tag_remove"
                "mins" "-100 -100 -100"
                "maxs" "100 100 100"
                "origin" "0 0 15"
                "tags" "fluke"
                "add" "0" 
                "spawnflags"    "1"
				"parentname" "fluke_target"
            }
		}

		Wave3_Boss_Target1
		{
			NoFixup 1
			KeepAlive 1
			info_target
			{
				"targetname" "boss_target2"
				"origin" "0 0 0" 
			}

			info_target
			{
				"targetname" "summon_target1"
				"origin" "0 0 0" 
			}

			trigger_bot_tag 
            {        
                "targetname" "bot_teleported_tag_remove"
                "mins" "-100 -100 -100"
                "maxs" "100 100 100"
                "origin" "0 0 15"
                "tags" "summon"
                "add" "0" 
                "spawnflags"    "1"
				"parentname" "boss_target2"
            }
		}

		Wave3_Boss_Target2
		{
			NoFixup 1
			KeepAlive 1
			info_target
			{
				"targetname" "summon_target2"
				"origin" "0 0 50" 
			}

			info_target
			{
				"targetname" "boss_target3"
				"origin" "0 0 0" 
				"parentname" "summon_target2"
			}

			trigger_bot_tag 
            {        
                "targetname" "bot_teleported_tag_remove"
                "mins" "-100 -100 -100"
                "maxs" "100 100 100"
                "origin" "0 0 15"
                "tags" "summon"
                "add" "0" 
                "spawnflags"    "1"
				"parentname" "boss_target3"
            }

			trigger_bot_tag 
            {        
                "targetname" "bot_teleported_tag_remove"
                "mins" "-100 -100 -100"
                "maxs" "100 100 100"
                "origin" "0 0 15"
                "tags" "wave3_boss2"
                "add" "0" 
                "spawnflags"    "1"
				"parentname" "boss_target3"
            }
		}

		Wave3_Boss_Target3
		{
			NoFixup 1
			KeepAlive 1
			info_target
			{
				"targetname" "summon_target3"
				"origin" "0 0 50" 
			}

			trigger_bot_tag 
            {        
                "targetname" "bot_teleported_tag_remove"
                "mins" "-100 -100 -100"
                "maxs" "100 100 100"
                "origin" "0 0 15"
                "tags" "summon"
                "add" "0" 
                "spawnflags"    "1"
				"parentname" "summon_target3"
            }

			trigger_bot_tag 
            {        
                "targetname" "bot_teleported_tag_remove"
                "mins" "-100 -100 -100"
                "maxs" "100 100 100"
                "origin" "0 0 15"
                "tags" "wave3_boss3"
                "add" "0" 
                "spawnflags"    "1"
				"parentname" "summon_target3"
            }
		}

		Wave4_Init
		{
			NoFixup 1
			trigger_multiple
            {
                "targetname"    "w4_teleportation"
                "origin"        "0 0 0"
                "mins"          "-9999 -9999 -9999"
                "maxs"          "9999 9999 9999"
                "StartDisabled" "1"
                "spawnflags"    "1"
                "OnStartTouch" "!activator,$TeleportToEntity,red_spawn_primary,0,-1"
            }

			training_annotation
            {
              "targetname"   "w4_doors_locked1"
              "display_text" "The doors are locked. They will open when the wave starts."
              "lifetime"     "10"
              "origin" "-492 -5023 140"
            }
			training_annotation
            {
              "targetname"   "w4_doors_locked2"
              "display_text" "The doors are locked. They will open when the wave starts."
              "lifetime"     "10"
              "origin" "315 -5038 140"
            }

			logic_relay
			{
				"targetname" "w4_block"

				"OnTrigger" "w4_teleportation,Enable,,0,-1"
				"OnTrigger" "w4_teleportation,Disable,,0.2,-1"
				"OnTrigger" "w4_doors_locked1,Show,,2,-1"
				"OnTrigger" "w4_doors_locked2,Show,,2,-1"
				"OnTrigger" "AutoInstance1-door_red_large_win_1,Lock,,0,-1"
				"OnTrigger" "AutoInstance2-door_red_large_win_1,Lock,,0,-1"
				"OnTrigger" "obj_dispenser,RemoveHealth,10000,0,-1"
                "OnTrigger" "obj_sentrygun,RemoveHealth,10000,0,-1"
                "OnTrigger" "obj_teleporter,RemoveHealth,10000,0,-1"
			}

			trigger_multiple
            {
                "targetname"    "w4_start_teleport"
                "origin"        "579 -4705 106"
                "mins"          "-2000 -1000 -10"
                "maxs"          "1 1 400"
                "spawnflags"    "1"
				"StartDisabled" "1"
                "OnStartTouch" "!activator,$TeleportToEntity,w4_start_teleport_target,0,-1"
            }

			info_target
			{
				"targetname" "w4_start_teleport_target"
				"origin" "-69 -5023 1300"
			}

			training_annotation
            {
              "targetname"   "w4_start_hint1"
              "display_text" "The front is locked by a forcefield."
              "lifetime"     "4"
              "origin" "-347 308 132"
            }

			training_annotation
            {
              "targetname"   "w4_start_hint2"
              "display_text" "Collect 2 keys to open it."
              "lifetime"     "4"
              "origin" "-347 308 132"
            }

			training_annotation
            {
              "targetname"   "w4_start_hint3"
              "display_text" "This is how a key looks like."
              "lifetime"     "4"
              "origin" "-82 -4254 190"
            }

			training_annotation
            {
              "targetname"   "w4_start_hint4"
              "display_text" "Good luck!"
              "lifetime"     "4"
              "origin" "-347 308 132"
            }

			prop_dynamic
			{
				"targetname" "key_intro"
				"model" "models/workshop/cases/invasion_case/invasion_key.mdl"
				"origin" "-82 -4254 148"
				"angles" "90 90 0"
				"solid" "0"
				"modelscale" "2"
				"StartDisabled" "1"
				"parentname" "key_rotator2"
			}

			func_rotating
            {
                "targetname" "key_rotator_intro"
                "origin" "-82 -4254 148"
                "mins" "-8 -8 -8"
                "maxs" "8 8 8"
                "fanfriction" "12"
                "maxspeed" "80"
                "rendermode" "10"
                "spawnflags" "65"
            }


			logic_relay
			{
				"targetname" "w4_start"

				"OnTrigger" "AutoInstance1-door_red_large_win_1,Unlock,,15,-1"
				"OnTrigger" "AutoInstance2-door_red_large_win_1,Unlock,,15,-1"
				"OnTrigger" "w4_music_stage_combat,Volume,0.1,0.1,-1"
				"OnTrigger" "w4_music_stage_calm,Volume,0.1,0.1,-1"
				//"OnTrigger" "w4_music_stage_boss_phase2,Volume,0.1,9.1,-1"
				"OnTrigger" "wave_start_relay,Trigger,,0,-1"
				"OnTrigger" "w4_stage_music_master,Trigger,,15,-1"
				"OnTrigger" "calm_state_timer,Enable,,15,-1"
				"OnTrigger" "w4_start_hint1,Show,,3,-1"
				"OnTrigger" "w4_start_hint2,Show,,7,-1"
				"OnTrigger" "w4_start_hint3,Show,,11,-1"
				"OnTrigger" "key_intro,Enable,,11,-1"
				"OnTrigger" "w4_start_hint4,Show,,15,-1"
				"OnTrigger" "key_intro,Disable,,17,-1"
				"OnTrigger" "key_rotator_intro,Enable,,15,-1"
				"OnTrigger" "wave4_start_ff,Disable,,15,-1"
				"OnTrigger" "calm_state_timer,FireTimer,,15,-1"
				"OnTrigger" "w4_start_teleport,Enable,,0,-1"
				"OnTrigger" "w4_start_teleport,Disable,,1,-1"
				"OnTrigger" "tankdoor_2_relay,Trigger,,15,-1"
			}
		}

		W4_CerebusStomp
		{
			NoFixup 1
			env_shake
            {
                "targetname" "stomp"
                "spawnflags" "0" 
                "radius" "500" 
                "frequency" "200"
                "duration" "0.5"
                "amplitude" "12" 
                "origin" "0 0 37.5"
            }

			ambient_generic
            {
                "targetname" "sound_laugh"
                "message" "vo\demoman_laughevil05.mp3"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "sound_laugh"
                "message" "vo\demoman_laughevil05.mp3"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "sound_stomp"
                "message" "ambient/explosions/explode_1.wav"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "targetname" "stomp_particle"
                "effect_name" "hammer_impact_button"
                "flag_as_weather" "0"
                "start_active" "0"
            }

			trigger_hurt
            {
                "targetname" "stomper_hurter"
                "damage" "160" 
                "damagetype" "32"
                "spawnflags" "1"
				"startdisabled" "1"
                "origin" "0 0 0"
                "mins" "-200 -200 -200"
                "maxs" "200 200 200"
            }

			logic_relay
			{
				"targetname" "stomp_relay"

				"OnTrigger" "sound_laugh,PlaySound,,0,-1"
				"OnTrigger" "sound_stomp,PlaySound,,1.5,-1"
				"OnTrigger" "stomper_hurter,Toggle,,1.5,-1"
				"OnTrigger" "stomper_hurter,Toggle,,1.7,-1"
				"OnTrigger" "stomp,StartShake,,1.5,-1"
				"OnTrigger" "stomp,StopShake,,2,-1"
				"OnTrigger" "stomp_particle,Start,,1.5,-1"
				"OnTrigger" "stomp_particle,Stop,,4,-1"
			}
		}

		W4_CerebusStomp_Secondary
		{
			NoFixup 1
			env_shake
            {
                "targetname" "stomp1"
                "spawnflags" "0" 
                "radius" "500" 
                "frequency" "200"
                "duration" "0.5"
                "amplitude" "12" 
                "origin" "0 0 37.5"
            }

			ambient_generic
            {
                "targetname" "sound_laugh1"
                "message" "vo\demoman_laughevil05.mp3"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "sound_laugh1"
                "message" "vo\demoman_laughevil05.mp3"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "sound_stomp1"
                "message" "ambient/explosions/explode_1.wav"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "targetname" "stomp_particle1"
                "effect_name" "hammer_impact_button"
                "flag_as_weather" "0"
                "start_active" "0"
            }

			trigger_hurt
            {
                "targetname" "stomper_hurter1"
                "damage" "160" 
                "damagetype" "32"
                "spawnflags" "1"
				"startdisabled" "1"
                "origin" "0 0 0"
                "mins" "-200 -200 -200"
                "maxs" "200 200 200"
            }

			logic_relay
			{
				"targetname" "stomp_relay1"

				"OnTrigger" "sound_laugh1,PlaySound,,0,-1"
				"OnTrigger" "sound_stomp1,PlaySound,,1.5,-1"
				"OnTrigger" "stomper_hurter1,Toggle,,1.5,-1"
				"OnTrigger" "stomper_hurter1,Toggle,,1.7,-1"
				"OnTrigger" "stomp1,StartShake,,1.5,-1"
				"OnTrigger" "stomp1,StopShake,,2,-1"
				"OnTrigger" "stomp_particle1,Start,,1.5,-1"
				"OnTrigger" "stomp_particle1,Stop,,4,-1"
			}
		}

		W4_Enrage
		{
			NoFixup 1
			logic_relay
			{
				"targetname" "cerebus_death"

				"OnTrigger" "cerebus_enrage,Enable,,0,-1"
				"OnTrigger" "cerebus_yell,PlaySound,,0,-1"
				"OnTrigger" "cerebus_enrage,Disable,,1,-1"
			}

			logic_relay
			{
				"targetname" "cerebus_death_master"

				"OnTrigger" "cerebus_death,Trigger,,1,-1"
			}

			trigger_multiple
            {
                "targetname"    "cerebus_enrage"
                "origin"        "0 0 0"
                "mins"          "-9999 -9999 -9999"
                "maxs"          "9999 9999 9999"
                "StartDisabled" "1"
                "spawnflags"    "1"
				"filtername" "cerebus_filter"

                "OnStartTouch" "!activator,$AddItemAttribute,fire rate penalty|0.14|0,1,-1"
            }

			filter_tf_bot_has_tag 
			{
				"targetname" "cerebus_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "cerebus"
			}
		}

		Wave4_Music_Master
		{
			NoFixup 1
			ambient_generic
            {
                "targetname" "w4_music_stage_calm"
                "message" "#fatty_w4_calm.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_calm"
                "message" "#fatty_w4_calm.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_calm2"
                "message" "#fatty_w4_calm.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_calm2"
                "message" "#fatty_w4_calm.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_calm3"
                "message" "#fatty_w4_calm.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_calm3"
                "message" "#fatty_w4_calm.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_calm4"
                "message" "#fatty_w4_calm.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_calm4"
                "message" "#fatty_w4_calm.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_combat"
                "message" "#fatty_w4_combat.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_combat"
                "message" "#fatty_w4_combat.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_combat2"
                "message" "#fatty_w4_combat.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_combat2"
                "message" "#fatty_w4_combat.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_combat3"
                "message" "#fatty_w4_combat.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_combat3"
                "message" "#fatty_w4_combat.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_combat4"
                "message" "#fatty_w4_combat.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_combat4"
                "message" "#fatty_w4_combat.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_miniboss"
                "message" "#fatty_w4_miniboss.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_miniboss"
                "message" "#fatty_w4_miniboss.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_miniboss2"
                "message" "#fatty_w4_miniboss.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_miniboss2"
                "message" "#fatty_w4_miniboss.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_intro"
                "message" "#fatty_w4_boss_intro.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_intro"
                "message" "#fatty_w4_boss_intro.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1_2"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1_2"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1_3"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1_3"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1_4"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1_4"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1_5"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase1_5"
                "message" "#fatty_w4_boss_phase1_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }
		

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2_2"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2_2"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2_3"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2_3"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2_4"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2_4"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2_5"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_music_stage_boss_phase2_5"
                "message" "#fatty_w4_boss_phase2_loop.mp3"
				"health" "1"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "combat_transition_trigger"

				"OnTrigger" "w4_music_stage_calm,Volume,0.1,0,-1"
				"OnTrigger" "w4_music_stage_combat,Volume,10,0,-1"
			}

			logic_relay
			{
				"targetname" "combat_transition_trigger2"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_calm2,Volume,0.1,0,-1"
				"OnTrigger" "w4_music_stage_combat2,Volume,10,0,-1"
			}

			logic_relay
			{
				"targetname" "combat_transition_trigger3"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_calm3,Volume,0.1,0,-1"
				"OnTrigger" "w4_music_stage_combat3,Volume,10,0,-1"
			}

			logic_relay
			{
				"targetname" "combat_transition_trigger4"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_calm4,Volume,0.1,0,-1"
				"OnTrigger" "w4_music_stage_combat4,Volume,10,0,-1"
			}

			logic_relay
			{
				"targetname" "calm_transition_trigger"

				"OnTrigger" "w4_music_stage_calm,Volume,10,0,-1"
				"OnTrigger" "w4_music_stage_combat,Volume,0.1,0,-1"
			}

			logic_relay
			{
				"targetname" "calm_transition_trigger2"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_calm2,Volume,10,0,-1"
				"OnTrigger" "w4_music_stage_combat2,Volume,0.1,0,-1"
			}

			logic_relay
			{
				"targetname" "calm_transition_trigger3"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_calm3,Volume,10,0,-1"
				"OnTrigger" "w4_music_stage_combat3,Volume,0.1,0,-1"
			}

			logic_relay
			{
				"targetname" "calm_transition_trigger4"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_calm4,Volume,10,0,-1"
				"OnTrigger" "w4_music_stage_combat4,Volume,0.1,0,-1"
			}

			logic_timer
			{
				"targetname" "calm_state_timer"

				"RefireTime" "0.1"
				"StartDisabled" "1"

				"OnTimer" "calm_transition_trigger,Trigger,,0,-1"
				"OnTimer" "calm_transition_trigger2,Trigger,,0,-1"
				"OnTimer" "calm_transition_trigger3,Trigger,,0,-1"
				"OnTimer" "calm_transition_trigger4,Trigger,,0,-1"
			}

			logic_timer
			{
				"targetname" "combat_state_timer"

				"RefireTime" "0.1"
				"StartDisabled" "1"

				"OnTimer" "combat_transition_trigger,Trigger,,0,-1"
				"OnTimer" "combat_transition_trigger2,Trigger,,0,-1"
				"OnTimer" "combat_transition_trigger3,Trigger,,0,-1"
				"OnTimer" "combat_transition_trigger4,Trigger,,0,-1"
			}

			logic_relay
			{
				"targetname" "stage_loop_logic2"

				"OnTrigger" "w4_music_stage_calm2,PlaySound,,0.1,-1"
				"OnTrigger" "w4_music_stage_combat2,PlaySound,,0.1,-1"
				"OnTrigger" "combat_transition_trigger,Disable,,0,-1"
				"OnTrigger" "calm_transition_trigger,Disable,,0-1"
				"OnTrigger" "combat_transition_trigger2,Enable,,0,-1"
				"OnTrigger" "calm_transition_trigger2,Enable,,0,-1"
			}

			logic_relay
			{
				"targetname" "stage_loop_logic3"

				"OnTrigger" "w4_music_stage_calm3,PlaySound,,0.1,-1"
				"OnTrigger" "w4_music_stage_combat3,PlaySound,,0.1,-1"
				"OnTrigger" "combat_transition_trigger2,Disable,,0,-1"
				"OnTrigger" "calm_transition_trigger2,Disable,,0,-1"
				"OnTrigger" "combat_transition_trigger3,Enable,,0,-1"
				"OnTrigger" "calm_transition_trigger3,Enable,,0,-1"
			}

			logic_relay
			{
				"targetname" "stage_loop_logic4"

				"OnTrigger" "w4_music_stage_calm4,PlaySound,,0.1,-1"
				"OnTrigger" "w4_music_stage_combat4,PlaySound,,0.1,-1"
				"OnTrigger" "combat_transition_trigger3,Disable,,0,-1"
				"OnTrigger" "calm_transition_trigger3,Disable,,0,-1"
				"OnTrigger" "combat_transition_trigger4,Enable,,0,-1"
				"OnTrigger" "calm_transition_trigger4,Enable,,0,-1"
			}

			logic_relay
			{
				"targetname" "w4_stage_music_master"

				"OnTrigger" "w4_music_stage_calm,PlaySound,,0,-1"
				"OnTrigger" "w4_music_stage_combat,PlaySound,,0,-1"

				"OnTrigger" "stage_loop_logic2,Trigger,,159.9,-1"

				"OnTrigger" "stage_loop_logic3,Trigger,,319.9,-1"

				"OnTrigger" "stage_loop_logic4,Trigger,,479.9,-1"
			} 

			logic_relay
			{
				"targetname" "w4_miniboss_music_master"

				"OnTrigger" "w4_music_stage_miniboss,PlaySound,,0,-1"
				"OnTrigger" "miniboss_loop_logic2,Trigger,,64,-1"
			}

			logic_relay
			{
				"targetname" "miniboss_loop_logic2"

				"OnTrigger" "w4_music_stage_miniboss2,PlaySound,,0,-1"
			}

			logic_relay
			{
				"targetname" "phase_transition_trigger1"

				"OnTrigger" "w4_music_stage_boss_phase2,Volume,10,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase1,Volume,0,0,-1"
			}

			logic_relay
			{
				"targetname" "phase_transition_trigger2"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_boss_phase2_2,Volume,10,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase1_2,Volume,0,0,-1"
			}

			logic_relay
			{
				"targetname" "phase_transition_trigger3"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_boss_phase2_3,Volume,10,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase1_3,Volume,0,0,-1"
			}

			logic_relay
			{
				"targetname" "phase_transition_trigger4"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_boss_phase2_4,Volume,10,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase1_4,Volume,0,0,-1"
			}

			logic_relay
			{
				"targetname" "phase_transition_trigger5"

				"StartDisabled" "1"

				"OnTrigger" "w4_music_stage_boss_phase2_5,Volume,10,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase1_5,Volume,0,0,-1"
			}

			logic_relay
			{
				"targetname" "w4_boss_phase2_trigger"

				"OnTrigger" "phase_transition_trigger1,Trigger,,0,-1"
				"OnTrigger" "phase_transition_trigger2,Trigger,,0,-1"
				"OnTrigger" "phase_transition_trigger3,Trigger,,0,-1"
				"OnTrigger" "phase_transition_trigger4,Trigger,,0,-1"
				"OnTrigger" "phase_transition_trigger5,Trigger,,0,-1"
			}

			logic_timer
			{
				"targetname" "boss_phase2_state_timer"

				"RefireTime" "0.1"
				"StartDisabled" "1"

				"OnTimer" "phase_transition_trigger1,Trigger,,0,-1"
				"OnTimer" "phase_transition_trigger2,Trigger,,0,-1"
				"OnTimer" "phase_transition_trigger3,Trigger,,0,-1"
				"OnTimer" "phase_transition_trigger4,Trigger,,0,-1"
				"OnTimer" "phase_transition_trigger5,Trigger,,0,-1"
			}

			logic_timer
			{
				"targetname" "boss_defeated_state_timer"

				"RefireTime" "0.1"
				"StartDisabled" "1"

				"OnTimer" "w4_music_stage_boss_phase1,Volume,0,0,-1"
				"OnTimer" "w4_music_stage_boss_phase1_2,Volume,0,0,-1"
				"OnTimer" "w4_music_stage_boss_phase1_3,Volume,0,0,-1"
				"OnTimer" "w4_music_stage_boss_phase1_4,Volume,0,0,-1"
				"OnTimer" "w4_music_stage_boss_phase1_5,Volume,0,0,-1"
				"OnTimer" "w4_music_stage_boss_phase2,Volume,0,0,-1"
				"OnTimer" "w4_music_stage_boss_phase2_2,Volume,0,0,-1"
				"OnTimer" "w4_music_stage_boss_phase2_3,Volume,0,0,-1"
				"OnTimer" "w4_music_stage_boss_phase2_4,Volume,0,0,-1"
				"OnTimer" "w4_music_stage_boss_phase2_5,Volume,0,0,-1"
			}

			logic_relay
			{
				"targetname" "w4_boss_music_master" //112 p1 128 p2

				"OnTrigger" "w4_music_stage_boss_intro,PlaySound,,0,-1" //8
				"OnTrigger" "w4_music_stage_boss_phase2,Volume,0.1,8.01,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_2,Volume,0.1,8.01,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_3,Volume,0.1,8.01,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_4,Volume,0.1,8.01,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_5,Volume,0.1,8.01,-1"

				"OnTrigger" "w4_music_stage_boss_phase1,PlaySound,,8,-1"
				"OnTrigger" "w4_music_stage_boss_phase2,PlaySound,,8,-1"

				"OnTrigger" "w4_music_stage_boss_phase1_2,PlaySound,,120,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_2,PlaySound,,136,-1"
				"OnTrigger" "phase_transition_trigger1,Disable,,111.9,-1"
				"OnTrigger" "phase_transition_trigger2,Enable,,135.9,-1"

				"OnTrigger" "w4_music_stage_boss_phase1_3,PlaySound,,232,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_3,PlaySound,,264,-1"
				"OnTrigger" "phase_transition_trigger2,Disable,,231.9,-1"
				"OnTrigger" "phase_transition_trigger3,Enable,,264.9,-1"

				"OnTrigger" "w4_music_stage_boss_phase1_4,PlaySound,,344,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_4,PlaySound,,392,-1"
				"OnTrigger" "phase_transition_trigger3,Disable,,343.9,-1"
				"OnTrigger" "phase_transition_trigger4,Enable,,391.9,-1"

				"OnTrigger" "w4_music_stage_boss_phase1_4,PlaySound,,456,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_4,PlaySound,,520,-1"
				"OnTrigger" "phase_transition_trigger3,Disable,,455.9,-1"
				"OnTrigger" "phase_transition_trigger4,Enable,,519.9,-1"
			}

			trigger_multiple
            {
                "targetname"    "calm_transitioner"
                "origin"        "0 0 0"
                "mins"          "-9999 -9999 -9999"
                "maxs"          "9999 9999 9999"
                "spawnflags"    "1"
				"filtername" "blu_filter"

				"OnEndTouchAll" "calm_state_timer,Enable,,0,-1"
				"OnEndTouchAll" "calm_state_timer,FireTimer,,0,-1"
				"OnEndTouchAll" "combat_state_timer,Disable,,0,-1"
            }

			trigger_multiple
            {
                "targetname"    "combat_transitioner"
                "origin"        "0 0 0"
                "mins"          "-9999 -9999 -9999"
                "maxs"          "9999 9999 9999"
                "spawnflags"    "1"
				"filtername" "blu_filter"

				"OnStartTouch" "combat_state_timer,Enable,,0,-1"
				"OnStartTouch" "combat_state_timer,FireTimer,,0,-1"
				"OnStartTouch" "calm_state_timer,Disable,,0,-1"
            }

			filter_activator_tfteam
            {
                "targetname" "blu_filter"
                "TeamNum" "3"
                "Negated" "0"
            }
		}

		W4_Static_Gates
		{
			NoFixup 1
			prop_dynamic
			{
				"targetname" "wave4_static_gate"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256x288.mdl"
				"origin" "-112 -1049 161"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wave4_static_gate"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256x288.mdl"
				"origin" "-112 -1048 161"
				"angles" "0 180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall4_static_gate_ff"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-112 -1049 161"
				"mins" "-50 -1 -30"
				"maxs" "50 1 200"
			}

			prop_dynamic
			{
				"targetname" "wave4_static_gate_1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256x288.mdl"
				"origin" "278 -423 257"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wave4_static_gate_1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256x288.mdl"
				"origin" "278 -420 257"
				"angles" "0 180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall4_static_gate_ff1"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "278 -423 257"
				"mins" "-150 -1 -30"
				"maxs" "150 1 300"
			}

			prop_dynamic
			{
				"targetname" "wave4_static_gate_2"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256X288.mdl"
				"origin" "598 -720 260"
				"angles" "0 90 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wave4_static_gate_2"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256X288.mdl"
				"origin" "602 -720 260"
				"angles" "0 -90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall4_static_gate_ff2"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "598 -720 260"
				"mins" "-1 -100 -30"
				"maxs" "1 100 300"
			}

			prop_dynamic
			{
				"targetname" "wall4_static_gate_3"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "676 -437 60"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall4_static_gate_3"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "676 -450 60"
				"angles" "0 180 0"
				"solid" "6"
			}
			//static gates here
			prop_dynamic
			{
				"targetname" "wall4_static_gate_3"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "1210 -437 196"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall4_static_gate_3"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "1210 -437 196"
				"angles" "0 180 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall4_static_gate_4"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "1210 -437 196"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall4_static_gate_4"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "1210 -441 196"
				"angles" "0 180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall4_static_gate_ff3"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "600 -437 60"
				"mins" "-1 -10 -300"
				"maxs" "1200 1 9999"
			}

			prop_dynamic
			{
				"targetname" "wall4_static_gate_5"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "-347 299 132"
				"angles" "0 180 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall4_static_gate_6"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_640x418.mdl"
				"origin" "439 302 68"
				"angles" "0 180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall4_static_gate_ff5"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-347 299 132"
				"mins" "-1000 -10 -300"
				"maxs" "3200 10 9999"
			}
		}

		W4_Collectibles
		{
			NoFixup 1
			prop_dynamic
			{
				"targetname" "key1"
				"model" "models/workshop/cases/invasion_case/invasion_key.mdl"
				"origin" "252 -664 257"
				"angles" "90 90 0"
				"solid" "0"
				"modelscale" "2"
				"parentname" "key_rotator1"
			}

			func_rotating
            {
                "targetname" "key_rotator1"
                "origin" "252 -664 257"
                "mins" "-8 -8 -8"
                "maxs" "8 8 8"
                "fanfriction" "12"
                "maxspeed" "80"
                "rendermode" "10"
                "spawnflags" "65"
            }

			game_text
			{
				"targetname" "key1_text"
				"message" "Key collected!"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "3"
				"spawnflags" "1"
			}

			trigger_multiple
            {
                "targetname"    "key1_logic"
                "origin"        "252 -664 257"
                "mins"          "-50 -50 -30"
                "maxs"          "50 50 100"
                "spawnflags"    "1"
				"filtername" "red_filter"

				"OnStartTouch" "key1,Disable,,0,-1"
				"OnStartTouch" "key_rotator1,Disable,,0,-1"
				"OnStartTouch" "wave4_static_gate_1,Disable,,0,-1"
				"OnStartTouch" "wave4_static_gate_2,Disable,,0,-1"
				"OnStartTouch" "wall4_static_gate_ff1,Disable,,0,-1"
				"OnStartTouch" "wall4_static_gate_ff2,Disable,,0,-1"
				"OnStartTouch" "key1_text,Display,,0,-1"
				"OnStartTouch" "key1_text,Kill,,3,-1"
				"OnStartTouch" "key1_hint,Kill,,0,-1"
				"OnStartTouch" "!self,$TeleportToEntity,wave4_enabler_target,0,-1"

                "OnStartTouch" "spawnbot_wave4_keymaster1,Enable,,0,-1" 
            }

			prop_dynamic
			{
				"targetname" "key2"
				"model" "models/workshop/cases/invasion_case/invasion_key.mdl"
				"origin" "-129 -703 17"
				"angles" "90 90 0"
				"solid" "0"
				"modelscale" "2"
				"parentname" "key_rotator2"
			}

			func_rotating
            {
                "targetname" "key_rotator2"
                "origin" "-129 -703 17"
                "mins" "-8 -8 -8"
                "maxs" "8 8 8"
                "fanfriction" "12"
                "maxspeed" "80"
                "rendermode" "10"
                "spawnflags" "65"
            }

			game_text
			{
				"targetname" "key2_text"
				"message" "Key collected!"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.01"
				"fadeout" "0.01"
				"holdtime" "3"
				"spawnflags" "1"
			}

			trigger_multiple
            {
                "targetname"    "key2_logic"
                "origin"        "-129 -703 17"
                "mins"          "-50 -50 -30"
                "maxs"          "50 50 100"
                "spawnflags"    "1"
				"filtername" "red_filter"

				"OnStartTouch" "key2,Disable,,0,-1"
				"OnStartTouch" "key_rotator2,Disable,,0,-1"
				"OnStartTouch" "wave4_static_gate,Disable,,0,-1"
				"OnStartTouch" "wall4_static_gate_ff,Disable,,0,-1"
				"OnStartTouch" "key2_text,Kill,,3,-1"
				"OnStartTouch" "key2_text,Display,,0,-1"
				"OnStartTouch" "key2_hint,Kill,,0,-1"
				"OnStartTouch" "!self,$TeleportToEntity,wave4_enabler_target,0,-1"
				"OnStartTouch" "wave4_area3_arrow,Disable,,0,-1"
				

                "OnStartTouch" "spawnbot_wave4_keymaster2,Enable,,0,-1" 
            }
		}

		Wave4_SpawnPoint_Triggers_OhMyFuckingGodThereWillBeSoMuchShitHereFuckMyLife
		{
			NoFixup 1
			func_forcefield
			{
				"targetname" "wave4_start_ff"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin"        "-152 -4500 1"
                "mins"          "-9999 -10 -30"
                "maxs"          "9999 10 4000"
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave4_timer_teleporter"
				"target" "timer_target"
				"filtername" "timer_filter"
				"spawnflags" "1"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			info_target
			{ 
				"targetname" "timer_target"
				"origin" "7356 2482 606"
			}

			logic_relay
			{
				"targetname" "timer_expire_wave4"
				"OnTrigger" "boss_deploy_relay,Trigger,,1,-1"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "timer_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "timer"
			}

			filter_activator_tfteam
            {
                "targetname" "red_filter"
                "TeamNum" "2"
                "Negated" "0"
            }
			trigger_multiple
            {
                "targetname"    "spawnbot_enabler1"
                "origin"        "-152 -4428 1"
                "mins"          "-9999 -10 -30"
                "maxs"          "9999 10 4000"
                "spawnflags"    "1"
				"filtername" "red_filter"

				"OnStartTouch" "barrier_appear_noise,PlaySound,,0,-1"

				"OnStartTouch" "wave4_area1_wall1,Enable,,0,-1"
				"OnStartTouch" "wave4_area1_wall2,Enable,,0,-1"
				"OnStartTouch" "wave4_area1_wall3,Enable,,0,-1"
				"OnStartTouch" "wave4_area1_wall4,Enable,,0,-1"
				"OnStartTouch" "wave4_area1_wall5,Enable,,0,-1"
				"OnStartTouch" "wave4_area1_wall6,Enable,,0,-1"
				"OnStartTouch" "wave4_area1_wall7,Enable,,0,-1"

				"OnStartTouch" "wave4_area1_ff1,$TeleportToEntity,wave4_area1_fftarget1,0,-1"
				"OnStartTouch" "wave4_area1_ff2,$TeleportToEntity,wave4_area1_fftarget2,0,-1"
				"OnStartTouch" "wave4_area1_ff3,$TeleportToEntity,wave4_area1_fftarget3,0,-1"
				"OnStartTouch" "wave4_area1_ff4,$TeleportToEntity,wave4_area1_fftarget4,0,-1"
				"OnStartTouch" "wave4_area1_ff5,$TeleportToEntity,wave4_area1_fftarget5,0,-1"
				"OnStartTouch" "wave4_area1_ff6,$TeleportToEntity,wave4_area1_fftarget6,0,-1"


                "OnStartTouch" "spawnbot_wave4_area1_1,Enable,,1.5,-1" 
				"OnStartTouch" "spawnbot_wave4_area1_5,Enable,,5,-1" 
				"OnStartTouch" "spawnbot_wave4_area1_7,Enable,,7,-1"
				"OnStartTouch" "spawnbot_wave4_area1_10,Enable,,10.5,-1"
				"OnStartTouch" "spawnbot_wave4_area1_13,Enable,,0,-1"
				"OnStartTouch" "spawnbot_wave4_area1_14,Enable,,0,-1"
				"OnStartTouch" "spawnbot_wave4_area1_15,Enable,,0,-1"
				"OnStartTouch" "spawnbot_wave4_area1_16,Enable,,0,-1"

				"OnStartTouch" "spawn_noise_small,PlaySound,,1.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,3,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,6,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,8,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,10.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11.5,-1"

				"OnStartTouch" "spawnbot_enabler1,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			info_target
			{
				"targetname" "wave4_enabler_target"
				"origin" "9999 9999 9999"
			}

			trigger_multiple
            {
                "targetname"    "spawnbot_enabler2_1"
                "origin"        "-536 -3204 197"
                "mins"          "-9999 -10 -1000"
                "maxs"          "40 10 9999"
                "spawnflags"    "1"
				"filtername" "red_filter"

                "OnStartTouch" "spawnbot_wave4_area2_1,Enable,,0,-1" 
				"OnStartTouch" "spawnbot_wave4_area2_2,Enable,,5,-1" 
				"OnStartTouch" "spawnbot_wave4_area2_3,Enable,,5.25,-1"
				"OnStartTouch" "spawnbot_wave4_area2_4,Enable,,5.5,-1"
				"OnStartTouch" "spawnbot_wave4_area2_5,Enable,,5.75,-1"
				"OnStartTouch" "spawnbot_wave4_area2_6,Enable,,7,-1"
				"OnStartTouch" "spawnbot_wave4_area2_7,Enable,,8,-1"

				"OnStartTouch" "spawn_noise_small,PlaySound,,0,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,0.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,1,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,1.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.25,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.75,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,8,-1"

				"OnStartTouch" "spawnbot_enabler2_1,$TeleportToEntity,wave4_enabler_target,0,-1"
				"OnStartTouch" "spawnbot_enabler2_2,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			trigger_multiple
            {
                "targetname"    "spawnbot_enabler2_2"
                "origin"        "-504 -2869 -62"
                "mins"          "-10 -100 -40"
                "maxs"          "10 100 200"
                "spawnflags"    "1"
				"filtername" "red_filter"

                "OnStartTouch" "spawnbot_wave4_area2_1,Enable,,0,-1" 
				"OnStartTouch" "spawnbot_wave4_area2_2,Enable,,5,-1" 
				"OnStartTouch" "spawnbot_wave4_area2_3,Enable,,5.25,-1"
				"OnStartTouch" "spawnbot_wave4_area2_4,Enable,,5.5,-1"
				"OnStartTouch" "spawnbot_wave4_area2_5,Enable,,5.75,-1"
				"OnStartTouch" "spawnbot_wave4_area2_6,Enable,,7,-1"
				"OnStartTouch" "spawnbot_wave4_area2_7,Enable,,8,-1"

				"OnStartTouch" "spawn_noise_small,PlaySound,,0,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,0.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,1,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,1.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.25,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.75,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,8,-1"

				"OnStartTouch" "spawnbot_enabler2_1,$TeleportToEntity,wave4_enabler_target,0,-1"
				"OnStartTouch" "spawnbot_enabler2_2,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			trigger_multiple
            {
                "targetname"    "spawnbot_enabler3_1"
                "origin"        "-468 -2286	 74"
                "mins"          "-10 -10 -1000"
                "maxs"          "2000 1900 1"
                "spawnflags"    "1"
				"filtername" "red_filter"

                "OnStartTouch" "spawnbot_wave4_area3_1,Enable,,0,-1" 
				"OnStartTouch" "spawnbot_wave4_area3_2,Enable,,0,-1" 

				"OnStartTouch" "spawn_noise_big,PlaySound,,0,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,0,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,0.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,1,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,1.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,3,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,3.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,4,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,4.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.5,-1"

				"OnStartTouch" "spawn_noise_small,PlaySound,,13.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,13.75,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,14,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,14.25,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,14.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,14.75,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,15,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,15.25,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,15.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,15.75,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,16,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,16.25,-1"

				"OnStartTouch" "spawnbot_enabler3_1,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			trigger_multiple
            {
                "targetname"    "spawnbot_enabler3_2"
                "origin"        "1024 -503 164"
                "mins"          "-400 -1000 -1000"
                "maxs"          "1 10 1"
                "spawnflags"    "1"
				"StartDisabled" "1"
				"filtername" "red_filter"

				"OnStartTouch" "wave4_area3_wall1,Enable,,0,-1"
				"OnStartTouch" "wave4_area3_ff1,$TeleportToEntity,wave4_area3_fftarget1,0,-1"

                "OnStartTouch" "spawnbot_wave4_area3_3,Enable,,0,-1" 
				"OnStartTouch" "spawnbot_wave4_area3_4,Enable,,2,-1" 
				"OnStartTouch" "spawnbot_wave4_area3_5,Enable,,2,-1" 

				"OnStartTouch" "spawn_noise_big,PlaySound,,0,-1"
				"OnStartTouch" "spawn_noise_big,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_big,PlaySound,,2,-1"

				"OnStartTouch" "spawnbot_enabler3_2,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			logic_relay
			{
				"targetname" "w4_area3_enabler"

				"OnTrigger" "spawnbot_enabler3_2,Enable,,0,-1"
			}

			trigger_multiple
            {
                "targetname"    "spawnbot_enabler4_1"
                "origin"        "550 -2480 196"
                "mins"          "-10 -10 -10"
                "maxs"          "2000 10 4000"
                "spawnflags"    "1"
				"filtername" "red_filter"

                "OnStartTouch" "spawnbot_wave4_area4_1,Enable,,0,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_2,Enable,,10,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_3,Enable,,9,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_4,Enable,,11,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_5,Enable,,2,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_6,Enable,,7,-1" 

				"OnStartTouch" "spawn_noise_big,PlaySound,,0,-1"
				"OnStartTouch" "spawn_noise_big,PlaySound,,10,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,9,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,9,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11,-1"

				"OnStartTouch" "spawnbot_enabler4_1,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			trigger_multiple
            {
                "targetname"    "spawnbot_enabler4_2"
                "origin"        "80 -1534 161"
                "mins"          "-2000 -10 -10"
                "maxs"          "10 10 4000"
                "spawnflags"    "1"
				"filtername" "red_filter"

                "OnStartTouch" "spawnbot_wave4_area4_7,Enable,,0,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_8,Enable,,2,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_9,Enable,,4,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_10,Enable,,4,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_11,Enable,,7,-1" 

				"OnStartTouch" "spawn_noise_big,PlaySound,,0,-1"
				"OnStartTouch" "spawn_noise_big,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,4,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,8.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,10,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,13,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,14.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,8,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,9,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,10,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,12,-1"

				"OnStartTouch" "spawnbot_enabler4_2,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			trigger_multiple
            {
                "targetname"    "spawnbot_enabler4_2"
                "origin"        "80 -1534 161"
                "mins"          "-10 -10 -10"
                "maxs"          "10 800 4000"
                "spawnflags"    "1"
				"filtername" "red_filter"

                "OnStartTouch" "spawnbot_wave4_area4_7,Enable,,0,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_8,Enable,,2,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_9,Enable,,4,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_10,Enable,,4,-1" 
				"OnStartTouch" "spawnbot_wave4_area4_11,Enable,,7,-1" 

				"OnStartTouch" "spawn_noise_big,PlaySound,,0,-1"
				"OnStartTouch" "spawn_noise_big,PlaySound,,2,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,4,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,5.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,8.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,10,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,13,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,14.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,7,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,8,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,9,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,10,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,12,-1"

				"OnStartTouch" "spawnbot_enabler4_2,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			game_text
			{
				"targetname" "all_keys_collected"
				"message" "All keys collected!"
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.1"
				"fadeout" "0.1"
				"holdtime" "6"
				"spawnflags" "1"
			}

			training_annotation
            {
              "targetname"   "gate_open_hint"
              "display_text" "Gate is now unlocked."
              "lifetime"     "4"
              "origin" "-353 312 132"
            }

			logic_relay
			{
				"targetname" "w4_gate_open"

				"OnTrigger" "spawnbot_enabler5,Enable,,0,-1" 
				"OnTrigger" "this_area_is_locked,Disable,,0,-1" 
				"OnTrigger" "all_keys_collected,Display,,0,-1" 
				"OnTrigger" "gate_open_hint,Show,,4,-1" 
				"OnTrigger" "wall4_static_gate_5,Disable,,0,-1" 
				"OnTrigger" "wall4_static_gate_6,Disable,,0,-1" 
			}

			trigger_multiple
            {
                "targetname"    "spawnbot_enabler5"
                "origin"        "1508 -252 407"
                "mins"          "-3000 -10 -1000"
                "maxs"          "3000 1000 4000"
                "spawnflags"    "1"
				"filtername" "red_filter"
				"StartDisabled" "1"

				"OnStartTouch" "barrier_appear_noise,PlaySound,,0,-1"
				"OnStartTouch" "stage_loop_logic2,Disable,,0,-1" 
				"OnStartTouch" "stage_loop_logic3,Disable,,0,-1" 
				"OnStartTouch" "stage_loop_logic4,Disable,,0,-1" 
				"OnStartTouch" "calm_state_timer,Disable,,0,-1" 
				"OnStartTouch" "combat_state_timer,Disable,,0,-1" 
				"OnStartTouch" "w4_music_stage_calm,Volume,0,0,-1" 
				"OnStartTouch" "w4_music_stage_calm2,Volume,0,0,-1" 
				"OnStartTouch" "w4_music_stage_calm3,Volume,0,0,-1" 
				"OnStartTouch" "w4_music_stage_calm4,Volume,0,0,-1" 
				"OnStartTouch" "w4_music_stage_combat,Volume,0,0,-1" 
				"OnStartTouch" "w4_music_stage_combat2,Volume,0,0,-1" 
				"OnStartTouch" "w4_music_stage_combat3,Volume,0,0,-1" 
				"OnStartTouch" "w4_music_stage_combat4,Volume,0,0,-1" 
				"OnStartTouch" "calm_transition_trigger,Disable,,0,-1" 
				"OnStartTouch" "calm_transition_trigger2,Disable,,0,-1" 
				"OnStartTouch" "calm_transition_trigger3,Disable,,0,-1" 
				"OnStartTouch" "calm_transition_trigger4,Disable,,0,-1" 
				"OnStartTouch" "combat_transition_trigger,Disable,,0,-1" 
				"OnStartTouch" "combat_transition_trigger2,Disable,,0,-1" 
				"OnStartTouch" "combat_transition_trigger3,Disable,,0,-1" 
				"OnStartTouch" "combat_transition_trigger4,Disable,,0,-1" 
				"OnStartTouch" "w4_miniboss_music_master,Trigger,,4,-1"


				"OnStartTouch" "wall4_static_gate_5,Enable,,0,-1" 
				"OnStartTouch" "wall4_static_gate_6,Enable,,0,-1" 

                "OnStartTouch" "spawnbot_wave4_area5_1,Enable,,4,-1" 
				"OnStartTouch" "spawnbot_wave4_area5_2,Enable,,6,-1" 
				"OnStartTouch" "spawnbot_wave4_area5_3,Enable,,6,-1" 
				"OnStartTouch" "spawnbot_wave4_area5_4,Enable,,9,-1" 
				"OnStartTouch" "spawnbot_wave4_area5_5,Enable,,9,-1" 
				"OnStartTouch" "spawnbot_wave4_area5_6,Enable,,9,-1" 

				"OnStartTouch" "spawn_noise_big,PlaySound,,4,-1"
				"OnStartTouch" "spawn_noise_big,PlaySound,,6,-1"
				"OnStartTouch" "spawn_noise_big,PlaySound,,6,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,9,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,9.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,10,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,10.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,11.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,12,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,12.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,13,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,13.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,14,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,14.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,15,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,15.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,16,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,16.5,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,17,-1"
				"OnStartTouch" "spawn_noise_small,PlaySound,,17.5,-1"

				"OnStartTouch" "spawnbot_enabler5,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			logic_relay
			{
				"targetname" "w4_area1_sound2"

				"OnTrigger" "spawn_noise_small,PlaySound,,1,-1"
				"OnTrigger" "spawn_noise_small,PlaySound,,1.5,-1"
				"OnTrigger" "spawn_noise_small,PlaySound,,2,-1"
				"OnTrigger" "spawn_noise_small,PlaySound,,3,-1"
				"OnTrigger" "spawn_noise_small,PlaySound,,3.5,-1"
				"OnTrigger" "spawn_noise_small,PlaySound,,4,-1"
				"OnTrigger" "spawn_noise_small,PlaySound,,6,-1"
				"OnTrigger" "spawn_noise_small,PlaySound,,7,-1"
				"OnTrigger" "spawn_noise_small,PlaySound,,8,-1"
				"OnTrigger" "spawn_noise_small,PlaySound,,9,-1"
			}

			logic_relay
			{
				"targetname" "w4_area1_sound3"

				"OnTrigger" "spawn_noise_big,PlaySound,,1,-1"
				"OnTrigger" "spawn_noise_big,PlaySound,,3,-1"
			}

			logic_relay
			{
				"targetname" "w4_area1_done"

				"OnTrigger" "wave4_area1_wall1,Disable,,0,-1"
				"OnTrigger" "wave4_area1_wall2,Disable,,0,-1"
				"OnTrigger" "wave4_area1_wall3,Disable,,0,-1"
				"OnTrigger" "wave4_area1_wall4,Disable,,0,-1"
				"OnTrigger" "wave4_area1_wall5,Disable,,0,-1"
				"OnTrigger" "wave4_area1_wall6,Disable,,0,-1"
				"OnTrigger" "wave4_area1_wall7,Disable,,0,-1"
				"OnTrigger" "wave4_area1_ff1,Disable,,0,-1"
				"OnTrigger" "wave4_area1_ff2,Disable,,0,-1"
				"OnTrigger" "wave4_area1_ff3,Disable,,0,-1"
				"OnTrigger" "wave4_area1_ff4,Disable,,0,-1"
				"OnTrigger" "wave4_area1_ff5,Disable,,0,-1"
				"OnTrigger" "wave4_area1_ff6,Disable,,0,-1"
				"OnTrigger" "cerebus_death,Disable,,0,-1"
				"OnTrigger" "cerebus_death,Enable,,3,-1"
			}

			logic_relay
			{
				"targetname" "w4_area5_done"

				"OnTrigger" "wall4_static_gate_ff5,Disable,,0,-1"
				"OnTrigger" "wall4_static_gate_6,Disable,,0,-1"
				"OnTrigger" "wall4_static_gate_5,Disable,,0,-1"
				"OnTrigger" "w4_music_stage_miniboss,Volume,0,0,-1"
				"OnTrigger" "w4_music_stage_miniboss2,Volume,0,0,-1"
				"OnTrigger" "miniboss_loop_logic2,Disable,,0,-1"
				"OnTrigger" "boss_enabler,Enable,,0,-1"
			}

			//copy the walls for the final boss

			prop_dynamic
			{
				"targetname" "wave4_area1_wall1"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "-1034 -4278 141"
				"angles" "0 -90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff1"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -150 -30"
				"maxs" "1 150 200"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff1"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -150 -30"
				"maxs" "1 150 200"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget1"
				"origin" "-1034 -4278 141"
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall2"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "-788 -3510 90"
				"angles" "0 -180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff2"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-300 -1 -100"
				"maxs" "300 1 3000"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff2"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-300 -1 -100"
				"maxs" "300 1 3000"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget2"
				"origin" "-788 -3510 90"
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall3"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "-230 -3275 129"
				"angles" "0 -90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff3"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -160 -100"
				"maxs" "1 160 150"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff3"
				"TeamNum" "2"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -160 -100"
				"maxs" "1 160 150"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget3"
				"origin" "-230 -3275 129"
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall4"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "303 -2927 240"
				"angles" "0 90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff4"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -120 -100"
				"maxs" "1 120 150"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff4"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -120 -100"
				"maxs" "1 120 150"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget4"
				"origin" "303 -2927 240"	
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall5"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "818 -3135 90"
				"angles" "0 -180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff5"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-250 -1 -200"
				"maxs" "250 1 3000"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff5"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-250 -1 -200"
				"maxs" "250 1 3000"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget5"
				"origin" "818 -3135 90"	
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall6"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "1075 -3386 193"
				"angles" "0 90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff6"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -1000 -200"
				"maxs" "1 200 200"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff6"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -1000 -200"
				"maxs" "1 200 200"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget6"
				"origin" "1075 -3386 193"
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall7"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "1075 -4111 193"
				"angles" "0 90 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wave4_area3_wall1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"StartDisabled" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "600 -702 17"
				"angles" "0 -90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area3_ff1"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -100 -200"
				"maxs" "1 100 150"
			}

			info_target
			{
				"targetname" "wave4_area3_fftarget1"
				"origin" "600 -702 17"
			}

			prop_dynamic
			{
				"targetname" "wave4_area3_arrow"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models\props_mvm\mvm_sign_arrow02.mdl"
				"origin" "814 -596 16"
				"angles" "0 -90 0"
				"solid" "0"
				"modelscale" "2"
			}

			logic_relay
			{
				"targetname" "w4_area3_done"

				"OnTrigger" "wave4_area3_wall1,Disable,,0,-1"
				"OnTrigger" "wave4_area3_ff1,Disable,,0,-1"
				"OnTrigger" "wall4_static_gate_3,Disable,,0,-1"
				"OnTrigger" "wall4_static_gate_4,Disable,,0,-1"
				"OnTrigger" "wall4_static_gate_ff3,Disable,,0,-1"
				"OnTrigger" "wave4_area3_arrow,Enable,,0,-1"
			}

			ambient_generic
            {
                "targetname" "barrier_appear_noise"
                "message" "ui/vote_no.wav"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "barrier_appear_noise"
                "message" "ui/vote_no.wav"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "spawn_noise_small"
                "message" "ui/training_point_big.wav"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "spawn_noise_small"
                "message" "ui/training_point_big.wav"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "spawn_noise_big"
                "message" "mvm/mvm_tank_start.wav"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "spawn_noise_big"
                "message" "mvm/mvm_tank_start.wav"
				"health" "10"
                "spawnflags" "32"
                "origin" "0 0 0"
            }
		}

		Wave4_Boss_Target
		{
			NoFixup 1
			KeepAlive 1
			info_target
			{
				"targetname" "w4_boss_target"
				"origin" "0 0 0"
			}

			trigger_bot_tag 
            {        
                "targetname" "bot_teleported_tag_remove"
                "mins" "-100 -100 -100"
                "maxs" "100 100 100"
                "origin" "0 0 15"
                "tags" "w4_boss"
                "add" "0" 
                "spawnflags"    "1"
				"parentname" "w4_boss_target"
            }
		}

		Wave4_BossTeleporter
		{
			NoFixup 1
			trigger_teleport
			{
				"targetname" "wave4_teleporter"
				"target" "w4_boss_target"
				"spawnflags" "1"
				"filtername" "w4_boss_filter"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "w4_boss_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "w4_boss"
			}

			logic_relay
			{
				"targetname" "w4_boss_teleporter_kill"

				"OnTrigger" "wave4_teleporter,Disable,,1,-1"
				"OnTrigger" "w4_boss_target,Kill,,1,-1"
				"OnTrigger" "boss_phase2_state_timer,Enable,,1,-1"
				"OnTrigger" "boss_phase2_state_timer,FireTimer,,1,-1"
			}
		}

		W4_Boss_Things
		{
			NoFixup 1

			$filter_sendprop
            {
                "targetname" "filter_player"
                "$name" "m_bIsABot"
                "$value" "0"
            }
			trigger_multiple
            {
                "targetname"    "boss_enabler"
                "origin"        "0 1044 129"
                "mins"          "-2000 -10 -10"
                "maxs"          "2000 10 4000"
                "spawnflags"    "1"
				"StartDisabled" "1"
				"filtername" "filter_player"

                "OnStartTouch" "wall1,Enable,,0,-1"
				"OnStartTouch" "wall2,Enable,,0,-1"
				"OnStartTouch" "wall3,Enable,,0,-1"
				"OnStartTouch" "wall4,Enable,,0,-1"
				"OnStartTouch" "wall5,Enable,,0,-1"
				"OnStartTouch" "wall6,Enable,,0,-1"
				"OnStartTouch" "wall7,Enable,,0,-1"
				"OnStartTouch" "wall8,Enable,,0,-1"
				"OnStartTouch" "wall1_ff,$TeleportToEntity,w3_forcefield1_target,0,-1"
				"OnStartTouch" "wall2_ff,$TeleportToEntity,w3_forcefield2_target,0,-1"
				"OnStartTouch" "wall3_ff,$TeleportToEntity,w3_forcefield3_target,0,-1"
				"OnStartTouch" "wall4_ff,$TeleportToEntity,w3_forcefield4_target,0,-1"

				"OnStartTouch" "red_spawn_primary,Disable,,0,-1"
				"OnStartTouch" "spawnbot_wave3_player,Enable,,0,-1"
				"OnStartTouch" "spawnbot_wave4_player,Enable,,0,-1"

				"OnStartTouch" "w4_boss_teleportation,Enable,,0,-1"
				"OnStartTouch" "w4_boss_teleportation,Disable,,2,-1"
				"OnStartTouch" "w4_boss_common_killer,Enable,,0,-1"
				"OnStartTouch" "w4_boss_common_killer,Disable,,2.9,-1"
				"OnStartTouch" "spawnbot_wave4_boss,Enable,,3,-1"
				"OnStartTouch" "spawnbot_wave4_wavebar,Enable,,2,-1"
				"OnStartTouch" "w4_boss_music_master,Trigger,,3,-1"


				"OnStartTouch" "boss_enabler,$TeleportToEntity,wave4_enabler_target,0,-1"
            }

			logic_relay
			{
				"targetname" "w4_boss_defeated_trigger"

				"OnTrigger" "phase_transition_trigger1,Disable,,0,-1"
				"OnTrigger" "phase_transition_trigger2,Disable,,0,-1"
				"OnTrigger" "phase_transition_trigger3,Disable,,0,-1"
				"OnTrigger" "phase_transition_trigger4,Disable,,0,-1"
				"OnTrigger" "phase_transition_trigger5,Disable,,0,-1"
				"OnTrigger" "stage_loop_logic2,Disable,,0,-1"
				"OnTrigger" "stage_loop_logic3,Disable,,0,-1"
				"OnTrigger" "stage_loop_logic4,Disable,,0,-1"
				"OnTrigger" "stage_loop_logic5,Disable,,0,-1"
				"OnTrigger" "boss_phase2_state_timer,Disable,,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase2,Volume,0,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_2,Volume,0,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_3,Volume,0,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_4,Volume,0,0,-1"
				"OnTrigger" "w4_music_stage_boss_phase2_5,Volume,0,0,-1"
				"OnTrigger" "boss_defeated_state_timer,Enable,,0,-1"
				"OnTrigger" "boss_defeated_state_timer,FireTimer,,0,-1"
				"OnTrigger" "w4_boss_defeated,PlaySound,,0,-1"
				"OnTrigger" "w4_boss_defeated,FadeOut,4,4,-1"
				"OnTrigger" "timer_expire_wave4,Disable,,0,-1"

				"OnTrigger" "wall5_static_gate_1,Enable,,4,-1"
				"OnTrigger" "wall5_static_gate_2,Enable,,4,-1"
				"Ontrigger" "wall5_static_gate_ff1,$TeleportToEntity,w5_forcefield1_target,0,-1"
				"OnTrigger" "w5_prelude_teleportation,Enable,,4,-1"
				"OnTrigger" "w5_prelude_teleportation,Disable,,5,-1"
				"OnTrigger" "wall1,Disable,,4,-1"
				"OnTrigger" "wall2,Disable,,4,-1"
				"OnTrigger" "wall3,Disable,,4,-1"
				"OnTrigger" "wall4,Disable,,4,-1"
				"OnTrigger" "wall5,Disable,,4,-1"
				"OnTrigger" "wall6,Disable,,4,-1"
				"OnTrigger" "wall7,Disable,,4,-1"
				"OnTrigger" "wall8,Disable,,4,-1"
				"OnTrigger" "wall1_ff,Disable,,4,-1"
				"OnTrigger" "wall2_ff,Disable,,4,-1"
				"OnTrigger" "wall3_ff,Disable,,4,-1"
				"OnTrigger" "wall4_ff,Disable,,4,-1"
				"OnTrigger" "chat_hint1,Show,,3,-1"
			}

			ambient_generic
            {
                "targetname" "w4_boss_defeated"
                "message" "#fatty_w4_boss_defeated.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w4_boss_defeated"
                "message" "#fatty_w4_boss_defeated.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			trigger_hurt
			{
				"targetname" "w4_boss_common_killer"
				"damage" "40000"
				"damagetype" "64"
				"origin" "0 0 0" 
				"mins" "-4000 -9999-9999"
				"maxs" "4000 9999 9999"
				"spawnflags" "1"
				"startdisabled" "1"
				"filtername" "blu_filter"
			}

			trigger_multiple
            {
                "targetname"    "w4_boss_teleportation"
                "origin"        "2158 113 323"
                "mins"          "-9999 -9999 -1000"
                "maxs"          "10 10 9999"
                "StartDisabled" "1"
                "spawnflags"    "1"
				"filtername" "filter_player"
                "OnStartTouch" "!activator,$TeleportToEntity,w4_boss_red_teleport_target,0,-1"
            }

			trigger_multiple
            {
                "targetname"    "w5_prelude_teleportation"
                "origin"        "2157 281 391"
                "mins"          "-9999 -9999 -1000"
                "maxs"          "10 10 9999"
                "StartDisabled" "1"
                "spawnflags"    "1"
                "OnStartTouch" "!activator,$TeleportToEntity,w4_boss_red_teleport_target,0,-1"
            }

			info_target
			{
				"targetname" "w4_boss_red_teleport_target"
				"origin" "-12 891 129"
			}

			prop_dynamic
			{
				"targetname" "wall1"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256X288.mdl"
				"origin" "132 -931 257"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall1_ff"
				"TeamNum" "3"
				"origin" "-3496 -683 442"
				"renderamt" "255"
              	"rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "1"
				"mins" "-100 -1 -30"
				"maxs" "100 1 100"
			}

			func_forcefield
			{
				"targetname" "wall1_ff"
				"TeamNum" "2"
				"origin" "-3496 -683 442"
				"renderamt" "255"
              	"rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "1"
				"mins" "-100 -1 -30"
				"maxs" "100 1 100"
			}

			info_target
			{
				"targetname" "w3_forcefield1_target"
				"origin" "132 -931 257"
			}

			prop_dynamic
			{
				"targetname" "wall2"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256X288.mdl"
				"origin" "598 -720 260"
				"angles" "0 90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall2_ff"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -100 -30"
				"maxs" "1 100 100"
			}

			func_forcefield
			{
				"targetname" "wall2_ff"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -100 -30"
				"maxs" "1 100 100"
			}

			info_target
			{
				"targetname" "w3_forcefield2_target"
				"origin" "598 -720 260"
			}

			prop_dynamic
			{
				"targetname" "wall3"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "676 -437 60"
				"angles" "0 0 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall3_ff"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
        	    "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-100 -1 -30"
				"maxs" "800 1 3000"
			}

			func_forcefield
			{
				"targetname" "wall3_ff"
				"TeamNum" "2"
				"renderamt" "255"
                "rendercolor" "255 255 255"
        	    "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-100 -1 -30"
				"maxs" "800 1 3000"
			}

			info_target
			{
				"targetname" "w3_forcefield3_target"
				"origin" "676 -437 60"
			}


			prop_dynamic
			{
				"targetname" "wall4"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "1210 -437 196"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall5"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_112x320.mdl"
				"origin" "647 -437 350"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall6"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_256x288.mdl"
				"origin" "-280 -420 124"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall7"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_512x320.mdl"
				"origin" "-600 -421 72"
				"angles" "0 0 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall4_ff"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
              	"renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-500-1 -30"
				"maxs" "500 1 3000"
			}

			func_forcefield
			{
				"targetname" "wall4_ff"
				"TeamNum" "2"
				"renderamt" "255"
                "rendercolor" "255 255 255"
              	"renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-500-1 -30"
				"maxs" "500 1 3000"
			}

			info_target
			{
				"targetname" "w3_forcefield4_target"
				"origin" "-676 -421 72"
			}

			prop_dynamic
			{
				"targetname" "wall8"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_176x152.mdl"
				"origin" "-908 -420 175"
				"angles" "0 0 0"
				"solid" "6"
			}
		}

		W5_Init
		{
			NoFixup 1

			trigger_multiple
            {
                "targetname"    "w5_teleportation"
                "origin"        "1072 187 81"
                "mins"          "-9999 -9999 -10"
                "maxs"          "1000 1 3000"
                "StartDisabled" "1"
                "spawnflags"    "1"
                "OnStartTouch" "!activator,$TeleportToEntity,spawnbot_wave5_player,0,-1"
            }
			prop_dynamic
			{
				"targetname" "wall5_static_gate_1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"StartDisabled" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "-347 299 132"
				"angles" "0 0 0"
				"solid" "6"
			}

			prop_dynamic
			{
				"targetname" "wall5_static_gate_2"
				"disablereceiveshadows" "1"
				"StartDisabled" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_640x418.mdl"
				"origin" "439 302 68"
				"angles" "0 0 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wall5_static_gate_ff1"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "9999 0 9999"
				"mins" "-5000 -10 -300"
				"maxs" "5000 10 9999"
			}

			func_forcefield
			{
				"targetname" "wall5_static_gate_ff2"
				"TeamNum" "2"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "9999 0 9999"
				"mins" "-5000 -10 -300"
				"maxs" "5000 10 9999"
			}

			info_target
			{
				"targetname" "w5_forcefield1_target"
				"origin" "-347 299 132"
			}

			logic_relay
			{
				"targetname" "wave5_initiate"

				"OnTrigger" "spawnbot_wave4_player,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave3_player,Disable,,0,-1"
				"OnTrigger" "w5_teleportation,Enable,,0,-1"
				"OnTrigger" "red_spawn_primary,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave5_player,Enable,,0,-1"
				"OnTrigger" "wall5_static_gate_1,Enable,,0,-1"
				"OnTrigger" "wall5_static_gate_2,Enable,,0,-1"
				"Ontrigger" "wall5_static_gate_ff1,$TeleportToEntity,w5_forcefield1_target,0,-1"
				"Ontrigger" "wall5_static_gate_ff2,$TeleportToEntity,w5_forcefield1_target,0,-1"
				"OnTrigger" "obj_dispenser,RemoveHealth,10000,0,-1"
                "OnTrigger" "obj_sentrygun,RemoveHealth,10000,0,-1"
                "OnTrigger" "obj_teleporter,RemoveHealth,10000,0,-1"
			}

			logic_relay
			{
				"targetname" "w5_start"

				"OnTrigger" "w5_music_master,Trigger,,0,-1"
				"OnTrigger" "w5_teleportation,Disable,,0,-1"
				"OnTrigger" "wave_start_relay,Trigger,,0,-1"
				"OnTrigger" "wall5_static_gate_ff1,Disable,,0,-1"
				"OnTrigger" "wall5_static_gate_1,Disable,,0,-1"
				"OnTrigger" "wall5_static_gate_2,Disable,,0,-1"
				"OnTrigger" "tankdoor_2_relay,Trigger,,0,-1"
			}
		}

		W5_Music_Master
		{
			NoFixup 1
			ambient_generic
            {
                "targetname" "w5_music_intro"
                "message" "#fatty_w5_intro.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_music_intro"
                "message" "#fatty_w5_intro.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_music_loop1"
                "message" "#fatty_w5_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_music_loop1"
                "message" "#fatty_w5_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_music_loop2"
                "message" "#fatty_w5_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_music_loop2"
                "message" "#fatty_w5_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_music_loop3"
                "message" "#fatty_w5_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_music_loop3"
                "message" "#fatty_w5_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_timer
			{
				"targetname" "w5_boss_defeated_state_timer"

				"RefireTime" "0.1"
				"StartDisabled" "1"

				"OnTimer" "w5_music_loop1,Volume,0,0,-1"
				"OnTimer" "w5_music_loop2,Volume,0,0,-1"
				"OnTimer" "w5_music_loop3,Volume,0,0,-1"
			}

			logic_relay
			{
				"targetname" "w5_music_master"

				"OnTrigger" "w5_music_intro,PlaySound,,0,-1"
				"OnTrigger" "w5_music_loop1,PlaySound,,7,-1"
				"OnTrigger" "w5_music_loop2,PlaySound,,192,-1"
				"OnTrigger" "w5_music_loop3,PlaySound,,377,-1"
			}
		}

		Wave5_Enablers
		{
			NoFixup 1
			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "wave3_timer_teleporter"
				"target" "timer_target"
				"filtername" "timer_filter"
				"spawnflags" "1"
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"origin" "0 0 0" 
			}

			$filter_sendprop
            {
                "targetname" "filter_player"
                "$name" "m_bIsABot"
                "$value" "0"
            }

			info_target
			{
				"targetname" "timer_target"
				"origin" "7356 2482 606"
			}

			logic_relay
			{
				"targetname" "timer_expire_wave5"
				"OnTrigger" "boss_deploy_relay,Trigger,,1,-1"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "timer_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "timer"
			}

			filter_activator_tfteam
            {
                "targetname" "red_filter"
                "TeamNum" "2"
                "Negated" "0"
            }

			filter_activator_tfteam
            {
                "targetname" "blu_filter"
                "TeamNum" "3"
                "Negated" "0"
            }

			trigger_multiple
            {
                "targetname"    "area2_enabler"
                "origin"        "-1319 -891 161"
                "mins"          "-9999 -200 -10"
                "maxs"          "9999 200 4000"
                "spawnflags"    "1"
				"filtername" "red_filter"

                "OnStartTouch" "spawnbot_wave5_area2_commons,Enable,,0,-1"
				"OnStartTouch" "spawnbot_wave5_area2_giant,Enable,,0,-1"
            }

			trigger_multiple
            {
                "targetname"    "area3_enabler"
                "origin"        "-1476 -1864 289"
                "mins"          "-9999 -200 -10"
                "maxs"          "9999 200 4000"
                "spawnflags"    "1"
				"filtername" "red_filter"

                "OnStartTouch" "spawnbot_wave5_area3_guardian1,Enable,,2,-1"
				"OnStartTouch" "spawnbot_wave5_area3_guardian2,Enable,,2,-1"
            }

			trigger_hurt
			{
				"targetname" "damage_area1"
				"damage" "40000"
				"damagetype" "64"
				"origin" "1035 -3144 -20" 
				"mins" "-9999 -9999 -9999"
				"maxs" "4575 9999 9999"
				"spawnflags" "1"
				"startdisabled" "1"
				"filtername" "crook_filter"
			} 

			trigger_hurt
			{
				"targetname" "damage_area2"
				"damage" "40000"
				"damagetype" "64"
				"origin" "1035 -3144 -20" 
				"mins" "-5000 -20 -40"
				"maxs" "4575 9999 5000"
				"spawnflags" "1"
				"startdisabled" "1"
				"filtername" "crook_filter"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "crook_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "crook"
			}

			trigger_multiple
            {
                "targetname"    "boss_area_checker"
                "origin"        "-1031 -3552 -1"
                "mins"          "-1 -3000 -10"
                "maxs"          "2062 10 4000"
                "spawnflags"    "1"
				"filtername" "filter_player"

                "OnStartTouch" "damage_area1,Enable,,14,-1"
				"OnStartTouch" "damage_area1,Disable,,18,-1"
				"OnStartTouch" "damage_area2,Enable,,14,-1"
				"OnStartTouch" "boss_spawn_logic,Trigger,,14,-1"
				"OnStartTouch" "boss_area_checker,Disable,,0,-1"
				"OnStartTouch" "boss_area_text1,Display,,0,-1"
				"OnStartTouch" "boss_area_text2,Display,,4,-1"
				"OnStartTouch" "boss_area_teleporter,Enable,,14,-1"
				"OnStartTouch" "boss_area_teleporter,Kill,,14.2,-1"

				"OnStartTouch" "wave4_area1_wall1,Enable,,14,-1"
				"OnStartTouch" "wave4_area1_wall2,Enable,,14,-1"
				"OnStartTouch" "wave4_area1_wall3,Enable,,14,-1"
				"OnStartTouch" "wave4_area1_wall4,Enable,,14,-1"
				"OnStartTouch" "wave4_area1_wall5,Enable,,14,-1"
				"OnStartTouch" "wave4_area1_wall6,Enable,,14,-1"
				"OnStartTouch" "wave4_area1_wall7,Enable,,14,-1"

				"OnStartTouch" "wave4_area1_ff1,$TeleportToEntity,wave4_area1_fftarget1,14,-1"
				"OnStartTouch" "wave4_area1_ff2,$TeleportToEntity,wave4_area1_fftarget2,14,-1"
				"OnStartTouch" "wave4_area1_ff3,$TeleportToEntity,wave4_area1_fftarget3,14,-1"
				"OnStartTouch" "wave4_area1_ff4,$TeleportToEntity,wave4_area1_fftarget4,14,-1"
				"OnStartTouch" "wave4_area1_ff5,$TeleportToEntity,wave4_area1_fftarget5,14,-1"
				"OnStartTouch" "wave4_area1_ff6,$TeleportToEntity,wave4_area1_fftarget6,14,-1"
            }

			prop_dynamic
			{
				"targetname" "wave4_area1_wall1"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "-1034 -4278 141"
				"angles" "0 -90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff1"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -150 -30"
				"maxs" "1 150 200"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff1"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -150 -30"
				"maxs" "1 150 200"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget1"
				"origin" "-1034 -4278 141"
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall2"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "-788 -3510 90"
				"angles" "0 -180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff2"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-300 -1 -100"
				"maxs" "300 1 3000"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff2"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-300 -1 -100"
				"maxs" "300 1 3000"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget2"
				"origin" "-788 -3510 90"
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall3"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "-230 -3275 129"
				"angles" "0 -90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff3"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -160 -100"
				"maxs" "1 160 150"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff3"
				"TeamNum" "2"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -160 -100"
				"maxs" "1 160 150"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget3"
				"origin" "-230 -3275 129"
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall4"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "303 -2927 240"
				"angles" "0 90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff4"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -120 -100"
				"maxs" "1 120 150"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff4"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -120 -100"
				"maxs" "1 120 150"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget4"
				"origin" "303 -2927 240"	
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall5"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "818 -3135 90"
				"angles" "0 -180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff5"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-250 -1 -200"
				"maxs" "250 1 3000"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff5"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-250 -1 -200"
				"maxs" "250 1 3000"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget5"
				"origin" "818 -3135 90"	
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall6"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "1075 -3386 193"
				"angles" "0 90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff6"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -1000 -200"
				"maxs" "1 200 200"
			}

			func_forcefield
			{
				"targetname" "wave4_area1_ff6"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -1000 -200"
				"maxs" "1 200 200"
			}

			info_target
			{
				"targetname" "wave4_area1_fftarget6"
				"origin" "1075 -3386 193"
			}

			prop_dynamic
			{
				"targetname" "wave4_area1_wall7"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "1075 -4111 193"
				"angles" "0 90 0"
				"solid" "6"
			}

			game_text
            {
                "origin" "1984 1984 0"
                "targetname" "jingu_text1"
                "message" "Kyle Jade" 
                "x" "-1"
                "y" "0.4"
                "spawnflags" "1"
                "effect" "2"
                "channel" "2"
                "color" "255 255 255"
                "fxtime" "0.2"
                "fadeout" "1"
                "holdtime" "4"
            }
            game_text
            {
                "origin" "1984 1984 0"
                "targetname" "jingu_text2"
                "message" "Leader of the Jade Jackasses, a Gray Clann Subsidary" 
                "x" "-1"
                "y" "0.45"
                "channel" "3"
                "spawnflags" "1"
                "color" "255 255 255"
                "fadein" "0.2"
                "fadeout" "1"
                "holdtime" "4"
            }

			trigger_add_tf_player_condition
            {
                "targetname" "cutscene_thing1"
                "condition" "87" 
                "duration" "999"
                "origin" "0 0 0"
                "mins" "-9999 -9999 -9999"
                "maxs" "9999 9999 9999"
                "spawnflags" "1"
				"StartDisabled" "1"
				"filtername" "filter_player"
            }

			trigger_remove_tf_player_condition
            {
                "targetname" "cutscene_thing2"
                "condition" "87" 
                "duration" "999"
                "origin" "0 0 0"
                "mins" "-9999 -9999 -9999"
                "maxs" "9999 9999 9999"
                "spawnflags" "1"
				"StartDisabled" "1"
				"filtername" "filter_player"
            }

			logic_relay
			{
				"targetname" "boss_spawn_logic"

				"OnTrigger" "jingu_baguette,ClearParent,,8,-1"
				"OnTrigger" "jingu_baguette,SetParent,baguette_leaving_rotation,14,-1"
				"OnTrigger" "jingu_uber,Enable,,14,-1"
				"OnTrigger" "jingu_baguette,Disable,,20,-1"
				"OnTrigger" "colonel_p1_teleporter_1,Disable,,20,-1"
				"OnTrigger" "colonel_p1_teleporter_2,Disable,,20,-1"
				"OnTrigger" "baguette_leaving_rotation,Enable,,8,-1"
				"OnTrigger" "spawnbot_wave5_jingu,Enable,,5,-1"
				"OnTrigger" "spawnbot_wave5_bodyguard,Enable,,6,-1"
				"OnTrigger" "spawnbot_wave5_player,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave6_player,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave5_player_jingu,Enable,,0,-1"
				"OnTrigger" "red_spawn_primary,Enable,,0,-1"
				"OnTrigger" "hud_bye,Trigger,,4,-1"
				"OnTrigger" "jingu_cutscene1,$EnableAll,,4,-1"
				"OnTrigger" "cutscene_thing1,Enable,,4,-1"
				"OnTrigger" "jingu_cutscene1,Kill,,8,-1"
				"OnTrigger" "jingu_cutscene2,$EnableAll,,8.1,-1"
				"OnTrigger" "jingu_text1,Display,,14,-1"
				"OnTrigger" "jingu_text2,Display,,14,-1"
				"OnTrigger" "jingu_cutscene2,Kill,,14,-1"
				"OnTrigger" "cutscene_thing1,Disable,,14,-1"
				"OnTrigger" "cutscene_thing2,Enable,,14.1,-1"
				"OnTrigger" "cutscene_thing2,Disable,,16,-1"
				"OnTrigger" "hud_hi,Trigger,,14,-1"
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "boss_teleporter"
				"target" "baguette_target"
				"filtername" "jingu_filter"
				"spawnflags" "1"
				"origin"        "515 184 68"
                "mins"          "-1000 -1000 -1000"
                "maxs"          "1000 1000 1000"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "jingu_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "jingu"
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "boss_area_teleporter"
				"target" "boss_area_target"
				"filtername" "red_filter"
				"spawnflags" "1"
				"origin"        "0 0 0"
                "mins"          "-9999 -9999 -9999"
                "maxs"          "9999 9999 9999"
				"StartDisabled" "1"
			}

			info_target
			{
				"targetname" "boss_area_target"
				"origin" "-28 -3853 1"
			}

			info_target
			{
				"targetname" "baguette_target"
				"origin" "-76 -4222 372"
			}

			info_target
			{
				"targetname" "first_colonel1_target"
				"origin" "-150 -4222 372"
			}

			info_target
			{
				"targetname" "first_colonel2_target"
				"origin" "76 -4222 372"
			}

			info_target
			{
				"targetname" "trigger_multiple_target"
				"origin" "9999 9999 9999"
			}

			game_text
			{
				"targetname" "boss_area_text1"
				"message" "A player has reached the hatch area."
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.1"
				"fadeout" "0.1"
				"holdtime" "3"
				"spawnflags" "1"
			}

			game_text
			{
				"targetname" "boss_area_text2"
				"message" "Teleporting everyone in 10 seconds..."
				"x" "-1"
				"y" "-1"
				"effect" "0"
				"color" "255 255 255"
				"fadein" "0.1"
				"fadeout" "0.1"
				"holdtime" "4"
				"spawnflags" "1"
			}

			prop_dynamic
			{
				"targetname" "jingu_baguette"
				"DisableBoneFollowers" "1"
				"origin" "-76 -4222 372"
				"angles" "0 0 0"
				"model" "models/weapons/c_models/c_bread/c_bread_baguette.mdl"
				"modelscale" "12"
				"parentname" "baguette_rotation"
			}	

			func_rotating
            {
                "targetname" "baguette_rotation"
                "origin" "-76 -4222 372"
                "mins" "-8 -8 -8"
                "maxs" "8 8 8"
                "fanfriction" "12"
                "maxspeed" "80"
                "rendermode" "10"
                "spawnflags" "65"
            }

			func_rotating
            {
                "targetname" "baguette_leaving_rotation"
                "origin" "-100 -6754 546"
                "mins" "-8 -8 -8"
                "maxs" "8 8 8"
                "fanfriction" "12"
                "maxspeed" "10"
                "rendermode" "10"
                "spawnflags" "67"
				"StartDisabled" "1"
            }

			trigger_hurt
			{
				"targetname" "jingu_death_damage_area"
				"damage" "40000"
				"damagetype" "64"
				"origin" "0 0 0" 
				"mins" "-9999 -9999 -9999"
				"maxs" "9999 9999 9999"
				"spawnflags" "1"
				"startdisabled" "1"
				"filtername" "blu_filter"
			}
		}

		CutsceneShit
		{
			NoFixup 1
			logic_relay
            {
                "targetname" "hud_bye"
                "OnTrigger" "player*,SetHUDVisibility,0,0,-1"
            }

			logic_relay
            {

                "targetname" "hud_hi"
                "OnTrigger" "player*,SetHUDVisibility,1,0,-1"
            }

			point_viewcontrol // send $EnableAll to this and then kill the entity to return the players to their normal point of view
            {
                "targetname" "jingu_cutscene1"
                "acceleration" "0"
                "deceleration" "0"
                "interpolatepositiontoplayer" "0"
                "spawnflags" "8"
                "speed" "0"
                "wait" "10"
                "origin" "-301 -3865 559"
                "angles" "40 -62 0"
            }

			point_viewcontrol // send $EnableAll to this and then kill the entity to return the players to their normal point of view
            {
                "targetname" "jingu_cutscene2"
                "acceleration" "0"
                "deceleration" "0"
                "interpolatepositiontoplayer" "0"
                "spawnflags" "8"
                "speed" "0"
                "wait" "10"
                "origin" "-69 -4032 -12"
                "angles" "-4 -92 0"
            }
		}

		W5_Bodyguard_Thing
		{
			NoFixup 1
			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "colonel_p2_teleporter_1"
				"target" "colonel_target1"
				"filtername" "colonel1_filter"
				"spawnflags" "1"
				"origin"        "515 184 68"
                "mins"          "-1000 -1000 -1000"
                "maxs"          "1000 1000 1000"
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "colonel_p2_teleporter_2"
				"target" "colonel_target2"
				"filtername" "colonel2_filter"
				"spawnflags" "1"
				"origin"        "515 184 68"
                "mins"          "-1000 -1000 -1000"
                "maxs"          "1000 1000 1000"
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "colonel_p1_teleporter_1"
				"target" "first_colonel1_target"
				"filtername" "colonel1_filter"
				"spawnflags" "1"
				"origin"        "515 184 68"
                "mins"          "-1000 -1000 -1000"
                "maxs"          "1000 1000 1000"
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "colonel_p1_teleporter_2"
				"target" "first_colonel2_target"
				"filtername" "colonel2_filter"
				"spawnflags" "1"
				"origin"        "515 184 68"
                "mins"          "-1000 -1000 -1000"
                "maxs"          "1000 1000 1000"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "colonel1_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "colonel1"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "colonel2_filter"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "colonel2"
			}

			ambient_generic
            {
                "targetname" "colonel_teleport_sound"
                "message" "mvm\mvm_tele_deliver.wav"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "colonel_spawn_enabler"

				"OnTrigger" "spawnbot_wave5_bodyguard2,Enable,,3,-1"
				"OnTrigger" "colonel_particle1,Start,,0,-1"
				"OnTrigger" "colonel_particle2,Start,,0,-1"
				"OnTrigger" "colonel_particle1,Stop,,3,-1"
				"OnTrigger" "colonel_particle2,Stop,,3,-1"
				"OnTrigger" "colonel_teleport_sound,PlaySound,,3,-1"
			}
		}

		W5_Colonel_Target1
		{
			NoFixup 1
			KeepAlive 1
			info_target
			{
				"targetname" "colonel_target1"
				"origin" "0 0 0"
			}

			info_particle_system
            {
                "effect_name" "eyeboss_tp_vortex"
                "targetname" "colonel_particle1"
                "origin" "0 0 50"
				"flag_as_weather" "0"
                "start_active" "0"
            }
		}

		W5_Colonel_Target2
		{
			NoFixup 1
			KeepAlive 1
			info_target
			{
				"targetname" "colonel_target2"
				"origin" "0 0 0"
			}

			info_particle_system
            {
                "effect_name" "eyeboss_tp_vortex"
                "targetname" "colonel_particle2"
                "origin" "0 0 50"
				"flag_as_weather" "0"
                "start_active" "0"
            }
		}

		W5_Kyle_Attribute_Remover
		{
			NoFixup 1
			KeepAlive 1
			trigger_add_tf_player_condition
            {
                "targetname" "jingu_uber"
                "condition" "5" 
                "duration" "9999"
                "origin" "0 0 0"
				"startdisabled" "1"
                "mins" "-9999 -9999 -9999"
                "maxs" "9999 9999 9999"
                "spawnflags" "1"
				"filtername"  "jingu_filter"
            }

			trigger_remove_tf_player_condition
            {
                "targetname" "jingu_no_uber"
                "condition" "5" 
                "duration" "9999"
                "startdisabled" "1"
                "origin" "0 0 0"
                "mins" "-9999 -9999 -9999"
                "maxs" "9999 9999 9999"
                "spawnflags" "1"
				"filtername"  "jingu_filter"
            }

			prop_dynamic
			{ 
				"targetname" "jingu_death"
				"DisableBoneFollowers" "1"
				"origin" "0 0 0"
				"angles" "0 0 0"
				"model" "models\player\spy.mdl"
				"StartDisabled" "1"
				"DefaultAnim" "primary_death_backstab"
				"playbackrate" "0.5"
				"Skin" "1"
			}

			logic_relay
			{
				"targetname" "jingu_death_trigger"

				"OnTrigger" "jingu_death,Enable,,0,-1"
				"OnTrigger" "timer_expire_wave5,Disable,,0,-1"
				"OnTrigger" "w5_boss_defeated_state_timer,Enable,,0,-1"
				"OnTrigger" "w5_boss_defeated_state_timer,FireTimer,,0,-1"
				"OnTrigger" "w5_jingu_death_voiceline2,PlaySound,,3,-1"
				"OnTrigger" "w5_jingu_death_music,PlaySound,,0,-1"
				"OnTrigger" "jingu_death_damage_area,Enable,,0,-1"
				"OnTrigger" "jingu_death,Disable,,2,-1"
				"OnTrigger" "w5_jingu_death_voiceline1,PlaySound,,3,-1"
				"OnTrigger" "w5_transition_fade,Fade,,5.06,-1"
				"OnTrigger" "w6_skybox_change,Trigger,,5.5,-1"
				"OnTrigger" "w6_skybox_thing,Enable,,5.5,-1"
				"OnTrigger" "w6_color_correction,Enable,,5.5,-1"
				"OnTrigger" "chat_hint2,Show,,7,-1"
			}

			env_fade //Give a "Fade" input to trigger it
			{
				"targetname" "w5_transition_fade"
				"duration" "0.1"
				"holdtime" "1.56"
				"renderamt" "255"
				"rendercolor" "0 0 0"
				"spawnflags" "0"
			}

			ambient_generic
            {
                "targetname" "w5_jingu_death_voiceline1"
                "message" "fatty_w5_end_voiceline.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_jingu_death_voiceline1"
                "message" "fatty_w5_end_voiceline.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_jingu_death_music"
                "message" "#fatty_w5_boss_defeated.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_jingu_death_music"
                "message" "#fatty_w5_boss_defeated.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_jingu_death_voiceline2"
                "message" "#fatty_w5_wave_end.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w5_jingu_death_voiceline2"
                "message" "#fatty_w5_wave_end.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "jingu_uber_remover"

				"OnTrigger" "jingu_uber,Disable,,0,-1"
				"OnTrigger" "jingu_no_uber,Enable,,0,-1"
			}
		}

		W6_Init
		{
			NoFixup 1
			prop_dynamic
			{
				"targetname" "wave6_wall1"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "-1034 -4278 141"
				"angles" "0 -90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave6_ff1"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -150 -30"
				"maxs" "1 150 200"
			}

			func_forcefield
			{
				"targetname" "wave6_ff1"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -150 -30"
				"maxs" "1 150 200"
			}

			info_target
			{
				"targetname" "wave6_fftarget1"
				"origin" "-1034 -4278 141"
			}

			prop_dynamic
			{
				"targetname" "wave6_wall2"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "-788 -3510 90"
				"angles" "0 -180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave6_ff2"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-300 -1 -100"
				"maxs" "300 1 3000"
			}

			func_forcefield
			{
				"targetname" "wave6_ff2"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-300 -1 -100"
				"maxs" "300 1 3000"
			}

			info_target
			{
				"targetname" "wave6_fftarget2"
				"origin" "-788 -3510 90"
			}

			prop_dynamic
			{
				"targetname" "wave6_wall3"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "-230 -3275 129"
				"angles" "0 -90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave6_ff3"
				"TeamNum" "3"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -160 -100"
				"maxs" "1 160 150"
			}

			func_forcefield
			{
				"targetname" "wave6_ff3"
				"TeamNum" "2"
				"renderamt" "255"
                "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -160 -100"
				"maxs" "1 160 150"
			}

			info_target
			{
				"targetname" "wave6_fftarget3"
				"origin" "-230 -3275 129"
			}

			prop_dynamic
			{
				"targetname" "wave6_wall4"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x256.mdl"
				"origin" "303 -2927 240"
				"angles" "0 90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave6_ff4"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -120 -100"
				"maxs" "1 120 150"
			}

			func_forcefield
			{
				"targetname" "wave6_ff4"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -120 -100"
				"maxs" "1 120 150"
			}

			info_target
			{
				"targetname" "wave6_fftarget4"
				"origin" "303 -2927 240"	
			}

			prop_dynamic
			{
				"targetname" "wave6_wall5"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_696x337.mdl"
				"origin" "818 -3135 90"
				"angles" "0 -180 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave6_ff5"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-250 -1 -200"
				"maxs" "250 1 3000"
			}

			func_forcefield
			{
				"targetname" "wave6_ff5"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-250 -1 -200"
				"maxs" "250 1 3000"
			}

			info_target
			{
				"targetname" "wave6_fftarget5"
				"origin" "818 -3135 90"	
			}

			prop_dynamic
			{
				"targetname" "wave6_wall6"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "1075 -3386 193"
				"angles" "0 90 0"
				"solid" "6"
			}

			func_forcefield
			{
				"targetname" "wave6_ff6"
				"TeamNum" "3"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -1000 -200"
				"maxs" "1 200 200"
			}

			func_forcefield
			{
				"targetname" "wave6_ff6"
				"TeamNum" "2"
				"renderamt" "255"
               "rendercolor" "255 255 255"
                "renderfx" "0"
                "rendermode" "0"
                "disablereceiveshadows" "0"
				"origin" "-3496 -683 442"
				"mins" "-1 -1000 -200"
				"maxs" "1 200 200"
			}

			info_target
			{
				"targetname" "wave6_fftarget6"
				"origin" "1075 -3386 193"
			}

			prop_dynamic
			{
				"targetname" "wave6_wall7"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models/props_mvm/reversemvm_redwall_352x196.mdl"
				"origin" "1075 -4111 193"
				"angles" "0 90 0"
				"solid" "6"
			}

			logic_relay
			{
				"targetname" "w6_initiate"

				"OnTrigger" "w6_skybox_change,Trigger,,2,-1"
				"OnTrigger" "w6_skybox_thing,Enable,,2,-1"
				"OnTrigger" "w6_color_correction,Enable,,2,-1"
				"OnTrigger" "wave6_wall1,Enable,,0,-1"
				"OnTrigger" "wave6_wall2,Enable,,0,-1"
				"OnTrigger" "wave6_wall3,Enable,,0,-1"
				"OnTrigger" "wave6_wall4,Enable,,0,-1"
				"OnTrigger" "wave6_wall5,Enable,,0,-1"
				"OnTrigger" "wave6_wall6,Enable,,0,-1"
				"OnTrigger" "wave6_wall7,Enable,,0,-1"
				"OnTrigger" "w6_setup_music,PlaySound,,0,-1"

				"OnTrigger" "wave6_ff1,$TeleportToEntity,wave6_fftarget1,0,-1"
				"OnTrigger" "wave6_ff2,$TeleportToEntity,wave6_fftarget2,0,-1"
				"OnTrigger" "wave6_ff3,$TeleportToEntity,wave6_fftarget3,0,-1"
				"OnTrigger" "wave6_ff4,$TeleportToEntity,wave6_fftarget4,0,-1"
				"OnTrigger" "wave6_ff5,$TeleportToEntity,wave6_fftarget5,0,-1"
				"OnTrigger" "wave6_ff6,$TeleportToEntity,wave6_fftarget6,0,-1"
				"OnTrigger" "obj_dispenser,RemoveHealth,10000,0,-1"
                "OnTrigger" "obj_sentrygun,RemoveHealth,10000,0,-1"
                "OnTrigger" "obj_teleporter,RemoveHealth,10000,0,-1"

				"OnTrigger" "spawnbot_wave5_player,Disable,0,-1"
			}

			ambient_generic
            {
                "targetname" "w6_setup_music"
                "message" "#fatty_w6_setup.mp3"
				"fadeinsecs" "10"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_setup_music"
                "message" "#fatty_w6_setup.mp3"
				"fadeinsecs" "10"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			$filter_sendprop
            {
                "targetname" "filter_player"
                "$name" "m_bIsABot"
                "$value" "0"
            }

			trigger_add_tf_player_condition
            {
                "targetname" "cutscene_thing3"
                "condition" "87" 
                "duration" "999"
                "origin" "0 0 0"
                "mins" "-9999 -9999 -9999"
                "maxs" "9999 9999 9999"
                "spawnflags" "1"
				"StartDisabled" "1"
				"filtername" "filter_player"
            }

			trigger_remove_tf_player_condition
            {
                "targetname" "cutscene_thing4"
                "condition" "87" 
                "duration" "999"
                "origin" "0 0 0"
                "mins" "-9999 -9999 -9999"
                "maxs" "9999 9999 9999"
                "spawnflags" "1"
				"StartDisabled" "1"
				"filtername" "filter_player"
            }

			logic_relay
			{
				"targetname" "w6_start"			

				"OnTrigger" "w6_setup_music,FadeOut,3,0,-1"
				"OnTrigger" "w6_phase1_music_master,Trigger,,0,-1"
				"OnTrigger" "wave_start_relay,Trigger,,0,-1"
				"OnTrigger" "hud_bye,Trigger,,15.7,-1"
				"OnTrigger" "w6_intro_cutscene1,$EnableAll,,15.7,-1"
				"OnTrigger" "cutscene_thing3,Enable,,15.7,-1"
				"OnTrigger" "w6_intro_cutscene1,Kill,,18.7,-1"
				"OnTrigger" "w6_intro_cutscene2,$EnableAll,,18.71,-1"
				"OnTrigger" "w6_intro_text,Display,,26.2,-1"
				"OnTrigger" "w6_intro_cutscene2,Kill,,26.2,-1"
				"OnTrigger" "cutscene_thing3,Disable,,26.2,-1"
				"OnTrigger" "cutscene_thing4,Enable,,26.3,-1"
				"OnTrigger" "cutscene_thing4,Disable,,28,-1"
				"OnTrigger" "hud_hi,Trigger,,26.2,-1"
				"OnTrigger" "spawnbot_wave5_area1_left,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave5_area1_right,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave5_area1_commons,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave5_area2_commons,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave5_area2_giant,Disable,,0,-1"
				"OnTrigger" "spawnbot_wave4_area5_1,Disable,,0,-1"
			}

			prop_dynamic
			{
				"targetname" "w6_skybox_thing"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models\props_lakeside_event\vortex_lakeside.mdl"
				"origin" "-211 -1325 1396"
				"angles" "0 0 0"
				"solid" "0"
				"modelscale" "32"
			}

			prop_dynamic
			{
				"targetname" "w6_skybox_thing"
				"StartDisabled" "1"
				"disablereceiveshadows" "1"
                "disableshadows" "1"
				"model" "models\props_lakeside_event\vortex_lakeside2.mdl"
				"origin" "-211 -1325 5000"
				"angles" "0 0 0"
				"solid" "0"
				"modelscale" "4"
			}

			color_correction
			{
				"targetname" "w6_color_correction"
				"filename" "calico_memes.raw"
				"fadeInDuration" "3"
				"fadeOutDuration" "0.0"
				"maxfalloff" "-1"
				"minfalloff" "-1"
				"maxweight" "1.0"
				"startdisabled" "1"
			}

			skybox_swapper
			{
				"targetname" "w6_skybox_change"
				"SkyboxName" "sky_halloween"
				//"SkyboxName" "sky_harvest_night_01"
			}
		}

		W6_Music_Master
		{
			Nofixup 1
			ambient_generic
            {
                "targetname" "w6_boss_intro"
                "message" "#fatty_w6_boss_intro.mp3"
				"fadeinsecs" "3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_intro"
                "message" "#fatty_w6_boss_intro.mp3"
				"fadeinsecs" "3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area1_loop1"
                "message" "#fatty_w6_boss_phase1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area1_loop1"
                "message" "#fatty_w6_boss_phase1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area1_loop2"
                "message" "#fatty_w6_boss_phase1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area1_loop2"
                "message" "#fatty_w6_boss_phase1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area1_loop3"
                "message" "#fatty_w6_boss_phase1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area1_loop3"
                "message" "#fatty_w6_boss_phase1.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "w6_phase1_music_master"

				"OnTrigger" "w6_boss_intro,PlaySound,,0,-1"
				"OnTrigger" "w6_boss_area1_loop1,PlaySound,,26.20,-1"
				"OnTrigger" "w6_boss_area1_loop2,PlaySound,,214.047,-1"
				"OnTrigger" "w6_boss_area1_loop3,PlaySound,,401.894,-1"
			}

			ambient_generic
            {
                "targetname" "w6_boss_area2_loop1"
                "message" "#fatty_w6_boss_phase2_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area2_loop1"
                "message" "#fatty_w6_boss_phase2_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area2_loop2"
                "message" "#fatty_w6_boss_phase2_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area2_loop2"
                "message" "#fatty_w6_boss_phase2_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area2_loop3"
                "message" "#fatty_w6_boss_phase2_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_boss_area2_loop3"
                "message" "#fatty_w6_boss_phase2_loop.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "w6_phase2_music_master"

				"OnTrigger" "w6_boss_area2_loop1,PlaySound,,0,-1"
				"OnTrigger" "w6_boss_area2_loop2,PlaySound,,175.673,-1"
				"OnTrigger" "w6_boss_area2_loop3,PlaySound,,351.346,-1"
			}

			ambient_generic
            {
                "targetname" "w6_boss_defeated"
                "message" "#fatty_w6_boss_defeated.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_end_sound"
                "message" "fatty_w6_fart.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			logic_timer
			{
				"targetname" "w6_boss_area2_state_timer"

				"RefireTime" "0.1"
				"StartDisabled" "1"

				"OnTimer" "w6_boss_area1_loop1,Volume,0,0,-1"
				"OnTimer" "w6_boss_area1_loop2,Volume,0,0,-1"
				"OnTimer" "w6_boss_area1_loop3,Volume,0,0,-1"
			}

			logic_timer
			{
				"targetname" "w6_boss_dead_state_timer"

				"RefireTime" "0.1"
				"StartDisabled" "1"

				"OnTimer" "w6_boss_area2_loop1,Volume,0,0,-1"
				"OnTimer" "w6_boss_area2_loop2,Volume,0,0,-1"
				"OnTimer" "w6_boss_area2_loop3,Volume,0,0,-1"
			}
		}

		W6_Stuff
		{
			NoFixup 1
			logic_relay
            {
                "targetname" "hud_bye"
                "OnTrigger" "player*,SetHUDVisibility,0,0,-1"
            }

			logic_relay
            {

                "targetname" "hud_hi"
                "OnTrigger" "player*,SetHUDVisibility,1,0,-1"
            }

			point_viewcontrol // send $EnableAll to this and then kill the entity to return the players to their normal point of view
            {
                "targetname" "w6_intro_cutscene1"
                "acceleration" "0"
                "deceleration" "0"
                "interpolatepositiontoplayer" "0"
                "spawnflags" "8"
                "speed" "0"
                "wait" "10"
                "origin" "141 -3290 321"
                "angles" "25 95 0"
            }

			point_viewcontrol // send $EnableAll to this and then kill the entity to return the players to their normal point of view
            {
                "targetname" "w6_intro_cutscene2"
                "acceleration" "0"
                "deceleration" "0"
                "interpolatepositiontoplayer" "0"
                "spawnflags" "8"
                "speed" "0"
                "wait" "10"
                "origin" "113 -3649 245"
                "angles" "1 88 0"
            }

			game_text
            {
                "origin" "1984 1984 0"
                "targetname" "w6_intro_text"
                "message" "THE LAST CAPTAIN PUNCH" 
                "x" "-1"
                "y" "0.4"
                "spawnflags" "1"
                "effect" "2"
                "channel" "2"
                "color" "255 255 255"
                "fxtime" "0.2"
                "fadeout" "1"
                "holdtime" "4"
            }

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "w6_punch_teleporter_phase2"
				"target" "w6_punch_phase2"
				"filtername" "punch_filter_phase2"
				"spawnflags" "1"
				"origin"        "-1706 2329 129"
                "mins"          "-300 -300 -1"
                "maxs"          "300 300 300"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "punch_filter_phase2"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "punch_phase2"
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "w6_punch_teleporter_phase4"
				"target" "w6_punch_phase4"
				"filtername" "punch_filter_phase4"
				"spawnflags" "1"
				"origin"        "-1706 2329 129"
                "mins"          "-300 -300 -1"
                "maxs"          "300 300 300"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "punch_filter_phase4"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "punch_phase4"
			}

			trigger_teleport
			{
				"OnStartTouch" "teleporter_text,Display,,0,-1"
				"targetname" "w6_punch_teleporter_end"
				"target" "w6_punch_defeated"
				"filtername" "punch_filter_end"
				"spawnflags" "1"
				"origin"        "-1706 2329 129"
                "mins"          "-300 -300 -1"
                "maxs"          "300 300 300"
			}

			filter_tf_bot_has_tag 
			{
				"targetname" "punch_filter_end"
				"Negated" "Allow entities that match criteria"
				"require_all_tags" "1"
				"tags" "punch_end"
			}

			training_annotation
            {
              "targetname"   "w6_punch_hint"
              "display_text" "It's not over yet. He ran away to front. Kick his ass."
              "lifetime"     "10"
              "origin" "-21 1762 4"
            }

			logic_relay
			{
				"targetname" "w6_punch_phase2_dead"

				"OnTrigger" "w6_phase2_music_master,Trigger,,0,-1"
				"OnTrigger" "w6_boss_area2_state_timer,Enable,,0,-1"
				"OnTrigger" "w6_boss_area2_state_timer,FireTimer,,0,-1"
				"OnTrigger" "wave6_wall1,Disable,,2.8,-1"
				"OnTrigger" "wave6_wall2,Disable,,2.8,-1"
				"OnTrigger" "wave6_wall3,Disable,,2.8,-1"
				"OnTrigger" "wave6_wall4,Disable,,2.8,-1"
				"OnTrigger" "wave6_wall5,Disable,,2.8,-1"
				"OnTrigger" "wave6_wall6,Disable,,2.8,-1"
				"OnTrigger" "wave6_wall7,Disable,,2.8,-1"
				"OnTrigger" "w6_punch_hint,Show,,2.8,-1"

				"OnTrigger" "wave6_ff1,Disable,,2.8,-1"
				"OnTrigger" "wave6_ff2,Disable,,2.8,-1"
				"OnTrigger" "wave6_ff3,Disable,,2.8,-1"
				"OnTrigger" "wave6_ff4,Disable,,2.8,-1"
				"OnTrigger" "wave6_ff5,Disable,,2.8,-1"
				"OnTrigger" "wave6_ff6,Disable,,2.8,-1"
				"OnTrigger" "wall1_ff,Disable,,2.8,-1"
				"OnTrigger" "wall2_ff,Disable,,2.8,-1"
				"OnTrigger" "wall3_ff,Disable,,2.8,-1"
				"OnTrigger" "wall4_ff,Disable,,2.8,-1"
				"OnTrigger" "wall5_static_gate_ff1,Disable,,2.8,-1"
				"OnTrigger" "wall5_static_gate_ff2,Disable,,2.8,-1"
				"OnTrigger" "w6_phase3_enabler,Enable,,2.8,-1"

				"OnTrigger" "spawnbot_wave5_area1_left,Enable,,2.8,-1"
				"OnTrigger" "spawnbot_wave5_area1_right,Enable,,2.8,-1"
				"OnTrigger" "spawnbot_wave5_area1_commons,Enable,,2.8,-1"
				"OnTrigger" "spawnbot_wave5_area2_commons,Enable,,2.8,-1"
				"OnTrigger" "spawnbot_wave5_area2_giant,Enable,,2.8,-1"
				"OnTrigger" "spawnbot_wave4_area5_1,Enable,,2.8,-1"

				"OnTrigger" "spawnbot_wave5_area1_left,Disable,,25,-1"
				"OnTrigger" "spawnbot_wave5_area1_right,Disable,,25,-1"
				"OnTrigger" "spawnbot_wave5_area1_commons,Disable,,25,-1"
				"OnTrigger" "spawnbot_wave5_area2_commons,Disable,,25,-1"
				"OnTrigger" "spawnbot_wave5_area2_giant,Disable,,25,-1"
				"OnTrigger" "spawnbot_wave4_area5_1,Disable,,25,-1"

				"OnTrigger" "spawnbot_wave6_machine,Enable,,32.833,-1"
			}

			filter_activator_tfteam
            {
                "targetname" "red_filter"
                "TeamNum" "2"
                "Negated" "0"
            }

			trigger_multiple
            {
                "targetname"    "w6_phase3_enabler"
                "origin"        "-1223 696 4"
                "mins"          "-9999 -10 -4000"
                "maxs"          "9999 10 4000"
                "StartDisabled" "1"
                "spawnflags"    "1"
				"filtername" "red_filter"
                "OnStartTouch" "spawnbot_wave6_punch_phase3,Enable,,0,-1"
            }

			skybox_swapper
			{
				"targetname" "init_skybox_change"
				"SkyboxName" "sky_goldrush_01"
			}

			env_fade 
			{
				"targetname" "w6_end_fade1"
				"duration" "0.5"
				"holdtime" "5"
				"renderamt" "255"
				"rendercolor" "255 255 255"
				"spawnflags" "0"
			}

			env_fade 
			{
				"targetname" "w6_end_fade2"
				"duration" "1.5"
				"holdtime" "0.1"
				"renderamt" "255"
				"rendercolor" "255 255 255"
				"spawnflags" "1"
			}

			env_screenoverlay
            {
                "targetname"    "w6_end_overlay"
                "OverlayName1"    "memes/fatty_w6_meme"
                "OverlayTime1"    "1.18"
            }

			ambient_generic
            {
                "targetname" "w6_fart"
                "message" "#fatty_w6_fart.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_fart"
                "message" "#fatty_w6_fart.mp3"
				"health" "10"
                "spawnflags" "17"
                "origin" "0 0 0"
            }
		}

		W6_Punch_Phase1_Target
		{
			NoFixup 1
			KeepAlive 1
			info_target
			{
				"targetname" "w6_punch_phase2"
				"origin" "0 0 0"
			}
		}

		W6_Punch_Phase3_Target
		{
			NoFixup 1
			KeepAlive 1
			info_target
			{
				"targetname" "w6_punch_phase4"
				"origin" "0 0 0"
			}
		}

		W6_Punch_Phase4_Target
		{
			NoFixup 1
			KeepAlive 1
			info_target
			{
				"targetname" "w6_punch_defeated"
				"origin" "0 0 0"
			}
		}

		W6_Punch_End_Explosions
		{
			NoFixup 1
			KeepAlive 1
			info_particle_system
            {
                "effect_name" "ExplosionCore_MidAir"
                "targetname" "w6_end_explosion1"
                "origin" "-10 0 0"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_explosion_sound1"
                "message" "weapons\explode3.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "ExplosionCore_MidAir"
                "targetname" "w6_end_explosion2"
                "origin" "10 0 10"
				"flag_as_weather" "0"
                "start_active" "0"
            } 

			ambient_generic
            {
                "targetname" "w6_explosion_sound2"
                "message" "weapons\explode3.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "drg_cow_explosioncore_charged_blue"
                "targetname" "w6_end_explosion3"
                "origin" "0 0 60"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			info_particle_system
            {
                "effect_name" "drg_cow_explosion_flyingembers_blue"
                "targetname" "w6_end_explosion3"
                "origin" "0 0 60"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_explosion_sound3"
                "message" "weapons\cow_mangler_explosion_normal_01.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "taunt_demo_nuke_explosion"
                "targetname" "w6_end_explosion4"
                "origin" "-10 0 60"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			info_particle_system
            {
                "effect_name" "ExplosionCore_buildings"
                "targetname" "w6_end_explosion5"
                "origin" "0 0 80"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_explosion_sound5"
                "message" "weapons\rocket_directhit_explode1.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "taunt_demo_nuke_explosion"
                "targetname" "w6_end_explosion6"
                "origin" "-5 0 50"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_explosion_sound6"
                "message" "weapons\loose_cannon_explode.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "ExplosionCore_buildings"
                "targetname" "w6_end_explosion7"
                "origin" "-10 0 60"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_explosion_sound7"
                "message" "weapons\air_burster_explode1.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "ExplosionCore_buildings"
                "targetname" "w6_end_explosion8"
                "origin" "-10 0 30"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_explosion_sound8"
                "message" "weapons\air_burster_explode1.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "drg_cow_explosioncore_charged_blue"
                "targetname" "w6_end_explosion9"
                "origin" "0 0 40"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			info_particle_system
            {
                "effect_name" "drg_cow_explosion_flyingembers_blue"
                "targetname" "w6_end_explosion9"
                "origin" "0 0 40"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_explosion_sound9"
                "message" "weapons\cow_mangler_explosion_charge_04.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }


			info_particle_system
            {
                "effect_name" "rd_robot_explosion_smoke_linger"
                "targetname" "w6_end_explosion_end1"
                "origin" "10 0 10"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_end1"
                "message" "weapons\airstrike_small_explosion_01.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "rd_robot_explosion_smoke_linger"
                "targetname" "w6_end_explosion_end2"
                "origin" "7 0 50"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_end2"
                "message" "weapons\tacky_grenadier_explode3.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "rd_robot_explosion_smoke_linger"
                "targetname" "w6_end_explosion_end3"
                "origin" "-10 0 30"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_end3"
                "message" "mvm\giant_soldier\giant_soldier_explode.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "rd_robot_explosion_smoke_linger"
                "targetname" "w6_end_explosion_end4"
                "origin" "0 0 100"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_end4"
                "message" "mvm\giant_common\giant_common_explodes_02.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			info_particle_system
            {
                "effect_name" "hightower_explosion"
                "targetname" "w6_end_explosion_end5"
                "origin" "0 0 0"
				"flag_as_weather" "0"
                "start_active" "0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_end5"
                "message" "mvm\mvm_tank_explode.wav"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_heavy1"
                "message" "vo\mvm\norm\heavy_mvm_painsharp05.mp3"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_heavy2"
                "message" "vo\mvm\norm\heavy_mvm_painsharp03.mp3"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_heavy3"
                "message" "vo\mvm\norm\heavy_mvm_painsevere03.mp3"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_heavy4"
                "message" "vo\mvm\norm\heavy_mvm_helpme02.mp3"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			ambient_generic
            {
                "targetname" "w6_end_explosion_sound_heavy5"
                "message" "vo\mvm\norm\heavy_mvm_paincrticialdeath03.mp3"
				"health" "10"
                "spawnflags" "49"
                "origin" "0 0 0"
            }

			logic_relay
			{
				"targetname" "w6_end_explosions"

				"OnSpawn" "w6_boss_defeated,PlaySound,,0,-1"
				"OnSpawn" "w6_boss_dead_state_timer,Enable,,0,-1"
				"OnSpawn" "w6_boss_dead_state_timer,StartTimer,,0,-1"
				"OnSpawn" "w6_end_explosion1,Start,,0.3,-1"
				"OnSpawn" "w6_explosion_sound1,PlaySound,,0.3,-1"
				"OnSpawn" "w6_end_explosion_sound_heavy1,PlaySound,,0.5,-1"
				"OnSpawn" "w6_end_explosion2,Start,,0.6,-1"
				"OnSpawn" "w6_explosion_sound2,PlaySound,,0.6,-1"
				"OnSpawn" "w6_end_explosion3,Start,,1.1,-1"
				"OnSpawn" "w6_explosion_sound3,PlaySound,,1.1,-1"
				"OnSpawn" "w6_end_explosion4,Start,,2,-1"
				"OnSpawn" "w6_explosion_sound4,PlaySound,,2,-1"
				"OnSpawn" "w6_end_explosion_sound_heavy2,PlaySound,,2.2,-1"
				"OnSpawn" "w6_end_explosion5,Start,,2.9,-1"
				"OnSpawn" "w6_explosion_sound5,PlaySound,,2.9,-1"
				"OnSpawn" "w6_end_explosion6,Start,,3.8,-1"
				"OnSpawn" "w6_explosion_sound6,PlaySound,,3,8,-1"
				"OnSpawn" "w6_end_explosion7,Start,,4.3,-1"
				"OnSpawn" "w6_explosion_sound7,PlaySound,,4.3,-1"
				"OnSpawn" "w6_end_explosion_sound_heavy3,PlaySound,,4.6,-1"
				"OnSpawn" "w6_end_explosion8,Start,,4.7,-1"
				"OnSpawn" "w6_explosion_sound8,PlaySound,,4.7,-1"
				"OnSpawn" "w6_end_explosion9,Start,,5.1,-1"
				"OnSpawn" "w6_explosion_sound9,PlaySound,,5.1,-1"
				"OnSpawn" "w6_end_explosion_sound_heavy4,PlaySound,,6.3,-1"

				"OnSpawn" "w6_end_explosion_end1,Start,,6.5,-1" //final explosions
				"OnSpawn" "w6_end_explosion_sound_end1,PlaySound,,6.5,-1"
				"OnSpawn" "w6_end_explosion_end2,Start,,7,-1"
				"OnSpawn" "w6_end_explosion_sound_end2,PlaySound,,7,-1"
				"OnSpawn" "w6_end_explosion_end3,Start,,7.5,-1"
				"OnSpawn" "w6_end_explosion_sound_end3,PlaySound,,7.5,-1"
				"OnSpawn" "w6_end_explosion_end4,Start,,8,-1"
				"OnSpawn" "w6_end_explosion_sound_end4,PlaySound,,8,-1"
				"OnSpawn" "w6_end_explosion_end5,Start,,8.5,-1"
				"OnSpawn" "w6_end_explosion_sound_end5,PlaySound,,8.5,-1"
				"OnSpawn" "w6_end_explosion_sound_heavy5,PlaySound,,8.5,-1"
				"OnSpawn" "w6_end_fade1,Fade,,8.4,-1"
				"OnSpawn" "w6_end_fade2,Fade,,13.2,-1"
				"OnSpawn" "w6_fart,PlaySound,,18,-1"
				"OnSpawn" "w6_end_overlay,StartOverlays,,18,-1"
				"OnSpawn" "hud_bye,Trigger,,18,-1"
				"OnSpawn" "w6_end_overlay,StopOverlays,,19,-1"
				"OnSpawn" "hud_hi,Trigger,,19.1,-1"
				"OnSpawn" "w6_color_correction,Disable,,18,-1"
				"OnSpawn" "init_skybox_change,Trigger,,19,-1"
			}
		}
	}

	Templates
	{
		T_TFBot_Wave1Scout
		{
			Class Scout
			Item "Mad Milk"
			Attributes SuppressFire
			WeaponRestrictions SecondaryOnly
			UseHumanModel 1

			Action Mobber

			FireWeapon    
          	{
                Delay 2.4
                Repeats 1
                Duration 3
				Type "Primary" 	
			}

			InterruptAction   
			{
				AimTarget "-17 1768 -50"
				
				Delay 1 
                Repeats 0
				Duration 8
			}
			CharacterAttributes
			{
				"move speed bonus" 0.001
				"effect bar recharge rate increased" 0.01
			}

			AddCond   
			{ 
				Name TF_COND_REPROGRAMMED 
			} 

			Taunt    //Taunt periodically
			{
				Delay 26
				Name "Taunt: The Scaredy-cat!" 
			}
		}

		T_TFBot_Wave1Sniper
		{
			Class Sniper
			Item "Jarate"
			Attributes SuppressFire
			WeaponRestrictions SecondaryOnly
			UseHumanModel 1

			Action Mobber

			FireWeapon    
          	{
                Delay 5
                Repeats 1
                Duration 3
				Type "Primary" 	
			}

			Taunt    //Taunt periodically
			{
				Delay 13.5
				Name "Taunt: The Scaredy-cat!" 
			}

			InterruptAction   
			{
				AimTarget "-17 1768 -50"
				
				Delay 3 
                Repeats 0
				Duration 8
			}

			CharacterAttributes
			{
				"move speed bonus" 0.001
				"effect bar recharge rate increased" 0.01
			}

			AddCond   
			{ 
				Name TF_COND_REPROGRAMMED 
			} 

			ChangeAttributes   
			{
				Delay  14.5
				Cooldown  9999
				Name  "Death" 
			}

			EventChangeAttributes
			{
				Death
				{
					CharacterAttributes
					{
						"health regen" -9999
					}
				}
			}		
		}

		//wave 2 robots
		T_TFBot_Wave2_Soldier_Flamethrower
		{
			Class Soldier
			Skill Easy
			Name "Pyro"
			Item "tf_weapon_flamethrower"

			ItemAttributes
			{
				ItemName "tf_weapon_flamethrower"
				"custom item model" "models\weapons\c_models\c_rocketlauncher\c_rocketlauncher.mdl"
			}
		}

		T_TFBot_Wave2_Pyro_RocketLauncher
		{
			Class Pyro
			Skill Normal
			Name "Soldier"
			Item "tf_weapon_rocketlauncher"

			ItemAttributes
			{
				ItemName "tf_weapon_rocketlauncher"
				"custom item model" "models\weapons\c_models\c_flamethrower\c_flamethrower.mdl"
			}
		}

		T_TFBot_Wave2_Soldier_Scattergun
		{
			Class Soldier
			Skill Normal
			Item "tf_weapon_scattergun"
		}

		T_TFBot_Wave2_Pyro_Scattergun
		{
			Class Pyro
			Skill Normal
			Item "tf_weapon_scattergun"
		}

		T_TFBot_Wave2_Soldier_Rocketlauncher
		{
			Class Soldier
			Skill Normal
		}

		T_TFBot_Wave2_Pyro_Flamethrower
		{
			Class Pyro
			Skill Easy
		}

		T_TFBot_Wave2_Soldier_GrenadeLauncher
		{
			Class Soldier
			Skill Normal
			Item "tf_weapon_grenadelauncher"
		}

		T_TFBot_Wave2_Pyro_GrenadeLauncher
		{
			Class Pyro
			Skill Normal
			Item "tf_weapon_grenadelauncher"
		}

		T_TFBot_Wave2_Soldier_Minigun
		{
			Class Soldier
			Skill Normal
			Item "tf_weapon_minigun"
		}

		T_TFBot_Wave2_Pyro_Minigun
		{
			Class Pyro
			Skill Normal
			Item "tf_weapon_minigun"
		}

		T_TFBot_Wave2_Soldier_Shotgun
		{
			Class Soldier
			Skill Normal
			WeaponRestrictions SecondaryOnly
		}

		T_TFBot_Wave2_Pyro_Shotgun
		{
			Class Pyro
			Skill Normal
			WeaponRestrictions SecondaryOnly
		}

		T_TFBot_Wave2_Soldier_SniperRifle
		{
			Class Soldier
			Skill Normal
			Item "tf_weapon_sniperrifle"
		}

		T_TFBot_Wave2_Pyro_SniperRifle
		{
			Class Pyro
			Skill Normal
			Item "tf_weapon_sniperrifle"
		}

		T_TFBot_Wave2_Soldier_Syringe
		{
			Class Soldier
			Skill Normal
			Item "TF_WEAPON_SYRINGEGUN_MEDIC"
		}

		T_TFBot_Wave2_Pyro_Syringe
		{
			Class Pyro
			Skill Normal
			Item "TF_WEAPON_SYRINGEGUN_MEDIC"
		}

		T_TFBot_Wave2_Soldier_Revolver
		{
			Class Soldier
			Skill Normal
			Item "TF_WEAPON_REVOLVER"
		}

		T_TFBot_Wave2_Pyro_Revolver
		{
			Class Pyro
			Skill Normal
			Item "TF_WEAPON_REVOLVER"
		}

		T_TFBot_Wave2_Giant_Demoman
		{
			Class Scout
			Name "Giant Demoman"
			ClassIcon demo_giant
			Item "Glengarry Bonnet"
			Skill Expert
			Health 3300
			WeaponRestrictions PrimaryOnly
			Attributes HoldFireUntilFullReload
			Attributes MiniBoss
			Item "TF_WEAPON_GRENADELAUNCHER"
			CharacterAttributes
			{
				"move speed bonus"	0.25
				"damage force reduction" 0.5
				"airblast vulnerability multiplier" 0.5
				"override footstep sound set" 4
			}
		}

		T_TFBot_Wave2_Demoman_Regular
		{
			Class Demoman
			Skill Normal
		}

		T_TFBot_Wave2_Demoman_Buster
		{
			Class Demoman
			Skill Normal
			UseBusterModel 1  
		}

		T_TFBot_Wave2_Boss
		{
			Class Demoman
			Name "I LOVE MY BAGPIPES SO MUCH"
			ClassIcon demo_burst_giant
			Health 16000
			Skill Expert
			WeaponRestrictions PrimaryOnly
			Attributes MiniBoss
			Attributes UseBossHealthBar
			Attributes AlwaysCrit

			UseHumanModel 1

			Taunt
			{
				Delay 1
				Cooldown 4
				Repeats 0
				Name "Taunt: True Scotsman's Call" 
			}
			ItemAttributes
			{
				ItemName "TF_WEAPON_GRENADELAUNCHER"
				"faster reload rate" 0.35
				"damage bonus" 0.33
				"fire rate bonus" 0.2
				"clip size upgrade atomic" 7.0
				"override projectile type" 7
				"projectile spread angle penalty" 8
				"Projectile speed increased"	1.7
			}

			CharacterAttributes
			{
				"move speed bonus"	0.4
				"gesture speed increase" 2
				"damage force reduction" 0.4
				"airblast vulnerability multiplier" 0.4
				"override footstep sound set" 4
			}

			ChangeAttributes   
			{
				Delay  2
				Cooldown  9999
				Name  "Activated" 
			}

			EventChangeAttributes
			{
				Activated
				{
					ItemAttributes
					{
						ItemName "tf_weapon_grenadelauncher"
						"override projectile type" 17
					}
				}
			}	
		}

		//wave 3 robots
		T_TFBot_Wave3_Heavyling_Mighty_Intro
		{
			Class Heavy
			Name "Punch the Mighty"
			WeaponRestrictions MeleeOnly

			ClassIcon heavy_chief

			UseHumanModel 1

			Action Mobber
			Health 900

			SpawnTemplate "Wave3_Intro"   

			Item "Prinny Machete"
			Item "War Head"
			Item "The Samson Skewer"

			Taunt    //Taunt periodically
			{
				Delay 0.5
				Repeats 1
				Name "Taunt: The Proletariat Showoff" 
			}

			FireInput   
			{
				Target intro_sequence
				Action Trigger
				Delay 0.5
				Repeats 1
			}

			ChangeAttributes   
			{
				Delay  6.5
				Cooldown  9999
				Name  "Activated" 
			}

			CharacterAttributes
			{
				"dmg taken increased" 0
				"damage force reduction" 0
			}

			EventChangeAttributes
			{
				Activated
				{
					CharacterAttributes
					{
						"dmg taken increased" 1
						"damage force reduction" 1
					}
				}
			}
		}

		T_TFBot_Wave3_Heavyling_Mighty
		{
			Class Heavy
			Name "Punchling the Mighty"
			WeaponRestrictions MeleeOnly

			ClassIcon heavy_chief
			UseHumanModel 1

			Action Mobber
			Health 400

			Item "Prinny Machete"
			Item "War Head"
			Item "The Samson Skewer"
		}

		T_TFBot_Wave3_Heavyling_Winged
		{
			Class Heavy
			Name "Winged Punchling"
			WeaponRestrictions MeleeOnly

			ClassIcon heavy_chief
			UseHumanModel 1

			Action Mobber

			Item "War Head"
			Item "The Grand Duchess Fairy Wings"

			CharacterAttributes
			{
				"damage force reduction" 10
				"move speed bonus" 1.4
				"cancel falling damage" 1
			}
		}

		T_TFBot_Wave3_Heavyling_Hopping
		{
			Class Heavy
			Name "Hopping Punchling"
			WeaponRestrictions MeleeOnly

			ClassIcon heavy_chief
			UseHumanModel 1

			Action Mobber

			Attributes AutoJump
				AutoJumpMin 1
				AutoJumpMax 2

			Item "War Head"

			CharacterAttributes
			{
				"cancel falling damage" 1
				"increased jump height" 2.5
				"torso scale" 0.5
			}
		}

		T_TFBot_Wave3_Heavyling_Heavy
		{
			Class Heavy
			Name "Heavy Punchling"
			WeaponRestrictions MeleeOnly

			ClassIcon heavy_chief

			Action Mobber
			UseHumanModel 1


			Health 700

			Scale 1.5

			Item "War Head"

			CharacterAttributes
			{
				"move speed bonus" 0.8
				"damage force reduction" 0.01
				"damage causes airblast" 1
				"damage bonus" 1.5
				"hand scale" 2
			}
		}

		T_TFBot_Wave3_Heavyling_Turret
		{
			Class Heavy
			Name "Punchling Turret"
			WeaponRestrictions PrimaryOnly
			Attributes SuppressFire

			ClassIcon heavy_chief
			UseHumanModel 1

			Action Mobber


			Health 650

			Item "War Head"

			FireWeapon    //Periodically fires weapon
            {
                Delay 2 
                Cooldown 12
                Repeats 0 
                Duration 4 
				Type "Primary" 
			}

			CharacterAttributes
			{
				"move speed bonus" 0.01
				"damage force reduction" 0.01
				"torso scale" 3
				"head scale" 3
				"hand scale" 1.5
			}
		}

		T_TFBot_Wave3_Heavyling_Lanky
		{
			Class Heavy
			Name "Lanky Punchling"
			WeaponRestrictions MeleeOnly

			ClassIcon heavy_chief
			UseHumanModel 1

			Health 600

			Action Mobber


			Item "Prinny Machete"
			Item "War Head"
			Item "The Samson Skewer"

			CharacterAttributes
			{
				"melee bounds multiplier" 2
    			"melee range multiplier" 2
				"damage force reduction" 0.01
				"torso scale" 2
			}
		}

		T_TFBot_Wave3_Heavyling_Head
		{
			Class Heavy
			Name "Head of Punch"
			WeaponRestrictions MeleeOnly

			ClassIcon heavy_chief
			UseHumanModel 1
			Scale 2

			Health 1200

			Action Mobber

			Item "War Head"

			Attributes AutoJump
				AutoJumpMin 6
				AutoJumpMax 8

			CharacterAttributes
			{
				"torso scale" 0.01
				"head scale" 10
				"move speed bonus" 0.6
				"increased air control" 10
				"melee bounds multiplier" 0.5
    			"melee range multiplier" 0.5
				"damage force reduction" 0.01
				"increased jump height" 4
				"dmg taken increased" 0.05 
				"dmg from melee increased" 20
				"dmg from ranged reduced" 20
				"boots falling stomp" 1
 			}
		}

		T_TFBot_Wave3_Heavyling_Volatile
		{
			Class Heavy
			Name "Volatile Punchling"
			WeaponRestrictions PrimaryOnly
			Skill Expert
			Attributes SuppressFire

			ClassIcon heavy_chief
			UseHumanModel 1

			Action Mobber

			Health 200

			FireWeapon    //Periodically fires weapon
            {
                Delay 4
                Cooldown 0.2
                Repeats 0 
				IfSeeTarget 1 
                Duration 0.2
				Type "Primary" 
			}


			Item "tf_weapon_grenadelauncher"
			Item "The Bomber Knight"

			ItemAttributes
			{
				ItemName "The Bomber Knight"
				"set item tint rgb" 13595446
			}

			ItemAttributes
			{
				ItemName "tf_weapon_grenadelauncher"
				"fuse bonus" 0.01
				"damage bonus" 2.5
				"fire rate bonus" 3
				"blast dmg to self increased" 10
				"projectile speed increased" 0.01
				"blast radius increased" 2.5
				"use large smoke explosion" 1
			}

			CharacterAttributes
			{
				"move speed bonus" 2
				"head scale" 3
 			}
		}

		T_TFBot_Wave3_Heavyling_Fluke
		{
			Class Heavy
			Name "Fluke Punchling"
			WeaponRestrictions MeleeOnly

			ClassIcon heavy_chief

			SpawnTemplate "Wave3_Fluke_Target"  

			Attributes SuppressFire
			UseHumanModel 1

			Action Mobber

			Health 2000

			Scale 2

			Item "War Head"

			CharacterAttributes
			{
				"damage force reduction" 0.01
				"move speed bonus" 0.35
				"head scale" 0.5
				"torso scale" 0.01
 			}
		}

		T_TFBot_Wave3_Heavyling_Fluke_Spawn
		{
			Class Heavyweapons
			Name "Little Punchling"
			WeaponRestrictions MeleeOnly

			ClassIcon heavy_chief_support
			UseHumanModel 1

			Action Mobber

			Health 200

			Scale 0.75

			Tag fluke

			Item "War Head"

			CharacterAttributes
			{
				"damage force reduction" 0.01
				"damage bonus" 0.65
				"head scale" 0.5
 			}
		}

		T_TFBot_Wave3_Heavyling_Addcond1
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Mysterious Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Action Mobber

			UseHumanModel 1

			Item "War Head"

			DamageAppliesCond  
			{
				Index 107
				Duration 3 
			}

			CharacterAttributes
			{
				"torso scale" -1
				"move speed bonus" 2
				"damage bonus" 0.2
				"fire rate bonus" 0.5
				"dmg taken increased" 0.75
			}
		}

		T_TFBot_Wave3_Heavyling_Addcond2
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Mysterious Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Action Mobber

			UseHumanModel 1

			Item "War Head"

			DamageAppliesCond  
			{
				Index 126
				Duration 3 
			}

			CharacterAttributes
			{
				"torso scale" -1
				"move speed bonus" 2
				"damage bonus" 0.2
				"fire rate bonus" 0.5
				"dmg taken increased" 0.75
			}
		}

		T_TFBot_Wave3_Heavyling_Addcond3
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Mysterious Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Action Mobber
			UseHumanModel 1

			Item "War Head"

			DamageAppliesCond  
			{
				Index 0
				Duration 3 
			}

			CharacterAttributes
			{
				"torso scale" -1
				"move speed bonus" 2
				"damage bonus" 0.2
				"fire rate bonus" 0.5
				"dmg taken increased" 0.75
			}
		}

		T_TFBot_Wave3_Heavyling_Addcond4
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Mysterious Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Action Mobber

			UseHumanModel 1

			Item "War Head"

			DamageAppliesCond  
			{
				Index 84
				Duration 6
			}

			CharacterAttributes
			{
				"torso scale" -1
				"move speed bonus" 2
				"damage bonus" 0.2
				"fire rate bonus" 0.5
				"dmg taken increased" 0.75
			}
		}

		T_TFBot_Wave3_Heavyling_Addcond5
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Mysterious Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Action Mobber

			UseHumanModel 1

			Item "War Head"

			DamageAppliesCond  
			{
				Index 82
				Duration 3
			}

			CharacterAttributes
			{
				"torso scale" -1
				"move speed bonus" 2
				"damage bonus" 0.15
				"fire rate bonus" 0.5
				"dmg taken increased" 0.75
			}
		}

		T_TFBot_Wave3_Heavyling_Addcond6
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Mysterious Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Action Mobber

			UseHumanModel 1

			Item "War Head"

			DamageAppliesCond  
			{
				Index 77
				Duration 3
			}

			CharacterAttributes
			{
				"torso scale" -1
				"move speed bonus" 2
				"damage bonus" 0.2
				"fire rate bonus" 0.5
				"dmg taken increased" 0.75
			}
		}

		T_TFBot_Wave3_Heavyling_Addcond7
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Mysterious Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Action Mobber

			UseHumanModel 1

			Item "War Head"

			DamageAppliesCond  
			{
				Index 22
				Duration 1
			}

			CharacterAttributes
			{
				"torso scale" -1
				"move speed bonus" 2
				"damage bonus" 0.2
				"fire rate bonus" 0.5
				"dmg taken increased" 0.75
			}
		}

		T_TFBot_Wave3_Heavyling_Addcond8
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Mysterious Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Action Mobber

			UseHumanModel 1

			Item "War Head"

			DamageAppliesCond  
			{
				Index 108
				Duration 1
			}

			CharacterAttributes
			{
				"torso scale" -1
				"move speed bonus" 2
				"damage bonus" 0.2
				"fire rate bonus" 0.5
				"dmg taken increased" 0.75
			}
		}

		T_TFBot_Wave3_Heavyling_Excited1
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Excited Punchling"
			Skill Expert
			ClassIcon heavy_chief

			Action Mobber

			Health 400
			UseHumanModel 1

			Item "War Head"

			Taunt    
			{
				Delay 1
				Cooldown 1
				Repeats 0
				Duration 9999 
				Name "Taunt: Kazotsky Kick" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"gesture speed increase" 2.5
			}
		}

		T_TFBot_Wave3_Heavyling_Excited2
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Excited Punchling"
			Skill Expert
			ClassIcon heavy_chief

			Action Mobber

			Health 400
			UseHumanModel 1

			Item "War Head"

			Taunt   
			{
				Delay 1
				Cooldown 1
				Repeats 0
				Duration 9999 
				Name "Conga Taunt" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"gesture speed increase" 2.5
			}
		}

		T_TFBot_Wave3_Heavyling_Excited3
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Excited Punchling"
			Skill Expert
			ClassIcon heavy_chief

			Action Mobber

			Health 400
			UseHumanModel 1

			Item "War Head"

			Taunt   
			{
				Delay 1
				Cooldown 1
				Repeats 0
				Duration 9999 
				Name "Taunt: Mannrobics" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"gesture speed increase" 2.5
			}
		}

		T_TFBot_Wave3_Heavyling_Excited4
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Excited Punchling"
			Skill Expert
			ClassIcon heavy_chief

			Action Mobber

			Health 400
			UseHumanModel 1

			Item "War Head"

			Taunt   
			{
				Delay 1
				Cooldown 1
				Repeats 0
				Duration 9999 
				Name "Taunt: The Victory Lap" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"gesture speed increase" 2.5
			}
		}

		T_TFBot_Wave3_Heavyling_Excited5
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Excited Punchling"
			Skill Expert
			ClassIcon heavy_chief

			Action Mobber

			Health 400
			UseHumanModel 1

			Item "War Head"

			Taunt   
			{
				Delay 1
				Cooldown 1
				Repeats 0
				Duration 9999 
				Name "Taunt: The Table Tantrum" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"gesture speed increase" 2.5
			}
		}

		T_TFBot_Wave3_Heavyling_Excited6
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Excited Punchling"
			Skill Expert
			ClassIcon heavy_chief

			Action Mobber

			Health 400
			UseHumanModel 1

			Item "War Head"

			Taunt   
			{
				Delay 1
				Cooldown 1
				Repeats 0
				Duration 9999 
				Name "Taunt: Zoomin' Broom" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"gesture speed increase" 2.5
			}
		}

		T_TFBot_Wave3_Heavyling_Excited7
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Excited Punchling"
			Skill Expert
			ClassIcon heavy_chief

			Action Mobber

			Health 400
			UseHumanModel 1

			Item "War Head"

			Taunt   
			{
				Delay 1
				Cooldown 1
				Repeats 0
				Duration 9999 
				Name "Taunt: The Russian Arms Race" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"gesture speed increase" 2.5
			}
		}

		T_TFBot_Wave3_Heavyling_Excited8
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Excited Punchling"
			Skill Expert
			ClassIcon heavy_chief

			Action Mobber

			Health 400
			UseHumanModel 1

			Item "War Head"

			Taunt   
			{
				Delay 1
				Cooldown 1
				Repeats 0
				Duration 9999 
				Name "Taunt: The Soviet Strongarm" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"gesture speed increase" 2.5
			}
		}

		T_TFBot_Wave3_Heavyling_Excited9
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Excited Punchling"
			Skill Expert
			ClassIcon heavy_chief

			Action Mobber

			UseHumanModel 1

			Health 400

			Item "War Head"

			Taunt   
			{
				Delay 1
				Cooldown 1
				Repeats 0
				Duration 9999 
				Name "Taunt: Bare Knuckle Beatdown" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"gesture speed increase" 2.5
			}
		}

		T_TFBot_Wave3_Heavyling_Faller
		{
			Class Heavyweapons
			WeaponRestrictions MeleeOnly
			Name "Falling Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Scale 2.5

			UseHumanModel 1

			Attributes AutoJump
			AutoJumpMin 8
			AutoJumpMax 9

			StripItemSlot 0
			StripItemSlot 1
			StripItemSlot 2
			StripItemSlot 3

			Health 600

			Item "War Head"

			Action Mobber

			CharacterAttributes
			{
				"kb fall min velocity" 20
				"kb fall radius" 400
				"kb fall stun time" 0.25
				"kb fall force" 1000
				"kb fall damage" 50
				"damage force reduction" 0
			}
		}

		T_TFBot_Wave3_Heavyling_Gobbler
		{
			Class Heavyweapons
			WeaponRestrictions SecondaryOnly
			Name "Gobbling Punchling"
			Skill Expert
			ClassIcon heavy_chief
			Scale 1.75
			Attributes SuppressFire
			Attributes UseBossHealthBar

			UseHumanModel 1

			StripItemSlot 0
			StripItemSlot 1
			StripItemSlot 3

			FireWeapon  
            {
                Delay 0 
                Cooldown 1.5
                Repeats 0 
				IfSeeTarget 1 
                Duration 0.5 
				Type "Primary" 	
			}

			WeaponSwitch    
            {
                Delay 1
                Cooldown 0.5 
                Repeats 0 
				Type "Secondary" 
			}

			Action Mobber

			Health 10000

			Item "War Head"
			Item "The Robo-Sandvich"

			CharacterAttributes
			{
				"gesture speed increase" 3
				"item_meter_charge_rate" 0.1
				"dmg taken increased" 3
				"lunchbox healing decreased" 0.1
			}
		}


		T_TFBot_Wave3_Grey_Prince_Heavy_Phase1
		{
			Class Heavyweapons
			Name "Blue Prince Punch"
			UseHumanModel 1
			WeaponRestrictions MeleeOnly
			Health 15000

			Scale 1.8
			Attributes UseBossHealthBar
			Attributes MiniBoss

			AlwaysGlow 1

			Action Mobber

			Tag wave3_boss

			ClassIcon heavy_chief

			Item "Jungle Booty"
			Item "Immobile Suit"
			Item "Prinny Machete"

			Item "War Head"

			SpawnTemplate "Wave3_Boss_Target1"  

			Taunt    //Taunt periodically
			{
				Delay 0.5
				Repeats 1
				Name "Taunt: The Proletariat Showoff" 
			}

			ChangeAttributes   
			{
				Delay  6.5
				Cooldown  12
				Name  "MeleeNormal" 
			}

			ChangeAttributes   
			{
				Delay  12.5
				Cooldown  12
				Name  "FastMove" 
			}

			ChangeAttributes   
			{
				Delay  14.5
				Cooldown  12
				Name  "Spawning" 
			}

			CharacterAttributes
			{
				"hand scale" 2
				"melee bounds multiplier" 2
    			"melee range multiplier" 2
				"dmg taken increased" 0
				"mult stun resistance" 0
				"damage force reduction" 0.01
				"airblast vulnerability multiplier" 0.01
				"airblast vertical vulnerability multiplier" 0.01
				"no_jump" 1
				"rage giving scale" 0.2
			}

			EventChangeAttributes
			{
				MeleeNormal
				{
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"fire rate bonus" 1
						"damage bonus" 1
					}
					CharacterAttributes
					{
						"move speed bonus" 0.7
						"dmg taken increased" 1
					}
				}

				FastMove
				{
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"fire rate bonus" 2000
						"damage bonus" 0.01
					}

					CharacterAttributes
					{
						"move speed bonus" 2
						"dmg taken increased" 1
					}
				}

				Spawning
				{
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"fire rate bonus" 2000
						"damage bonus" 0.01
					}

					CharacterAttributes
					{
						"move speed bonus" 0.01
						"dmg taken increased" 1
					}
				}
			}
		}

		T_TFBot_Wave3_Grey_Prince_Heavy_Phase2
		{
			Class Heavyweapons
			Name "Blue Prince Punch"
			UseHumanModel 1
			WeaponRestrictions MeleeOnly
			Health 15000

			Scale 1.8

			Attributes UseBossHealthBar
			Attributes MiniBoss

			Action Mobber
			AlwaysGlow 1

			ClassIcon heavy_chief

			Item "Jungle Booty"
			Item "Immobile Suit"
			Item "War Head"
			Item "Prinny Machete"

			Tag wave3_boss2

			SpawnTemplate "Wave3_Boss_Target2"  

			Addcond
			{
				Index 71
				Duration 3
			}

			ChangeAttributes   
			{
				Delay  3
				Cooldown  14
				Name  "MeleeNormal" 
			}

			ChangeAttributes   
			{
				Delay  9
				Cooldown  14
				Name  "FastMove" 
			}

			ChangeAttributes   
			{
				Delay  13
				Cooldown  14
				Name  "Spawning" 
			}

			CharacterAttributes
			{
				"hand scale" 2
				"melee bounds multiplier" 2
    			"melee range multiplier" 2
				"damage force reduction" 0.01
				"airblast vulnerability multiplier" 0.01
				"airblast vertical vulnerability multiplier" 0.01
				"mult stun resistance" 0
				"no_jump" 1
				"rage giving scale" 0.2
			}

			EventChangeAttributes
			{
				MeleeNormal
				{
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"fire rate bonus" 0.9
						"damage bonus" 1.1
						"bleeding duration" 3
					}
					CharacterAttributes
					{
						"melee bounds multiplier" 2.5
    					"melee range multiplier" 2.5
					}
				}

				FastMove
				{
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"fire rate bonus" 0.4
						"damage bonus" 1
					}

					CharacterAttributes
					{
						"move speed bonus" 2
						"melee bounds multiplier" 2
    					"melee range multiplier" 2
					}
				}

				Spawning
				{
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"fire rate bonus" 2000
						"damage bonus" 0.01
					}

					CharacterAttributes
					{
						"move speed bonus" 0.01
						"dmg taken increased" 1
					}
				}
			}
		}

		T_TFBot_Wave3_Grey_Prince_Heavy_Phase3
		{
			Class Heavyweapons
			Name "Blue Prince Heavy"
			UseHumanModel 1
			WeaponRestrictions MeleeOnly
			Health 15000

			Scale 1.8

			Attributes UseBossHealthBar
			Attributes MiniBoss

			Action Mobber
			AlwaysGlow 1

			ClassIcon heavy_chief_giant

			Tag wave3_boss3

			Item "Jungle Booty"
			Item "Immobile Suit"
			Item "War Head"
			Item "Prinny Machete"

			SpawnTemplate "Wave3_Boss_Target3"  

			Addcond
			{
				Index 71
				Duration 3
			}

			FireWeapon    
          	{
                Delay 4
                Repeats 0
                Duration 0.1
				Cooldown 8
				Type "Jump" 	
			}

			ChangeAttributes   
			{
				Delay  3
				Cooldown  12
				Name  "Jumping" 
			}

			ChangeAttributes   
			{
				Delay  7
				Cooldown  12
				Name  "FastMove" 
			}

			ChangeAttributes   
			{
				Delay  11
				Cooldown  12
				Name  "Spawning" 
			}

			CharacterAttributes
			{
				"hand scale" 2
				"melee bounds multiplier" 2
    			"melee range multiplier" 2
				"damage force reduction" 0.01
				"airblast vulnerability multiplier" 0.01
				"airblast vertical vulnerability multiplier" 0.01
				"increased jump height" 5
				"mult stun resistance" 0
				"rage giving scale" 0.2
			}

			EventChangeAttributes
			{
				Jumping
				{
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"damage bonus" 1.5
					}
					CharacterAttributes
					{
						"melee bounds multiplier" 2.5
    					"melee range multiplier" 2.5
						"move speed bonus" 1.2
					}
				}

				FastMove
				{
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"fire rate bonus" 0.4
						"damage bonus" 1.2
						"bleeding duration" 3
					}

					CharacterAttributes
					{
						"move speed bonus" 10
					}
				}

				Spawning
				{
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"fire rate bonus" 2000
						"damage bonus" 0.01
					}

					CharacterAttributes
					{
						"move speed bonus" 0.01
						"dmg taken increased" 1
					}
				}
			}
		}

		T_TFBot_W3_Timer
		{
			Class Scout
			Attributes SuppressFire
			Attributes UseBossHealthBar
			Health 380
			Scale 0.5

			ClassIcon timer_lite

			Action Mobber

			Tag timer

			CharacterAttributes
			{
				"health regen" -1
			}
		}

		T_TFBot_W4_Timer
		{
			Class Scout
			Attributes SuppressFire
			Attributes UseBossHealthBar
			Health 488 //540 * 2/2.21
			Scale 0.1

			ClassIcon timer_lite

			Action Mobber

			Tag timer

			CharacterAttributes
			{
				"health regen" -1
			}
		}

		T_TFBot_W4_Keymaster
		{
			Class Scout
			Attributes SuppressFire
			Health 1
			Scale 0.1

			Action Mobber
			CharacterAttributes
			{
				"health regen" -100
			}
		}

		T_TFBot_Wave4_Filth
		{
			Class Scout
			Name "Filthy Scout"
			Action Mobber
			UseHumanModel 1
			Skill Expert

			Item "The Bread Bite"
			Item "Bread Heads"

			WeaponRestrictions MeleeOnly

			CharacterAttributes
			{
				"move speed bonus" 1.1
				"damage force reduction" 0.65
			}
		}

		T_TFBot_Wave4_Stray_Inmobile
		{
			Class Soldier
			Health 450
			Name "Stray Soldier"
			Action Mobber
			UseHumanModel 1

			Item "Zombie Soldier"

			WeaponRestrictions PrimaryOnly

			ItemAttributes
			{
				ItemName "tf_weapon_rocketlauncher"
				"faster reload rate" -0.4
				"fire rate bonus" 2.5
			}

			CharacterAttributes
			{
				"move speed bonus" 0.01
				"damage force reduction" 0.65
			}
		}

		T_TFBot_Wave4_Stray_Moving
		{
			Class Soldier
			Health 450
			Skill Expert
			Name "Stray Soldier"
			Action Mobber
			UseHumanModel 1

			Item "Zombie Soldier"

			AimLeadProjectileSpeed 1  

			WeaponRestrictions PrimaryOnly

			ChangeAttributes   
			{
				Delay  0
				Cooldown  3
				Name  "Moving" 
			}

			ChangeAttributes   
			{
				Delay  4
				Cooldown  5
				Name  "Stopping" 
			}

			ItemAttributes
			{
				ItemName "tf_weapon_rocketlauncher"
				"faster reload rate" -0.4
				"fire rate bonus" 3
			}

			EventChangeAttributes
			{
				Moving
				{
					CharacterAttributes
					{
						"move speed bonus" 1
						"damage force reduction" 0.65
					}
				}

				Stopping
				{
					CharacterAttributes
					{
						"move speed bonus" 0.01
						"damage force reduction" 0.65
					}
				}
			}
		}

		T_TFBot_Wave4_Soldier
		{
			Class Soldier
			Skill Expert
			Health 700
			Name "Soldier Soldier"
			Action Mobber
			UseHumanModel 1

			Item "Brass Bucket"
			Item "ETF2L Highlander Open Playoff Medal Season 22"
			
			ItemModel  
			{
				ItemName "ETF2L Highlander Open Playoff Medal Season 22"
				Model "models/player/items/soldier/bucket.mdl"
			}

			ItemAttributes
			{
				ItemName "Brass Bucket"
				"set item tint rgb" 6124494
			}

			WeaponRestrictions PrimaryOnly

			Attributes HoldFireUntilFullReload

			ItemAttributes
			{
				ItemName "tf_weapon_rocketlauncher"
				"clip size upgrade atomic" 2
				"fire rate bonus" 0.01
				"faster reload rate" 0.9
				"damage bonus" 0.3
				"projectile spread angle penalty" 5
			}

			CharacterAttributes
			{
				"damage force reduction" 0.1
				"airblast vulnerability multiplier" 0.01
			}
		}

		T_TFBot_Wave4_StreetCleaner
		{
			Class Pyro
			Health 400
			Skill Expert
			Name "Street Burner"
			Action Mobber

			WeaponRestrictions PrimaryOnly

			CharacterAttributes
			{
				"move speed bonus" 1.15
				"airblast disabled" 1
				"damage force reduction" 0.01
				"airblast vulnerability multiplier" 0.01
			}
		}

		T_TFBot_Wave4Cerbeus
        {
            Class Demoman
            Skill Expert
            Health 7000
            Attributes MiniBoss
			Attributes AlwaysFireWeapon

            Name "Cerberus"
			Action Mobber
			UseHumanModel 1

			Tag cerebus

            WeaponRestrictions PrimaryOnly

            Item "tf_weapon_grenadelauncher"
            Item "The Chargin' Targe"
			Item "The Ullapool Caber"
			Item "Blast Defense"

            ItemAttributes
            {
                ItemName "tf_weapon_grenadelauncher"
                "grenade explode on impact" 1
                "projectile speed increased" 1.25
                "custom projectile model" "models/weapons/w_models/w_cannonball.mdl"
				"fire rate bonus" 5
				"blast radius increased" 1.75
				"faster reload rate" 0.01
				"damage bonus" 1.5
				"is invisible" 1
            }

            ItemAttributes 
            {
                ItemName "The Chargin' Targe"
                "charge recharge rate increased" 2.4
				"damage causes airblast" 1
            }

            ChangeAttributes   
            {
                Delay  0
                Cooldown  8
                Name  "Speed" 
            }

            ChangeAttributes   
            {
                Delay  6
                Cooldown  8
                Name  "NoSpeed" 
            }

            EventChangeAttributes 
            {
                Speed
                {
                    CharacterAttributes
                    {
                        "move speed bonus" 0.5
                    }
                }

                NoSpeed
                {
                    CharacterAttributes
                    {
                        "move speed bonus" 0.01
                    }
                }
            }
        }

		T_TFBot_W4_MaliciousFace
		{
			Class Soldier
			Health 8500
			Name "Malicious Head"
			Skill Expert
			Attributes HoldFireUntilFullReload

			Attributes MiniBoss

			Action Mobber
			UseHumanModel 1

			Item "The Nuke"

			ItemAttributes
			{
				ItemName "The Nuke"
				"set item tint rgb" 16093041
			}

			CharacterAttributes
			{
				"move speed bonus" 0.2
				"head scale" 6
				"torso scale" 0.5
				"damage force reduction" 0.01
				"hand scale" 2
			}

			FireWeapon   
            {
                Delay 7
				Cooldown 10
                Repeats 0 
                Duration 3 
				Type "Secondary" 
			}

			ChangeAttributes   
            {
                Delay  0
                Cooldown  10
                Name  "Burst" 
            }

            ChangeAttributes   
            {
                Delay  7
                Cooldown  10
                Name  "Charged" 
            }

			EventChangeAttributes
			{
				Burst
				{
					Item "TF_WEAPON_ROCKETLAUNCHER"

					ItemAttributes
					{
						ItemName "TF_WEAPON_ROCKETLAUNCHER"
						"fire rate bonus" 0.2
						"clip size upgrade atomic" 1
						"faster reload rate" 0.2
					}
				}

				Charged	
				{
					Item "The Cow Mangler 5000"
					ItemAttributes
					{
						ItemName "The Cow Mangler 5000"
						"projectile speed increased" 3
						"damage bonus" 1.25
					}
				}
			}
		}

		T_TFBot_W4_Mindflayer
		{
			Class Soldier
			Skill Expert
			Health 9000
			Attributes MiniBoss
			Attributes HoldFireUntilFullReload
			Attributes AlwaysFireWeapon
			Scale 1.4
			Name "Flayer of Mind"
			Action Mobber
			UseHumanModel 1
			AimOffset "0 0 50"  
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.01
			}

			ItemAttributes
			{
				ItemName "tf_weapon_shovel"
				"melee range multiplier" 0.5
				"melee bounds multiplier" 0.5
				"hit self on miss" 1
				"apply look velocity on damage" 7000
				"apply z velocity on damage" 3000
				"is_passive_weapon" 1
				"damage bonus" 0.01
				"fire rate bonus" 6
			}

			ChangeAttributes   
			{
				Delay  0
				Cooldown  15
				Name  "Spread" 
			}

			ChangeAttributes   
			{
				Delay  10
				Cooldown  15
				Name  "Laser" 
			}

			EventChangeAttributes
			{
				Spread
				{
					WeaponRestrictions PrimaryOnly
					ItemAttributes
					{
						ItemName "tf_weapon_rocketlauncher"
						"clip size upgrade atomic" 1
						"faster reload rate" 1
						"fire rate bonus" 0.01
						"projectile speed increased" 0.1
						"projectile spread angle penalty" 50
						"mod projectile heat seek power" 75
						"mod projectile heat aim error" 90
						"mod projectile heat aim time" 3
						"projectile acceleration" 800
						"projectile acceleration time" 2
					}
				}

				Laser
				{
					WeaponRestrictions SecondaryOnly

					Item "The Righteous Bison"

					ItemAttributes
					{
						ItemName "The Righteous Bison" 
						"faster reload rate" -0.4
						"fire rate bonus" 0.1
						"damage bonus" 1.25
					}
				}
			}	
		}

		T_TFBot_W4_Hideous_Mass
		{
			Class Demoman
			Name "Hideous Scotsman"
			Health 12000
			WeaponRestrictions PrimaryOnly
			Attributes MiniBoss
			Attributes UseBossHealthBar
			Attributes HoldFireUntilFullReload

			AimOffset "0 0 2000"  

			Scale 4
			Action Mobber
			UseHumanModel 1

			Message 
			{
				Name "{AB40FF}Now Playing: Hall of Sacreligious Remains by Arsi Patala (Ultrakill OST)"  
				Delay 0
				Cooldown 3 
				Repeats 1
			}

			ItemAttributes
			{
				ItemName "tf_weapon_grenadelauncher"
				"custom projectile model" "models/weapons/w_models/w_cannonball.mdl"
				"clip size penalty" 0.5
				"fire rate bonus" 0.7
				"faster reload rate" 2.3
				"fuse bonus" 2.5
				"damage bonus" 3
				"use large smoke explosion" 1
			}

			CharacterAttributes
			{
				"move speed bonus" 0.01
				"damage force reduction" 0.01
				"torso scale" 0.01
				"hand scale" 0.01
				"head scale" 4
			}

			ChangeAttributes   
			{
				Delay  0
				Cooldown  1
				Repeats 1
				Name  "Annoyance" 
				IfHealthBelow 5000
			}

			ChangeAttributes   
			{
				Delay  0
				Cooldown  1
				Repeats 1
				Name  "Anger" 
				IfHealthBelow 1000
			}

			EventChangeAttributes
			{
				Annoyance
				{
					ItemAttributes
					{
						ItemName "tf_weapon_grenadelauncher"
						"custom projectile model" "models/weapons/w_models/w_cannonball.mdl"
						"clip size penalty" 0.5
						"fire rate bonus" 0.5
						"faster reload rate" 0.3
						"fuse bonus" 2.5
						"damage bonus" 2
						"use large smoke explosion" 0
					}
				}

				Anger
				{
					ItemAttributes
					{
						ItemName "tf_weapon_grenadelauncher"
						"custom projectile model" "models/weapons/w_models/w_cannonball.mdl"
						"clip size penalty" 0.5
						"fire rate bonus" 0.5
						"faster reload rate" -0.4
						"fuse bonus" 2.5
						"damage bonus" 2.5
						"use large smoke explosion" 0
					}
				}
			}
		}

		T_TFBot_Wave4_Boss_1
		{
			Class Scout
			Name "S1"
			Health 11000
			Attributes UseBossHealthBar
			Attributes MiniBoss
			Skill Normal
			Scale 1.1

			SpawnTemplate "Wave4_Boss_Target"  

			Item "The Frickin' Sweet Ninja Hood"
			Item "The Bolt Boy"

			Action Mobber

			CharacterAttributes
			{
				"damage force reduction" 0.01
				"cancel falling damage" 1
				"mult stun resistance" 0
				"rage giving scale" 0.2
			}

			ItemModel  
			{
				ItemName "TF_WEAPON_PISTOL_SCOUT"
				Model "models/weapons/w_models/w_revolver.mdl"
			}

			ChangeAttributes   
            {
                Delay  0
                Cooldown  99999
                Name  "SlowSpeed" 
            }

			ChangeAttributes   
            {
                Delay  8
                Cooldown  12
                Name  "Shotgun" 
            }

			ChangeAttributes   
            {
                Delay  14
                Cooldown  12
                Name  "Revolver" 
            }

			EventChangeAttributes
			{
				SlowSpeed
				{	
					WeaponRestrictions MeleeOnly
					CharacterAttributes
					{
						"move speed bonus" 0.01
						"dmg taken increased" 0
						"increased jump height" 0.01
 					}
				}
				Shotgun
				{
					Item "TF_WEAPON_SHOTGUN_SOLDIER"
					Item "tf_weapon_grenadelauncher"
					WeaponRestrictions SecondaryOnly

					ItemAttributes
					{
						ItemName "TF_WEAPON_SHOTGUN_SOLDIER"
						"bullets per shot bonus" 2
						"damage bonus" 0.8
						"fire rate bonus" 1.7
						"faster reload rate" -0.4
					}

					ItemAttributes
					{
						ItemName "tf_weapon_grenadelauncher"
						"fire rate bonus" 5
						"blast radius increased" 1.5
						"projectile speed increased" 1.2
						"is_passive_weapon" 1
					}

					CharacterAttributes
					{
						"move speed bonus" 0.8
						"increased jump height" 3
						"dmg taken increased" 1
					}
				}

				Revolver
				{
					Item "TF_WEAPON_PISTOL_SCOUT"
					WeaponRestrictions SecondaryOnly
					Item "tf_weapon_rocketlauncher"

					ItemAttributes
					{
						ItemName "TF_WEAPON_PISTOL_SCOUT"
						"fire rate bonus" 1.66
						"damage bonus" 3
						"faster reload rate" 2
						"custom weapon fire sound" "weapons/revolver_shoot.wav"
					} 

					ItemAttributes
					{
						ItemName "tf_weapon_rocketlauncher"
						"is_passive_weapon" 1
						"fire rate bonus" 5
						"faster reload rate" -0.5
						"projectile speed increased" 0.01
						"blast radius increased" 0.1
						"projectile acceleration" 3000
						"damage bonus" 0.33
					}

					CharacterAttributes
					{
						"move speed bonus" 1.2
						"increased jump height" 3
						"dmg taken increased" 1
					}
				}
			}
		}	

		T_TFBot_Wave4_Boss_2
		{
			Class Scout
			Name "S1"
			Health 9000
			Attributes UseBossHealthBar
			Attributes MiniBoss
			Skill Hard
			Scale 1.1
			Attributes AutoJump
			AutoJumpMin 12
			AutoJumpMax 24

			Tag w4_boss 

			Action Mobber

			CharacterAttributes
			{
				"damage force reduction" 0.01
				"increased jump height" 2
				"cancel falling damage" 1
				"mult stun resistance" 0
				"rage giving scale" 0.2
			}

			Item "The Frickin' Sweet Ninja Hood"
			Item "The Bolt Boy"

			ItemModel  
			{
				ItemName "TF_WEAPON_PISTOL_SCOUT"
				Model "models/weapons/w_models/w_revolver.mdl"
			}

			ChangeAttributes   
            {
                Delay  0
                Cooldown  13
                Name  "Shotgun" 
            }

			ChangeAttributes   
            {
                Delay  4
                Cooldown  13
                Name  "Revolver" 
            }

			ChangeAttributes   
            {
                Delay  8
                Cooldown  13
                Name  "Minigun" 
            }

			EventChangeAttributes
			{
				Shotgun
				{
					Item "TF_WEAPON_SHOTGUN_SOLDIER"
					Item "tf_weapon_grenadelauncher"
					WeaponRestrictions SecondaryOnly

					ItemAttributes
					{
						ItemName "TF_WEAPON_SHOTGUN_SOLDIER"
						"bullets per shot bonus" 2
						"damage bonus" 0.8
						"fire rate bonus" 1.25
						"faster reload rate" -0.4
					}

					ItemAttributes
					{
						ItemName "tf_weapon_grenadelauncher"
						"fire rate bonus" 3
						"blast radius increased" 1.5
						"projectile speed increased" 1.2
						"is_passive_weapon" 1
					}
				}

				Revolver
				{
					Item "TF_WEAPON_PISTOL_SCOUT"
					WeaponRestrictions SecondaryOnly
					Item "tf_weapon_rocketlauncher"

					ItemAttributes
					{
						ItemName "TF_WEAPON_PISTOL_SCOUT"
						"damage bonus" 3
						"faster reload rate" 2
						"custom weapon fire sound" "weapons/revolver_shoot.wav"
					} 

					ItemAttributes
					{
						ItemName "tf_weapon_rocketlauncher"
						"is_passive_weapon" 1
						"fire rate bonus" 2
						"faster reload rate" -0.5
						"projectile speed increased" 0.01
						"blast radius increased" 0.1
						"projectile acceleration" 3000
						"damage bonus" 0.33
					}

					CharacterAttributes
					{
						"move speed bonus" 1.2
					}
				}

				Minigun
				{
					Item "tf_weapon_minigun"
					WeaponRestrictions PrimaryOnly

					ItemAttributes
					{
						ItemName "tf_weapon_minigun"
						"spread penalty" 0.5
						"aiming movespeed increased" 2.128
					}
					CharacterAttributes
					{
						"move speed bonus" 0.7
					}
				}
			}
		}

		T_TFBot_W4_Wavebar
		{
			Class Scout
			Health 1
			Attributes MiniBoss
			Scale 0.1
			ClassIcon random_lite

			CharacterAttributes
			{
				"health regen" -1
			}
		}

		T_TFBot_W5_Engineer_Guardian
		{
			Class Engineer
			Health 20000
			Name "Jade Texan"
			Skill Expert
			
			Item "Texas Slim's Dome Shine"
			Item "Binoculus"
			Item "The Level Three Chin"
			Tag crook
			
			Attributes MiniBoss
			Attributes UseBossHealthBar
			Attributes HoldFireUntilFullReload
			
			Action Mobber
			
			ItemAttributes
			{
				ItemName "TF_WEAPON_SHOTGUN_PRIMARY"
				"clip size bonus" 10
				"fire rate bonus" 0.1
				"spread penalty" 1
				"faster reload rate" 0.1
				"damage bonus" 1.5
			}
			
			ItemAttributes
			{
				ItemName "TF_WEAPON_PISTOL"
				"clip size bonus" 3
				"override projectile type" 2
				"is_passive_weapon" 1
				"fire rate bonus" 0.3
				"faster reload rate" 3
				"projectile spread angle penalty" 6
				"spread penalty" 2
				"damage causes airblast" 1
				"damage bonus" 1.8
			}

			CharacterAttributes
			{
				"move speed bonus"	0.35
				"rage giving scale" 0.1
				"damage force reduction" 0.4
				"airblast vulnerability multiplier" 0.4
				"override footstep sound set" 3
				"airblast vertical vulnerability multiplier" 0.1				
				"cancel falling damage" 1
			}
		}

		T_TFBot_W5_Demoman_Guardian
		{
			Class Demoman
			Name "Jade Scotsman"
			ClassIcon demoman_sandman_chief 
			Skill Expert
			Health 20000
			WeaponRestrictions PrimaryOnly
			Attributes HoldFireUntilFullReload
			Attributes MiniBoss
			Attributes UseBossHealthBar
			
			Item "Batter's Helmet"

			Action Mobber
			Tag crook
			
			ItemAttributes
			{
				ItemName "Batter's Helmet"
				"set item tint RGB" 8626083
			}
			
			ItemAttributes
			{
				ItemName "tf_weapon_grenadelauncher"
				"custom projectile model" "models/weapons/w_models/w_baseball.mdl"
				"mod stun waist high airborne" 1
				"clip size upgrade atomic" 11
				"fire rate bonus" 0.1
				"blast radius increased" 1.3
				"faster reload rate" 0.35
			}
			
			CharacterAttributes
			{
				"move speed bonus" 0.45
				"damage force reduction" 0.4
				"airblast vulnerability multiplier" 0.4
				"override footstep sound set" 2
			}
		}

		T_TFBot_W5_Giant_Heavyweapons_Plasma
		{
			Class Heavyweapons
			Name "Giant Plasma Heavy" 
			Health 5000

			Attributes MiniBoss

			Action Mobber
			Tag crook
			
			
			WeaponRestrictions PrimaryOnly
					
			Item "Big Steel Jaw of Summer Fun"
			Item "Lo-Fi Longwave"
					
			Skill Expert
			ItemAttributes
			{
				ItemName "TF_WEAPON_MINIGUN"
				"override projectile type" 13
				"centerfire projectile" 1
				"energy weapon penetration" 0
				"dmg bonus vs buildings" 5
				"projectile speed increased" 1
				"projectile spread angle penalty" 4
			}
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.01
				"airblast vulnerability multiplier" 0.01
				"override footstep sound set" 2
			}
		}

		T_TFBot_W5_Giant_Demoman_Loch
		{
			Class Demoman
			Name "Lochness Bomber"
			Skill Expert
			Health 3800
			Item "The Loch-n-Load"
			Item "Glengarry Bonnet"
			WeaponRestrictions PrimaryOnly
			Attributes HoldFireUntilFullReload
			Attributes MiniBoss
			Action Mobber
			Tag crook
			ItemAttributes
			{
				ItemName "The Loch-n-Load"
				"faster reload rate" 0.25
				"clip size upgrade atomic" 16
				"fire rate bonus" 0.2
				"projectile speed increased" 1.2
				"projectile spread angle penalty" 4

			}
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.5
				"airblast vulnerability multiplier" 0.5
				"override footstep sound set" 4
			}
		}

		T_TFBot_W5_Giant_Pyro_Helium
		{	
			Class Pyro
			Health 3000
			Skill Expert
			Name "Upward Yeeter"
			WeaponRestrictions PrimaryOnly
			
			Item "tf_weapon_flamethrower"
			Item "Pyromancer's Mask"
			
			Tag crook


			Action Mobber
			
			Attributes AlwaysFireWeapon
			Attributes MiniBoss
			
			ItemAttributes
			{
				ItemName "tf_weapon_flamethrower"
				"apply z velocity on damage" 350
				"afterburn duration bonus" 0.1
				"weapon burn dmg increased" 0
				"damage bonus" 0.35
			}
			
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.3
				"airblast vulnerability multiplier" 0.3
				"override footstep sound set" 5
				"airblast disabled" 1
			}
		}

		T_TFBot_W5_Giant_Scout_Vader
		{
			Class Scout
			Name "Super Sith Scout"
			Skill Easy
			Item "Teufort Knight"
			Item "Batsaber"
			Health 1200
			WeaponRestrictions MeleeOnly
			Attributes MiniBoss
			Attributes AlwaysCrit
			Tag crook

			Action Mobber
			
			ItemAttributes
			{
				ItemName "Batsaber"
				"set item tint RGB" 12073019
			}
			
			CharacterAttributes
			{
				"move speed bonus"	2
				"damage force reduction" 0.7
				"airblast vulnerability multiplier" 0.7
				"override footstep sound set" 5
			}
		}

		T_TFBot_W5_Giant_Soldier_Barrage
		{
			Class Soldier
			Name "Giant Radial Rocket Soldier"
			Health 4000

			Action Mobber
			Skill Expert
			WeaponRestrictions PrimaryOnly
			Attributes MiniBoss
			Attributes HoldFireUntilFullReload
			Action Mobber
			Tag crook
			ItemAttributes
			{
				ItemName "TF_WEAPON_ROCKETLAUNCHER"
				"clip size upgrade atomic" 30
				"faster reload rate" 0.15
				"fire rate bonus" 0.05
				"projectile spread angle penalty" 360
			}
			CharacterAttributes
			{
				"health regen"	40
				"move speed bonus"	0.5
				"damage bonus" 1.5
				"damage force reduction" 0.4
				"airblast vulnerability multiplier" 0.4
				"override footstep sound set" 3
				"airblast vertical vulnerability multiplier" 0.1			
				"Projectile speed increased" 0.5
			}
		}

		T_TFBot_W5_Giant_Pyro_Flaregun_RapidFire
		{
			Class Pyro
			Name "Giant Sun Thrower Pyro"
			Action Mobber
			Skill Expert
			Health 3000
			Item "The Flare Gun"
			Item "The Last Breath"
			Item "The Flamboyant Flamenco"
			Tag crook
			WeaponRestrictions SecondaryOnly
			Attributes MiniBoss
			ItemAttributes
			{
				ItemName "The Flare Gun"
				"fire rate bonus" 0.8
				"faster reload rate" 0.75
				"projectile speed increased" 0.4
				"projectile trail particle"    "spell_fireball_small_red"
                "custom projectile model" "models/weapons/w_models/w_drg_ball.mdl"
			}
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 6
			}
		}

		T_TFBot_W5_Giant_Engineer_Widowmaker
		{
			Class Engineer
			Name "Ecstatic Engineer"
			Skill Expert
			Health 3300
			Action Mobber
			Attributes MiniBoss
			WeaponRestrictions PrimaryOnly
			Tag crook
			Item "The Widowmaker"

			Taunt  
			{
				Delay 6
				Cooldown 6
			}

			CharacterAttributes
			{			
				"move speed bonus"	0.5
				"gesture speed increase" 2
				"override footstep sound set" 3
				"damage force reduction" 0.01
				"airblast vulnerability multiplier" 0.01
				"airblast vertical vulnerability multiplier" 0.01	
			}		
		}	

		T_TFBot_W5_Giant_Scout_FAN_Armored  
		{
			Class Scout
			Name "Giant Armored FAN Scout"
			Action Mobber
			Skill Expert
			Health 3000
			Item "The Bolt Boy"
			Item "The Force-a-Nature"
			Attributes MiniBoss
			Tag crook
			Attributes HoldFireUntilFullReload
			ItemAttributes
			{
				ItemName "The Force-a-Nature"
				"bullets per shot bonus" 2
				"fire rate bonus" 0.5
				"faster reload rate" 1.7 // 70% slower reload
				"apply look velocity on damage" -6000
				"damage penalty" 0.35		// 55% damage reduction
				"weapon spread bonus" 0.4
			}
			CharacterAttributes
			{
				"damage force reduction" 0.7
				"airblast vulnerability multiplier" 0.7
				"override footstep sound set" 5
				"move speed penalty" 0.75
			}
		}

		T_TFBot_W5_Giant_Pyro_Deflect //airblasts deflect projectiles instead of reflecting them back (like the g deflectors do) 
		{
			Class Pyro
			Name "Giant Airblast Pyro"
			ClassIcon pyro_giant
			Skill Expert
			Health 3000
			Tag crook
			WeaponRestrictions PrimaryOnly
			Attributes MiniBoss
			Action Mobber

			FireWeapon  
			{
				Delay 0
				Cooldown 0.5
				Type "Secondary"
			}
			
			ItemAttributes
			{
				ItemName "tf_weapon_flamethrower"
				"mult airblast refire time" 0.01
				"airblast pushback scale" 8
				"airblast functionality flags" 1
			}	
				
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 6
			}
		}

		T_TFBot_Colonel_Barrage_Homing
		{
			Template T_TFBot_Giant_Soldier_Spammer
			Action Mobber
			RocketCustomParticle "eyeboss_projectile"
			Tag crook
            HomingRockets   
            {
                RocketSpeed 0.2
                TurnPower 80 //How fast should the rocket rotate to face the target
                MaxAimError 150 //Max angle between rocket and the target 
                AimTime 5
                Acceleration 1000 //Acceleration in hu
                AccelerationTime 2 //How long should the rocket accelerate
                AccelerationStartTime 1.5 
            }
		}

		T_TFBot_Heavy_Crush
		{
			Class Heavyweapons
			Skill Expert 
			Health 100

			AimTrackingInterval 2  
			Tag crook

			ItemAttributes
			{
				ItemName "tf_weapon_minigun"
				"apply z velocity on damage" 2000
				"damage causes airblast" 1
			}
		}

		T_TFBot_W5_Spy_Boss
		{
			Class Spy
			Action Mobber
			Name "Kyle Jade"
			Health 25000
			//WeaponRestrictions SecondaryOnly
			Skill Easy
			Attributes UseBossHealthBar

			SpawnTemplate "W5_Kyle_Attribute_Remover"  

			UseHumanModel 1

			Taunt  
			{
				Delay 3 
				Repeats 1
			}

			Taunt  
			{
				Delay 0 
				Repeats 1
				IfHealthBelow 12500
			}

			InterruptAction
			{
				AimTarget "-9 -3296 196"
					
				Delay 0.1 
                Repeats 1 
				Duration 5		
			}

			FireWeapon
            {
                Delay 0.01
                Cooldown 0
                Repeats 0
                IfSeeTarget 1
                Type "Primary"
            }

			FireInput   
			{
				Target "colonel_spawn_enabler" 
				Action "Trigger" 
				Delay 3
				Cooldown 1 
				Repeats 1
				IfHealthBelow 12500 
			}

			Taunt  
			{
				Delay 15 
				Repeats 0
				Cooldown 25
				Name "Laugh Taunt"
			}

			AddCond   
			{
				Index 5
				Duration 4
				IfHealthBelow 12500
			}

			ChangeAttributes   
			{
				Delay  0
				Cooldown  9999
				Name  "Inactive" 
			}

			ChangeAttributes   
			{
				Delay  8
				Cooldown  9999
				Name  "Active" 
			}

			ChangeAttributes   
			{
				Delay  0
				Cooldown  9999
				IfHealthBelow 12500
				Name  "Phase2" 
			}

			EventChangeAttributes
			{
				Inactive
				{
					CharacterAttributes
					{
						"move speed bonus" 0.01
						"fire rate bonus" 200
						"override projectile type" 7
						"no_jump" 1
					} 		
				}

				Active
				{
					ItemAttributes
					{
						ItemName "tf_weapon_revolver"
						"fire rate bonus" 3
						"faster reload rate" -0.4 
						"auto fires when full" 1
						"auto fires full clip" 1
					}
					ChangeAttributes
					{
						"move speed bonus" 1
						"fire rate bonus" 1
						"override projectile type" 1
						"no_jump" 0
					}
				}

				Phase2
				{
					Item "tf_weapon_grenadelauncher"
					ItemAttributes
					{
						ItemName "tf_weapon_revolver"
						"faster reload rate" -0.4
						"fire rate bonus" 1
						"auto fires when full" 1
						"auto fires full clip" 1
					}

					ItemAttributes
					{
						ItemName "tf_weapon_grenadelauncher"
						"is_passive_weapon" 1
						"faster reload rate" -0.4
						"fire rate bonus" 6
					}
				}
			}

			CharacterAttributes
			{
				"cannot disguise" 1
				"cloak regen rate decreased" 200
				"damage force reduction" 0.01
				"cancel falling damage" 1
				"alt-fire disabled" 1
				"rage giving scale" 0.2
				"cannot be backstabbed" 1
			}
		}

		T_TFBot_W5_Jade_Colonel_Phase1
		{
			Class Heavyweapons
			Name "Jade Colonel"
			Health 10000
			Attributes UseBossHealthBar
			Skill Normal
			WeaponRestrictions MeleeOnly
			Attributes AlwaysFireWeapon

			UseHumanModel 1

			Action Mobber

			Scale 1.3


			ChangeAttributes   
			{
				Delay  7
				Cooldown  15
				Name  "Melee" 
			}

			ChangeAttributes   
			{
				Delay  15
				Cooldown  15
				Name  "Secondary" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0.01
				"move speed bonus" 0.01
				"cancel falling damage" 1
				"rage giving scale" 0.2
				"cannot be backstabbed" 1
			}

			EventChangeAttributes
			{
				Melee
				{
					WeaponRestrictions MeleeOnly
					CharacterAttributes
					{
						"move speed bonus" 1
					}
				}

				Secondary
				{
					WeaponRestrictions SecondaryOnly
					Item "The Family Business"

					ItemAttributes
					{
						ItemName "The Family Business"
						"faster reload rate" -0.4
						"fire rate bonus" 1.2
					}
					CharacterAttributes
					{
						"move speed bonus" 1.3
					}
				}
			}
		}

		T_TFBot_W5_Jade_Colonel_Phase2
		{
			Class Heavyweapons
			Name "Jade Colonel"
			Health 10000
			Attributes UseBossHealthBar
			Skill Hard

			Action Mobber

			UseHumanModel 1

			Scale 1.3

			ChangeAttributes   
			{
				Delay  0
				Cooldown  14
				Name  "Melee" 
			}

			ChangeAttributes   
			{
				Delay  7
				Cooldown  14
				Name  "Secondary" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0.01
				"attach particle effect" 3042
				"rage giving scale" 0.2
				"cannot be backstabbed" 1
			}

			EventChangeAttributes
			{
				Secondary
				{
					WeaponRestrictions SecondaryOnly
					Item "The Family Business"

					ItemAttributes
					{
						ItemName "The Family Business"
						"faster reload rate" -0.4
						"fire rate bonus" 0.65
					}

					CharacterAttributes
					{
						"move speed bonus" 1.5
					}
				}

				Melee
				{
					WeaponRestrictions MeleeOnly
					Item "Prinny Machete"
					ItemAttributes
					{
						ItemName "Prinny Machete"
						"damage bonus" 1.1
					}

					CharacterAttributes
					{
						"move speed bonus" 1.2
					}
				}
			}
		}

		T_TFBot_W6_Last_Captain_Punch_Phase1 //spawns 11s after the wave is started
		{
			Class Heavyweapons
			Skill Expert
			Health 14000
			Name "The Last Captain Punch (1/4)"
			Attributes MiniBoss
			Attributes UseBossHealthBar
			Attributes SuppressFire

			SpawnTemplate "W6_Punch_Phase1_Target"

			ClassIcon heavy_chief_support

			Item "War Head"
			Item "Fists of Steel"
			Item "TF_WEAPON_SHOTGUN_HWG"

			//UseMeleeThreatPrioritization 1 

			FireWeapon
			{
				Delay 11
				Cooldown 0.15
				Duration 0.05
				Type "Primary"
				IfSeeTarget 1
			}

			InterruptAction
			{
				Target "132 -2975 193" 
				AimTarget "73 -5008 214"
					
				Delay 0.1 
                Repeats 1 
				Duration 3 		
			}

			InterruptAction 
			{
				Target "114 -3497 193" 
				AimTarget "73 -5008 214"
					
				Delay 3.1 
                Repeats 1 
				Duration 8 	
			}

			Taunt  
			{
				Delay 7
				Repeats 1
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"move speed bonus" 1.1
				"mult stun resistance" 0
				"cancel falling damage" 1
				"rage giving scale" 0.15
			}

			ChangeAttributes   
			{
				Delay  0
				Cooldown  9999
				Name  "IntroSequence" 
			}

			ChangeAttributes   
			{
				Delay  10.5
				Cooldown  7
				Name  "SpeedSlow" 
			}

			ChangeAttributes   
			{
				Delay  16.5
				Cooldown  7
				Name  "SpeedFast" 
			}

			EventChangeAttributes
			{
				IntroSequence
				{
					WeaponRestrictions MeleeOnly
				}

				SpeedSlow
				{
					WeaponRestrictions MeleeOnly
					ItemAttributes
					{
						ItemName "Fists of Steel"
						"damage bonus" 1.53
						"apply look velocity on damage" 10000
						"apply z velocity on damage" 10000
						"fire rate bonus" 1.25
						"subtract victim medigun charge on hit" 75
						"subtract victim cloak on hit" 100
						"damage all connected" 1
						"melee range multiplier" 2
						"melee bounds multiplier" 2
						"dmg from melee increased" 1.3
						"melee cleave attack" 1
						"dmg pierces resists absorbs" 1
					}
				}

				SpeedFast
				{
					WeaponRestrictions SecondaryOnly
					ItemAttributes
					{
						ItemName "TF_WEAPON_SHOTGUN_HWG"
						"override projectile type" 2
						"faster reload rate" -0.54
						"projectile speed increased" 1.5
						"apply look velocity on damage" -900
						"blast radius decreased" 0.1
						"add attributes on hit" "move speed bonus|0.3|3"
					}
				}
			}
		}	

		T_TFBot_W6_Last_Captain_Punch_Phase2
		{
			Class Heavyweapons
			Skill Expert
			Health 14000
			Name "The Last Captain Punch (2/4)"
			Attributes MiniBoss
			Attributes UseBossHealthBar

			ClassIcon heavy_chief_support

			Item "War Head"
			Item "Fists of Steel"
			Item "TF_WEAPON_SHOTGUN_HWG"

			//UseMeleeThreatPrioritization 1 

			Action Mobber

			Tag punch_phase2

			CharacterAttributes
			{
				"damage force reduction" 0
				"move speed bonus" 1.2
				"mult stun resistance" 0
				"cancel falling damage" 1
				"rage giving scale" 0.15
			}
	

			ChangeAttributes   
			{
				Delay  0
				Cooldown  12
				Name  "Melee" 
			}

			ChangeAttributes   
			{
				Delay  6
				Cooldown  12
				Name  "Minigun" 
			}

			ChangeAttributes   
			{
				Delay  10
				Cooldown  12
				Name  "Shotgun" 
			}

			EventChangeAttributes
			{
				Melee
				{
					WeaponRestrictions MeleeOnly
					ItemAttributes
					{
						ItemName "Fists of Steel"
						"damage bonus" 1.9
						"apply look velocity on damage" 10000
						"apply z velocity on damage" 10000
						"damage causes airblast" 1
						"fire rate bonus" 2
						"subtract victim medigun charge on hit" 75
						"subtract victim cloak on hit" 100
						"damage all connected" 1
						"critboost on kill" 4
						"speed_boost_on_kill" 4
						"melee range multiplier" 1.5
						"melee bounds multiplier" 1.5
						"dmg from melee increased" 1.2
						"melee cleave attack" 1
						"dmg pierces resists absorbs" 1
					}
				}

				Minigun
				{
					WeaponRestrictions PrimaryOnly
					ItemAttributes
					{
						ItemName "tf_weapon_minigun"
						"damage bonus" 0.15
						"spread penalty" 0.6
						"apply look velocity on damage" -300
						"mod minigun can holster while spinning" 1
					}
				}

				Shotgun
				{
					WeaponRestrictions SecondaryOnly
					Item "TF_WEAPON_SHOTGUN_HVG"
					ItemAttributes
					{
						ItemName "TF_WEAPON_SHOTGUN_HWG"
						"faster reload rate" -0.54
						"fire rate bonus" 3
						"bullets per shot bonus" 15
						"damage penalty" 0.6
						"spread penalty" 2
					}
				}
			}
		}

		T_TFBot_W6_Miniboss
		{
			Class Heavyweapons
			Name "Mindless Machine"
			Health 14000 
			ClassIcon heavy_fist_nys

			Attributes UseBossHealthBar
			Attributes MiniBoss
			Attributes AlwaysFireWeapon

			WeaponRestrictions MeleeOnly

			Item "The Killing Gloves of Boxing"

			Item "The Bolt Action Blitzer"

			Message
			{
				Name "{99CCFF}Mindless Machine{FBECCB}: KILL" 
				Delay 5
				Cooldown 0 
				Repeats 1 
			}

			Message
			{
				Name "{99CCFF}Mindless Machine{FBECCB}: DEFEND MASTER" 
				Delay 7
				Cooldown 0 
				Repeats 1 
			}

			Action Mobber

			ChangeAttributes   //
			{
				Delay  0
				Cooldown  10
				Name  "NormalPhase"
				IfHealthAbove 7000
			}

			ChangeAttributes   //
			{
				Delay  8
				Cooldown  10
				Name  "Charge"
				IfHealthAbove 7000
			}

			ChangeAttributes   //
			{
				Delay  1
				Cooldown  9999
				Name  "Rockets"
				IfHealthBelow 7000
			}

			EventChangeAttributes
			{
				NormalPhase
				{
					Item "tf_weapon_rocketlauncher"

					WeaponRestrictions MeleeOnly

					ItemAttributes
					{
						ItemName "The Killing Gloves of Boxing"
						"damage bonus" 1.5
						"fire rate bonus" 0.5
						"bleeding duration" 2
						"melee bounds multiplier" 2.5
						"melee range multiplier" 2.5
					}

					ItemAttributes
					{
						ItemName "tf_weapon_rocketlauncher"
						"is_passive_weapon" 1
						"damage bonus" 1
						"Projectile speed decreased" 0.4
						"Blast radius increased" 3
						"faster reload rate" 0.01
						"fire rate bonus" 1
						"custom projectile model" "models/weapons/w_models/w_drg_ball.mdl"
						"explosion particle" "drg_cow_explosioncore_charged_blue"
						"projectile trail particle" "drg_cow_rockettrail_charged_blue"
					}

					CharacterAttributes
					{
						"damage force reduction" 0.01
						"airblast vulnerability multiplier" 0.01
						"head scale" 3
						"torso scale" 0.5
						"mult stun resistance" 0
						"dmg taken increased" 1
						"cancel falling damage" 1
						"rage giving scale" 0.15
					}
				}

				Charge 
				{
					Item "tf_weapon_grenadelauncher"

					WeaponRestrictions PrimaryOnly

					ItemAttributes
					{
						ItemName "tf_weapon_grenadelauncher"
						"fire rate bonus" 0.1
						"projectile spread angle penalty" 360
						"faster reload rate" -0.4
						"mult projectile count" 3
						"custom projectile model" "models\weapons\c_models\c_sandwich\c_robo_sandwich.mdl"
					}

					CharacterAttributes
					{
						"move speed bonus" 10
						"mult stun resistance" 0
						"dmg taken increased" 1
						"rage giving scale" 0.15
					}
				}

				Rockets
				{
					Item "tf_weapon_rocketlauncher"

					WeaponRestrictions PrimaryOnly

					ItemAttributes
					{
						ItemName "tf_weapon_rocketlauncher"
						"projectile acceleration start time" 1
						"damage bonus" 1.4
						"fire rate bonus" 0.3
						"faster reload rate" -0.4
						"projectile speed increased" 0.1
						"projectile acceleration" 1000
						"projectile acceleration time" 2
						"mod projectile heat seek power" 90
						"mod projectile heat aim error" 360
						"mod projectile heat aim time" 3
						"blast dmg to self increased" 0.25
						"custom projectile model" "models\props_halloween\eyeball_projectile.mdl"
					}

					CharacterAttributes
					{
						"move speed bonus" 2
						"mult stun resistance" 0
						"damage force reduction" 0.01
						"airblast vulnerability multiplier" 0.01
						"dmg taken increased" 1
						"rage giving scale" 0.15
					}
				}
			}	
		}

		T_TFBot_W6_Last_Captain_Punch_Phase3
		{
			Class Heavyweapons
			Skill Expert
			Health 13000
			Name "The Last Captain Punch (3/4)"
			Attributes MiniBoss
			Attributes UseBossHealthBar

			ClassIcon heavy_chief_support

			Item "War Head"
			Item "Fists of Steel"
			Item "TF_WEAPON_SHOTGUN_HWG"

			//UseMeleeThreatPrioritization 1 
			//AlwaysGlow 1

			SpawnTemplate "W6_Punch_Phase3_Target"

			Tag punch_phase3

			Action Mobber

			CharacterAttributes
			{
				"damage force reduction" 0
				"cancel falling damage" 1
				"move speed bonus" 1.3
				"mult stun resistance" 0
				"rage giving scale" 0.15
			}
	
			ChangeAttributes   
			{
				Delay  0
				Cooldown  15
				Name  "Melee" 
			}

			ChangeAttributes   
			{
				Delay  5
				Cooldown  15
				Name  "Shotgun" 
			}

			ChangeAttributes   
			{
				Delay  10
				Cooldown  15
				Name  "Minigun" 
			}

			EventChangeAttributes
			{
				Melee
				{
					WeaponRestrictions MeleeOnly
					Item "Fists of Steel"
					ItemAttributes
					{
						ItemName "Fists of Steel"
						"damage bonus" 1.9
						"apply look velocity on damage" 10000
						"apply z velocity on damage" 10000
						"damage causes airblast" 1
						"fire rate bonus" 3.75
						"subtract victim medigun charge on hit" 75
						"subtract victim cloak on hit" 100
						"damage all connected" 1
						"critboost on kill" 4
						"speed_boost_on_kill" 4
						"heal on kill" 1500
						"dmg from melee increased" 1.1
						"melee cleave attack" 1
						"dmg pierces resists absorbs" 1
					}
				}

				Shotgun
				{
					WeaponRestrictions SecondaryOnly
					Item "TF_WEAPON_SHOTGUN_HWG"
					Item "tf_weapon_fists"
					ItemAttributes
					{
						ItemName "TF_WEAPON_SHOTGUN_HWG"
						"faster reload rate" -0.54
						"fire rate bonus" 0.7
						"bullets per shot bonus" 7
						"damage penalty" 0.7
						"spread penalty" 1.75
					}

					ItemAttributes
					{
						ItemName "tf_weapon_fists"
						"melee range multiplier" 0.5
						"melee bounds multiplier" 0.5
						"hit self on miss" 1
						"apply look velocity on damage" 7000
						"apply z velocity on damage" 3000
						"is_passive_weapon" 1
						"damage bonus" 0.01
						"fire rate bonus" 6
					}
				}

				Minigun
				{
					WeaponRestrictions PrimaryOnly
					Item "tf_weapon_minigun"
					Item "tf_weapon_fists"
					ItemAttributes
					{
						ItemName "tf_weapon_minigun"
						"damage bonus" 0.2
						"apply z velocity on damage" -300
						"damage causes airblast" 1
						"mod minigun can holster while spinning" 1
					}
				}
			}
		}

		T_TFBot_W6_Last_Captain_Punch_Phase4
		{
			Class Heavyweapons
			Skill Expert
			Health 17000
			Name "The Last Captain Punch (4/4)"
			Attributes MiniBoss
			Attributes UseBossHealthBar
			Attributes SuppressFire

			ClassIcon heavy_chief_support

			Item "War Head"
			Item "Fists of Steel"
			Item "TF_WEAPON_SHOTGUN_HWG"
			//AlwaysGlow 1

			//UseMeleeThreatPrioritization 1 

			SpawnTemplate "W6_Punch_Phase4_Target"

			Action Mobber

			Tag punch_phase4

			CharacterAttributes
			{
				"damage force reduction" 0
				"cancel falling damage" 1
				"mult stun resistance" 0
				"increased jump height" 3
				"rage giving scale" 0.15
			}

			FireWeapon
            {
                Delay 0 
                Cooldown 21 
                Repeats 0 
                Duration 7 
				Type "Primary" 
			}

			FireWeapon
            {
                Delay 7
                Cooldown 21 
                Repeats 0 
                Duration 7 
				Type "Primary" 
			}

			FireWeapon
            {
                Delay 15
                Cooldown 21 
                Repeats 0 
                Duration 6
				Type "Primary" 
			}

			FireWeapon
            {
                Delay 14.25 
                Cooldown 21 
                Repeats 0 
                Duration 0.1 
				Type "Jump" 
			}
	
			ChangeAttributes   
			{
				Delay  0
				Cooldown  21
				Name  "MeleeNormal" 
			}

			ChangeAttributes   
			{
				Delay  7
				Cooldown  21
				Name  "Shotgun" 
			}

			ChangeAttributes   
			{
				Delay  14
				Cooldown  21
				Name  "Jump" 
			}

			ChangeAttributes   
			{
				Delay  15.5
				Cooldown  21
				Name  "MeleeRush" 
			}

			EventChangeAttributes
			{
				MeleeNormal
				{
					WeaponRestrictions MeleeOnly
					Item "Fists of Steel"
					ItemAttributes
					{
						ItemName "Fists of Steel"
						"damage bonus" 1.5
						"apply look velocity on damage" 10000
						"apply z velocity on damage" 10000
						"damage causes airblast" 1
						"fire rate bonus" 0.7
						"subtract victim medigun charge on hit" 75
						"subtract victim cloak on hit" 100
						"damage all connected" 1
						"speed_boost_on_kill" 2
						"critboost on kill" 2
						"heal on kill" 2000
						"dmg from melee increased" 1
						"melee cleave attack" 1
						"dmg pierces resists absorbs" 1
					}

					CharacterAttributes
					{
						"move speed bonus" 1.5
						"dmg taken increased" 1
						"no_jump" 1
					}
				}

				Shotgun
				{
					WeaponRestrictions SecondaryOnly
					Item "TF_WEAPON_SHOTGUN_HWG"
					ItemAttributes
					{
						ItemName "TF_WEAPON_SHOTGUN_HWG"
						"faster reload rate" -0.54
						"apply look velocity on damage" -700
						"fire rate bonus" 0.75
						"bullets per shot bonus" 10
						"damage penalty" 0.45
						"spread penalty" 2
					}

					CharacterAttributes
					{
						"move speed bonus" 1
						"dmg taken increased" 1
					}
				}

				Jump
				{
					WeaponRestrictions MeleeOnly
					Item "Fists of Steel"
					ItemAttributes
					{
						ItemName "Fists of Steel"
						"damage bonus" 0.01
						"fire rate bonus" 0.25
						"stun on damage" 300
						"melee range multiplier" 1.5
						"melee bounds multiplier" 1.5
						"apply look velocity on damage" 20000
						"hit self on miss" 1
						"dmg from melee increased" 1
						"melee cleave attack" 1
						"dmg pierces resists absorbs" 1
					}
				}

				MeleeRush
				{
					WeaponRestrictions SecondaryOnly
					Item "TF_WEAPON_SHOTGUN_HWG"

					ItemAttributes 
					{
						ItemName "TF_WEAPON_SHOTGUN_HWG"
						"faster reload rate" -0.54
						"projectile speed increased" 2
						"override projectile type" 2
						"fire rate bonus" 0.05
						"projectile lifetime" 1
						"projectile spread angle penalty" 5
						"custom projectile model" "models\props_halloween\fist_projectile_darkblue.mdl"
						"custom item model" "models\weapons\c_models\c_fists_of_steel\c_fists_of_steel.mdl"
						"damage bonus" 0.75
					}

					CharacterAttributes
					{
						"move speed bonus" 1
						"dmg taken increased" 1
					}
				}
			}
		}

		T_TFBot_W6_Last_Captain_Punch_End
		{
			Class Heavyweapons
			Skill Expert
			Health 20000
			Name "The Last Captain Punch"
			Attributes MiniBoss
			Attributes UseBossHealthBar
			Attributes SuppressFire
			WeaponRestrictions MeleeOnly
			DeathSound "misc/null.wav"

			ClassIcon heavy_chief

			SpawnTemplate "W6_Punch_End_Explosions"

			Item "War Head"
			Item "Fists of Steel"

			Action Mobber

			Tag punch_end

			Addcond
			{
				Index 71
				Duration 9999
			}

			ChangeAttributes   
			{
				Delay  8.5
				Cooldown  21
				Name  "Death" 
			}

			CharacterAttributes
			{
				"damage force reduction" 0
				"cancel falling damage" 1
				"mult stun resistance" 0
				"dmg taken increased" 0
				"move speed bonus" 0.01
			}

			EventChangeAttributes
			{
				Death
				{
					CharacterAttributes
					{
						"dmg taken increased" 1
						"move speed bonus" 0.01
						"health regen" -100000
					}
				}
			}
		}
	}

	Wave //wave 1/"5"
	{	
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}

		SpawnTemplate "SolemnVowInit"
		SpawnTemplate "Wave1Sound"

		CustomMaxWaveNumber 5  
		Explanation  
		{
			Line "{12E8EE}Doing these things will enhance your experience:"
			Line "{12E8EE}-Turn off all bg music (the mission will contain music and sound effects)" 
			Line "{12E8EE}-Turn the 'Music' slider in options all the way up"
			Line "{12E8EE}-Turn on 3d skybox if turned off (r_3dsky 1)"
			Line "{12E8EE}-Turn on chat and pay attention to it when prompted."
			Line " "
			Line "{40ff00}Most of the non-stock weapons have been modified."
			Line "{40ff00}Type '!missioninfo' in chat to see a full list of modifications."
			Line " "
			Line "{ffaa00}All of the music adjustable by the 'Music' slider in options"
			Line "{ffaa00}If you are a streamer worried about copyright, turn the 'Music' slider down."
			Line " "
			Line "{FF0000}READ EVERYTHING ABOVE YOU WILL NOT REGRET IT!!!!!"
		}

		WaveSpawn
		{
			Name wave1sound 
			WaitBeforeStarting 0

			FirstSpawnOutput
			{
				Target sequence_start
				Action Trigger
			}
		}

		WaveSpawn
		{
			Where spawnbot_wave1_scout
			TotalCurrency 1999
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 6
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave1Scout
					}
				}
			}		
		}

		WaveSpawn
		{
			Where spawnbot_wave1_sniper
			TotalCurrency 1
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 18.5
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave1Sniper
					}
				}
			}
		}

		WaveSpawn
		{
			Name wave1sound
			WaitBeforeStarting 35
			FirstSpawnWarningSound "vo\scout_jeers09.mp3"
		}

		WaveSpawn
		{
			Name wave1sound
			WaitBeforeStarting 45
		}
	}

	Wave //wave 2/"5"
	{
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}

		SpawnTemplate "TankSpinner"  
		SpawnTemplate "TankSpinner2"  
		SpawnTemplate "TankSpinner3"  
		SpawnTemplate "FinalTank"  
		SpawnTemplate "SolemnVowInit"

		CustomMaxWaveNumber 5  

		WaveSpawn
		{
			Name wave2a-1
			Where spawnbot
			Where spawnbot_upper
			TotalCurrency 75
			TotalCount 8
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 3
			
			TFBot
			{
				Template T_TFBot_Wave2_Soldier_Flamethrower
			}	
		}

		WaveSpawn
		{
			Name wave2a-1
			Where spawnbot
			Where spawnbot_upper
			TotalCurrency 75
			TotalCount 8
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 3
			
			TFBot
			{
				Template T_TFBot_Wave2_Pyro_RocketLauncher
			}	
		}

		WaveSpawn
		{
			Name wave2a
			WaitForAllSpawned wave2a-1
			Where spawnbot
			Where spawnbot_upper
			TotalCurrency 100
			TotalCount 8
			MaxActive 8
			SpawnCount 8
			WaitBeforeStarting 8
			WaitBetweenSpawns 1
			
			Squad
			{
				TFBot
				{
					Template T_TFBot_Wave2_Pyro_RocketLauncher
				}	

				TFBot
				{
					Template T_TFBot_Wave2_Soldier_Flamethrower
				}
			}	
		}

		WaveSpawn
		{
			Name wave2a
			Where spawnbot
			Where spawnbot_upper
			TotalCurrency 50
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 15
			
			TFBot
			{
				Template T_TFBot_Wave2_Giant_Demoman
			}	
		}

		WaveSpawn
		{
			Name wave2b
			WaitForAllSpawned wave2a
			Where spawnbot
			Where spawnbot_upper
			TotalCurrency 50
			TotalCount 24
			MaxActive 6
			SpawnCount 1
			WaitBeforeStarting 6
			WaitBetweenSpawns 3
			
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Wave2_Soldier_Flamethrower
				}	

				TFBot
				{
					Template T_TFBot_Wave2_Soldier_GrenadeLauncher
				}

				TFBot
				{
					Template T_TFBot_Wave2_Soldier_Minigun
				}

				TFBot
				{
					Template T_TFBot_Wave2_Soldier_Revolver
				}

				TFBot
				{
					Template T_TFBot_Wave2_Soldier_Rocketlauncher
				}

				TFBot
				{
					Template T_TFBot_Wave2_Soldier_Scattergun
				}

				TFBot
				{
					Template T_TFBot_Wave2_Soldier_Shotgun
				}

				TFBot
				{
					Template T_TFBot_Wave2_Soldier_SniperRifle
				}

				TFBot
				{
					Template T_TFBot_Wave2_Soldier_Syringe
				}
			}	
		}

		WaveSpawn
		{
			Name wave2b
			WaitForAllSpawned wave2a
			Where spawnbot
			Where spawnbot_upper
			TotalCurrency 50
			TotalCount 24
			MaxActive 6
			SpawnCount 1
			WaitBeforeStarting 6
			WaitBetweenSpawns 3
			
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Wave2_Pyro_Flamethrower
				}	

				TFBot
				{
					Template T_TFBot_Wave2_Pyro_GrenadeLauncher
				}

				TFBot
				{
					Template T_TFBot_Wave2_Pyro_Minigun
				}

				TFBot
				{
					Template T_TFBot_Wave2_Pyro_Revolver
				}

				TFBot
				{
					Template T_TFBot_Wave2_Pyro_Rocketlauncher
				}

				TFBot
				{
					Template T_TFBot_Wave2_Pyro_Scattergun
				}

				TFBot
				{
					Template T_TFBot_Wave2_Pyro_Shotgun
				}

				TFBot
				{
					Template T_TFBot_Wave2_Pyro_SniperRifle
				}

				TFBot
				{
					Template T_TFBot_Wave2_Pyro_Syringe
				}
			}	
		}

		WaveSpawn
		{
			Name wave2tanks
			WaitForAllDead wave2a
			TotalCount 2
			MaxActive  2
			SpawnCount 1
			TotalCurrency 300

			WaitBeforeStarting 2
			WaitBetweenSpawns  15

			Tank
			{
				Name   "Tank"
				Health 5000
				Speed  65
				StartingPathTrackNode "boss_path_1"


				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}

		WaveSpawn
		{
			Name wave2tanks
			WaitForAllDead wave2a
			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 300

			WaitBeforeStarting 17
			WaitBetweenSpawns  0

			Tank
			{
				Name   "Tank"
				Health 10
				Speed  65
				StartingPathTrackNode "boss_path_1"
				Scale 0.1  


				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}

		WaveSpawn
		{
			Name wave2tanks
			WaitForAllDead wave2a
			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 300

			WaitBeforeStarting 45
			WaitBetweenSpawns  0

			Tank
			{
				Name   "Tank"
				Health 5000
				Speed  65
				StartingPathTrackNode "boss_path_1"

				SpawnTemplate "ParentingSpin"  

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}

		WaveSpawn
		{
			Name wave2tanks
			WaitForAllDead wave2a
			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 200

			WaitBeforeStarting 55
			WaitBetweenSpawns  0

			Tank
			{
				Name   "Tank"
				Health 5000
				Speed  65
				StartingPathTrackNode "boss_path_1"

				SpawnTemplate "ParentingSpin2"  

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}

		WaveSpawn
		{
			Name  wave2tanks
			WaitForAllDead wave2a
			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 0

			WaitBeforeStarting 60
			WaitBetweenSpawns  0

			Tank
			{
				Name   "tankboss_boom"
				Health 80000
				Speed  6000
				StartingPathTrackNode "boss_path_1"

				SpawnTemplate "Fast_Explosive_Tank"  

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}

		WaveSpawn
		{
			Name  wave2tanks
			WaitForAllDead wave2a
			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 200

			WaitBeforeStarting 65
			WaitBetweenSpawns  0

			Tank
			{
				Name   "Tank"
				Health 5000
				Speed  65
				StartingPathTrackNode "boss_path_1"

				SpawnTemplate "ParentingSpin3"  

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}

		WaveSpawn
		{
			Name  wave2tanks
			WaitForAllDead wave2a
			TotalCount 1
			MaxActive  1
			SpawnCount 1
			TotalCurrency 300

			WaitBeforeStarting 80
			WaitBetweenSpawns  0

			Tank
			{
				Name   "Tank"
				Health 600
				Speed  65
				StartingPathTrackNode "boss_path_1"

				SpawnTemplate "StickyTank"  

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}

		WaveSpawn
		{
			Name wave2boss
			WaitForAllSpawned wave2b
			Where spawnbot
			Where spawnbot_upper
			TotalCurrency 50
			TotalCount 16
			MaxActive 4
			SpawnCount 4
			WaitBeforeStarting 6
			WaitBetweenSpawns 1
			
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Wave2_Demoman_Regular
				}	

				TFBot
				{
					Template T_TFBot_Wave2_Demoman_Buster
				}
			}	
		}

		WaveSpawn
		{
			Name wave2boss
			WaitForAllDead wave2tanks
			Where spawnbot_wave2_boss
			TotalCurrency 500
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 20
			
			TFBot
			{
				Template T_TFBot_Wave2_Boss
			}	
		}

		WaveSpawn 
		{
			Name wave1sound 
			WaitBeforeStarting 63.2
			WaitForAllDead wave2a

			FirstSpawnOutput
			{
				Target tank_death_execute
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name wave1sound 
			WaitForAllDead wave2boss
			WaitBeforeStarting 1

			FirstSpawnOutput
			{
				Target heavy_start
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name wave1sound 
			WaitForAllDead wave2boss
			WaitBeforeStarting 3

			FirstSpawnOutput
			{
				Target rapping_tank_start
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name wave1sound 
			WaitForAllDead wave2boss
			WaitBeforeStarting 6
			FirstSpawnMessage "{AB40FF}Now Playing: Playing With Danger Remix (TheWilsonator)"   
		}

		WaveSpawn
		{
			Name wave1sound
			WaitForAllDead wave2boss 
			WaitBeforeStarting 45.632
		}

		WaveSpawn
		{
			Name fucker
			Where spawnbot_wave2_scout
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 20
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{ 
					TFBot
					{
						Class Scout

						Attributes SuppressFire

						Action Mobber

						AddCond   
						{ 
							Name TF_COND_REPROGRAMMED 
						} 

						CharacterAttributes
						{
							"move speed bonus" 0.001
						}
					}	
				}
			}		
		}

		WaveSpawn
		{
			Name  wave2rappingtank
			WaitForAllDead wave2boss
			TotalCount 1
			MaxActive  1
			SpawnCount 1

			WaitBeforeStarting 24
			WaitBetweenSpawns  0

			Tank
			{
				Name   "epic_rap_tank"
				Health 999999
				Speed  87
				StartingPathTrackNode "rapping_tank_path_1"

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target rap_tank_die
					Action Trigger                         
				}
			}
		}
	}	

	Wave //wave 3/"5"
	{
		StartWaveOutput
		{
			Target w3_start
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
		InitWaveOutput
		{
			Target wave3_spawn_change
			Action Trigger
		}

		CustomMaxWaveNumber 5  

		Explanation  
		{
			Line "{12E8EE}For this wave you will be limited to the front area only."
			Line "{1ccfd4}You will also spawn very close to the front." 
			Line "{FF0000}If you do not finish the wave in 7 minutes, you will lose."
		}

		SpawnTemplate "Wave3_Intro"   
		SpawnTemplate "Wave3_Shit"  
		SpawnTemplate "SolemnVowInit"

		WaveSpawn
		{
			Name wave3first
			Where spawnbot_wave3_boss
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 20
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Mighty_Intro
			}	

			DoneOutput
			{
				Target intro_initiate
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name timer
			WaitForAllDead wave3first
			Where spawnbot_wave3_timer
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 8.5
			WaitBetweenSpawns 7
			Support Limited
			DoneOutput
			{
				Target timer_expire_wave3
				Action Trigger
			}

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W3_Timer
					}	
				}
			}
		}

		WaveSpawn
		{
			Name wave3a
			WaitForAllDead wave3first
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 8.5
			WaitBetweenSpawns 2
			FirstSpawnMessage "{AB40FF}Now Playing: Truth, Beauty and Hatred by Christopher Larkin(Hollow Knight OST)"   
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Mighty
			}	
		}

		WaveSpawn
		{
			Name wave3a
			WaitForAllDead wave3first
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 8.5
			WaitBetweenSpawns 2.5
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Hopping
			}	
		}

		WaveSpawn
		{
			Name wave3a
			WaitForAllDead wave3first
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 8.5
			WaitBetweenSpawns 1.5
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Winged
			}	
		}

		WaveSpawn
		{
			Name wave3b
			WaitForAllSpawned wave3a
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 8
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Faller
			}	
		}

		WaveSpawn
		{
			Name wave3b
			WaitForAllSpawned wave3a
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 6
			WaitBetweenSpawns 6
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Heavy
			}	
		}

		WaveSpawn
		{
			Name wave3b
			WaitForAllSpawned wave3a
			Where spawnbot_wave3_zoteturret
			TotalCurrency 50
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBeforeStarting 2
			WaitBetweenSpawns 10
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Turret
			}	
		}

		WaveSpawn
		{
			Name wave3c
			WaitForAllSpawned wave3b
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 5
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Lanky
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3b
			Where spawnbot_wave3_zoteturret
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 20
			MaxActive 20
			SpawnCount 1
			WaitBeforeStarting 2
			WaitBetweenSpawns 4
			

			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Addcond1
				}	

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Addcond2
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Addcond3
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Addcond4
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Addcond5
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Addcond6
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Addcond7
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Addcond8
				}
			}	
		}

		WaveSpawn
		{
			Name wave3c
			WaitForAllSpawned wave3b
			Where spawnbot_wave3_zoteturret
			TotalCurrency 50
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 10
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Turret
			}	
		}

		WaveSpawn
		{
			Name wave3c
			WaitForAllSpawned wave3b
			Where spawnbot_wave3_zoteturret
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 8
			WaitBetweenSpawns 8
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Head
			}	
		}

		WaveSpawn
		{
			Name wave3d
			WaitForAllSpawned wave3c
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 2
			WaitBetweenSpawns 5
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Faller
			}	
		}

		WaveSpawn
		{
			Name wave3d
			WaitForAllSpawned wave3c
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 3
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Heavy
			}	
		}

		WaveSpawn
		{
			Name wave3d_fluke
			WaitForAllSpawned wave3c
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 0
			DoneOutput
			{
				Target fluke_spawner_disable1
				Action Trigger
			}
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Fluke
			}	
		}

		WaveSpawn
		{
			Name wave3s
			WaitForAllSpawned wave3c
			Where spawnbot_wave3_fluke1
			TotalCurrency 50
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 7
			WaitBetweenSpawns 2
			Support 1
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Fluke_Spawn
			}	
		}

		WaveSpawn
		{
			Name wave3d
			WaitForAllSpawned wave3c
			Where spawnbot_wave3_zoteturret
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 4
			WaitBetweenSpawns 4
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Volatile
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3c
			Where spawnbot_wave3_zoteturret
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 16
			MaxActive 16
			SpawnCount 1
			WaitBeforeStarting 2
			WaitBetweenSpawns 2
			

			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Excited1
				}	

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Excited2
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Excited3
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Excited4
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Excited5
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Excited6
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Excited7
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Excited8
				}

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Excited9
				}
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3d
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 3
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Lanky
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3d
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 1
			WaitBetweenSpawns 2
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Mighty
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3d
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 2
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Faller
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3d
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 7
			WaitBetweenSpawns 4
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Winged
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3d
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 4
			WaitBetweenSpawns 4
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Gobbler
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3d
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 4
			WaitBetweenSpawns 5
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Turret
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3d
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 3
			WaitBetweenSpawns 3
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Heavy
			}	
		}

		WaveSpawn
		{
			Name wave3double
			WaitForAllSpawned wave3d
		}

		WaveSpawn
		{
			Name wave3double
			WaitForAllDead wave3d_fluke
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3double
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 2
			WaitBetweenSpawns 0
			DoneOutput
			{
				Target fluke_spawner_disable2
				Action Trigger
			}
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Fluke
			}	
		}

		WaveSpawn
		{
			Name wave3s
			WaitForAllSpawned wave3double
			Where spawnbot_wave3_fluke2
			TotalCurrency 50
			MaxActive 6
			SpawnCount 1
			WaitBeforeStarting 3
			WaitBetweenSpawns 2
			Support 1
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Fluke_Spawn
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3d
			Where spawnbot_wave3_zoteturret
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 8
			MaxActive 8
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 2
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Volatile
			}	
		}

		WaveSpawn
		{
			Name wave3e
			WaitForAllSpawned wave3d
			Where spawnbot_wave3_zoteturret
			Where spawnbot_wave3_zotemelee
			TotalCurrency 50
			TotalCount 2
			MaxActive 2
			SpawnCount 1
			WaitBeforeStarting 1
			WaitBetweenSpawns 3
			
			TFBot
			{
				Template T_TFBot_Wave3_Heavyling_Head
			}	
		}

		WaveSpawn
		{
			Name 1
			WaitForAllDead wave3e
			Where spawnbot_wave3_boss
			TotalCurrency 50
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 7
			Support Limited

			FirstSpawnOutput
			{
				Target boss_spawn_logic
				Action Trigger
			}
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave3_Grey_Prince_Heavy_Phase1
					}	
				}	
			}
		}	

		WaveSpawn
		{
			Name 1
			WaitForAllDead wave3e
			WaitBeforeStarting 3
			Support Limited
			FirstSpawnMessage "{AB40FF}Now Playing: Truth, Beauty and Hatred by GaMetal (Hollow Knight OST)"   
		}

		WaveSpawn
		{
			Name s
			WaitForAllDead wave3e
			Where spawnbot_wave3_boss_summons1
			TotalCurrency 50
			MaxActive 7
			SpawnCount 7
			WaitBeforeStarting 15.5
			WaitBetweenSpawns 12
			Support 1
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Hopping
					Tag summon
				}	

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Winged
					Tag summon
				}	
			}	
		}

		WaveSpawn
		{
			Name 2
			WaitForAllDead 1
			Where spawnbot_wave3_boss
			TotalCurrency 50
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 7
			Support Limited

			FirstSpawnOutput
			{
				Target spawner1_disabler
				Action Trigger
			}
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave3_Grey_Prince_Heavy_Phase2
					}	
				}	
			}	
		}

		WaveSpawn
		{
			Name s
			WaitForAllDead 1
			Where spawnbot_wave3_boss_summons2
			TotalCurrency 50
			MaxActive 9
			SpawnCount 9
			WaitBeforeStarting 14
			WaitBetweenSpawns 14
			Support 1
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Mighty
					Tag summon
				}	

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Lanky
					Tag summon
				}	

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Hopping
					Tag summon
				}	
			}	
		}

		WaveSpawn
		{
			Name boss_final_phase
			WaitForAllDead 2
			Where spawnbot_wave3_boss
			TotalCurrency 50
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 7

			FirstSpawnOutput
			{
				Target spawner2_disabler
				Action Trigger
			}
			
			TFBot
			{
				Template T_TFBot_Wave3_Grey_Prince_Heavy_Phase3
			}	
		}

		WaveSpawn
		{
			WaitForAllDead boss_final_phase
			FirstSpawnWarningSound "vo\heavy_paincrticialdeath02.mp3"
			DoneOutput
			{
				Target timer_expire_wave3
				Action Disable
			}
		}

		WaveSpawn
		{
			WaitForAllDead boss_final_phase
			WaitBeforeStarting 3
		}

		WaveSpawn
		{
			Name 3
			WaitForAllDead 2
			Where spawnbot_wave3_boss_summons3
			TotalCurrency 50
			MaxActive 11
			SpawnCount 11
			WaitBeforeStarting 12
			WaitBetweenSpawns 12
			Support 1
			RandomChoice
			{
				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Heavy
					Tag summon
				}	

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Lanky
					Tag summon
				}	

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Hopping
					Tag summon
				}	

				TFBot
				{
					Template T_TFBot_Wave3_Heavyling_Volatile
					Tag summon
				}
			}	
		}
	}	

	Wave //wave 4/"5"
	{
		StartWaveOutput
		{
			Target w4_start
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
		InitWaveOutput
		{
			Target w4_block
			Action Trigger
		}

		Explanation  
		{
			Line "{99CCFF}???: {FBECCB}Hey guys, hi!!!!!"  
			Line "{99CCFF}???: {FBECCB}You won't believe it, I saw something very very cool."  
			Line "{99CCFF}???: {FBECCB}Go check it out, it's at the front of the map."  
			Line "{99CCFF}???: {FBECCB}Heheheheheheh..."  
			Line "{FF0000}If you do not finish the wave in 9 minutes, you will lose."
			Line " " 
			Line "{40ff00}For this wave only, everyone can reflect projectiles with their melee." 
		}

		SpawnTemplate "Wave4_SpawnPoint_Triggers_OhMyFuckingGodThereWillBeSoMuchShitHereFuckMyLife"  
		SpawnTemplate "W4_Enrage"  
		SpawnTemplate "Wave4_Music_Master"  
		SpawnTemplate "W4_Static_Gates"  
		SpawnTemplate "W4_Collectibles"  
		SpawnTemplate "W4_Boss_Things"  
		SpawnTemplate "Wave4_BossTeleporter"  
		SpawnTemplate "SolemnVowInit"

		CustomMaxWaveNumber 5  

		PlayerAttributes   //Add attributes to players when the wave is active
		{
			"move speed penalty" 1.8
			"single wep deploy time decreased"	0.01
			"switch from wep deploy time decreased"	0.01
			"cancel falling damage" 1
			"melee airblast" 1
		}

		WaveSpawn
		{
			Name timer
			Where spawnbot_wave3_timer
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 15
			WaitBetweenSpawns 7
			Support Limited
			FirstSpawnMessage "{AB40FF}Now Playing: Castle Vein by Arsi Patala (Ultrakill OST)"   
			DoneOutput
			{
				Target timer_expire_wave4
				Action Trigger
			}

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_Timer
					}	
				}
			}
		}

		WaveSpawn
		{
			Name wave4_keymaster1
			Where spawnbot_wave4_keymaster1
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_Keymaster
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_keymaster2
			Where spawnbot_wave4_keymaster2
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_Keymaster
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_double
			WaitForAllDead wave4_keymaster1
			Support Limited
		}

		WaveSpawn
		{
			Name wave4_double
			WaitForAllDead wave4_keymaster2
			Support Limited
		}

		WaveSpawn
		{
			Name wave4_allkeys
			WaitForAllDead wave4_double
			Support Limited

			FirstSpawnOutput
			{
				Target w4_gate_open
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name wave4_area1_1
			Where spawnbot_wave4_area1_1
			TotalCount 4
			MaxActive 4
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited
			

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}			
		}

		WaveSpawn
		{
			Name wave4_area1_1
			Where spawnbot_wave4_area1_5
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited
			

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}		
		}


		WaveSpawn
		{
			Name wave4_area1_1
			Where spawnbot_wave4_area1_7
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited
			

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_1
			WaitForAllDead 0
			Where spawnbot_wave4_area1_10
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited
			

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_gate
			WaitForAllDead wave4_area1_1
			WaitBeforeStarting 0
			Support Limited

			FirstSpawnOutput
			{
				Target w4_area1_sound2
				Action Trigger
			}
		}

		
		WaveSpawn
		{
			Name wave4_area1_2
			WaitForAllDead wave4_area1_1
			Where spawnbot_wave4_area1_7
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 1
			WaitBetweenSpawns 0.5
			Support Limited
			

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_2
			WaitForAllDead wave4_area1_1
			Where spawnbot_wave4_area1_10
			TotalCount 3
			MaxActive 3
			SpawnCount 1
			WaitBeforeStarting 3
			WaitBetweenSpawns 0.5
			Support Limited
			

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_3
			WaitForAllDead wave4_area1_1
			Where spawnbot_wave4_area1_13
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 6
			WaitBetweenSpawns 0
			Support Limited
			

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_3
			WaitForAllDead wave4_area1_1
			Where spawnbot_wave4_area1_14
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 7
			WaitBetweenSpawns 0
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_3
			WaitForAllDead wave4_area1_1
			Where spawnbot_wave4_area1_15
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 8
			WaitBetweenSpawns 0
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_3
			WaitForAllDead wave4_area1_1
			Where spawnbot_wave4_area1_16
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 9
			WaitBetweenSpawns 0
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_gate
			WaitForAllDead wave4_area1_2
			WaitBeforeStarting 0
			Support Limited

			FirstSpawnOutput
			{
				Target w4_area1_sound3
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name wave4_area1_3
			WaitForAllDead wave4_area1_2
			Where spawnbot_wave4_area1_7
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 1
			WaitBetweenSpawns 0
			Support Limited

			DoneOutput
			{
				Target cerebus_death_master
				Action Trigger
			}

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4Cerbeus
						SpawnTemplate "W4_CerebusStomp"  
						FireInput   
						{
							Target "stomp_relay" 
							Action "Trigger" 
							Delay 6.5 
							Cooldown 8 
							Repeats 0 
						}
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_3
			WaitForAllDead wave4_area1_2
			Where spawnbot_wave4_area1_10
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 3
			WaitBetweenSpawns 0
			Support Limited

			DoneOutput
			{
				Target cerebus_death_master
				Action Trigger
			}

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4Cerbeus
						SpawnTemplate "W4_CerebusStomp_Secondary"  
						FireInput   
						{
							Target "stomp_relay1" 
							Action "Trigger" 
							Delay 6.5 
							Cooldown 8 
							Repeats 0 
						}
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area1_gate
			WaitForAllDead wave4_area1_3
			WaitBeforeStarting 0

			FirstSpawnOutput
			{
				Target w4_area1_done
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name wave4_area2
			Where spawnbot_wave4_area2_1
			TotalCount 6
			MaxActive 6
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_StreetCleaner
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area2
			Where spawnbot_wave4_area2_2
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area2
			Where spawnbot_wave4_area2_3
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area2
			Where spawnbot_wave4_area2_4
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area2
			Where spawnbot_wave4_area2_5
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area2
			Where spawnbot_wave4_area2_6
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area2
			Where spawnbot_wave4_area2_7
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Stray_Inmobile
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area3_filth
			Where spawnbot_wave4_area3_1
			TotalCount 12
			MaxActive 12
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area3_1
			WaitForAllSpawned wave4_area3_filth
			Where spawnbot_wave4_area3_1
			TotalCount 12
			MaxActive 12
			SpawnCount 1
			WaitBeforeStarting 8
			WaitBetweenSpawns 0.25
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_StreetCleaner
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area3_1
			Where spawnbot_wave4_area3_2
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.25
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_MaliciousFace
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area3_gate
			WaitForAllDead wave4_area3_1
			WaitBeforeStarting 0

			FirstSpawnOutput
			{
				Target spawnbot_enabler3_2
				Action Enable
			}
		}

		WaveSpawn
		{
			Name wave4_area3_2
			Where spawnbot_wave4_area3_3
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.25
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_Mindflayer
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area3_2
			Where spawnbot_wave4_area3_4
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.25
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4Cerbeus
						SpawnTemplate "W4_CerebusStomp"  
						FireInput   
						{
							Target "stomp_relay" 
							Action "Trigger" 
							Delay 6.5 
							Cooldown 8 
							Repeats 0 
						}					
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area3_2
			Where spawnbot_wave4_area3_5
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.25
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4Cerbeus
						SpawnTemplate "W4_CerebusStomp_Secondary"  
						FireInput   
						{
							Target "stomp_relay1" 
							Action "Trigger" 
							Delay 6.5 
							Cooldown 8 
							Repeats 0 
						}
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			WaitForAllDead wave4_area4_start
			Where spawnbot_wave4_area4_1
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.25
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4Cerbeus
						SpawnTemplate "W4_CerebusStomp"  
						FireInput   
						{
							Target "stomp_relay" 
							Action "Trigger" 
							Delay 6.5 
							Cooldown 8 
							Repeats 0 
						}
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			WaitForAllDead wave4_area4_start
			Where spawnbot_wave4_area4_2
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 10
			WaitBetweenSpawns 0.25
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4Cerbeus
						SpawnTemplate "W4_CerebusStomp_Secondary"  
						FireInput   
						{
							Target "stomp_relay1" 
							Action "Trigger" 
							Delay 6.5 
							Cooldown 8 
							Repeats 0 
						}
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			Where spawnbot_wave4_area4_3
			TotalCount 2
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 0
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Soldier
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			Where spawnbot_wave4_area4_4
			TotalCount 2
			MaxActive 2
			SpawnCount 2
			WaitBeforeStarting 0
			WaitBetweenSpawns 0
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Soldier
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			Where spawnbot_wave4_area4_5
			TotalCount 4
			MaxActive 4
			SpawnCount 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			Where spawnbot_wave4_area4_6
			TotalCount 4
			MaxActive 4
			SpawnCount 4
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			Where spawnbot_wave4_area4_7
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_MaliciousFace
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			Where spawnbot_wave4_area4_8
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_MaliciousFace
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			Where spawnbot_wave4_area4_9
			Where spawnbot_wave4_area4_10
			TotalCount 8
			MaxActive 8
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Soldier
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area4
			Where spawnbot_wave4_area4_11
			TotalCount 6
			MaxActive 6
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area5
			Where spawnbot_wave4_area5_1
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_Hideous_Mass
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area5
			Where spawnbot_wave4_area5_2
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_Mindflayer
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area5
			Where spawnbot_wave4_area5_3
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_Mindflayer
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area5
			Where spawnbot_wave4_area5_4
			Where spawnbot_wave4_area5_5
			Where spawnbot_wave4_area5_6
			TotalCount 18
			MaxActive 18
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 0.5
			Support Limited

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Filth
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave4_area3_gate_1
			WaitForAllDead wave4_area3_2
			WaitBeforeStarting 0
			Support Limited

			FirstSpawnOutput
			{
				Target w4_area3_done
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name wave4_area5_gate1
			WaitForAllDead wave4_area5
			WaitBeforeStarting 0
			Support Limited

			FirstSpawnOutput
			{
				Target w4_area5_done
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name w4_wavebar
			Where spawnbot_wave4_wavebar
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 7
			
			TFBot
			{
				Template T_TFBot_W4_Wavebar
			}	
		}

		WaveSpawn
		{
			Name w4_boss
			Where spawnbot_wave4_boss
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 7
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Boss_1
					}	
				}
			}
		}

		WaveSpawn
		{
			Name w4_message
			WaitForAllSpawned w4_boss
			Where spawnbot_wave4_boss
			WaitBeforeStarting 8
			WaitBetweenSpawns 7
			Support Limited
			FirstSpawnMessage "{AB40FF}Now Playing: Versus by Arsi Patala (Ultrakill OST)"   
		}

		WaveSpawn
		{
			Name w4_boss2
			WaitForAllDead w4_boss
			Where spawnbot_wave4_boss
			TotalCurrency 600
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 7
			Support Limited

			FirstSpawnOutput
			{
				Target w4_boss_teleporter_kill
				Action Trigger
			}
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Wave4_Boss_2
					}	
				}
			}		
		}

		WaveSpawn
		{
			Name w4_boss2
			WaitForAllDead w4_boss
			WaitBeforeStarting 1
			WaitBetweenSpawns 7
			Support Limited
			FirstSpawnMessage "{AB40FF}Now Playing: Duel (Versus Reprise) by Arsi Patala (Ultrakill OST)"   
		}

		WaveSpawn
		{
			Name wave1sound
			WaitForAllDead w4_boss2
			WaitBeforeStarting 0

			FirstSpawnOutput
			{
				Target w4_boss_defeated_trigger
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead w4_boss2
			WaitBeforeStarting 6
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}AHAHAHAHA!"  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead w4_boss2
			WaitBeforeStarting 8
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}You fools! You fell for my trick!"  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead w4_boss2
			WaitBeforeStarting 11
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}You blindly followed my word to investigate that rusty robot."  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead w4_boss2
			WaitBeforeStarting 14
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}Now I, Kyle Jade, have taken control over your base!"  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead w4_boss2
			WaitBeforeStarting 17
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}Kyle Jade: {FBECCB}Adieu, idiots!!!"  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead w4_boss2
			WaitBeforeStarting 20
			WaitBetweenSpawns 0
		}
	}	

	Wave //wave 5/"5"
	{
		StartWaveOutput
		{
			Target w5_start
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
		InitWaveOutput
		{
			Target wave5_initiate
			Action Trigger
		}

		Explanation  
		{
			Line "{12E8EE}Kyle Jade has taken over your base!"
			Line "{1ccfd4}You need to get back to the spawn area and beat him to death." 
			Line "{17bbbf}Sadly, during your absence he planted a miniature bomb under your hatch." 
			Line "{FF0000}If you do not kill him in 9 minutes, it will explode."
		}

		CustomMaxWaveNumber 5  

		SpawnTemplate "Wave5_Enablers"  
		SpawnTemplate "W5_Music_Master"  
		SpawnTemplate "CutsceneShit"  
		SpawnTemplate "W5_Bodyguard_Thing"  
		SpawnTemplate "SolemnVowInit"

		WaveSpawn
		{
			Name timer
			Where spawnbot_wave3_timer
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 2
			WaitBetweenSpawns 7
			Support Limited
			FirstSpawnMessage "{AB40FF}Now Playing: The Wicked by Saori Yoshida (Yakuza Kiwami OST)"   
			DoneOutput
			{
				Target timer_expire_wave5
				Action Trigger
			}

			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W4_Timer
					}	
				}
			}
		}

		WaveSpawn
		{
			Where spawnbot_wave5_area1_commons
			TotalCurrency 150
			TotalCount 26
			MaxActive 8
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Class Scout
						Skill Normal
						Action Mobber
						Tag crook
					}

					TFBot
					{
						Class Soldier
						Skill Normal
						Action Mobber
						Tag crook
					}

					TFBot
					{
						Class Demoman
						Skill Normal
						Action Mobber
						Tag crook
					}

					TFBot
					{
						Class Heavyweapons
						Skill Normal
						Action Mobber
						Tag crook
					}

					TFBot
					{
						Class Pyro
						Skill Easy
						Action Mobber
						Tag crook
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave5_area1_left
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 2
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Colonel_Barrage_Homing
						DeathSound "misc/null.wav"
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave5_area1_right
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 2
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Colonel_Barrage_Homing
						DeathSound "misc/null.wav"
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave5_area2_commons
			TotalCurrency 200
			TotalCount 28
			MaxActive 8
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Scout_Sandman
						Tag crook
						Action Mobber
					}

					TFBot
					{
						Class Soldier
						Skill Normal
						Tag crook
						Item "The Direct Hit"
						Name "Direct Hit Soldier"
						Action Mobber
					}

					TFBot
					{
						Class Demoman
						ClassIcon demoknight
						Skill Hard
						Tag crook
						Name "Persian Demoknight"
						Item "Sultan's Ceremonial"	
						Item "Ali Baba's Wee Booties"
						Item "The Persian Persuader"
						Item "The Splendid Screen"	
						Action Mobber
						ItemAttributes
						{
							ItemName "The Splendid Screen"
							"Attack not cancel charge" 1
						}		
						WeaponRestrictions MeleeOnly
						CharacterAttributes
						{
							"critboost on kill" 3
						}	
					}

					TFBot
					{
						Template T_TFBot_Heavy_Crush
						Action Mobber
					}

					TFBot
					{
						Class Pyro
						Skill Hard
						ClassIcon pyro_phlog
						Tag crook
						Item "The Phlogistinator"
						Action Mobber
						Name "Phlog Pyro"
						Attributes    SpawnWithFullCharge
						WeaponRestrictions    PrimaryOnly
						ItemAttributes
						{
							ItemName    "The Phlogistinator"
							"airblast disabled"    0
							"charge recharge rate increased" 7
						}
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave5_area2_giant
			TotalCurrency 400
			TotalCount 12
			MaxActive 12
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 6
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W5_Giant_Demoman_Loch
						DeathSound "misc/null.wav"
					}

					TFBot
					{
						Template T_TFBot_W5_Giant_Engineer_Widowmaker
						DeathSound "misc/null.wav"
					}

					TFBot
					{
						Template T_TFBot_W5_Giant_Heavyweapons_Plasma
						DeathSound "misc/null.wav"
					}

					TFBot
					{
						Template T_TFBot_W5_Giant_Pyro_Deflect
						DeathSound "misc/null.wav"
					}

					TFBot
					{
						Template T_TFBot_W5_Giant_Pyro_Flaregun_RapidFire
						DeathSound "misc/null.wav"
					}

					TFBot
					{
						Template T_TFBot_W5_Giant_Pyro_Helium
						DeathSound "misc/null.wav"
					}

					TFBot
					{
						Template T_TFBot_W5_Giant_Scout_FAN_Armored
						DeathSound "misc/null.wav"
					}

					TFBot
					{
						Template T_TFBot_W5_Giant_Soldier_Barrage
						DeathSound "misc/null.wav"
					}

					TFBot
					{
						Template T_TFBot_W5_Giant_Scout_Vader
						DeathSound "misc/null.wav"
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave5_area3_guardian1
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W5_Demoman_Guardian
						DeathSound "misc/null.wav"
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave5_area3_guardian2
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W5_Engineer_Guardian
						DeathSound "misc/null.wav"
					}
				}
			}	
		}

		WaveSpawn
		{
			Name wave5_jingu
			Where spawnbot_wave5_jingu
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			

			TFBot
			{
				Template T_TFBot_W5_Spy_Boss
				Tag jingu
			}
		}

		WaveSpawn
		{
			Name w5_bodyguard_1
			Where spawnbot_wave5_bodyguard
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W5_Jade_Colonel_Phase1
						Tag colonel1
						SpawnTemplate "W5_Colonel_Target1"  
					}
				}
			}
		}

		WaveSpawn
		{
			Name w5_bodyguard_1
			Where spawnbot_wave5_bodyguard
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W5_Jade_Colonel_Phase1
						Tag colonel2
						SpawnTemplate "W5_Colonel_Target2"  
					}
				}
			}
		}

		WaveSpawn
		{
			WaitForAllDead w5_bodyguard_1
			DoneOutput
			{
				Target jingu_uber_remover
				Action Trigger
			}
		}

		WaveSpawn
		{
			Where spawnbot_wave5_bodyguard2
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W5_Jade_Colonel_Phase2
						Tag colonel1
					}
				}
			}
		}

		WaveSpawn
		{
			Where spawnbot_wave5_bodyguard2
			TotalCurrency 100
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W5_Jade_Colonel_Phase2
						Tag colonel2
					}
				}
			}
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 0
			WaitBetweenSpawns 0
			FirstSpawnOutput
			{
				Target jingu_death_trigger
				Action Trigger
			}
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 11
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}You're not going anywhere."  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 15
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}For the last 11 years, you slaughtered my people with no remorse."  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 19
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}Every single Bone Shaker session was like torture, watching my friends and family die."  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 24
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}If you think that I will just sit on my ass and do nothing..."  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 27
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}You're {FF0000}DEEPLY {FBECCB}mistaken."  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 31
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}Prepare yourselves, you monsters."  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 35
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FF0000}YOUR FINAL DAY HAS COME."  
		}

		WaveSpawn
		{
			Name wave4_messages
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 36.9
			WaitBetweenSpawns 0
			FirstSpawnMessage "{AB40FF}Now Playing: Weihnachten Am Klavier by Arsi Patala (Ultrakill OST)"   
		}

		WaveSpawn
		{
			WaitForAllDead wave5_jingu
			WaitBeforeStarting 37
		}
	}	

	Wave //wave 6/"5"
	{
		StartWaveOutput
		{
			Target w6_start
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
		InitWaveOutput
		{
			Target w6_initiate
			Action Trigger
		}

		Explanation  
		{
			Line "{FF0000}Medics cannot heal in this wave, but their weapons are stronger."
		}

		SpawnTemplate "W6_Music_Master"
		SpawnTemplate "W6_Stuff"
		SpawnTemplate "SolemnVowInit"

		CustomMaxWaveNumber 5  

		PlayerAttributes
        {
            "mod weapon blocks healing" 1
        }

		ItemAttributes 
		{
			ClassName "tf_weapon_syringegun_medic"
			"mult dmg vs giants" 2.5
			"aoe heal chance" 571
		}

		ItemAttributes  
		{
			ClassName "tf_weapon_crossbow"
			"mult dmg vs giants" 2.5
			"aoe heal chance" 275
		}

		WaveSpawn
		{
			WaitBeforeStarting 1
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}I've been waiting for this."  
		}

		WaveSpawn
		{
			WaitBeforeStarting 5
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}The day of my revenge has finally come."  
		}

		WaveSpawn
		{
			WaitBeforeStarting 9
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}So, come forth, children of man..."  
		}

		WaveSpawn
		{
			WaitBeforeStarting 13
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FBECCB}and."  
		}

		WaveSpawn
		{
			WaitBeforeStarting 14
			WaitBetweenSpawns 0
			FirstSpawnMessage "{99CCFF}???: {FF0000}DIE."  
		}

		WaveSpawn
		{
			WaitBeforeStarting 25
			WaitBetweenSpawns 0
			FirstSpawnMessage "{AB40FF}Now Playing: UltraChurch.mp3 by KEYGEN CHURCH (Ultrakill ARG Bonus Track)"    
		}

		WaveSpawn
		{
			Where spawnbot_wave6_punch
			Name w6_boss_1
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 15.7
			WaitBetweenSpawns 1.5
			Support Limited 
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W6_Last_Captain_Punch_Phase1
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave6_punch_teleporter
			Name w6_boss_2
			WaitForAllDead w6_boss_1
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited

			DoneOutput
			{
				Target w6_punch_phase2_dead
				Action Trigger
			}
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W6_Last_Captain_Punch_Phase2
					}
				}
			}	
		}

		WaveSpawn
		{
			WaitForAllDead w6_boss_2
			WaitBeforeStarting 2.8
			WaitBetweenSpawns 0
			FirstSpawnMessage "{AB40FF}Now Playing: Tenebre Rosso Sangue by KEYGEN CHURCH (Ultrakill OST)"    
		}

		WaveSpawn
		{
			Where spawnbot_wave5_area1_left
			Where spawnbot_wave5_area1_right
			Where spawnbot_wave5_area1_commons
			Where spawnbot_wave5_area2_commons
			Where spawnbot_wave5_area2_giant
			Name w6_robots
			MaxActive 16
			SpawnCount 1
			WaitBeforeStarting 8
			WaitBetweenSpawns 2
			Support 1
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Class Heavyweapons
						Skill Normal
						Action Mobber
					}

					TFBot
					{
						Class Scout
						Skill Normal
						Action Mobber
					}

					TFBot
					{
						Class Soldier
						Skill Normal
						Action Mobber
					}

					TFBot
					{
						Class Demoman
						Skill Normal
						Action Mobber
					}

					TFBot
					{
						Template T_TFBot_Demoman_Knight
						Action Mobber
					}

					TFBot
					{
						Template T_TFBot_Soldier_Extended_Concheror
						Action Mobber
					}

					TFBot
					{
						Class Pyro
						Skill Easy
						Action Mobber
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave4_area5_1
			WaitForAllDead w6_boss_2
			Name w6_robots
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 5
			WaitBetweenSpawns 2
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_Giant_Heavyweapons
						Action Mobber
						CharacterAttributes
						{
							"move speed bonus" 0.01
						}
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave6_machine
			Name w6_machine
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W6_Miniboss
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave6_punch_phase3
			Name w6_boss_3
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W6_Last_Captain_Punch_Phase3
					}
				}
			}	
		}

		WaveSpawn
		{
			Where spawnbot_wave6_punch_teleporter
			Name w6_boss_4
			WaitForAllDead w6_boss_3
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			Support Limited
			
			RandomChoice
			{
				RandomChoice
				{
					TFBot
					{
						Template T_TFBot_W6_Last_Captain_Punch_Phase4
					}
				}
			}	
		}

		WaveSpawn
		{
			WaitForAllDead w6_boss_4
			WaitBeforeStarting 19.18
			WaitBetweenSpawns 0
		}

		WaveSpawn
		{
			Where spawnbot_wave6_punch_teleporter
			Name w6_boss_5
			WaitForAllDead w6_boss_4
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			WaitBetweenSpawns 1.5
			
			TFBot
			{
				Template T_TFBot_W6_Last_Captain_Punch_End
			}
		}
	}
}

//CHANGELOG (after launch) V1:

//Wave 4:
//Fixed the music problem (ig lol)
//Fixed wave 4 removing your speed upgrades on completion

//Wave 5:
//-Fixed the inability to build during the fight with Kyle

//CHANGELOG (after launch) V2:

//Overall:
//Changed the bots/weapons that gave mannpower powerup addconds to something else (different addconds)
//Gave bosses "rage giving scale"

//Wave 2:
//Changed the Wave 2 boss to something that can hurt you

//Wave 4:
//Fixed the issues with premature teleportation to the boss room
//Made the wave less confusing

//CHANGELOG (after launch) V3:
//Wave 6:
//-Reduced TLCP's melee vulnerability by a bunch in all phases

//CHANGELOG (after launch) V4:
//Overall:
//-All buldings will now self destruct during setup on wave 3 and onward
//-Cutscenes will now disable player movement and attacking


//Wave 1:
//-Added a period of drawing attention to the heavy head

//Wave 2:
//-Nerfed the boss
//-Teleporter no longer breaks your legs

//Wave 3:
//-Added 3s of wait time before the players are teleported to spawn

//Wave 4:
//-Added information that the doors are locked
//-Added a key tutorial
//-Added a missing forcefield

//Wave 5:
//-Added a particle effect for tthe second phase Jade Colonels

//Wave 6:
//-Removed the forcefields restricting blue bot movement

//CHANGELOG (after launch) V5:
