#base robot_standard.pop
#base robot_custom_weapons.pop
#base robot_gatebot.pop
#base robot_giant.pop
#base robot_tank_small_turret.pop
#base rotating_shield.pop
#base robot_tank_vac.pop
#base robot_spidertank.pop

MissionEvolve
{
	StartingCurrency	0
	RespawnWaveTime	5
	CanBotsAttackWhileInSpawnRoom	yes
	Advanced	1
	MaxRedPlayers 9
	NoMvMDeathTune 1   //Disable distinctive sound played when a player is killed
	StandableHeads 1  
	FixHuntsmanDamageBonus 1  
	NoMissionInfo 1
	ExtendedUpgradesOnly 1
	HealOnKillOverhealMelee 0  
	SandmanStun 1  
	DoubleDonkWindow 0  
	
	// in case of errors

	NoReanimators         0	 
	NoRomevisionCosmetics 1	 
	BotsAreHumans         0	 
	ForceHoliday          0	 

	// Precaching
	PrecacheModel	"models/bots/skeleton_sniper/skeleton_sniper.mdl"		 
	PrecacheModel	"models\weapons\w_models\w_cannonball.mdl"				 	// juuust in case
	PrecacheModel 	"models/bots/boss_bot/boss_tank_ubered.mdl"				 	// ubertank
	PrecacheModel	"models/bots/boss_bot/boss_blimp.mdl" 					 	// theblimp
	PrecacheModel 	"models/bots/boss_bot/boss_blimp_damage1.mdl" 			 
	PrecacheModel 	"models/bots/boss_bot/boss_blimp_damage2.mdl" 			 
	PrecacheModel 	"models/bots/boss_bot/boss_blimp_damage3.mdl" 			 
	PrecacheModel 	"models/bots/boss_bot/boss_blimp_damage_explode.mdl"	 
	PrecacheModel 	"models/bots/boss_bot/boss_blimp_explode.mdl" 			 
	PrecacheModel 	"models\bots\boss_bot\boss_tank_color.mdl"				 	// colorabletank
	PrecacheModel   "models/props_frontline/tank_turret.mdl" 				 	// turrettanks
	PrecacheModel 	"models/props_tumb/mvm/tank_shield.mdl" 				 	// vactanks
	PrecacheModel 	"models/props_mvm/blimp_shield.mdl" // also adds the model to the download list
	PrecacheModel	"models/bots/boss_bot/tank_drill.mdl"					 	// drilltank
	PrecacheModel	"models/bots/boss_bot/tank_red_drill.mdl"				 	// incaseplayerhaveerrorstodrilltank
	PrecacheModel 	"models/bots/boss_bot/boss_boosted_tank.mdl" //shiny blue tank like buffbanner
	PrecacheModel 	"models/bots/boss_bot/boss_tank_gate.mdl" //glowing gate tank
	PrecacheModel 	"models/bots/boss_bot/boss_tank_gate_damage1.mdl"
	PrecacheModel 	"models/bots/boss_bot/boss_tank_gate_damage2.mdl"
	PrecacheModel 	"models/bots/boss_bot/boss_tank_gate_damage3.mdl"
	PrecacheModel 	"models/bots/boss_bot/boss_tank_wire.mdl" //hitbox tank
	PrecacheModel 	"models/bots/boss_bot/boss_tank_wire_damage1.mdl"
	PrecacheModel 	"models/bots/boss_bot/boss_tank_wire_damage2.mdl"
	PrecacheModel 	"models/bots/boss_bot/boss_tank_wire_damage3.mdl"
	PrecacheModel 	"models/bots/boss_bot/boss_blimp_wire.mdl" //hitbox blimp
	PrecacheModel 	"models/bots/boss_bot/boss_blimp_wire_damage1.mdl"
	PrecacheModel 	"models/bots/boss_bot/boss_blimp_wire_damage2.mdl"
	PrecacheModel 	"models/bots/boss_bot/boss_blimp_wire_damage3.mdl"
	PrecacheModel 	"models/player/heavy_freddy.mdl"
	PrecacheModel 	"models/player/sniper_bonnie.mdl"
	PrecacheModel 	"models/weapons/c_models/c_soldiergrenade/c_soldiergrenade.mdl"
	PrecacheModel 	"models/weapons/c_models/c_brick/c_brick.mdl"
	PrecacheModel 	"models/player/sniper_bonnie.mdl"
	PrecacheModel 	"models/player/soldier_spring.mdl"

	
	//Sounds
	PrecacheSound "BombThrow.wav"
	PrecacheSound "sniporhelp.mp3"
	PrecacheSound "3DBlockGuyDeath.wav"
	PrecacheSound "DoorOpening.wav"
	PrecacheSound "pda_w4_fredy_fazkill.mp3"
	PrecacheSound "FatherSpawn.mp3"
	PrecacheSound "FatherDeath.mp3"
	PrecacheSound "sonspawn.mp3"
	PrecacheSound "sondead.mp3"


	ClassLimit	 	// no cheese
	{
		Scout 	 1
		Soldier  1
		Pyro     1
		Demoman  1
		Heavyweapons    1
		Engineer 1
		Medic	 1
		Sniper   1
		Spy      1
	}
	
	ItemBlacklist	 	// no cheese
	{
		Name	"Power Up Canteen (MvM)"
		Name	"Default Power Up Canteen (MvM)"
		Name	"Battery Canteens"
		Name	"Kritz Or Treat Canteen"
	}

	// Allow use of weapons blocked by tf_logic_medieval
	MedievalMode  0  
	ItemWhitelist    
	{
		Classname "tf_weapon_parachute"
		Classname "tf_wearable"
		Classname "saxxy"
		Classname "tf_powerup_bottle"
		Classname "tf_weapon_spellbook"
		
		Classname "tf_weapon_lunchbox_drink"
		Classname "tf_weapon_jar_milk"
		Classname "tf_weapon_cleaver"
		Classname "tf_weapon_bat"
		Classname "tf_weapon_bat_wood"
		Classname "tf_weapon_bat_fish"
		Classname "tf_weapon_bat_giftwrap"
		
		//Classname "tf_weapon_rocketlauncher" //TESTING ONLY
		Name      "Rocket Jumper"
		Classname "tf_weapon_buff_item"
		Classname "tf_weapon_shovel"
		Classname "tf_weapon_katana"
		
		Name	  "The Detonator"
		Classname "tf_weapon_jar_gas"
		Classname "tf_weapon_flaregun_revenge"
		Classname "tf_weapon_rocketpack"
		Classname "tf_weapon_fireaxe"
		Classname "tf_weapon_breakable_sign"
		Classname "tf_weapon_slap"
		
		Name	  "The Loose Cannon"
		DefIndex  265 // Sticky Jumper
		Classname "tf_wearable_demoshield"
		Classname "tf_weapon_bottle"
		Classname "tf_weapon_sword"
		Classname "tf_weapon_stickbomb"
		
		Name      "The Family Business"
		Classname "tf_weapon_lunchbox"
		Classname "tf_weapon_fists"
		
		// Classname "tf_weapon_laser_pointer" // useless
		// Classname "tf_weapon_mechanical_arm" // Short Circuit
		// Classname "tf_weapon_pda_engineer_build"
		// Classname "tf_weapon_pda_engineer_destroy"
		Classname "tf_weapon_builder"
		Classname "tf_weapon_wrench"
		Classname "tf_weapon_robot_arm" // Gunslinger
		
		Classname "tf_weapon_crossbow"
		Classname "tf_weapon_syringegun_medic"
		Classname "tf_weapon_bonesaw"
		Name	  "The Quick-Fix"
		Name	  "tf_weapon_medigun"
		Name	  "The Kritzkrieg"
		
		Classname "tf_weapon_compound_bow"
		DefIndex  57
		Classname "tf_weapon_jar"
		Classname "tf_weapon_club" // Now *this*, is a knife.
		
		Classname "tf_weapon_sapper"
		DefIndex  735 // Sapper
		DefIndex  736 // Sapper (Renamed/Strange)
		Classname "tf_weapon_knife"
		Classname "tf_weapon_pda_spy"
		Classname "tf_weapon_invis"
		
		DefIndex  167 // High Five
		DefIndex  438 // Director's Vision
		DefIndex  463 // Schadenfreude
		DefIndex  477 // Meet the Medic
		DefIndex  1015 // The Shred Alert
		DefIndex  1106 // Square Dance
		DefIndex  1107 // Flippin' Awesome
		DefIndex  1108 // Buy a Life
		DefIndex  1109 // Results Are In
		DefIndex  1110 // Rock Paper Scissors
		DefIndex  1111 // Skullcracker
		DefIndex  1112 // Party Trick
		DefIndex  1113 // Freshly Brewed Victory
		DefIndex  1114 // Spent Well Spirits
		DefIndex  1115 // Rancho Relaxo
		DefIndex  1116 // I See You
		DefIndex  1117 // Battin' a Thousand
		DefIndex  1118 // Conga
		DefIndex  1119 // Deep Fried Desire
		DefIndex  1120 // Oblooterated
		DefIndex  1157 // Kazotsky Kick
		DefIndex  1162 // Mannrobics
		DefIndex  30570 // Pool Party
		DefIndex  30609	 // The Killer Solo
		DefIndex  30572 // The Boston Breakdance
		DefIndex  30614 // Most Wanted
		DefIndex  30615 // The Boxtrot
		DefIndex  30616 // Proletariat Showoff
		DefIndex  30618 // Bucking Bronco
		DefIndex  30621 // Burstchester
		DefIndex  30671 // True Scotsman's Call
		DefIndex  30672 // Zoomin' Broom
		DefIndex  30673 // Soldier's Requiem
		DefIndex  1172 // Bumper Car
		DefIndex  1174 // The Table Tantrum
		DefIndex  1175 // Boiling Point
		DefIndex  31156 // Boston Board
		DefIndex  30920 // Bunnyhopper
		DefIndex  1168 // Carlton
		DefIndex  31233 // Homerunner Hobby
		DefIndex  30921 // Runner Rhythm
		DefIndex  1192 // Scooty Scoot
		DefIndex  31161 // Spin-to-win
		DefIndex  30917 // Touchdown
		DefIndex  30761 // Fubar Fanfare
		DefIndex  1196 // Panzer Pants
		DefIndex  31202 // Puppeteer
		DefIndex  31155 // Rocket Jockey
		DefIndex  30763 // Balloonibouncer
		DefIndex  30876 // Headcase
		DefIndex  31239 // Hot Wheeler
		DefIndex  31157 // Piano Solo
		DefIndex  30919 // Skating Pyro
		DefIndex  31201 // Drunken Sailor
		DefIndex  31153 // Pooped Deck
		DefIndex  30840 // Demoman Stagger
		DefIndex  31207 // Knuckle Beatdown
		DefIndex  30616 // Heavy Pose
		DefIndex  30843 // Russian Arm Race
		DefIndex  30844 // Soviet Strongarm
		DefIndex  30618 // Bucking Bronco
		DefIndex  30842 // Dueling Banjo
		DefIndex  30845 // Jumping Jack
		DefIndex  31160 // Texas Truckin
		DefIndex  31236 // Doctor's Defibrilator
		DefIndex  31203 // Mannbulance
		DefIndex  30918 // Squeezebox
		DefIndex  31154 // Time Out Therapy
		DefIndex  30839 // Didgeridrongo
		DefIndex  31237 // Shooter's Stakeout
		DefIndex  30762 // Disco Fever
		DefIndex  30922 // Luxury Lounge
		DefIndex  31162 // Fist Bump
		DefIndex  30816 // Rate Sorcery
		DefIndex  1182 // Yeti Punch
		DefIndex  1183 // Yeti Smash
		DefIndex  31322 // Campfire
		DefIndex  31292 // Boat
		DefIndex  31291 // Cannon
		DefIndex  31201 // Drunken Sailor
		DefIndex  31320 // Russian Rubdown
		DefIndex  31286 // Texas Twirl
		DefIndex  31290 // Travel Agent
		DefIndex  31321 // Tailored Terminal
		DefIndex  31288 // Scaredycat
	}
	
	CustomWeapon   //Allows you to use an alias for items with custom attributes
    {
       "Real Knife" // The name you would use in Item key in TFBot
        {
            OriginalItemName "Three-Rune Blade" // The item used as a base
            "hit self on miss" 0
			"bleeding duration" 0
			"is_a_sword" 1
			"move speed penalty" 0.75
			"fire rate penalty" 1.6
			"damage bonus HIDDEN" 1.4
			"silent killer" 1
			"max health additive bonus" 125
        }
		"Cannon"
		{
			OriginalItemName "tf_weapon_grenadelauncher"
			"clip size penalty" 0.25
			"damage bonus" 2
			"Projectile speed increased" 2.5
			"move speed penalty" 0.6
			"mult duck speed" 2
			"grenade explode on impact" 1
			"self dmg push force decreased" 0.01
			"fire rate penalty" 2
			"custom projectile model" "models\weapons\w_models\w_cannonball.mdl"
			"custom item model" "models/workshop/weapons/c_models/c_demo_cannon/c_demo_cannon.mdl"
			"model scale" 1.3
			"max health additive bonus" 75
			"custom kill icon" "loose_cannon_explosion"
		}
		"Specialized Rifle"
		{
			OriginalItemName "tf_weapon_sniperrifle" // secondary weapon
			"custom item model" "models/weapons/c_models/c_scopelessrifle/c_scopelessrifle.mdl"
			"reload time increased" 2
			"fire rate penalty" 2
			"damage bonus" 1.5
			"maxammo primary reduced" 0.25
			"alt-fire disabled" 1
			"mult crit dmg" 0.5
			"minicrits become crits" 1
			"crit mod disabled" 0
			"crit mod disabled hidden" 0
			"use original class weapon animations" 1
			"use original class player animations" 1
			"custom kill icon" "bazaar_bargain"
		}
		"Double Barreled"
		{
			OriginalItemName "The Family Business" // secondary weapon
			"custom item model" "models/weapons/c_models/c_shotfun/c_shotfun.mdl"
			"custom weapon fire sound" "Weapon_FrontierJustice.Single"
			"custom weapon reload sound" "Weapon_DoubleBarrel.TubeClose"
			"mod max primary clip override" 2
			"reload time increased" 1.5
			"fire rate bonus" 1
			"clip size bonus" 1
			"damage penalty" 1
			"bullets per shot bonus" 1.6
			"fire rate penalty" 1.5
			"custom kill icon" frontier_kill
			"weapon spread bonus" 1.4
			"damage bonus" 1.35
			"maxammo secondary reduced" 0.25
		}
		"Assaulting Rifle"
		{
			OriginalItemName "tf_weapon_smg" // secondary weapon
			"reload time increased" 2
			"fire rate penalty" 1.5
			"maxammo secondary reduced" 0.34
			"use original class weapon animations" 1
			"use original class player animations" 1
		}
		//"April Fools Memorial" SCRAPPED
		//{
		//	OriginalItemName "tf_weapon_fists" // secondary weapon
		//	"custom hit sound" "pda_w4_fredy_fazkill.mp3"
		//	"fire rate penalty" 1
		//	"melee range multiplier" 2.5
		//	"damage bonus" 999999999
		//	"max health additive bonus" 4700
		//	"model scale" 1.3
		//	"is miniboss" 1
		//	"is miniboss" 1
		//}
		"April Big Ears"
		{
			OriginalItemName "tf_weapon_club" // secondary weapon
			"custom hit sound" "pda_w4_fredy_fazkill.mp3"
			"fire rate penalty" 1
			"melee range multiplier" 2.5
			"damage bonus" 999999999
			"max health additive bonus" 2375
			"model scale" 1.3
			"is miniboss" 1
			"custom item model" "models/empty.mdl"
			"special item description" "WOW! HOW AWESOME LOL!!! If someone got this then,"
			"special item description 2" "You got the creator of the mission in your team!!!"
		}
		"GUN"
		{
			OriginalItemName "the winger"
			"damage bonus" 50
			"fire rate penalty" 10
			"use original class weapon animations" 1
			"special item description" "No. This is forbidden."
			"special item description 2" "DAVE MILLER! I SAID FORBIDDEN."
		}
		"Grenade"
		{
			OriginalItemName "Jarate"
			"override projectile type" 3
			"custom item model" "models/weapons/c_models/c_soldiergrenade/c_soldiergrenade.mdl"
			"custom projectile model" "models/weapons/c_models/c_soldiergrenade/c_soldiergrenade.mdl"
			"blast dmg to self increased" 20
			"damage bonus HIDDEN" 35
			"use original class weapon animations" 1
			"use original class player animations" 1
			"special item description" "Thanks to Heavy, you can invest into ranged blast attacks!"
			"custom kill icon" "taunt_soldier"
		}
		"E-11 Blaster Rifle"
		{
			OriginalItemName "tf_weapon_syringegun_medic"
			"override projectile type" 13
			"damage bonus HIDDEN" 1.5
			"fire rate penalty" 3.5
			"particle color rainbow" 150
			"custom item model" "models/workshop/weapons/c_models/c_invasion_sniperrifle/c_invasion_sniperrifle.mdl"
			"use original class weapon animations" 1
			"use original class player animations" 1
			"Projectile speed increased" 2
			"clip size penalty" 0.5
			"no damage falloff" 1
			"mult crit dmg" 0.5
			"custom kill icon" "shooting_star"
		}
		"Raygun"
		{
			OriginalItemName "The C.A.P.P.E.R"
			"damage bonus HIDDEN" 1.5
			"fire rate penalty" 1.5
			"override projectile type" 1
			"explosive bullets" 50
			"use original class weapon animations" 1
			"use original class player animations" 1
			"add spread" 0.05
			"clip size penalty" 0.5
			"mult_spread_scales_consecutive" 1.5
		}
		"Medieval Sentry"
		{
			OriginalItemName "tf_weapon_pda_engineer_build"
			"custom item model" "models/workshop/weapons/c_models/c_sledgehammer/c_sledgehammer.mdl"
			"allowed build types" 4
			"disable wrangler shield" 1
			"building cost reduction" 1.5
			"engy building health bonus" 2
			"sentry bullet weapon" "BoomBoi"
			"building max level" 1
			"mult teleporter recharge rate" 0
			"mult dispenser rate" 0
			"mod dispenser cost" 9999999
			"mod teleporter cost" 9999999
			"engy dispenser radius increased" 0
			"mvm sentry ammo" 0.3
			"engy sentry fire rate increased" 5
			"Construction rate decreased" 2
			"sentry toolbox model" "models/workshop/weapons/c_models/c_sledgehammer/c_sledgehammer.mdl"
			"dispenser toolbox model" "models/workshop/weapons/c_models/c_sledgehammer/c_sledgehammer.mdl"
			"teleporter toolbox model" "models/workshop/weapons/c_models/c_sledgehammer/c_sledgehammer.mdl"
			"building scale" 1.5
			"buildings cannot be sapped" 1
			"special item description" "This Boom Boi -2000 shoots cannon bombs at slow rate. Level 1 Only."
			"special item description 2" "What did you expect else? YOU YOURSELF ARE POWERHOUSE."
		}
		"Cosmic Sentry"
		{
			OriginalItemName "tf_weapon_pda_engineer_build"
			"custom item model" "models/workshop/weapons/c_models/c_invasion_sniperrifle/c_invasion_sniperrifle.mdl"
			"allowed build types" 4
			"disable wrangler shield" 1
			"building cost reduction" 1.5
			"sentry bullet weapon" "LaserBoi"
			"building max level" 1
			"mult teleporter recharge rate" 0
			"mult dispenser rate" 0
			"mod dispenser cost" 9999999
			"mod teleporter cost" 9999999
			"engy dispenser radius increased" 0
			"mvm sentry ammo" 0.5
			"engy sentry fire rate increased" 2
			"Construction rate decreased" 1.5
			"sentry toolbox model" "models/workshop/weapons/c_models/c_invasion_sniperrifle/c_invasion_sniperrifle.mdl"
			"dispenser toolbox model" "models/workshop/weapons/c_models/c_invasion_sniperrifle/c_invasion_sniperrifle.mdl"
			"teleporter toolbox model" "models/workshop/weapons/c_models/c_invasion_sniperrifle/c_invasion_sniperrifle.mdl"
			"building scale" 1.5
			"special item description" "Ask Pyro how to construct with his technology!"
			"special item description 2" "This Pew Boi 2000 shoots resistance piercing lasers. Level 1 Only."
			"special item description 3" "What did you expect else? YOU YOURSELF ARE POWERHOUSE."
		}
		"BoomBoi"
		{
			OriginalItemName "tf_weapon_grenadelauncher"
			"Projectile speed increased" 1.25
			"grenade explode on impact" 1
			"fire rate penalty" 2
			"custom projectile model" "models\weapons\w_models\w_cannonball.mdl"
			"custom kill icon" "loose_cannon_explosion"
		}
		"LaserBoi"
		{
			OriginalItemName "tf_weapon_syringegun_medic"
			"override projectile type" 13
			"damage bonus HIDDEN" 1.5
			"fire rate penalty" 3.5
			"particle color rainbow" 150
			"Projectile speed increased" 2
			"clip size penalty" 0.5
			"no damage falloff" 1
			"mult crit dmg" 0.5
			"dmg pierces resists absorbs" 1
			"custom kill icon" "pomson"
		}
	}
	
	ExtraLoadoutItems   // Extra loadout items available after typing !missionitems in chat
    {
        AllowEquipOutsideSpawn 0 // Allow equipping items outside spawn
		Soldier
		{
			Secondary
			{
				Item "Grenade"
				Cost 200
				AllowedMinWave 5
				Hidden 0
			}
		}
		Pyro
		{
			Primary
			{
				Item "E-11 Blaster Rifle"
				Cost 0
				AllowedMinWave 1
				Hidden 0
			}
			Secondary
			{
				Item "Raygun"
				Cost 0
				AllowedMinWave 1
				Hidden 0
			}
		}
		Heavyweapons // Player Class
        {
			Primary
			{
				Item "Specialized Rifle"
				Cost 0
				AllowedMinWave 1
				//AllowedMaxWave 55
				//AllowRefund 0
				Hidden 0
			}
            Secondary // Extended syntax, Item slot to use
            {
                Item  "Double Barreled" // Item name, custom weapon names are available 
                Cost 0 // The cost of the weapon (default: 0)
                AllowedMinWave 1 //The wave at which the weapon is enabled (default: 1)
                //AllowedMaxWave 55 The max wave at which the weapon is enabled (default: infinite)
                //AllowRefund 0 //Allow refunding of the weapon (default: 1)
                Hidden 0 //If set, this item is only accessible via $AwardExtraItem input (default: 0)
            }
			Secondary
			{
				Item "Assaulting Rifle"
				Cost 0
				AllowedMinWave 1
				//AllowedMaxWave 55
				//AllowRefund 0
				Hidden 0
			}
			//Melee
			//{
			//	Item "April Fools Memorial"
			//	Cost 198769
			//	AllowedMinWave 1
			//	Hidden 0
			//}
		}
		Demoman // Player Class
        {
            Primary // Extended syntax, Item slot to use
            {
                Item  "Cannon" // Item name, custom weapon names are available 
                Cost 0 // The cost of the weapon (default: 0)
                AllowedMinWave 1 //The wave at which the weapon is enabled (default: 1)
                //AllowedMaxWave 55 The max wave at which the weapon is enabled (default: infinite)
                //AllowRefund 0 //Allow refunding of the weapon (default: 1)
                Hidden 1 //If set, this item is only accessible via $AwardExtraItem input (default: 0)
            }
		}
		Engineer
		{
			Secondary
			{
				Item "The Sandvich"
				Cost 0
				AllowedMinWave 1
				Hidden 0
			}
			Secondary
			{
				Item "The Robo-Sandvich"
				Cost 0
				AllowedMinWave 1
				Hidden 0
			}
			Secondary
			{
				Item "Festive Sandvich"
				Cost 0
				AllowedMinWave 1
				Hidden 0
			}
			Secondary
			{
				Item "The Dalokohs Bar"
				Cost 0
				AllowedMinWave 1
				Hidden 0
			}
			Secondary
			{
				Item "Fishcake"
				Cost 0
				AllowedMinWave 1
				Hidden 0
			}
			Secondary
			{
				Item "The Second Banana"
				Cost 0
				AllowedMinWave 1
				Hidden 0
			}
			PDA
			{
				Item "Medieval Sentry"
				Cost 1000
				AllowedMinWave 1
				Hidden 0
			}
			PDA
			{
				Item "Cosmic Sentry"
				Cost 2500
				AllowedMinWave 1
				Hidden 0
			}
		}
		Sniper
		{
			Secondary
			{
				Item "GUN"
				Cost 198769
				AllowedMinWave 1
				Hidden 0
			}
			Melee
			{
				Item "April Big Ears"
				Cost 198769
				AllowedMinWave 1
				Hidden 0
			}
		}
	   Spy // Player Class
        {
            Melee // Extended syntax, Item slot to use
            {
                Item  "Real Knife" // Item name, custom weapon names are available 
                Cost 0 // The cost of the weapon (default: 0)
                AllowedMinWave 1 //The wave at which the weapon is enabled (default: 1)
                //AllowedMaxWave 55 The max wave at which the weapon is enabled (default: infinite)
                //AllowRefund 0 //Allow refunding of the weapon (default: 1)
                Hidden 1 //If set, this item is only accessible via $AwardExtraItem input (default: 0)
            }
            // Available slots:
            // Primary
            // Secondary
            // Melee
            // PDA (construction kit, disguise kit)
            // PDA2 (destruction kit, watch)
            // Head
            // Misc
            // Action (canteen)
            // Misc2
        }
    }
	
	ItemReplacement   // Replace Items
	{
		"Real Knife"  // The replacement target item
		{
			Name "tf_weapon_knife" // The item that will be replaced 
		}
		"Cannon"  // The replacement target item
		{
			Name "The Loose Cannon" // The item that will be replaced 
		}
	}

	// Weapon Rebalances Section
	
	PlayerAttributes  
	{
		Engineer
		{
		"is miniboss" 1
		"voice pitch scale" 0.85
		"max health additive bonus" 875
		"not solid to players" 1
		"health from packs increased" 0.5
		"move speed penalty" 0.75
		"model scale" 1.6
		"melee range multiplier" 1.5
		}
		
		Pyro
		{
		"voice pitch scale" 0.5
		}
	}
	
	// Scout
	
	ItemAttributes  
	{
		ItemName "Crit-a-Cola"
		"effect cond override" 74
		"mult_item_meter_charge_rate" 1.5
	}
	
	ItemAttributes  
	{
		ItemName "Bonk! Atomic Punch"
		"effect cond override" 52
		"mult_item_meter_charge_rate" 1.35
	}
	
	ItemAttributes  
	{
		DefIndex 1145
		"effect cond override" 10838
		"mult_item_meter_charge_rate" 1.5
	}
	
	ItemAttributes  
	{
		ItemName "The Flying Guillotine"
		"override projectile type" 17
		"damage bonus" 20
		"blast dmg to self increased" 10
		"Blast radius increased" 1.1
		"grenade explode on impact" 1
		"custom item model" "models/weapons/w_models/w_cannonball.mdl"
		"projectile sound" "BombThrow.wav"
		"custom weapon fire sound" "AnNoNeXiStEnTiAlSoUnDoFtHrOw.wav"
	}
	
	ItemAttributes  
	{
		ItemName "tf_weapon_bat"
		"increased jump height" 1.25
	}
	
	ItemAttributes  
	{
		ItemName "Batsaber"
		"increased jump height" 1.25
		"damage bonus" 1.25
		"melee cleave attack" 1
		"fire rate penalty" 1.25
	}
	
	ItemAttributes  
	{
		ItemName "The Boston Basher"
		"hit self on miss" 0
		"dmg taken from fire increased" 1.5
		"dmg taken from blast increased" 1.5
		"bleeding duration" 10
		"damage bonus" 2
		"fire rate penalty" 1.65
	}
	
	ItemAttributes  
	{
		ItemName "The Wrap Assassin"
		"damage penalty" 0.55
		"maxammo grenades1 increased" 2
	}
	
	ItemAttributes  
	{
		ItemName "The Candy Cane"
		"max health additive bonus" 25
		"dmg taken from fire increased" 2
		"dmg taken from blast increased" 1
	}
	
	ItemAttributes  
	{
		ItemName "Three-Rune Blade"
		"hit self on miss" 0
		"bleeding duration" 0
		"is_a_sword" 1
		"move speed penalty" 0.75
		"fire rate penalty" 1.25
		"damage bonus" 1.3
		"silent killer" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Holy Mackerel"
		"bleeding duration" 5 // slow + bleed, sorry had to nerf it plus the wand actually had slow + bleed + mark (milk was from the actual mad milk weapon itself BUT was made into the upgrades)
		"damage penalty" 0.25
		"max health additive penalty" -25
		"melee range multiplier" 3
	}
	
	ItemAttributes  
	{
		ItemName "Sun-on-a-Stick"
		"afterburn immunity" 1
		"dmg taken from fire reduced on active" 1
		"Set DamageType Ignite" 1
		"crit vs burning players" 0
		"damage penalty" 1
		"no double jump" 1
		"deploy time increased" 1.5
		"minicrit vs burning player" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Sandman"
		"taunt attack time mult" 0.5
		"gesture speed increase" 2
		"max health additive penalty" 0
		"damage penalty" 0.8
	}
	
	ItemAttributes  
	{
		ItemName "The Atomizer"
		"taunt attack time mult" 0.5
		"gesture speed increase" 2
		"minicrits become crits" 1
		"taunt attack time" 0.5
	}
	
	ItemAttributes  
	{
		ItemName "Unarmed Combat"
		"active health degen" -4
		"damage returns as health" 1
		"max health additive bonus" 35
		"aoe heal chance" 15
	}
	
	ItemAttributes  
	{
		ItemName "The Fan O'War"
		"damage penalty" 0.8
		"mult dmg vs same class" 3
		"mark for death" 0
		"fire rate penalty" 1.2
	}
	
	// Soldier
	
	ItemAttributes  
	{
		ItemName "Rocket Jumper"
		"mod max primary clip override"	-1
		"clip size upgrade atomic" 8
		"cannot be upgraded" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Mantreads"
		"wet immunity" 1
		"move speed bonus" 1.15
		"damage force reduction" 1
		"airblast vulnerability multiplier" 1
		"health regen" 3
	}
	
	ItemAttributes  
	{
		ItemName "The Battalion's Backup"
		"max health additive bonus" 50
	}
	
	ItemAttributes  
	{
		ItemName "The Gunboats"
		"rocket jump damage reduction" 1
		"SET BONUS: dmg from sentry reduced" 0.01
		"damage force reduction" 0
		"cancel falling damage" 1
	}
	
	ItemAttributes  
	{
		ItemName "TF_WEAPON_SHOVEL"
		"increase buff duration" 2
	}
	
	ItemAttributes  
	{
		ItemName "The Escape Plan"
		"healing received penalty" 0.2
		"blast dmg to self increased" 0.15
		"self mark for death" 0
		"reduced_healing_from_medics" 1
		"Blast radius increased" 2
	}
	
	ItemAttributes  
	{
		ItemName "The Disciplinary Action"
		"mult crit when health is below percent" 0.4
	}
	
	ItemAttributes  
	{
		ItemName "The Pain Train"
		"bleeding duration" 5
		"dmg taken from bullets increased" 1
		"move speed bonus" 1.15
		"increase player capture value" 0
		"fire rate penalty" 1.15
		"damage penalty" 0.85
	}
	
	ItemAttributes  
	{
		ItemName "The Equalizer"
		"minicrits become crits" 1
		"turn to gold" 1
		"dmg taken increased" 1.33
		"mod shovel damage boost" 0
		"reduced_healing_from_medics" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Market Gardener"
		"damage bonus" 1.1
		"slow enemy on hit major" 10
		"melee cleave attack" 1
		"fire rate penalty" 1.35
		"mult crit dmg" 2
	}
	
	// Pyro
	
	ItemAttributes  
	{
		ItemName "The Manmelter"
		"fire rate penalty" 5
	}
	
	ItemAttributes  
	{
		ItemName "TF_WEAPON_FIREAXE"
		"melee cleave attack" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Detonator"
		"override projectile type" 1
		"sniper fires tracer HIDDEN" 1
		"projectile penetration" 1
		"damage bonus" 1.25
		"damage penalty" 1
		"blast dmg to self increased" 1
		"min respawn time" 2
		"single wep holster time increased" 1.5
		"single wep deploy time increased" 1.5
	}
	
	ItemAttributes  
	{
		DefIndex 1180
		"effect cond override" 43
	}
	
	ItemAttributes  
	{
		ItemName "The Axtinguisher"
		"melee cleave attack" 1
		"attack_minicrits_and_consumes_burning" 0
		"damage penalty" 1
		"single wep holster time increased" 1
		"crit vs burning players" 1
		"dmg penalty vs nonburning" 0.5
		"no crit vs nonburning" 1
	}
	
	ItemAttributes  
	{
		ItemName "Sharpened Volcano Fragment"
		"melee cleave attack" 1
		"damage penalty" 0.9
		"ragdolls become ash" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Hot Hand"
		"crit from behind" 1
		"speed_boost_on_hit_enemy" 3
		"fire rate bonus" 0.75
		"max health additive bonus" 25
	}
	
	ItemAttributes  
	{
		DefIndex 813
		"dmg penalty vs players" 0.85
	}
	
	ItemAttributes  
	{
		ItemName "The Homewrecker"
		"stun on damage" 20 // 1.2 * (50/60) = 1
		"fire rate penalty" 1.3
		"dmg penalty vs players" 1
		"dmg bonus vs buildings" 1
		"mult dmg vs npc" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Powerjack"
		"mult dmg vs tanks" 3
		"dmg penalty vs players" 0.5
		"mult dmg vs npc" 0.5
		"dmg taken increased" 1
		"move speed bonus" 1
		"heal on kill" 0
	}
	
	ItemAttributes  
	{
		ItemName "The Third Degree"
		"mult dmg vs tanks" 0.5
		"mult dmg vs giants" 2
		"dmg taken increased" 1.2
	}
	
	ItemAttributes  
	{
		ItemName "The Lollichop"
		"add cond when active" 64
		"damage penalty" 0
	}
	
	ItemAttributes  
	{
		ItemName "The Maul"
		"damage bonus" 1.7
		"fire rate penalty" 1.45
		"dmg penalty vs players" 1
		"mult dmg vs npc" 1
		"hit self on miss" 1
		"dmg bonus vs buildings" 1
		"self dmg push force decreased" 0
		"mult dmg vs tanks" 0.65
	}
	
	ItemAttributes  
	{
		ItemName "The Postal Pummeler"
		"add cond when active" 32
		"attack_minicrits_and_consumes_burning" 0
		"damage penalty" 1
		"speed buff ally" 1
		"single wep holster time increased" 1
		"maxammo secondary reduced" 0.5
		"no_jump" 1
		"damage bonus" 1.1
	}
	
	// Demo
	
	ItemAttributes  
	{
		ItemName "The Ullapool Caber"
		"fire rate penalty" 1.5
		"cancel falling damage" 1
		"self dmg push force decreased" 0.01
	}
	
	ItemAttributes  
	{
		ItemName "The Loose Cannon"
		"clip size penalty" 0.25
		"damage bonus" 2
		"Projectile speed increased" 2.5
		"move speed penalty" 0.6
		"mult duck speed" 2
		"grenade explode on impact" 1
		"self dmg push force decreased" 0.01
		"fire rate penalty" 1.75
		"max health additive bonus" 75
	}
	
	ItemAttributes  
	{
		ItemName "Sticky Jumper"
		"cannot be upgraded" 1
	}
	
	ItemAttributes  
	{
		ItemName "tf_weapon_bottle"
		"bleeding duration" 3
		"fire rate penalty" 1.25
	}
	
	ItemAttributes  
	{
		DefIndex 266
		"melee cleave attack" 1
		"crit mod disabled" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Scottish Handshake"
		"bleeding duration" 3
		"fire rate penalty" 1.25
	}
	
	ItemAttributes  
	{
		ItemName "The Half-Zatoichi"
		"honorbound" 0
	}
	
	ItemAttributes  
	{
		ItemName "The Persian Persuader"
		"fire rate bonus" 0.85
		"min respawn time" 2
	}
	
	ItemAttributes  
	{
		DefIndex 327
		"add cond when active" 69
		"Set DamageType Ignite" 1
	}
	
	// Heavy
	
	ItemAttributes  
	{
		ItemName "The Family Business"
		"clip size bonus" 1
		"fire rate bonus" 1
		"damage penalty" 1
		"maxammo secondary reduced" 0.45
	}
	
	ItemAttributes  
	{
		ItemName "The Buffalo Steak Sandvich"
		"move speed bonus" 1.1
	}
	
	ItemAttributes  
	{
		DefIndex 42
		"health from packs increased" 1.2
	}
	
	ItemAttributes  
	{
		ItemName "tf_weapon_fists"
		"maxammo secondary increased" 2
		"maxammo primary increased" 2
	}
	
	ItemAttributes  
	{
		ItemName "Fists of Steel"
		"dmg pierces resists absorbs" 1
		"dmg penalty while half alive" 0.75
		"dmg from melee increased" 0.6
		"fire rate penalty" 1.3
		"overheal penalty" 1
		"health from healers reduced" 1
		"single wep holster time increased" 1
		"cannot be backstabbed" 1

	}
	
	ItemAttributes  
	{
		ItemName "The Eviction Notice"
		"damage bonus" 1.2
		"damage penalty" 1
		"fire rate bonus" 0.6
		"bleeding duration" 3
		"mod_maxhealth_drain_rate" 0
		"speed_boost_on_hit" 0
		"max health additive penalty" -125
	}
	
	ItemAttributes  
	{
		ItemName "Warrior's Spirit"
		"damage bonus" 1.45
		"fire rate penalty" 1.3
		"move speed penalty" 0.75
		"teleport instead of die" 0.5
		"heal on kill" 0
	}
	
	ItemAttributes  
	{
		ItemName "Gloves of Running Urgently"
		"single wep holster time increased" 1
		"move speed bonus" 1
		"mod_maxhealth_drain_rate" 0
		"max health additive bonus" 400
		"damage bonus" 2
	}
	
	ItemAttributes  
	{
		ItemName "Festive Gloves of Running Urgently"
		"single wep holster time increased" 1
		"move speed bonus" 1
		"mod_maxhealth_drain_rate" 0
		"max health additive bonus" 400
		"damage bonus" 2
	}
	
	ItemAttributes  
	{
		ItemName "Apoco-Fists"
		"damage bonus" 1.15
		"fire rate penalty" 1.25
		"air dash count" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Holiday Punch"
		"always crit" 1
		"taunt attack time mult" 0.75
		"gesture speed increase" 1.5
	}
	
	ItemAttributes  
	{
		ItemName "The Killing Gloves of Boxing"
		"critboost on kill" 0
		"fire rate penalty" 1
		"add cond when active" 41
		"max health additive bonus" 125
		"damage bonus" 1.2
		"dmg from ranged reduced" 1.4
	}
	
	ItemAttributes  
	{
		ItemName "The Bread Bite"
		"add cond on hit" 24
		"add cond on hit duration" 1
		"single wep holster time increased" 1
		"max health additive penalty" -100
		"move speed bonus" 1
		"mod_maxhealth_drain_rate" 0
		"bleeding duration" 3
		"damage bonus" 1.1
		"fire rate penalty" 1.5
	}
	
	// Engineer
	
	ItemAttributes  
	{
		ItemName "tf_weapon_pda_engineer_build"
		"allowed build types" 4
	}
	
	ItemAttributes  
	{
		ItemName "TF_WEAPON_WRENCH"
		"damage bonus" 1.5
		"move speed penalty" 0.75
		"fire rate penalty" 1.3
	}
	
	ItemAttributes    //Easter egg
	{
		ItemName "Golden Wrench"
		"crit forces victim to laugh" 1
		"damage all connected" 1
		"parachute attribute" 1
		"health regen" 5
		"max health additive penalty" -100
		"add jingle to footsteps" 1
		"dmg taken from crit increased" 2
	}
	
	ItemAttributes  
	{
		ItemName "The Southern Hospitality"
		"bleeding duration" 10
		"fire rate bonus" 0.8
		"dmg taken from fire increased" 1.5
		"max health additive penalty" -200
	}
	
	ItemAttributes  
	{
		ItemName "The Jag"
		"damage penalty" 0.65
		"dmg taken from fire increased" 1.5
		"dmg taken from bullets increased" 1.5
		"cancel falling damage" 1
		"max health additive bonus" 250
		"Repair rate decreased" 1
		"dmg penalty vs buildings" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Gunslinger"
		"max health additive bonus" 0
	}
	
	ItemAttributes  
	{
		ItemName "The Eureka Effect"
		"Construction rate decreased" 1
		"metal_pickup_decreased" 1
		"mult dmg vs tanks" 1.5
		"healing received bonus" 1.35
	}
	
	// Medic
	
	ItemAttributes  
	{
		DefIndex 305
		"reload full clip at once" 1
	}
	
	ItemAttributes  
	{
		ItemName "tf_weapon_syringegun_medic"
		"damage bonus" 1.5
	}
	
	ItemAttributes  
	{
		ItemName "The Quick-Fix"
		"heal rate bonus" 1
		"heal rate penalty" 0.001
		"ubercharge rate bonus" 1
		"ubercharge rate penalty" 0
		"overheal penalty" 0
		"revive rate" 2500
		"uber duration bonus" -8
	}
	
	ItemAttributes  
	{
		ItemName "tf_weapon_medigun"
		"heal rate bonus" 1
		"heal rate penalty" 0.001
		"ubercharge rate bonus" 1
		"ubercharge rate penalty" 0
		"overheal penalty" 0
		"medigun passive attributes" "backstab shield|1|fire retardant|1|cannot be headshot|1|dmg taken increased|0.5"
		"medigun passive attributes owner" "backstab shield|1|fire retardant|1|cannot be headshot|1|dmg taken increased|0.5"
		"uber duration bonus" -8
	}
	
	ItemAttributes  
	{
		ItemName "The Kritzkrieg"
		"heal rate bonus" 1
		"heal rate penalty" 0.001
		"ubercharge rate bonus" 1
		"ubercharge rate penalty" 0
		"overheal penalty" 0
		"medigun passive attributes" "CARD: damage bonus|1.35"
		"uber duration bonus" -8
	}
	
	ItemAttributes  
	{
		ItemName "The Overdose"
		"move speed bonus" 1.3
		"damage bonus" 3.5
		"fire rate penalty" 3.5
		"override projectile type" 1
		"explosive bullets" 50
		"clip size penalty" 0.25
		"maxammo primary reduced" 0.17
		"damage penalty" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Blutsauger"
		"add cond on kill" 19
		"add cond on kill duration" 5
		"mod_maxhealth_drain_rate" 1
		"active health degen" -3
	}
	
	ItemAttributes  
	{
		ItemName "TF_WEAPON_BONESAW"
		"drop health pack on kill" 1
		"health regen" 3
	}
	
	ItemAttributes  
	{
		ItemName "The Ubersaw"
		"fire rate penalty" 1.45
		"damage bonus" 1.2
		"add cond on hit" 87
		"add cond on hit duration" 2
	}
	
	ItemAttributes  
	{
		ItemName "Festive Ubersaw"
		"fire rate penalty" 1.45
		"damage bonus" 1.2
		"add cond on hit" 87
		"add cond on hit duration" 2
	}
	
	ItemAttributes  
	{
		ItemName "The Vita-Saw"
		"max health additive penalty" 0
		"max health additive bonus" 25
		"add give health to teammate on hit" 50
		"melee range multiplier" 2
	}
	
	ItemAttributes  
	{
		ItemName "The Amputator"
		"mult dmgtaken from melee" 0.75
		"taunt attack time mult" 0.75
		"gesture speed increase" 1.5
	}
	
	ItemAttributes  
	{
		ItemName "The Solemn Vow"
		"damage penalty" 0.000001
		"stun on damage" 75 // .8 * (75/60) = 1
		"single wep deploy time decreased" 0.8
		"add cond when active" 114
		"fire rate penalty" 1.5
	}

	// Sniper
	
	ItemAttributes  
	{
		ItemName "The Fortified Compound"
		"faster reload rate" 1.35
		"Projectile speed increased" 1.25
		"minicritboost on kill" 3
		"arrow mastery" 1
	}
	
	ItemAttributes  
	{
		ItemName "Darwin's Danger Shield"
		"dmg taken from fire reduced" 1.15
		"afterburn immunity" 1
		"max health additive bonus" 25
		"dmg taken from blast reduced" 1.15
		"dmg taken from bullets increased" 1.3
	}
	
	ItemAttributes  
	{
		ItemName "tf_weapon_club"
		"jarate backstabber" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Shahanshah"
		"max health additive bonus" 75
		"damage bonus" 1.25
		"dmg penalty while half alive" 1
		"add cond on kill" 19
		"add cond on kill duration" 3
		"add cond when active" 41
		"custom name attr" "Gladius"
	}
	
	ItemAttributes  
	{
		ItemName "The Tribalman's Shiv"
		"reveal disguised victim on hit" 1
		"damage penalty" 0.75
	}
	
	//Spy
	
	ItemAttributes  
	{
		ItemName "The Spy-cicle"
		"add cond on hit" 87
		"add cond on hit duration" 2
		"dmg bonus vs buildings" 2
		"dmg penalty vs players" 2
		"mult dmg vs tanks" 0
	}
	
	ItemAttributes  
	{
		ItemName "The Big Earner"
		"mult dmg vs tanks" 2.5
		"move speed bonus" 1.1
		"increased jump height" 1.1
		"max health additive penalty" 0
		"crits_become_minicrits" 1
		"add cond on kill" 71
		"add cloak on kill" 0
		"speed_boost_on_kill" 0
	}
	
	ItemAttributes  
	{
		ItemName "Conniver's Kunai"
		"disguise damage reduction" 0.5
		"disguise no burn" 1
		"max health additive penalty" -25
		"add cond on kill" 5
		"add cond on kill duration" 3
	}
	
	ItemAttributes  
	{
		ItemName "The Black Rose"
		"damage applies to sappers" 1
		"air dash count" 2
		"cancel falling damage" 1
		"mult dmg vs tanks" 0.75
		"dmg taken from fire increased" 2
		"mult cloak meter consume rate" 1.25
	}
	
	ItemAttributes  
	{
		ItemName "The Sharp Dresser"
		"max health additive bonus" 25
		"add cloak on kill" 30
		"speed_boost_on_kill" 1
		"dmg from melee increased" 1.2
	}
	
	ItemAttributes  
	{
		ItemName "The Wanga Prick"
		"mark for death" 1
		"dmg taken increased" 1.3
	}
	
	ItemAttributes  
	{
		ItemName "Enthusiast's Timepiece"
		"mult cloak meter regen rate" 1.3
	}
	
	ItemAttributes  
	{
		ItemName "The Quackenbirdt"
		"cloak consume rate decreased" 1.4
	}
	
	// MultiClass
	
	ItemAttributes  
	{
		ItemName "Prinny Machete"
		"add cond when active" 19
		"dmg taken from crit increased" 2
		"fire rate penalty" 0.65
		"dmg taken increased" 2
		"is dropped weapon" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Ham Shank"
		"slow enemy on hit major" 3
		"damage penalty" 0.45
		"is dropped weapon" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Freedom Staff"
		"parachute attribute" 1
		"damage penalty" 0.9
		"honorbound" 1
		"is dropped weapon" 1
	}
	
	ItemAttributes  
	{
		DefIndex 1123
		"gesture speed increase" 2
		"dmg bonus vs buildings" 2
		"dmg taken from bullets increased" 1.2
		"is dropped weapon" 1
	}
	
	ItemAttributes  
	{
		ItemName "Frying Pan"
		"dmg pierces resists absorbs" 1
		"fire rate penalty" 1.55
		"damage penalty" 0.9
		"is dropped weapon" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Bat Outta Hell"
		"add cond on hit" 30
		"add cond on hit duration" 3
		"self mark for death" 1
		"is dropped weapon" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Conscientious Objector"
		"is_a_sword" 1
		"collect currency on kill" 1
		"healing received penalty" 0.5
		"is dropped weapon" 1
	}
	
	ItemAttributes  
	{
		ItemName "The Crossing Guard"
		"is_a_sword" 1
		"disable buildings on hit" 3
		"healing received penalty" 0.5
		"is dropped weapon" 1
	}
	
	ItemAttributes  
	{
		DefIndex 954
		"add cond when active" 70
		"is dropped weapon" 1
	}
	
	ItemAttributes  
	{
		ItemName "Gold Frying Pan"
		"dmg pierces resists absorbs" 1
		"cannot be backstabbed" 1
		"minicrits become crits" 1
	}
	
	ItemAttributes  
	{
		ItemName "Saxxy"
		"dmg pierces resists absorbs" 1
		"add cond when active" 34
		"mult dmg vs tanks" 2
	}
	
	//
	// A SPECIAL SECTION
	// FOR CUSTOM UPGRADES THAT MIGHT BE BUGGY
	// BUT WHY THE FUCK NOT? LETS GIVE IT A SHOT!
	//
	
	ExtendedUpgrades 
	{
		//PLAYER BODY
		
		//Pyro
		ImmuneB
		{
			Name "Bullet Force Field"
			Attribute "add cond when active"
			Cap 67
			Increment 67
			Cost 1000
			description "Immunity To Bullets"
			PlayerUpgrade 1
			AllowPlayerClass Pyro
			DisallowedUpgrade
			{
				Upgrade ImmuneE
			}
			DisallowedUpgrade
			{
				Upgrade ImmuneF
			}
			DisallowedUpgrade
			{
				Upgrade ArmorB
			}
		}
		ImmuneE
		{
			Name "Blast Force Field"
			Attribute "add cond when active"
			Cap 68
			Increment 68
			Cost 1000
			description "Immunity To Blast"
			PlayerUpgrade 1
			AllowPlayerClass Pyro
			DisallowedUpgrade
			{
				Upgrade ImmuneB
			}
			DisallowedUpgrade
			{
				Upgrade ImmuneF
			}
			DisallowedUpgrade
			{
				Upgrade ArmorE
			}
		}
		ImmuneF
		{
			Name "Fire Force Field"
			Attribute "add cond when active"
			Cap 69
			Increment 69
			Cost 1000
			description "Immunity To Fire"
			PlayerUpgrade 1
			AllowPlayerClass Pyro
			DisallowedUpgrade
			{
				Upgrade ImmuneB
			}
			DisallowedUpgrade
			{
				Upgrade ImmuneE
			}
			DisallowedUpgrade
			{
				Upgrade ArmorF
			}
		}
		
		//Everyone
		ArmorM
		{
			Name "Iron Armor"
			Attribute "mult dmgtaken from melee"
			Cap 0.6
			Increment -0.1
			Cost 300
			description "+10% Melee Resistance"
			PlayerUpgrade 1
		}
		ArmorB
		{
			Name "Shield"
			Attribute "dmg taken from bullets reduced"
			Cap 0.4
			Increment -0.1
			Cost 300
			description "+10% Bullet Resistance"
			PlayerUpgrade 1
			DisallowedUpgrade
			{
				Upgrade ImmuneB
			}
		}
		ArmorE
		{
			Name "Anti-Blast Enchant"
			Attribute "dmg taken from blast reduced"
			Cap 0.4
			Increment -0.1
			Cost 300
			description "+10% Blast Resistance"
			PlayerUpgrade 1
			DisallowedUpgrade
			{
				Upgrade ImmuneE
			}
		}
		ArmorF
		{
			Name "Volcanic Forge"
			Attribute "dmg taken from fire reduced"
			Cap 0.4
			Increment -0.1
			Cost 300
			description "+10% Fire Resistance"
			PlayerUpgrade 1
			DisallowedUpgrade
			{
				Upgrade ImmuneF
			}
		}
		ArmorC
		{
			Name "Magical Force Field"
			Attribute "dmg taken from crit reduced"
			Cap 0.5
			Increment -0.1
			Cost 300
			description "+10% Crit Resistance"
			PlayerUpgrade 1
		}
		
		//HP
		ScoutHp
		{
			Name "Enchanted Blood"
			Attribute "max health additive penalty"
			Cap 75
			Increment 25
			Cost 200
			description "+25 Max Health"
			PlayerUpgrade 1
			AllowPlayerClass Scout
		}
		
		SoldierHp
		{
			Name "Military Toughness"
			Attribute "max health additive penalty"
			Cap 150
			Increment 25
			Cost 175
			description "+25 Max Health"
			PlayerUpgrade 1
			AllowPlayerClass Soldier
		}
		
		PyroHp
		{
			Name "Thicker Skin"
			Attribute "max health additive penalty"
			Cap 75
			Increment 25
			Cost 200
			description "+25 Max Health"
			PlayerUpgrade 1
			AllowPlayerClass Pyro
		}
		
		PyroMeleeSlotRes
		{
			Name "Melee Protocol"
			Attribute "dmg from melee increased"
			Cap 0.7
			Increment -0.1
			Cost 200
			description "+10% Melee Resistance While Active"
			AllowPlayerClass Pyro
			AllowedWeapons
			{
				Slot Melee
			}
		}
		
		DemoHp
		{
			Name "Royal Roots"
			Attribute "max health additive penalty"
			Cap 100
			Increment 50
			Cost 250
			description "+50 Max Health"
			PlayerUpgrade 1
			AllowPlayerClass Demoman
		}
		
		HeavyHp
		{
			Name "Hit The Gym"
			Attribute "max health additive penalty"
			Cap 150
			Increment 25
			Cost 150
			description "+25 Max Health"
			PlayerUpgrade 1
			AllowPlayerClass HeavyWeapons
		}
		
		HeavyMeleeSlotRes
		{
			Name "Russian Style"
			Attribute "dmg from melee increased"
			Cap 0.55
			Increment -0.15
			Cost 200
			description "+15% Melee Resistance While Active"
			AllowPlayerClass HeavyWeapons
			AllowedWeapons
			{
				Slot Melee
			}
		}
		
		EngiHp
		{
			Name "Chadism"
			Attribute "max health additive penalty"
			Cap 500
			Increment 100
			Cost 250
			description "+100 Max Health"
			PlayerUpgrade 1
			AllowPlayerClass Engineer
		}
		
		MedicHp
		{
			Name "Health Boost Potion"
			Attribute "max health additive penalty"
			Cap 100
			Increment 100
			Cost 450
			description "+100 Max Health"
			PlayerUpgrade 1
			AllowPlayerClass Medic
		}
		
		SnipaHp
		{
			Name "Jungle Experience"
			Attribute "max health additive penalty"
			Cap 100
			Increment 20
			Cost 225
			description "+20 Max Health"
			PlayerUpgrade 1
			AllowPlayerClass Sniper
		}
		
		SniporMeleeSlotRes
		{
			Name "Bushman's Bravery"
			Attribute "dmg from melee increased"
			Cap 0.7
			Increment -0.1
			Cost 200
			description "+10% Melee Resistance While Active"
			AllowPlayerClass Sniper
			AllowedWeapons
			{
				Slot Melee
			}
		}
		
		SpyHp
		{
			Name "Harsh Weather Missions"
			Attribute "max health additive penalty"
			Cap 50
			Increment 10
			Cost 125
			description "+10 Max Health"
			PlayerUpgrade 1
			AllowPlayerClass Spy
		}
		
		//EveryoneBesidesEngi
		Regen
		{
			Name "Permanent Regen Potion"
			Attribute "health regen"
			Cap 15
			Increment 3
			Cost 200
			description "+3 Health Regenerated Per Second"
			PlayerUpgrade 1
			AllowPlayerClass Scout
			AllowPlayerClass Soldier
			AllowPlayerClass Pyro
			AllowPlayerClass Demoman 
			AllowPlayerClass Heavyweapons
			AllowPlayerClass Medic
			AllowPlayerClass Sniper
			AllowPlayerClass Spy
		}
		
		//Engi
		Regen
		{
			Name "Permanent Regen Potion"
			Attribute "health regen"
			Cap 30
			Increment 10
			Cost 450
			description "+10 Health Regenerated Per Second"
			PlayerUpgrade 1
			AllowPlayerClass Engineer
		}
		
		//EveryoneAgain
		Move
		{
			Name "Permanent Speed Potion"
			Attribute "move speed bonus"
			Cap 1.4
			Increment 0.1
			Cost 200
			description "+10% Move Speed"
			PlayerUpgrade 1
		}
		Jump
		{
			Name "Permanent Jump Potion"
			Attribute "increased jump height"
			Cap 1.3
			Increment 0.1
			Cost 200
			description "+10 Jump Height"
			PlayerUpgrade 1
		}
		
		//SHARED DEMO SOLDIER
		
		//PainTrain
		PainDamage
		{
			Name "Sharper Nail"
			Attribute "damage bonus"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Pain Train"
			}
		}
		PainSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Pain Train"
			}
		}
		PainRange
		{
			Name "Longer Wood"
			Attribute "melee range multiplier"
			Cap 2.5
			Increment 0.25
			Cost 375
			description "+25% Range Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Pain Train"
			}
		}
		PainBleed
		{
			Name "Skin Cutting"
			Attribute "bleeding duration"
			Cap 15
			Increment 2
			Cost 255
			description "+2 Seconds Of Bleeding"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Pain Train"
			}
		}
		PainBleedDmg
		{
			Name "Serious Wounds"
			Attribute "mult bleeding dmg"
			Cap 3
			Increment 1
			Cost 425
			description "+100% Bleed Damage"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Pain Train"
			}
		}
		PainCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Pain Train"
			}
		}
		PainKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Pain Train"
			}
		}
		
		//Zatoichi
		
		ZatoichiDamage
		{
			Name "Sharper Blade"
			Attribute "damage bonus"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Half-Zatoichi"
			}
		}
		ZatoichiSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Half-Zatoichi"
			}
		}
		ZatoichiCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Half-Zatoichi"
			}
		}
		
		//SCOUT SECONDARY
		
		//Gigantism
		GigaDuration
		{
			Name "Add Redstone"
			Attribute "mult effect duration"
			Cap 1.45
			Increment 0.15
			Cost 165
			description "+15% Potion Duration"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Crit-a-Cola"
			}
		}
		GigaCharge
		{
			Name "Faster Brewing"
			Attribute "effect bar recharge rate increased"
			Cap 0.6
			Increment -0.2
			Cost 150
			description "+20% Potion Brewing Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Crit-a-Cola"
			}
		}
		//Ãœbercharge
		UberDuration
		{
			Name "Add Redstone"
			Attribute "mult effect duration"
			Cap 1.6
			Increment 0.1
			Cost 135
			description "+10% Potion Duration"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Bonk! Atomic Punch"
			}
		}
		UberCharge
		{
			Name "Faster Brewing"
			Attribute "effect bar recharge rate increased"
			Cap 0.4
			Increment -0.15
			Cost 125
			description "+15% Potion Brewing Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Bonk! Atomic Punch"
			}
		}
		//Milk
		MilkSlow
		{
			Name "Sticky Milk"
			Attribute "applies snare effect"
			Cap 2
			Increment 1
			Cost 250
			description "-35% Speed On Target"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Mad Milk"
				ItemName "Mutated Milk"
			}
		}
		MilkCharge
		{
			Name "Faster Filling"
			Attribute "effect bar recharge rate increased"
			Cap 1.6
			Increment 0.15
			Cost 250
			description "+15% Milk Recharge Rate"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Mad Milk"
				ItemName "Mutated Milk"
			}
		}
		//Bombs
		BombDamage
		{
			Name "More Powder"
			Attribute "damage bonus"
			Cap 50
			Increment 5
			Cost 300
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Flying Guillotine"
			}
		}
		BombCharge
		{
			Name "Faster Crafting"
			Attribute "effect bar recharge rate increased"
			Cap 0.25
			Increment -0.25
			Cost 325
			description "+25% Bomb Crafting Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Flying Guillotine"
			}
		}
		//Water
		WaterDuration
		{
			Name "Add Redstone"
			Attribute "mult effect duration"
			Cap 1.8
			Increment 0.1
			Cost 135
			description "+10% Potion Duration"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Festive Bonk 2014"
			}
		}
		WaterCharge
		{
			Name "Faster Brewing"
			Attribute "effect bar recharge rate increased"
			Cap 0.4
			Increment -0.15
			Cost 125
			description "+15% Potion Brewing Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Festive Bonk 2014"
			}
		}
		
		//SCOUT MELEE
		
		//Bat
		BatDamage
		{
			Name "Harder Steel"
			Attribute "damage bonus"
			Cap 1.5
			Increment 0.1
			Cost 200
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bat"
			}
		}
		BatSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bat"
			}
		}
		BatKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bat"
			}
		}
		
		//CandyCane
		CandyDamage
		{
			Name "Thicker Sweets"
			Attribute "damage bonus"
			Cap 1.3
			Increment 0.1
			Cost 200
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Candy Cane"
			}
		}
		CandySpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 255
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Candy Cane"
			}
		}
		CandyHit
		{
			Name "Eat 4 Hit"
			Attribute "heal on hit for slowfire"
			Cap 20
			Increment 10
			Cost 235
			description "Restore To +10 Health On Successful Hit"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Candy Cane"
			}
		}
		
		//FireWand
		WandDamage
		{
			Name "Sharper Spikes"
			Attribute "damage bonus"
			Cap 1.45
			Increment 0.15
			Cost 265
			description "+15% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Sun-on-a-Stick"
			}
		}
		WandSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 255
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Sun-on-a-Stick"
			}
		}
		WandCleave
		{
			Name "Magical Sweep"
			Attribute "melee cleave attack"
			Cap 1
			Increment 1
			Cost 500
			description "Weapon Can Cleave"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Sun-on-a-Stick"
			}
		}
		WandKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Sun-on-a-Stick"
			}
		}
		
		//FanOWar
		FanDamage
		{
			Name "Precise Karate"
			Attribute "damage bonus"
			Cap 1.3
			Increment 0.1
			Cost 235
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fan O'War"
			}
		}
		FanSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.55
			Increment -0.15
			Cost 275
			description "+15% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fan O'War"
			}
		}
		FanCrit
		{
			Name "Killing Spree"
			Attribute "critboost on kill"
			Cap 5
			Increment 1
			Cost 250
			description "+1 Second Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fan O'War"
			}
		}
		FanKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fan O'War"
			}
		}
		
		//CrapAssasin
		CrapSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.4
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus And +10% Ball Launch Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Wrap Assassin"
			}
		}
		CrapBleed
		{
			Name "Paper Cut"
			Attribute "bleeding duration"
			Cap 15
			Increment 3
			Cost 175
			description "+3 Seconds Of Bleed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Wrap Assassin"
			}
		}
		CrapBalls
		{
			Name "More Baubles"
			Attribute "maxammo grenades1 increased"
			Cap 10
			Increment 1
			Cost 135
			description "+1 Bauble"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Wrap Assassin"
			}
		}
		CrapRecharge
		{
			Name "Faster Production"
			Attribute "effect bar recharge rate increased"
			Cap 0.3
			Increment -0.15
			Cost 225
			description "+15% Bauble Production Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Wrap Assassin"
			}
		}
		CrapKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Wrap Assassin"
			}
		}
		
		//Sandman
		SandDamage
		{
			Name "Harder Smacks"
			Attribute "damage bonus"
			Cap 1.3
			Increment 0.1
			Cost 235
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Sandman"
			}
		}
		SandSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.65
			Increment -0.07
			Cost 165
			description "+7% Swing Speed Bonus And +7% Ball Launch Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Sandman"
			}
		}
		SandMark
		{
			Name "Death Cursing"
			Attribute "mark for death"
			Cap 1
			Increment 1
			Cost 615
			description "Weapon Can Mark For Death"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Sandman"
			}
		}
		SandBalls
		{
			Name "More Balls"
			Attribute "maxammo grenades1 increased"
			Cap 5
			Increment 1
			Cost 155
			description "+1 Ball"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Sandman"
			}
		}
		SandRecharge
		{
			Name "Faster Production"
			Attribute "effect bar recharge rate increased"
			Cap 0.45
			Increment -0.15
			Cost 235
			description "+15% Ball Production Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Sandman"
			}
		}
		SandKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Sandman"
			}
		}
		
		//Atomizer
		AtomizerDamage
		{
			Name "Dense Metal"
			Attribute "damage bonus"
			Cap 1.3
			Increment 0.1
			Cost 235
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Atomizer"
			}
		}
		AtomizerSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Atomizer"
			}
		}
		AtomizerJumps
		{
			Name "Air Jump Ninja"
			Attribute "air dash count"
			Cap 5
			Increment 1
			Cost 325
			description "+1 Jump"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Atomizer"
			}
		}
		AtomizerKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Atomizer"
			}
		}
		
		//Boston
		BostonSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Boston Basher"
			}
		}
		BostonBlastImmunity
		{
			Name "Bandit of War"
			Attribute "add cond when active"
			Cap 68
			Increment 68
			Cost 1500
			description "Immunity to Blast Damage While Active"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Boston Basher"
			}
			DisallowedUpgrade
			{
				Upgrade BostonMiniCrit
			}
		}
		BostonMiniCrit
		{
			Name "Enraged Bandit"
			Attribute "add cond when active"
			Cap 34
			Increment 34
			Cost 3500
			description "Always Crits"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Boston Basher"
			}
			DisallowedUpgrade
			{
				Upgrade BostonBlastImmunity
			}
		}
		BostonKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Boston Basher"
			}
		}
		
		//3RuneBlade
		RuneDamage
		{
			Name "Sharper Edge"
			Attribute "damage bonus HIDDEN"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Three-Rune Blade"
			}
		}
		RuneSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Three-Rune Blade"
			}
		}
		RuneCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Three-Rune Blade"
			}
		}
		RuneKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Three-Rune Blade"
			}
		}
		
		//Fish
		FishSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Holy Mackerel"
			}
		}
		FishSlow
		{
			Name "Turtling"
			Attribute "slow enemy on hit major"
			Cap 5
			Increment 5
			Cost 400
			description "On Hit Slow Enemy For 5 Seconds"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Holy Mackerel"
			}
		}
		FishMagix
		{
			Name "Death Cursing"
			Attribute "add cond on hit"
			Cap 30
			Increment 30
			Cost 715
			description "Weapon Can Mark For Death"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Holy Mackerel"
			}
			SecondaryAttributes
			{
			"add cond on hit duration" 5
			}
		}
		FishMagician
		{
			Name "Milk Cursing"
			Attribute "add cond on hit"
			Cap 6942
			Increment 6912
			Cost 1000
			description "Weapon Can Milk ( ͡° ͜ʖ ͡°)"
			RequiredUpgrade
			{
				Upgrade "FishMagix"
				Level 1
			}
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Holy Mackerel"
			}
		}
		FishKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Holy Mackerel"
			}
		}
		
		//Hand
		HandDamage
		{
			Name "Sharper Nails"
			Attribute "damage bonus HIDDEN"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Unarmed Combat"
			}
		}
		HandSpeed
		{
			Name "Faster Hand"
			Attribute "melee attack rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Unarmed Combat"
			}
		}
		HandRange
		{
			Name "Longer Nails"
			Attribute "melee range multiplier"
			Cap 1.6
			Increment 0.1
			Cost 200
			description "+10% Range Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Unarmed Combat"
			}
		}
		HandHit
		{
			Name "Blood Sip"
			Attribute "heal on hit for slowfire"
			Cap 50
			Increment 10
			Cost 235
			description "Restore To +10 Health On Successful Hit"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Unarmed Combat"
			}
		}
		HandKill
		{
			Name "Soul Absorption"
			Attribute "restore health on kill"
			Cap 0.33
			Increment 0.11
			Cost 150
			description "+11% Health On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Unarmed Combat"
			}
		}
		
		//Saber
		SaberDamage
		{
			Name "Intense Energy"
			Attribute "damage bonus"
			Cap 1.5
			Increment 0.1
			Cost 200
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Batsaber"
			}
		}
		SaberSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Batsaber"
			}
		}
		SaberMoney
		{
			Name "The Force"
			Attribute "mult credit collect range"
			Cap 1.5
			Increment 0.5
			Cost 550
			description "+50% Cash Collect Range"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Batsaber"
			}
		}
		SaberKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Batsaber"
			}
		}
		
		//SOLDIER SECONDARY
		
		//Grenade
		GrenadeDamage
		{
			Name "ZIP File The Powder"
			Attribute "damage bonus"
			Cap 2
			Increment 0.25
			Cost 350
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Grenade"
			}
		}
		GrenadeCharge
		{
			Name "Reconstruction Spell"
			Attribute "effect bar recharge rate increased"
			Cap 0.3
			Increment -0.15
			Cost 250
			description "+15% Grenade Recharge Rate"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Grenade"
			}
		}
		GrenadeAmmo
		{
			Name "More Nades"
			Attribute "maxammo grenades1 increased"
			Cap 5
			Increment 1
			Cost 300
			description "+1 Grenade"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Grenade"
			}
		}
		
		//Boots
		BootsHP
		{
			Name "Harsh Training"
			Attribute "max health additive bonus"
			Cap 150
			Increment 150
			Cost 755
			description "+150 Max Health"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Mantreads"
			}
		}
		
		//GravityBoots
		AntiFlameBleed
		{
			Name "Hardened Body"
			Attribute "no self effect"
			Cap 1
			Increment 1
			Cost 1000
			description "Immunity To Afterburn and Bleeding"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Gunboats"
			}
		}
		
		//BuffBanner
		BuffDuration
		{
			Name "Longer Pride"
			Attribute "increase buff duration"
			Cap 1.75
			Increment 0.25
			Cost 400
			description "+25% Buff Duration"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Buff Banner"
			}
		}
		BuffRange
		{
			Name "Louder Call"
			Attribute "mod soldier buff range"
			Cap 2
			Increment 0.2
			Cost 400
			description "+20% Buff Range"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Buff Banner"
			}
		}
		
		//Conch
		ConchDuration
		{
			Name "Longer Pride"
			Attribute "increase buff duration"
			Cap 1.75
			Increment 0.25
			Cost 400
			description "+25% Buff Duration"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Concheror"
			}
		}
		ConchRange
		{
			Name "Louder Call"
			Attribute "mod soldier buff range"
			Cap 2
			Increment 0.2
			Cost 400
			description "+20% Buff Range"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Concheror"
			}
		}
		
		//Backup
		BackupDuration
		{
			Name "Longer Plans"
			Attribute "increase buff duration"
			Cap 1.75
			Increment 0.25
			Cost 400
			description "+25% Buff Duration"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Battalion's Backup"
			}
		}
		BackupRange
		{
			Name "Louder Call"
			Attribute "mod soldier buff range"
			Cap 2
			Increment 0.2
			Cost 400
			description "+20% Buff Range"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Battalion's Backup"
			}
		}
		
		//SOLDIER MELEE
		
		//Shovel
		ShovelDamage
		{
			Name "Sharper Edge"
			Attribute "damage bonus"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_SHOVEL"
			}
		}
		ShovelSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_SHOVEL"
			}
		}
		ShovelRange
		{
			Name "Further Reach"
			Attribute "melee range multiplier"
			Cap 2.5
			Increment 0.25
			Cost 375
			description "+25% Range Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_SHOVEL"
			}
		}
		ShovelCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_SHOVEL"
			}
		}
		ShovelKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_SHOVEL"
			}
		}
		
		//Gardener
		GardenerDamage
		{
			Name "Sharper Edge"
			Attribute "damage bonus HIDDEN"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Market Gardener"
			}
		}
		GardenerSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Market Gardener"
			}
		}
		GardenerRange
		{
			Name "Further Reach"
			Attribute "melee range multiplier"
			Cap 2.5
			Increment 0.25
			Cost 375
			description "+25% Range Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Market Gardener"
			}
		}
		GardenerCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Market Gardener"
			}
		}
		GardenerSwitch
		{
			Name "Quick Draw"
			Attribute "deploy time decreased"
			Cap 0.65
			Increment -0.05
			Cost 75
			description "+5% Weapon Switch Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Market Gardener"
			}
		}
		GardenerKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Market Gardener"
			}
		}
		
		//Escape
		EscapeDamage
		{
			Name "Harder Swings"
			Attribute "damage bonus"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Escape Plan"
			}
		}
		EscapeSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Escape Plan"
			}
		}
		EscapeRange
		{
			Name "Further Reach"
			Attribute "melee range multiplier"
			Cap 2.5
			Increment 0.25
			Cost 375
			description "+25% Range Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Escape Plan"
			}
		}
		EscapeBoost
		{
			Name "Digging Rush"
			Attribute "speed_boost_on_hit_enemy"
			Cap 1
			Increment 1
			Cost 375
			description "On Hit Gain A Speed Boost"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Escape Plan"
			}
			DisallowedUpgrade
			{
				Upgrade EscapeCrit
			}
		}
		EscapeCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Escape Plan"
			}
			DisallowedUpgrade
			{
				Upgrade EscapeBoost
			}
		}
		EscapeKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Escape Plan"
			}
		}
		
		//Equalizer
		PickaxeDamage
		{
			Name "Harder Swings"
			Attribute "damage bonus HIDDEN"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Equalizer"
			}
			DisallowedUpgrade
			{
				Upgrade PickaxeSpirit
			}
		}
		PickaxeSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Equalizer"
			}
		}
		PickaxeRange
		{
			Name "Further Reach"
			Attribute "melee range multiplier"
			Cap 2.5
			Increment 0.25
			Cost 375
			description "+25% Range Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Equalizer"
			}
		}
		PickaxeSpirit
		{
			Name "Prospector's Presence"
			Attribute "damage bonus"
			Cap 4
			Increment 3
			Cost 3000
			description "High Damage But Slow Swings"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Equalizer"
			}
			SecondaryAttributes
			{
			"fire rate penalty" 1.75
			}
			DisallowedUpgrade
			{
				Upgrade PickaxeDamage
			}
			DisallowedUpgrade
			{
				Upgrade PickaxeCrit
			}
		}
		PickaxeCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Equalizer"
			}
			DisallowedUpgrade
			{
				Upgrade PickaxeSpirit
			}
		}
		PickaxeKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Equalizer"
			}
		}
		
		//Action
		ActionDamage
		{
			Name "Harder Swings"
			Attribute "damage bonus"
			Cap 1.8
			Increment 0.1
			Cost 235
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Disciplinary Action"
			}
		}
		ActionSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.4
			Increment -0.15
			Cost 200
			description "+15% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Disciplinary Action"
			}
		}
		ActionRange
		{
			Name "Further Reach"
			Attribute "melee range multiplier"
			Cap 2.5
			Increment 0.25
			Cost 375
			description "+25% Range Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Disciplinary Action"
			}
		}
		ActionCritDmg
		{
			Name "Perfect Swings"
			Attribute "mult crit dmg"
			Cap 1.5
			Increment 0.1
			Cost 375
			description "+10% Crit Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Disciplinary Action"
			}
		}
		ActionCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Disciplinary Action"
			}
		}
		ActionKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Disciplinary Action"
			}
		}
		
		//PYRO PRIMARIES
		
		//StarWarsBlaster
		SWSpeed
		{
			Name "Faster Impulse"
			Attribute "fire rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 250
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "E-11 Blaster Rifle"
			}
		}
		SWPenetration
		{
			Name "Phasing"
			Attribute "energy weapon penetration"
			Cap 1
			Increment 1
			Cost 750
			description "Projectiles Penetrate Enemies But Can't Deal Damage To Tanks"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "E-11 Blaster Rifle"
			}
			SecondaryAttributes
			{
				"mult dmg vs tanks" -1
			}
		}
		SWSuper
		{
			Name "Super Phasing"
			Attribute "noclip projectiles"
			Cap 1
			Increment 1
			Cost 1000
			description "Projectiles Can Noclip"
			RequiredUpgrade
			{
				Upgrade "SWPenetration"
				Level 1
			}
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "E-11 Blaster Rifle"
			}
		}
		SWConnect
		{
			Name "Source Neutralizing"
			Attribute "damage all connected"
			Cap 1
			Increment 1
			Cost 400
			description "All Players Connected Via Medigun Beams Are Hit"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "E-11 Blaster Rifle"
			}
		}
		SWReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "E-11 Blaster Rifle"
			}
		}
		SWClip
		{
			Name "Expanded Core"
			Attribute "clip size bonus"
			Cap 3
			Increment 0.5
			Cost 350
			description "+25% Clip Size"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "E-11 Blaster Rifle"
			}
		}
		SWIgnore
		{
			Name "Increased Gamma"
			Attribute "dmg pierces resists absorbs"
			Cap 1
			Increment 1
			Cost 400
			description "Projectiles Ignore Resistances"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "E-11 Blaster Rifle"
			}
		}
		
		//PYRO SECONDARIES
		
		//Raygun
		RayDamage
		{
			Name "Intense Energy"
			Attribute "damage bonus"
			Cap 1.5
			Increment 0.1
			Cost 250
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Raygun"
			}
		}
		RaySpeed
		{
			Name "Faster Impulse"
			Attribute "fire rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 250
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Raygun"
			}
		}
		RayRange
		{
			Name "Unstable Energy"
			Attribute "Blast radius increased"
			Cap 1.75
			Increment 0.25
			Cost 300
			description "+25% Bigger Blast Radius"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Raygun"
			}
		}
		RayBurn
		{
			Name "Sun Energy"
			Attribute "Set DamageType Ignite"
			Cap 1
			Increment 1
			Cost 800
			description "On Hit Sets Enemy On Fire"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Raygun"
			}
		}
		RayReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Raygun"
			}
		}
		SWClip
		{
			Name "Expanded Core"
			Attribute "clip size bonus"
			Cap 3
			Increment 0.5
			Cost 350
			description "+25% Clip Size"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Raygun"
			}
		}
		
		//Detonator
		DetDamage
		{
			Name "Improved Projectiles"
			Attribute "damage bonus HIDDEN"
			Cap 1.5
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Detonator"
			}
		}
		DetSpeed
		{
			Name "Faster Mechanics"
			Attribute "fire rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 275
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Detonator"
			}
		}
		DetReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Detonator"
			}
		}
		DetAntiTank
		{
			Name "Anti Rocket-Ship Module"
			Attribute "mult dmg vs tanks"
			Cap 3
			Increment 3
			Cost 1500
			description "Alien Technology Allows Missles To Deal More Damage To Vehicles"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Detonator"
			}
		}
		
		//Manmelter
		DetSpeed
		{
			Name "Faster Mechanics"
			Attribute "fire rate bonus"
			Cap 0.4
			Increment -0.1
			Cost 275
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Manmelter"
			}
		}
		
		//PYRO MELEES
		
		//Axe
		AxeDamage
		{
			Name "Harder Swings"
			Attribute "damage bonus"
			Cap 1.5
			Increment 0.1
			Cost 235
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_FIREAXE"
			}
		}
		AxeSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_FIREAXE"
			}
		}
		AxeKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_FIREAXE"
			}
		}
		
		//Others
		OtherAxeDamage
		{
			Name "Harder Swings"
			Attribute "damage bonus"
			Cap 1.3
			Increment 0.1
			Cost 235
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Axtinguisher"
				ItemName "The Postal Pummeler"
				ItemName "The Homewrecker"
				ItemName "The Third Degree"
				ItemName "Sharpened Volcano Fragment"
				ItemName "The Hot Hand"
				ItemName "The Neon Annihilator"
				
			}
		}
		OtherAxeSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Axtinguisher"
				ItemName "The Postal Pummeler"
				ItemName "The Homewrecker"
				ItemName "The Third Degree"
				ItemName "Sharpened Volcano Fragment"
				ItemName "The Hot Hand"
				ItemName "The Neon Annihilator"
			}
		}
		OtherAxeKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Axtinguisher"
				ItemName "The Postal Pummeler"
				ItemName "The Homewrecker"
				ItemName "The Third Degree"
				ItemName "Sharpened Volcano Fragment"
				ItemName "The Hot Hand"
				ItemName "The Neon Annihilator"
			}
		}
		
		//Rakers
		RakeDamage
		{
			Name "Sharper Spikes"
			Attribute "damage bonus HIDDEN"
			Cap 1.3
			Increment 0.1
			Cost 235
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Back Scratcher"
			}
		}
		RakeSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Back Scratcher"
			}
		}
		RakeKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Back Scratcher"
			}
		}
		
		//Jack
		JackDamage
		{
			Name "Engine Buster"
			Attribute "mult dmg vs tanks"
			Cap 5
			Increment 0.25
			Cost 400
			description "+25% Bonus Damage Vs Tanks"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Powerjack"
			}
		}
		JackSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Powerjack"
			}
		}
		JackKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Powerjack"
			}
		}
		
		//Maul
		MaulDamage
		{
			Name "Harder Hammer Head"
			Attribute "damage bonus HIDDEN"
			Cap 1.3
			Increment 0.1
			Cost 235
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Maul"
			}
		}
		MaulSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.15
			Cost 200
			description "+15% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Maul"
			}
		}
		MaulFire
		{
			Name "Fire Module"
			Attribute "Set DamageType Ignite"
			Cap 1
			Increment 1
			Cost 550
			description "On Hit Sets Enemy On Fire"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Maul"
			}
		}
		MaulKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Maul"
			}
		}
		
		//DEMOMAN PRIMARY

		//Cannon
		CannonDamage
		{
			Name "More Powder"
			Attribute "damage bonus HIDDEN"
			Cap 2
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cannon"
			}
			
		}
		CannonRange
		{
			Name "Quality Powder"
			Attribute "Blast radius increased"
			Cap 1.75
			Increment 0.25
			Cost 300
			description "+25% Bigger Blast Radius"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cannon"
			}
			DisallowedUpgrade
			{
				Upgrade CannonDowngrade
			}
		}
		CannonSpeed
		{
			Name "Slippery Bombs"
			Attribute "Projectile speed increased HIDDEN"
			Cap 4
			Increment 0.4
			Cost 300
			description "+40% Projectile Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cannon"
			}
		}
		CannonFire
		{
			Name "Faster Fuse"
			Attribute "fire rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 550
			description "+10% Firing Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cannon"
			}
		}
		CannonReload
		{
			Name "Faster Hands"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.15
			Cost 300
			description "+15% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cannon"
			}
		}
		CannonAmmo
		{
			Name "Bigger Pockets"
			Attribute "maxammo primary increased"
			Cap 2.5
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cannon"
			}
		}
		CannonDowngrade
		{
			Name "Chess Under Promotion"
			Attribute "cannonball push back"
			Cap 1
			Increment 1
			Cost -500
			description "Gives 500$! BUT! Downgrades Bombs To Plain Cannonballs Which Ignore Resists"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cannon"
			}
			SecondaryAttributes
			{
			"override projectile type extra" "stunball"
			"stay after regenerate" 1
			"damage bonus" 6
			"dmg pierces resists absorbs" 1
			}
			DisallowedUpgrade
			{
				Upgrade CannonRange
			}
		}
		CannonKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 25
			Increment 5
			Cost 250
			description "+5 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cannon"
			}
		}
		
		//DemomanLegs
		MagicLegs
		{
			Name "Endurence Training"
			Attribute "mult stun resistance"
			Cap 0
			Increment -1
			Cost 675
			description "Slowness Imunnity"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Ali Baba's Wee Booties"
			}
		}
		
		PirateLegs
		{
			Name "Endurence Training"
			Attribute "mult stun resistance"
			Cap 0
			Increment -1
			Cost 675
			description "Slowness Imunnity"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Bootlegger"
			}
		}
		
		//DEMOMAN SECONDARIES
		
		//DemomanShields
		ChargeRecharge
		{
			Name "Stamina Enchant"
			Attribute "charge recharge rate increased"
			Cap 3
			Increment 0.5
			Cost 175
			description "+50% Charge Recharge Rate"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Chargin' Targe"
				ItemName "The Splendid Screen"
				ItemName "The Tide Turner"
				ItemName "Festive Targe 2014"
			}
		}
		ChargePush
		{
			Name "Spartan Pushback"
			Attribute "damage force reduction"
			Cap 1.9
			Increment 0.3
			Cost 125
			description "+30% Damage Push Force Resistance"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Chargin' Targe"
				ItemName "The Splendid Screen"
				ItemName "The Tide Turner"
				ItemName "Festive Targe 2014"
			}
		}
		ChargeSmash
		{
			Name "Battering Ram"
			Attribute "charge impact damage increased"
			Cap 2
			Increment 0.1
			Cost 150
			description "+10% Charge Impact Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Chargin' Targe"
				ItemName "The Splendid Screen"
				ItemName "The Tide Turner"
				ItemName "Festive Targe 2014"
			}
		}
		ShieldSpy
		{
			Name "6th Sense"
			Attribute "mod see enemy health"
			Cap 1
			Increment 1
			Cost 300
			description "Allows You To See Enemy Health"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Chargin' Targe"
				ItemName "The Splendid Screen"
				ItemName "The Tide Turner"
				ItemName "Festive Targe 2014"
			}
		}
		
		//DEMOMAN MELEE
		
		//Bottles
		BottleDamage
		{
			Name "Sharper Glass"
			Attribute "damage bonus"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bottle"
				ItemName "The Scottish Handshake"
			}
		}
		BottleSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.8
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bottle"
				ItemName "The Scottish Handshake"
			}
		}
		BottleBleed
		{
			Name "Skin Cutting"
			Attribute "bleeding duration"
			Cap 15
			Increment 2
			Cost 255
			description "+2 Seconds Of Bleeding"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bottle"
				ItemName "The Scottish Handshake"
			}
		}
		BottleBleedDmg
		{
			Name "Serious Wounds"
			Attribute "mult bleeding dmg"
			Cap 3
			Increment 1
			Cost 425
			description "+100% Bleed Damage"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bottle"
				ItemName "The Scottish Handshake"
			}
		}
		BottleBleedSpeed
		{
			Name "Severe Glass Cuts"
			Attribute "mult bleeding delay"
			Cap 0.5
			Increment -0.5
			Cost 500
			description "+50% Faster Bleeding"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bottle"
				ItemName "The Scottish Handshake"
			}
		}
		BottleCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bottle"
				ItemName "The Scottish Handshake"
			}
		}
		BottleKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_bottle"
				ItemName "The Scottish Handshake"
			}
		}
		
		//AllDemoSwords
		SwordDamage
		{
			Name "Sharper Blade"
			Attribute "damage bonus HIDDEN"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Persian Persuader"
				ItemName "The Eyelander"
				ItemName "The Scotsman's Skullcutter"
				ItemName "The Horseless Headless Horseman's Headtaker"
				ItemName "The Claidheamohmor"
				ItemName "Nessie's Nine Iron"
				ItemName "Festive Eyelander"
			}
		}
		SwordSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Persian Persuader"
				ItemName "The Eyelander"
				ItemName "The Scotsman's Skullcutter"
				ItemName "The Horseless Headless Horseman's Headtaker"
				ItemName "The Claidheamohmor"
				ItemName "Nessie's Nine Iron"
				ItemName "Festive Eyelander"
			}
		}
		SwordCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Persian Persuader"
				ItemName "The Eyelander"
				ItemName "The Scotsman's Skullcutter"
				ItemName "The Horseless Headless Horseman's Headtaker"
				ItemName "The Claidheamohmor"
				ItemName "Nessie's Nine Iron"
				ItemName "Festive Eyelander"
			}
		}
		SwordKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Persian Persuader"
				ItemName "The Eyelander"
				ItemName "The Scotsman's Skullcutter"
				ItemName "The Horseless Headless Horseman's Headtaker"
				ItemName "The Claidheamohmor"
				ItemName "Nessie's Nine Iron"
				ItemName "Festive Eyelander"
			}
		}
		
		//FestiveEyelander
		SwordFreeze
		{
			Name "Bloodlust"
			Attribute "add cond on hit"
			Cap 87
			Increment 87
			Cost 750
			description "+3 Seconds Of Freeze"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Festive Eyelander"
			}
			SecondaryAttributes
			{
			"add cond on hit duration" 3
			}
		}
		
		//Caber
		CaberDamage
		{
			Name "Stronger Smashing"
			Attribute "damage bonus"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ullapool Caber"
			}
		}
		CaberSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ullapool Caber"
			}
		}
		CaberBlast
		{
			Name "Quality Powder"
			Attribute "Blast radius increased"
			Cap 3.25
			Increment 0.25
			Cost 300
			description "+25% Bigger Blast Radius"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ullapool Caber"
			}
		}
		CaberCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ullapool Caber"
			}
		}
		CaberCritLight
		{
			Name "Harder Impact"
			Attribute "mult crit dmg"
			Cap 1.45
			Increment 0.15
			Cost 375
			description "+15% Crit Damage"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ullapool Caber"
			}
		}
		InfinityCaber
		{
			Name "Final Infinity Stone"
			Attribute "regenerate stickbomb"
			Cap 1
			Increment 1
			Cost 3000
			description "Does Not Consume On Explosion"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ullapool Caber"
			}
		}
		CaberKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ullapool Caber"
			}
		}
		
		//HEAVY SECONDARY
		
		//Double Barreled
		BulletDamage
		{
			Name "Bigger Caliber"
			Attribute "damage bonus HIDDEN"
			Cap 1.5
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Double Barreled"
			}
		}
		BulletSpeed
		{
			Name "Faster Mechanics"
			Attribute "fire rate bonus HIDDEN"
			Cap 0.5
			Increment -0.1
			Cost 275
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Double Barreled"
			}
		}
		BulletPenetration
		{
			Name "Full Metal Gauge"
			Attribute "shot penetrate all players"
			Cap 1
			Increment 1
			Cost 500
			description "Bullets Penetrate Targets"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Double Barreled"
			}
		}
		BulletReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Double Barreled"
			}
		}
		BulletAntiRocket
		{
			Name "Projectile Buster"
			Attribute "attack projectiles"
			Cap 3
			Increment 1
			Cost 325
			description "Bullets Can Destroy Projectiles And Get More Accuracy"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Double Barreled"
			}
		}
		BulletAmmo
		{
			Name "Bigger Pockets"
			Attribute "maxammo secondary increased"
			Cap 2
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Double Barreled"
			}
		}
		BulletClip
		{
			Name "Enchanted Clip"
			Attribute "clip size bonus"
			Cap 2
			Increment 0.5
			Cost 325
			description "+50% Clip Size"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Double Barreled"
			}
		}
		BulletKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 25
			Increment 5
			Cost 250
			description "+5 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Double Barreled"
			}
		}
		
		//SpecializedRifle
		RifleDamage
		{
			Name "Bigger Rounds"
			Attribute "damage bonus HIDDEN"
			Cap 2
			Increment 0.2
			Cost 325
			description "+20% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Specialized Rifle"
			}
		}
		RifleSpeed
		{
			Name "Faster Mechanics"
			Attribute "fire rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 275
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Specialized Rifle"
			}
		}
		RiflePenetration
		{
			Name "Full Metal Jacket"
			Attribute "shot penetrate all players"
			Cap 1
			Increment 1
			Cost 400
			description "Bullets Penetrate Targets"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Specialized Rifle"
			}
		}
		RifleReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Specialized Rifle"
			}
		}
		RifleAmmo
		{
			Name "Bigger Pockets"
			Attribute "maxammo primary increased"
			Cap 3.5
			Increment 0.5
			Cost 250
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Specialized Rifle"
			}
		}
		RifleGiant
		{
			Name "Giant Terminator"
			Attribute "mult dmg vs giants"
			Cap 2.5
			Increment 0.5
			Cost 400
			description "+50% Damage Bonus Vs Giants"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Specialized Rifle"
			}
			DisallowedUpgrade
			{
				Upgrade RifleTank
			}
			DisallowedUpgrade
			{
				Upgrade RifleBuilding
			}
		}
		RifleTank
		{
			Name "Tank Eliminator"
			Attribute "mult dmg vs tanks"
			Cap 2.5
			Increment 0.5
			Cost 400
			description "+50% Damage Bonus Vs Tanks"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Specialized Rifle"
			}
			DisallowedUpgrade
			{
				Upgrade RifleGiant
			}
			DisallowedUpgrade
			{
				Upgrade RifleBuilding
			}
		}
		RifleBuilding
		{
			Name "Building Exterminator"
			Attribute "dmg bonus vs buildings"
			Cap 2.5
			Increment 0.5
			Cost 300
			description "+50% Damage Bonus Vs Buildings"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Specialized Rifle"
			}
			DisallowedUpgrade
			{
				Upgrade RifleGiant
			}
			DisallowedUpgrade
			{
				Upgrade RifleTank
			}
		}
		RifleKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 25
			Increment 5
			Cost 250
			description "+5 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Specialized Rifle"
			}
		}
		
		//AssaultingRifle
		AssDamage
		{
			Name "Bigger Caliber"
			Attribute "damage bonus"
			Cap 2
			Increment 0.2
			Cost 325
			description "+20% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Assaulting Rifle"
			}
		}
		AssSpeed
		{
			Name "Faster Mechanics"
			Attribute "fire rate bonus"
			Cap 0.3
			Increment -0.1
			Cost 275
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Assaulting Rifle"
			}
		}
		AssPenetration
		{
			Name "Full Metal Jacket"
			Attribute "shot penetrate all players"
			Cap 1
			Increment 1
			Cost 400
			description "Bullets Penetrate Targets"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Assaulting Rifle"
			}
		}
		AssReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Assaulting Rifle"
			}
		}
		AssAmmo
		{
			Name "Bigger Pockets"
			Attribute "maxammo secondary increased"
			Cap 6
			Increment 1
			Cost 400
			description "+100% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Assaulting Rifle"
			}
		}
		AssClip
		{
			Name "Enchanted Clip"
			Attribute "clip size bonus"
			Cap 2
			Increment 0.2
			Cost 350
			description "+25% Clip Size"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Assaulting Rifle"
			}
		}
		AssHeadshot
		{
			Name "CS:GO Logics"
			Attribute "can headshot"
			Cap 1
			Increment 1
			Cost 500
			description "Allows Headshots Like In CS:GO!"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Assaulting Rifle"
			}
			DisallowedUpgrade
			{
				Upgrade AssFlame
			}
		}
		AssFlame
		{
			Name "Incendiary Ammo"
			Attribute "Set DamageType Ignite"
			Cap 1
			Increment 1
			Cost 500
			description "Each Shot is a Hot Single in Their Local Area"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Assaulting Rifle"
			}
			DisallowedUpgrade
			{
				Upgrade AssHeadshot
			}
		}
		AssKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 25
			Increment 5
			Cost 250
			description "+5 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Assaulting Rifle"
			}
		}
		
		//FamilyBusiness
		BulletDamage
		{
			Name "Bigger Caliber"
			Attribute "damage bonus"
			Cap 1.5
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
		}
		BulletSpeed
		{
			Name "Faster Mechanics"
			Attribute "fire rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 275
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
		}
		BulletPenetration
		{
			Name "Full Metal Gauge"
			Attribute "shot penetrate all players"
			Cap 1
			Increment 1
			Cost 500
			description "Bullets Penetrate Targets"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
		}
		BulletReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
		}
		BulletAntiRocket
		{
			Name "Projectile Buster"
			Attribute "attack projectiles"
			Cap 3
			Increment 1
			Cost 325
			description "Bullets Can Destroy Projectiles And Get More Accuracy"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
		}
		BulletMore
		{
			Name "Extra Pellets"
			Attribute "bullets per shot bonus"
			Cap 1.5
			Increment 0.1
			Cost 325
			description "+10% More Bullets Per Shot"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
			DisallowedUpgrade
			{
				Upgrade BulletSlug
			}
		}
		BulletSlug
		{
			Name "Slug Shotgun"
			Attribute "bullets per shot bonus"
			Cap 0.1
			Increment -0.9
			Cost 750
			description "Transforms Shotgun Into Super Accurate Rifle With Greatly Increased Damage And Allows Headshots"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
			SecondaryAttributes
			{
			"damage bonus HIDDEN" 7
			"weapon spread bonus" -0.5
			"can headshot" 1
			}
			DisallowedUpgrade
			{
				Upgrade BulletMore
			}
		}
		BulletAmmo
		{
			Name "Bigger Pockets"
			Attribute "maxammo secondary increased"
			Cap 2
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
		}
		BulletClip
		{
			Name "Enchanted Clip"
			Attribute "clip size bonus"
			Cap 2.5
			Increment 0.25
			Cost 325
			description "+25% Clip Size"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
		}
		BulletKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 25
			Increment 5
			Cost 250
			description "+5 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Family Business"
			}
		}
		
		//Foods
		FoodCharge
		{
			Name "Faster Cooking"
			Attribute "effect bar recharge rate increased"
			Cap 1.6
			Increment 0.15
			Cost 250
			description "+15% Food Recharge Rate"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Dalokohs Bar"
				ItemName "The Buffalo Steak Sandvich"
				ItemName "Festive Sandvich"
				ItemName "The Robo-Sandvich"
				ItemName "The Sandvich"
				ItemName "The Second Banana"
			}
		}
		
		//HEAVY MELEE
		
		//Fists
		FistsDamage
		{
			Name "Bigger Biceps"
			Attribute "damage bonus"
			Cap 1.6
			Increment 0.15
			Cost 375
			description "+15% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_fists"
			}
		}
		FistsSpeed
		{
			Name "Faster Punches"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 300
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_fists"
			}
		}
		FistsAmmo
		{
			Name "Bigger Spare"
			Attribute "maxammo secondary increased"
			Cap 3
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_fists"
			}
		}
		FistsKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_fists"
			}
		}
		
		//Boxing
		BoxDamage
		{
			Name "Bigger Biceps"
			Attribute "damage bonus HIDDEN"
			Cap 1.5
			Increment 0.1
			Cost 375
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Killing Gloves of Boxing"
			}
		}
		BoxSpeed
		{
			Name "Faster Punches"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 300
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Killing Gloves of Boxing"
				ItemName "Apoco-Fists"
			}
		}
		BoxChange
		{
			Name "Illegal Boxing"
			Attribute "add cond when active"
			Cap 129
			Increment 88
			Cost 2000
			description "Removes Inability To Change Weapons"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Killing Gloves of Boxing"
			}
		}
		BoxKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Killing Gloves of Boxing"
				ItemName "Apoco-Fists"
			}
		}
		
		//Eviction
		EvictionDamage
		{
			Name "Bigger Biceps"
			Attribute "damage bonus HIDDEN"
			Cap 1.4
			Increment 0.1
			Cost 375
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Eviction Notice"
				ItemName "The Bread Bite"
				ItemName "Apoco-Fists"
			}
		}
		EvictionSpeed
		{
			Name "Faster Punches"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 300
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Eviction Notice"
				ItemName "The Bread Bite"
			}
		}
		EvictionKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Eviction Notice"
				ItemName "The Bread Bite"
			}
		}
		
		//Steel
		SteelDamage
		{
			Name "Bigger Biceps"
			Attribute "damage bonus"
			Cap 1.5
			Increment 0.1
			Cost 375
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Fists of Steel"
			}
		}
		SteelSpeed
		{
			Name "Faster Punches"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 300
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Fists of Steel"
			}
		}
		SteelKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Fists of Steel"
			}
		}
		
		//Bear
		BearDamage
		{
			Name "Bigger Biceps"
			Attribute "damage bonus HIDDEN"
			Cap 1.5
			Increment 0.1
			Cost 375
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Warrior's Spirit"
			}
		}
		BearSpeed
		{
			Name "Faster Punches"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 300
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Warrior's Spirit"
			}
		}
		BearTp
		{
			Name "Animal Instincts"
			Attribute "teleport instead of die"
			Cap 1
			Increment 0.1
			Cost 300
			description "+10% Chance To Teleport To Spawn With 1 Health Instead Of Die"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Warrior's Spirit"
			}
		}
		BearKill
		{
			Name "Soul Absorption"
			Attribute "restore health on kill"
			Cap 0.33
			Increment 0.11
			Cost 150
			description "+11% Health On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Warrior's Spirit"
			}
		}
		
		//Holiday
		HolidayTaunt
		{
			Name "It's Hiiiigh Noon"
			Attribute "taunt attack time mult"
			Cap 0.25
			Increment -0.25
			Cost 2500
			description "+25% Taunt Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Holiday Punch"
			}
			SecondaryAttributes
			{
			"gesture speed increase" 0.5
			}
		}
		
		//Car
		Mechanic
		{
			Name "Unbreakable Car"
			Attribute "add cond when active"
			Cap 5
			Increment 5
			Cost 1000
			description "You Can't Die"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Gloves of Running Urgently"
				ItemName "Festive Gloves of Running Urgently"
			}
		}
		SpikedBumper
		{
			Name "Spiked Bumper"
			Attribute "damage bonus"
			Cap 7.5
			Increment 0.5
			Cost 200
			description "+50% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Gloves of Running Urgently"
				ItemName "Festive Gloves of Running Urgently"
			}
		}
		
		//ENGINEER PDA
		
		//MedievalSentru
		SentryLevel
		{
			Name "Technological Investment"
			Attribute "building max level"
			Cap 2
			Increment 1
			Cost 1000
			description "+1 Level"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Medieval Sentry"
			}
		}
		SentryHp
		{
			Name "Sturdier Materials"
			Attribute "engy building health bonus"
			Cap 6
			Increment 1
			Cost 500
			description "+100% Sentry Max Health"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Medieval Sentry"
			}
		}
		SentryDmg
		{
			Name "Power Generator"
			Attribute "engy sentry damage bonus"
			Cap 1.6
			Increment 0.1
			Cost 300
			description "+10% Sentry Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Medieval Sentry"
			}
		}
		SentrySpeed
		{
			Name "Efficient Machinery"
			Attribute "airblast cost increased"
			Cap 4
			Increment 1
			Cost 400
			description "+25% Sentry Firing Speed"
			SecondaryAttributes
			{
			"engy sentry fire rate increased" -0.5
			}
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Medieval Sentry"
			}
		}
		SentryRange
		{
			Name "Binoculars"
			Attribute "engy sentry radius increased"
			Cap 1.5
			Increment 0.25
			Cost 400
			description "+25% Sentry Vision Range"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Medieval Sentry"
			}
		}
		SentryAmmo
		{
			Name "Storage Expansion"
			Attribute "sticky arm time bonus"
			Cap 17
			Increment 1
			Cost 200
			description "+10% Sentry Primary Ammo"
			SecondaryAttributes
			{
			"mvm sentry ammo" 0.1
			}
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Medieval Sentry"
			}
		}
		
		//LaserSentru
		PewLevel
		{
			Name "Technological Investment"
			Attribute "building max level"
			Cap 2
			Increment 1
			Cost 1000
			description "+1 Level"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cosmic Sentry"
			}
		}
		PewHp
		{
			Name "Sturdier Materials"
			Attribute "engy building health bonus"
			Cap 4
			Increment 1
			Cost 500
			description "+100% Sentry Max Health"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cosmic Sentry"
			}
		}
		PewDmg
		{
			Name "Power Generator"
			Attribute "engy sentry damage bonus"
			Cap 1.6
			Increment 0.1
			Cost 300
			description "+10% Sentry Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cosmic Sentry"
			}
		}
		PewSpeed
		{
			Name "Efficient Machinery"
			Attribute "airblast cost increased"
			Cap 6
			Increment 1
			Cost 400
			description "+25% Sentry Firing Speed"
			SecondaryAttributes
			{
			"engy sentry fire rate increased" -0.25
			}
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cosmic Sentry"
			}
		}
		PewRange
		{
			Name "Binoculars"
			Attribute "engy sentry radius increased"
			Cap 2
			Increment 0.25
			Cost 400
			description "+25% Sentry Vision Range"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cosmic Sentry"
			}
		}
		PewAmmo
		{
			Name "Storage Expansion"
			Attribute "sticky arm time bonus"
			Cap 15
			Increment 1
			Cost 200
			description "+10% Sentry Primary Ammo"
			SecondaryAttributes
			{
			"mvm sentry ammo" 0.1
			}
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Cosmic Sentry"
			}
		}
		
		
		
		//ENGINEER MELEE
		
		//Wrench
		WrenchDamage
		{
			Name "Heavier Wrench"
			Attribute "damage bonus HIDDEN"
			Cap 2
			Increment 0.25
			Cost 375
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_WRENCH"
			}
		}
		WrenchSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 300
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_WRENCH"
			}
		}
		WrenchCritDmg
		{
			Name "Violent Tinkering"
			Attribute "mult crit dmg"
			Cap 1.5
			Increment 0.1
			Cost 350
			description "+10% Crit Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_WRENCH"
			}
		}
		WrenchKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 100
			Increment 20
			Cost 250
			description "+20 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_WRENCH"
			}
		}
		
		//Gunslinger
		SlingerDamage
		{
			Name "Stronger Punches"
			Attribute "damage bonus"
			Cap 1.3
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Gunslinger"
			}
		}
		SlingerSpeed
		{
			Name "OVERCLOCKED"
			Attribute "melee attack rate bonus"
			Cap 0.25
			Increment -0.75
			Cost 3000
			description "+75% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Gunslinger"
			}
			SecondaryAttributes
			{
			"damage bonus HIDDEN" 0.4
			}
		}
		SlingerKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 100
			Increment 20
			Cost 250
			description "+20 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Gunslinger"
			}
		}
		
		//Hospitality
		HopitalDamage
		{
			Name "Sharper Razors"
			Attribute "damage bonus"
			Cap 1.3
			Increment 0.1
			Cost 325
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Southern Hospitality"
			}
		}
		HopitalSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 275
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Southern Hospitality"
			}
		}
		HopitalCleave
		{
			Name "Less Surface Friction"
			Attribute "melee cleave attack"
			Cap 1
			Increment 1
			Cost 500
			description "Weapon Can Cleave"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Southern Hospitality"
			}
			DisallowedUpgrade
			{
				Upgrade HopitalBleedDmg
			}
		}
		HopitalEscape
		{
			Name "Adrenaline Junkie"
			Attribute "move speed as health decreases"
			Cap 1.65
			Increment 0.65
			Cost 375
			description "Faster Move Speed As Heatlh Decreases"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Southern Hospitality"
			}
		}
		HopitalBleedDmg
		{
			Name "Serious Wounds"
			Attribute "mult bleeding dmg"
			Cap 3
			Increment 1
			Cost 425
			description "+100% Bleed Damage"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Southern Hospitality"
			}
			DisallowedUpgrade
			{
				Upgrade HopitalCleave
			}
		}
		HopitalKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 100
			Increment 20
			Cost 250
			description "+20 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Southern Hospitality"
			}
		}
		
		//Eureka
		EurekaDamage
		{
			Name "Stronger Smacks"
			Attribute "damage bonus"
			Cap 1.6
			Increment 0.15
			Cost 275
			description "+15% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Eureka Effect"
			}
		}
		EurekaSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 275
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Eureka Effect"
			}
		}
		EurekaFire
		{
			Name "Hot Metal"
			Attribute "Set DamageType Ignite"
			Cap 1
			Increment 1
			Cost 550
			description "On Hit Sets Enemy On Fire"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Eureka Effect"
			}
		}
		EurekaKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 100
			Increment 20
			Cost 250
			description "+20 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Eureka Effect"
			}
		}
		
		//Jag
		JagDamage
		{
			Name "Stronger Smacks"
			Attribute "damage bonus"
			Cap 1.4
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Jag"
			}
		}
		JagSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 275
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Jag"
			}
		}
		JagMiniCrits
		{
			Name "Quality Tool"
			Attribute "add cond when active"
			Cap 19
			Increment 19
			Cost 1000
			description "Always Minicrits"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Jag"
			}
		}
		JagKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 100
			Increment 20
			Cost 250
			description "+20 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Jag"
			}
		}
		
		//Golden
		GoldenDamage
		{
			Name "Stronger Smacks"
			Attribute "damage bonus"
			Cap 1.6
			Increment 0.15
			Cost 275
			description "+15% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Golden Wrench"
			}
		}
		GoldenSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 275
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Golden Wrench"
			}
		}
		GoldenKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 100
			Increment 20
			Cost 250
			description "+20 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Golden Wrench"
			}
		}
		
		//MEDIC PRIMARY
		
		//Syringe
		StingDamage
		{
			Name "Sharper Syringes"
			Attribute "damage bonus HIDDEN"
			Cap 1.8
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_syringegun_medic"
			}
			DisallowedUpgrade
			{
				Upgrade SyringeGiga
			}
		}
		StingSpeed
		{
			Name "Faster Mechanics"
			Attribute "fire rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 275
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_syringegun_medic"
			}
			DisallowedUpgrade
			{
				Upgrade SyringeGiga
			}
		}
		SyringeReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_syringegun_medic"
			}
		}
		SyringeAmmo
		{
			Name "Bigger Pockets"
			Attribute "maxammo primary increased"
			Cap 2
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_syringegun_medic"
			}
		}
		SyringeClip
		{
			Name "Spacious Clip"
			Attribute "clip size bonus"
			Cap 2
			Increment 0.25
			Cost 325
			description "+25% Clip Size"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_syringegun_medic"
			}
		}
		SyringeGiga
		{
			Name "Mega Syringes"
			Attribute "mult projectile scale"
			Cap 5
			Increment 4
			Cost 1000
			description "Greatly Increases Damage But Greatly Slows Firing Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_syringegun_medic"
			}
			DisallowedUpgrade
			{
				Upgrade StingDamage
			}
			DisallowedUpgrade
			{
				Upgrade StingSpeed
			}
			SecondaryAttributes
			{
			"damage bonus" 2.5
			"fire rate penalty" 4
			}
		}
		SyringeKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 25
			Increment 5
			Cost 250
			description "+5 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_syringegun_medic"
			}
		}
		
		//HorseSomething
		HorseDamage
		{
			Name "Violent Explosions"
			Attribute "damage bonus HIDDEN"
			Cap 1.8
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus But -25% Firing Speed"
			SecondaryAttributes
			{
			"fire rate penalty HIDDEN" 0.25
			}
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Overdose"
			}
			
		}
		HorseRange
		{
			Name "Expanded Alchemy"
			Attribute "explosive bullets"
			Cap 140
			Increment 20
			Cost 275
			description "Blast Radius Increased"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Overdose"
			}
		}
		HorseReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Overdose"
			}
		}
		HorseAmmo
		{
			Name "Bigger Pockets"
			Attribute "maxammo primary increased"
			Cap 2.5
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Overdose"
			}
		}
		HorseClip
		{
			Name "Spacious Clip"
			Attribute "clip size bonus"
			Cap 2
			Increment 0.25
			Cost 325
			description "+25% Clip Size"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Overdose"
			}
		}
		HorseConnect
		{
			Name "Constant Alchemy"
			Attribute "damage all connected"
			Cap 1
			Increment 1
			Cost 550
			description "Damage Chains Throught Medigun Beams"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Overdose"
			}
		}
		HorseKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 25
			Increment 5
			Cost 250
			description "+5 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Overdose"
			}
		}
		
		//Bluetsauger
		BlueDamage
		{
			Name "Sharper Syringes"
			Attribute "damage bonus"
			Cap 1.8
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Blutsauger"
			}
		}
		BlueSpeed
		{
			Name "Faster Mechanics"
			Attribute "fire rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 275
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Blutsauger"
			}
		}
		BlueReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Blutsauger"
			}
		}
		BlueAmmo
		{
			Name "Bigger Pockets"
			Attribute "maxammo primary increased"
			Cap 2.5
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Blutsauger"
			}
		}
		BlueClip
		{
			Name "Spacious Clip"
			Attribute "clip size bonus"
			Cap 2
			Increment 0.25
			Cost 325
			description "+25% Clip Size"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Blutsauger"
			}
		}
		BlueMilk
		{
			Name "Fluid Experiments"
			Attribute "mad milk syringes"
			Cap 1
			Increment 1
			Cost 1200
			description "Fills Syringes With Mad Milk"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Blutsauger"
			}
		}
		BlueDying
		{
			Name "Switch OFF"
			Attribute "active health regen"
			Cap 3
			Increment 3
			Cost 1000
			description "Removes Health Degen"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Blutsauger"
			}
		}
		BlueKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 25
			Increment 5
			Cost 250
			description "+5 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Blutsauger"
			}
		}
		
		//Crossbow
		CrossDamage
		{
			Name "Sharper Bolts"
			Attribute "damage bonus"
			Cap 1.5
			Increment 0.1
			Cost 275
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Crusader's Crossbow"
			}
		}
		CrossSpeed
		{
			Name "Faster Mechanics"
			Attribute "fire rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 275
			description "+10% Firing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Crusader's Crossbow"
			}
		}
		CrossbowPenetration
		{
			Name "Diamond Tipped Bolts"
			Attribute "shot penetrate all players"
			Cap 1
			Increment 1
			Cost 500
			description "Bolts Penetrate Targets"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Crusader's Crossbow"
			}
		}
		CrossReload
		{
			Name "Faster Refelxes"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Reload Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Crusader's Crossbow"
			}
		}
		CrossAmmo
		{
			Name "Bigger Pockets"
			Attribute "maxammo primary increased"
			Cap 2
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Crusader's Crossbow"
			}
		}
		CrossClip
		{
			Name "Spacious Clip"
			Attribute "clip size bonus"
			Cap 5
			Increment 1
			Cost 325
			description "+1 Bolt In Clip"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Crusader's Crossbow"
			}
		}
		CrossMilk
		{
			Name "Fluid Experiments"
			Attribute "fires milk bolt"
			Cap 1
			Increment 1
			Cost 1200
			description "Adds Slower Secondary Attack With Mad Milk Bolt"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Crusader's Crossbow"
			}
		}
		CrossKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 25
			Increment 5
			Cost 250
			description "+5 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Crusader's Crossbow"
			}
		}
		
		//MEDIC SECONDARY
		
		//Quickfix
		QuickfixShield
		{
			Name "Protective Energy"
			Attribute "generate rage on heal"
			Cap 2
			Increment 1
			Cost 400
			description "Shield Ability And Width Of Shield"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Quick-Fix"
			}
		}
		
		//MEDIC MELEE
		
		//Bonesaw
		BonesawDamage
		{
			Name "Sharper Saw"
			Attribute "damage bonus"
			Cap 1.6
			Increment 0.15
			Cost 225
			description "+15% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_BONESAW"
			}
		}
		BoneSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 250
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_BONESAW"
			}
		}
		BoneSave
		{
			Name "Cheating Death"
			Attribute "teleport instead of die"
			Cap 0.5
			Increment 0.05
			Cost 300
			description "+5% Chance To Teleport To Spawn With 1 Health Instead Of Die"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_BONESAW"
			}
		}
		BoneKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 250
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_BONESAW"
			}
		}
		
		//Ubersaw
		SawDamage
		{
			Name "Sharper Saw"
			Attribute "damage bonus HIDDEN"
			Cap 2
			Increment 0.1
			Cost 225
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ubersaw"
			}
		}
		SawFlame
		{
			Name "Burning Venom"
			Attribute "Set DamageType Ignite"
			Cap 1
			Increment 1
			Cost 550
			description "On Hit Sets Enemy On Fire"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ubersaw"
			}
		}
		SawKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 250
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Ubersaw"
			}
		}
		
		//VitaSaw
		
		VitaDamage
		{
			Name "Deeper Stings"
			Attribute "damage bonus HIDDEN"
			Cap 1.3
			Increment 0.15
			Cost 225
			description "+15% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Vita-Saw"
			}
		}
		VitaSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.15
			Cost 250
			description "+15% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Vita-Saw"
			}
		}
		VitaBoost
		{
			Name "Adrenalie Shot"
			Attribute "speed buff ally"
			Cap 1
			Increment 1
			Cost 425
			description "Injects In Teammate And You Small Speed Boost"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Vita-Saw"
			}
		}
		VitaKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 250
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Vita-Saw"
			}
		}
		
		//Amputator
		
		AmpDamage
		{
			Name "Deeper Stabs"
			Attribute "damage bonus"
			Cap 1.5
			Increment 0.1
			Cost 225
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Amputator"
			}
		}
		AmpSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 250
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Amputator"
			}
		}
		AmpCleave
		{
			Name "Less Surface Friction"
			Attribute "melee cleave attack"
			Cap 1
			Increment 1
			Cost 500
			description "Weapon Can Cleave"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Amputator"
			}
		}
		AmpUber
		{
			Name "Redboot's Blessing"
			Attribute "add cond on kill"
			Cap 5
			Increment 5
			Cost 755
			description "+3 Seconds Of Ãœbercharge On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Amputator"
			}
			SecondaryAttributes
			{
			"add cond on kill duration" 3
			}
		}
		AmpKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 250
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Amputator"
			}
		}
		
		//SolemnVow
		VowUber
		{
			Name "Holy Promise"
			Attribute "add cond when active"
			Cap 1394
			Increment 1280
			Cost 3000
			description "You Can't Die"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Solemn Vow"
			}
		}
		
		//SNIPER PRIMARY
		
		//Bow
		BowDamage
		{
			Name "Sharper Tips"
			Attribute "damage bonus"
			Cap 2
			Increment 0.25
			Cost 425
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Huntsman"
			}
			DisallowedUpgrade
			{
				Upgrade BowAntiTank
			}
		}
		BowSpeed
		{
			Name "Faster Draw"
			Attribute "faster reload rate"
			Cap 0.4
			Increment -0.2
			Cost 300
			description "+20% Faster Draw Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Huntsman"
			}
		}
		BowBleed
		{
			Name "Expanded Arrow Tips"
			Attribute "bleeding duration"
			Cap 15
			Increment 5
			Cost 250
			description "+5 Seconds Of Bleeding"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Huntsman"
			}
		}
		BowAmmo
		{
			Name "Spare Arrows"
			Attribute "maxammo primary increased"
			Cap 2.5
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Huntsman"
			}
		}
		BowPenetration
		{
			Name "Diamond Tipped Arrows"
			Attribute "projectile penetration"
			Cap 1
			Increment 1
			Cost 500
			description "Arrows Penetrate Targets"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Huntsman"
			}
		}
		BowAntiTank
		{
			Name "Tank Piercing Rounds"
			Attribute "override projectile type"
			Cap 18
			Increment 18
			Cost 1250
			description "Weapon Specialized Against Tanks, Not Against Troops"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Huntsman"
			}
			SecondaryAttributes
			{
			"damage penalty" -0.7
			"mult dmg vs tanks" 5
			"no damage falloff" 1
			}
			DisallowedUpgrade
			{
				Upgrade BowDamage
			}
			DisallowedUpgrade
			{
				Upgrade FlameArrows
			}
		}
		FlameArrows
		{
			Name "Glorious Flame"
			Attribute "override projectile type"
			Cap 6
			Increment 6
			Cost 500
			description "Each Shot Sets Enemies On Fire"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Huntsman"
			}
			DisallowedUpgrade
			{
				Upgrade BowAntiTank
			}
		}
		
		//Compound
		CompoundDamage
		{
			Name "Sharper Tips"
			Attribute "damage bonus"
			Cap 3.5
			Increment 0.25
			Cost 425
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fortified Compound"
			}
		}
		CompoundBleed
		{
			Name "Expanded Arrow Tips"
			Attribute "bleeding duration"
			Cap 15
			Increment 5
			Cost 250
			description "+5 Seconds Of Bleeding"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fortified Compound"
			}
		}
		CompoundAmmo
		{
			Name "Spare Arrows"
			Attribute "maxammo primary increased"
			Cap 2.5
			Increment 0.5
			Cost 325
			description "+50% Ammo"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fortified Compound"
			}
		}
		CompoundPenetration
		{
			Name "Diamond Tipped Arrows"
			Attribute "projectile penetration"
			Cap 1
			Increment 1
			Cost 500
			description "Arrows Penetrate Targets"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fortified Compound"
			}
		}
		CompoundMaster
		{
			Name "Robin Hood-ery"
			Attribute "arrow mastery"
			Cap 3
			Increment 1
			Cost 750
			description "+2 Arrows On Sides Per Shot"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fortified Compound"
			}
		}
		CompoundDeflect
		{
			Name "Enchanted Arrows"
			Attribute "projectile no deflect"
			Cap 1
			Increment 1
			Cost 500
			description "Projectiles Cannot Be Deflected By Any Means"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fortified Compound"
			}
		}
		CompoundJump
		{
			Name "Air Support"
			Attribute "parachute attribute"
			Cap 1
			Increment 1
			Cost 350
			description "Parachute Ability With Increased Jump Height"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Fortified Compound"
			}
			SecondaryAttributes
			{
			"increased jump height" 1
			}
		}
		
		//SNIPER SECONDARY
		
		//Jarate
		JarateSlow
		{
			Name "Sticky Piss"
			Attribute "applies snare effect"
			Cap 2
			Increment 1
			Cost 250
			description "-35% Speed On Target"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Jarate"
				ItemName "Festive Jarate"
			}
		}
		JarateCharge
		{
			Name "Faster Pissing"
			Attribute "effect bar recharge rate increased"
			Cap 0.3
			Increment -0.15
			Cost 250
			description "+15% Piss Recharge Rate"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Jarate"
				ItemName "Festive Jarate"
			}
		}
		JarateAmmo
		{
			Name "More Jars"
			Attribute "maxammo grenades1 increased"
			Cap 3
			Increment 1
			Cost 300
			description "+1 Jar"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Jarate"
				ItemName "Festive Jarate"
			}
		}
		
		//Razorback
		RazorCharge
		{
			Name "Shield Rebuilding"
			Attribute "effect bar recharge rate increased"
			Cap 0.3
			Increment -0.15
			Cost 200
			description "+15% Shield Recharge Rate"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Razorback"
			}
		}
		RazorClutch
		{
			Name "Medieval Nanomachines...   ...Son"
			Attribute "uber on damage taken"
			Cap 0.3
			Increment 0.05
			Cost 175
			description "+5% Chance To Get Ubered For 3 Seconds On Damage Taken"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Razorback"
			}
		}
		
		//DarwinShield
		DarwinRespawn
		{
			Name "Quick Comeback"
			Attribute "min respawn time"
			Cap 2
			Increment 2
			Cost 525
			description "Reduces Respawn Time To 2 Seconds"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Darwin's Danger Shield"
			}
		}
		
		//CozyCamper
		CozySlow
		{
			Name "Endurence Training"
			Attribute "mult stun resistance"
			Cap 0
			Increment -1
			Cost 675
			description "Slowness Imunnity"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Cozy Camper"
			}
		}
		
		//SNIPER MELEE
		
		//Gladius
		GladiusDamage
		{
			Name "Iron Gladius"
			Attribute "damage bonus"
			Cap 2
			Increment 1
			Cost 850
			description "+100% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Shahanshah"
			}
		}
		GladiusSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.2
			Cost 350
			description "+20% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Shahanshah"
			}
		}
		GladiusHP
		{
			Name "Harder Spartan"
			Attribute "max health additive bonus"
			Cap 150
			Increment 25
			Cost 225
			description "+25 Max Health"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Shahanshah"
			}
		}
		GladiusChange
		{
			Name "Multi Tasking"
			Attribute "add cond when active"
			Cap 129
			Increment 88
			Cost 2000
			description "Removes Inability To Change Weapons"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Shahanshah"
			}
		}
		GladiusKill
		{
			Name "Soul Absorption"
			Attribute "restore health on kill"
			Cap 0.33
			Increment 0.11
			Cost 150
			description "+11% Health On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Shahanshah"
			}
		}
		
		//Bushwacka
		BushDamage
		{
			Name "Sharper Blade"
			Attribute "damage bonus"
			Cap 1.6
			Increment 0.15
			Cost 225
			description "+15% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Bushwacka"
			}
		}
		BushSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 250
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Bushwacka"
			}
		}
		BushMinicrit
		{
			Name "Death Chain"
			Attribute "add cond on kill"
			Cap 19
			Increment 19
			Cost 755
			description "+3 Seconds Of Minicrits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Bushwacka"
			}
			SecondaryAttributes
			{
			"add cond on kill duration" 3
			}
		}
		BushKill
		{
			Name "Soul Absorption"
			Attribute "restore health on kill"
			Cap 0.33
			Increment 0.11
			Cost 150
			description "+11% Health On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Bushwacka"
			}
		}
		
		//Shiv
		ShivDamage
		{
			Name "Sharper Blade"
			Attribute "damage bonus"
			Cap 1.8
			Increment 0.1
			Cost 165
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Tribalman's Shiv"
			}
		}
		ShivSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.7
			Increment -0.1
			Cost 250
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Tribalman's Shiv"
			}
		}
		ShivBleed
		{
			Name "Skin Cutting"
			Attribute "bleeding duration"
			Cap 15
			Increment 3
			Cost 255
			description "+3 Seconds Of Bleeding"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Tribalman's Shiv"
			}
		}
		ShivBleedDmg
		{
			Name "Serious Wounds"
			Attribute "mult bleeding dmg"
			Cap 3
			Increment 1
			Cost 425
			description "+100% Bleed Damage"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Tribalman's Shiv"
			}
		}
		ShivCleave
		{
			Name "Less Surface Friction"
			Attribute "melee cleave attack"
			Cap 1
			Increment 1
			Cost 500
			description "Weapon Can Cleave"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Tribalman's Shiv"
			}
		}
		ShivKill
		{
			Name "Soul Absorption"
			Attribute "restore health on kill"
			Cap 0.33
			Increment 0.11
			Cost 150
			description "+11% Health On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Tribalman's Shiv"
			}
		}
		
		//Kukri
		KukriDamage
		{
			Name "Sharper Blade"
			Attribute "damage bonus"
			Cap 1.6
			Increment 0.1
			Cost 165
			description "+10% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_club"
			}
		}
		KukriSpeed
		{
			Name "Faster Swinging"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 250
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_club"
			}
		}
		KukriAssasin
		{
			Name "Assasin Instincts"
			Attribute "add cond when active"
			Cap 67
			Increment 67
			Cost 2150
			description "Immunity To Bullet Damage While Active"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_club"
			}
		}
		KukriKill
		{
			Name "Soul Absorption"
			Attribute "restore health on kill"
			Cap 0.33
			Increment 0.11
			Cost 150
			description "+11% Health On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "tf_weapon_club"
			}
		}
		
		//SPY SECONDARIES
		
		//Sappers
		SapperSap
		{
			Name "Better Wi-Fi"
			Attribute "robo sapper"
			Cap 3
			Increment 1
			Cost 400
			description "Increased Sapper Range On Robots"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_BUILDER_SPY"
				ItemName "The Red-Tape Recorder"
				ItemName "The Ap-Sap"
				ItemName "The Snack Attack"
			}
		}
		
		//SPY MELEE
		
		//Earner
		EarnerTank
		{
			Name "Sturdy Knife"
			Attribute "mult dmg vs tanks"
			Cap 5
			Increment 0.25
			Cost 400
			description "+25% Bonus Damage Vs Tanks"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Big Earner"
			}
		}
		EarnerSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 325
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Big Earner"
			}
		}
		
		//Spycicle
		IceGiant
		{
			Name "Core Flooding"
			Attribute "armor piercing"
			Cap 100
			Increment 20
			Cost 400
			description "+20% Damage Bonus Vs Giants"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Spy-cicle"
			}
		}
		IceBuildings
		{
			Name "Circuit Flooding"
			Attribute "dmg bonus vs buildings"
			Cap 3
			Increment 0.2
			Cost 325
			description "+20% Damage Bonus Vs Buildings"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Spy-cicle"
			}
		}
		IceSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 250
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Spy-cicle"
			}
		}
		IceFreeze
		{
			Name "Longer Freeze"
			Attribute "add cond on hit duration"
			Cap 5
			Increment 1
			Cost 400
			description "+1 Second Of Freeze"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Spy-cicle"
			}
		}
		IceKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "The Spy-cicle"
			}
		}
		
		//Kunai
		KunaiGiant
		{
			Name "Armor Piercing"
			Attribute "armor piercing"
			Cap 100
			Increment 20
			Cost 400
			description "+20% Damage Bonus Vs Giants"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Conniver's Kunai"
			}
		}
		KunaiSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 250
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Conniver's Kunai"
			}
		}
		KunaiCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 6
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Conniver's Kunai"
			}
		}
		KunaiUber
		{
			Name "Assasin's Blessing"
			Attribute "add cond on kill duration"
			Cap 6
			Increment 1
			Cost 400
			description "+1 Second Of Uber"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Conniver's Kunai"
			}
		}
		KunaiFast
		{
			Name "Naruto Run"
			Attribute "speed_boost_on_hit"
			Cap 1
			Increment 1
			Cost 550
			description "Speed Boost On Hit"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Conniver's Kunai"
			}
		}
		KunaiKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Conniver's Kunai"
			}
		}
		
		//RealKnife
		KnifeDamage
		{
			Name "Sharper Blade"
			Attribute "damage bonus"
			Cap 2
			Increment 0.25
			Cost 235
			description "+25% Damage Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Real Knife"
			}
		}
		KnifeSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.6
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Real Knife"
			}
		}
		KnifeCrit
		{
			Name "Bloodlust"
			Attribute "critboost on kill"
			Cap 4
			Increment 2
			Cost 375
			description "+2 Seconds Crits On Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Real Knife"
			}
		}
		KnifeGiant
		{
			Name "Giant Hex"
			Attribute "is miniboss"
			Cap 1
			Increment 1
			Cost 2500
			description "Gain Giant Buffs But Lose Being Solid To Enemies"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Real Knife"
			}
			SecondaryAttributes
			{
				"voice pitch scale" -0.15
				"max health additive bonus" 1375
				"not solid to players" 1
				"model scale" 0.5
				"health from packs increased" -0.5
			}
		}
		KnifeKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Real Knife"
			}
		}
		
		//Reward
		RewardSpeed
		{
			Name "Faster Hands"
			Attribute "melee attack rate bonus"
			Cap 0.5
			Increment -0.1
			Cost 200
			description "+10% Swing Speed Bonus"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Your Eternal Reward"
				ItemName "The Black Rose"
				ItemName "The Sharp Dresser"
			}
		}
		RewardKill
		{
			Name "Soul Absorption"
			Attribute "heal on kill"
			Cap 50
			Increment 10
			Cost 150
			description "+10 Health on Kill"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "Your Eternal Reward"
				ItemName "The Black Rose"
				ItemName "The Sharp Dresser"
			}
		}
		
		//Invisibility
		ClockRegen
		{
			Name "Quicker Cover"
			Attribute "mult cloak meter regen rate"
			Cap 1.4
			Increment 0.1
			Cost 150
			description "+10% Invisibility Regen Speed"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_INVIS"
			}
		}
		ClockUse
		{
			Name "Longer Cover"
			Attribute "cloak consume rate decreased"
			Cap 0.6
			Increment -0.1
			Cost 150
			description "+10% Invisibility Duration"
			AllowedWeapons // Restricts upgrade to specified weapons
			{
				ItemName "TF_WEAPON_INVIS"
			}
		}
		
	}
	
	
	Wave
	{
		CustomMaxWaveNumber 5
		InitWaveOutput
		{
			Target wave_initB_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		Explanation  
		{
			Line "{ff0000}Narrator: {ffff00}Hello! I'm the narrator of this story."
			Line "{ffff00}Since these are medieval ages, please don not worry"
			Line "{ffff00}about your missing gun and have a look around your castle!"
			Line "{ffff00}If you will need any information regarding this mission,"
			Line "{ffff00}I recommend checking out the link below. It will help a lot!"
			Line "{00ffff}https://docs.google.com/document/d/1Ed6QokCRxiOj1kUoLmu7P-QErEu_drA1/edit#"
			Line "{ff0000}Narrotor: {ffff00}Anyway, lets begin our story..."
			Line "{ffff00}Everything was calm in the Red Castle. Until a townsfolk"
			Line "{ffff00}noticed few rocks flying near their house and monkey like"
			Line "{ffff00}sounds comming from far away..."
		}
		
		SpawnTemplate  
		{
			Name "TankFire"
			Origin "5 5 5"
		}

		WaveSpawn
		{
			Name "Cavemens SubWave1"
			TotalCount 	30
			MaxActive	12
			SpawnCount 	6
			TotalCurrency 	0
			WaitBetweenSpawns	10
			WaitBeforeStarting 21
			Where spawnbot
			
			TFBot
				{
					ClassIcon	clubman
					Health	315
					Name	"Strong Caveman"
					Scale   1.25
					Class	Soldier
					StripItemSlot 1  
					StripItemSlot 2  
					StripItem "tf_weapon_rocketlauncher"  
					StripItem "TF_WEAPON_SHOTGUN_SOLDIER"  
					Attributes	"AlwaysFireWeapon"
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item	"The Sandman"
					Item 	"The Tin Pot"
					Item 	"The All-Father"
					ItemColor   //Set item color
					{
						ItemName	"The All-Father"
						Red 165
						Green 117
						Blue 69
					}
					ItemAttributes
					{
						ItemName	"The Sandman"
						"maxammo grenades1 increased" 0
						"damage bonus" 1.35
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Cavemens SubWave2"
			TotalCount 	20
			MaxActive	10
			SpawnCount 	5
			TotalCurrency 	0
			WaitBetweenSpawns	10
			WaitForAllDead "Cavemens SubWave1"
			Where spawnbot
			
			TFBot
				{
					ClassIcon	rockman
					Health	165
					Name	"Rock Thrower"
					Scale   1
					Class	Soldier
					StripItemSlot 1  
					StripItemSlot 2  
					StripItem "tf_weapon_rocketlauncher"  
					StripItem "TF_WEAPON_SHOTGUN_SOLDIER"  
					WeaponRestrictions MeleeOnly
					ExtAttr AlwaysFireWeaponAlt 
					UseHumanModel 1
					Skill	Expert
					Item	"The Sandman"
					Item 	"The Tin Pot"
					Item 	"The All-Father"
					ItemColor   //Set item color
					{
						ItemName	"The All-Father"
						Red 165
						Green 117
						Blue 69
					}
					ItemAttributes
					{
						ItemName	"The Sandman"
						"maxammo grenades1 increased" 9999999
						"melee attack rate bonus" 3
						"damage bonus" 1.35
						"custom item model" "models/empty.mdl"
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Cavemens SubWave3"
			TotalCount 	20
			MaxActive	12
			SpawnCount 	7
			TotalCurrency 	0
			WaitBetweenSpawns	10
			WaitForAllDead "Cavemens SubWave2"
			Where spawnbot
			
			TFBot
				{
					ClassIcon	clubman
					Health	315
					Name	"Strong Caveman"
					Scale   1.25
					Class	Soldier
					StripItemSlot 1  
					StripItemSlot 2  
					StripItem "tf_weapon_rocketlauncher"  
					StripItem "TF_WEAPON_SHOTGUN_SOLDIER"  
					Attributes	"AlwaysFireWeapon"
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item	"The Sandman"
					Item 	"The Tin Pot"
					Item 	"The All-Father"
					ItemColor   //Set item color
					{
						ItemName	"The All-Father"
						Red 165
						Green 117
						Blue 69
					}
					ItemAttributes
					{
						ItemName	"The Sandman"
						"maxammo grenades1 increased" 0
						"damage bonus" 1.35
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Cavemens SubWave3"
			TotalCount 	10
			MaxActive	10
			SpawnCount 	4
			TotalCurrency 	0
			WaitBetweenSpawns	10
			WaitForAllDead "Cavemens SubWave2"
			Where spawnbot
			
			TFBot
				{
					ClassIcon	rockman
					Health	165
					Name	"Rock Thrower"
					Scale   1
					Class	Soldier
					StripItemSlot 1  
					StripItemSlot 2  
					StripItem "tf_weapon_rocketlauncher"  
					StripItem "TF_WEAPON_SHOTGUN_SOLDIER"  
					WeaponRestrictions MeleeOnly
					ExtAttr AlwaysFireWeaponAlt 
					UseHumanModel 1
					Skill	Expert
					Item	"The Sandman"
					Item 	"The Tin Pot"
					Item 	"The All-Father"
					ItemColor   //Set item color
					{
						ItemName	"The All-Father"
						Red 165
						Green 117
						Blue 69
					}
					ItemAttributes
					{
						ItemName	"The Sandman"
						"maxammo grenades1 increased" 9999999
						"melee attack rate bonus" 3
						"damage bonus" 1.35
						"custom item model" "models/empty.mdl"
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Cavemens SubWave3"
			TotalCount 	15
			MaxActive	5
			SpawnCount 	5
			TotalCurrency 	0
			WaitBetweenSpawns	10
			WaitForAllDead "Cavemens SubWave2"
			Where spawnbot
			
			TFBot
				{
					ClassIcon	knifeman
					Health	225
					Name	"Knifeman"
					Scale   1
					Class	Soldier
					StripItemSlot 1  
					StripItemSlot 2  
					StripItem "tf_weapon_rocketlauncher"  
					StripItem "TF_WEAPON_SHOTGUN_SOLDIER"  
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item	"The Big Earner"
					Item 	"The Tin Pot"
					Item 	"The All-Father"
					ItemColor   //Set item color
					{
						ItemName	"The All-Father"
						Red 165
						Green 117
						Blue 69
					}
					ItemAttributes
					{
						ItemName	"The Big Earner"
						"damage bonus" 1.5
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Cavemens SubWave4"
			TotalCount 	3
			MaxActive	3
			SpawnCount 	3
			TotalCurrency 	0
			WaitBetweenSpawns	0
			WaitForAllDead "Cavemens SubWave3"
			WaitBeforeStarting 10
			Where spawnbot
			
			TFBot
				{
					ClassIcon	giantclubman
					Health	3015
					Name	"Giant Caveman"
					Scale   1.6
					Class	Soldier
					StripItemSlot 1  
					StripItemSlot 2  
					StripItem "tf_weapon_rocketlauncher"  
					StripItem "TF_WEAPON_SHOTGUN_SOLDIER"  
					Attributes	"AlwaysFireWeapon"
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Tag	"bot_giant"
					Item	"The Sandman"
					Item 	"The Tin Pot"
					Item 	"The All-Father"
					ItemColor   //Set item color
					{
						ItemName	"The All-Father"
						Red 165
						Green 117
						Blue 69
					}
					CharacterAttributes
					{
						"override footstep sound set"	3
						"damage force reduction"	0.4
						"move speed bonus"	0.75
					}
					ItemAttributes
					{
						ItemName	"The Sandman"
						"maxammo grenades1 increased" 0
						"damage bonus" 1.5
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Cavemens SubWave4"
			TotalCount 	1
			MaxActive	1
			SpawnCount 	1
			TotalCurrency 	0
			WaitBetweenSpawns	0
			WaitForAllDead "Cavemens SubWave3"
			WaitBeforeStarting 50
			Where spawnbot
			
			TFBot
				{
					ClassIcon	giantrockman
					Health	1515
					Name	"Giant Rock Thrower"
					Scale   1.6
					Class	Soldier
					StripItemSlot 1  
					StripItemSlot 2  
					StripItem "tf_weapon_rocketlauncher"  
					StripItem "TF_WEAPON_SHOTGUN_SOLDIER"  
					WeaponRestrictions MeleeOnly
					ExtAttr AlwaysFireWeaponAlt 
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Tag	"bot_giant"
					Item	"The Sandman"
					Item 	"The Tin Pot"
					Item 	"The All-Father"
					ItemColor   //Set item color
					{
						ItemName	"The All-Father"
						Red 165
						Green 117
						Blue 69
					}
					CharacterAttributes
					{
						"override footstep sound set"	3
						"damage force reduction"	0.4
						"move speed bonus"	0.75
					}
					ItemAttributes
					{
						ItemName	"The Sandman"
						"maxammo grenades1 increased" 9999999
						"melee attack rate bonus" 2.5
						"damage bonus" 2.5
						"mult projectile scale" 2
						"custom item model" "models/empty.mdl"
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Cavemens SubWave4"
			TotalCount 	2
			MaxActive	2
			SpawnCount 	2
			TotalCurrency 	0
			WaitBetweenSpawns	0
			WaitForAllDead "Cavemens SubWave3"
			WaitBeforeStarting 50
			Where spawnbot
			
			TFBot
				{
					ClassIcon	giantknifeman
					Health	2025
					Name	"Giant Knifeman"
					Scale   1.6
					Class	Soldier
					StripItemSlot 1  
					StripItemSlot 2  
					StripItem "tf_weapon_rocketlauncher"  
					StripItem "TF_WEAPON_SHOTGUN_SOLDIER"  
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Tag	"bot_giant"
					Item	"The Big Earner"
					Item 	"The Tin Pot"
					Item 	"The All-Father"
					ItemColor   //Set item color
					{
						ItemName	"The All-Father"
						Red 165
						Green 117
						Blue 69
					}
					CharacterAttributes
					{
						"override footstep sound set"	3
						"damage force reduction"	0.4
						"move speed bonus"	0.75
					}
					ItemAttributes
					{
						ItemName	"The Big Earner"
						"damage bonus" 1.75
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Villager"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			TotalCurrency 0
			WaitBeforeStarting 3
			Where spawnbot_exactfront
			FirstSpawnWarningSound sniporhelp.mp3
			DoneWarningSound vo\Sniper_paincrticialdeath02.mp3
			Support Limited
			
			TFBot
			{
				ClassIcon	red2_lite
				Health	500
				Name	"Villager"
				Scale   1
				Class	Sniper
				StripItemSlot 1  
				StripItemSlot 2  
				WeaponRestrictions MeleeOnly
				Skill	Hard
				UseHumanModel 1
				Action	Mobber
				DropWeapon 1
				UseHumanModel 1
				AddCond   { Name TF_COND_REPROGRAMMED } 
				Item "EOTL_hiphunter_hat"
				Item "The Ham Shank"
				CharacterAttributes
					{
						"heal on kill" 50
					}
				ItemAttributes
				{
					ItemName	"The Ham Shank"
					"damage bonus" 1.75
					"fire rate bonus" 0.8
					"stay after regenerate" 1
				}
				Message
				{
					Name "{ff8000}Villager: {994c00}Heeelp! There's a group of wierd men incomming!"
					Delay 1
					Repeats 1
				}
				Message
				{
					Name "{994c00}I have come from Wedred, a neighbouring town not too far away... I'm here to warn the people of this castle."
					Delay 5
					Repeats 1
				}
				Message
				{
					Name "{994c00}My town got caught up by a surprise, and now everyone I knew got slaughtered!"
					Delay 10
					Repeats 1
				}
				Message
				{
					Name "{994c00}All houses got demolished, food stolen, animals smashed... and I got nothing left..."
					Delay 15
					Repeats 1
				}
				Message
				{
					Name "{994c00}I'll do my best to help you in this battle! I shall avenge my town!"
					Delay 20
					Repeats 1
				}
				Message
				{
					Name "{994c00}Get ready people! I hear them incoming!"
					Delay 25
					Repeats 1
				}
			}
		}
		
		WaveSpawn
		{
			Name "Villager2"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			TotalCurrency 0
			WaitBeforeStarting 3
			Where spawnbot_villagerdoor3
			DoneWarningSound vo\Sniper_paincrticialdeath03.mp3
			Support Limited
			HideIcon 1  
			
			TFBot
			{
				ClassIcon	smash_villager
				Health	250
				Name	"Hunter Villager"
				Scale   1
				Class	Sniper
				Skill	Expert
				Action	Sniper
				UseHumanModel 1
				AddCond   { Name TF_COND_REPROGRAMMED } 
				Item "Saxton Hat"
				Item "The Dictator"
				Item "The Ham Shank"
				Item "The Huntsman"
				Item "The Cozy Camper"
				InterruptAction
				{
					Target "1487 -426 268"
					Delay 0
					Cooldown 4
					Duration 99999999
					Repeats 0
					Distance 50
				}
			}
		}
		
		WaveSpawn
		{
			Name "Villager3"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			TotalCurrency 0
			WaitBeforeStarting 3
			Where spawnbot_villagerdoor4
			DoneWarningSound vo\Soldier_paincrticialdeath02.mp3
			Support Limited
			HideIcon 1  
			
			TFBot
			{
				ClassIcon	smash_villager
				Health	750
				Name	"Villager"
				Scale   1
				Class	Soldier
				StripItemSlot 1  
				StripItemSlot 2  
				WeaponRestrictions MeleeOnly
				Skill	Hard
				Action	Mobber
				UseHumanModel 1
				AddCond   { Name TF_COND_REPROGRAMMED } 
				Item "Tough Stuff Muffs"
				Item "Frying Pan"
				ItemAttributes
				{
					ItemName	"Frying Pan"
					"damage bonus" 1.75
					"fire rate bonus" 0.8
				}
			}
		}
		
		WaveSpawn
		{
			Name "Villager4"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			TotalCurrency 0
			WaitBeforeStarting 3
			Where spawnbot_villagerdoor2
			DoneWarningSound vo\Scout_paincrticialdeath02.mp3
			Support Limited
			HideIcon 1  
			
			TFBot
			{
				ClassIcon	smash_villager
				Health	350
				Name	"Butcher Villger"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItem "TF_WEAPON_SCATTERGUN"  
				Skill	Hard
				Action	Mobber
				UseHumanModel 1
				AddCond   { Name TF_COND_REPROGRAMMED } 
				Item "EOTL_FURCAP"
				Item "Prinny Machete"
				Item "The Flying Guillotine"
				ItemAttributes
				{
					ItemName	"Prinny Machete"
					"damage bonus" 2.5
					"fire rate bonus" 0.7
				}
			}
		}
		
		WaveSpawn
		{
			Name "Villager5"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			TotalCurrency 0
			WaitBeforeStarting 3
			Where spawnbot_villagerdoor1
			DoneWarningSound vo\Demoman_paincrticialdeath01.mp3
			Support Limited
			HideIcon 1  
			
			TFBot
			{
				ClassIcon	smash_villager
				Health	750
				Name	"Lumberjack Villager"
				Scale   1
				Class	Demoman
				StripItemSlot 1  
				StripItemSlot 2  
				WeaponRestrictions MeleeOnly
				Skill	Hard
				Action	Mobber
				UseHumanModel 1
				AddCond   { Name TF_COND_REPROGRAMMED } 
				Item "The Bearded Bombardier"
				Item "Tam O'Shanter"
				Item "TF_WEAPON_FIREAXE"
				ItemAttributes
				{
					ItemName	"TF_WEAPON_FIREAXE"
					"damage bonus" 1.5
					"fire rate bonus" 0.75
				}
			}
		}

	}
	
	Wave
	{
		CustomMaxWaveNumber 5
		InitWaveOutput
		{
			Target wave_initB_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		Explanation  
		{
			Line "{ff0000}Narrator: {ffff00}Here's rulebook just in case if you need."
			Line "{00ffff}https://docs.google.com/document/d/1Ed6QokCRxiOj1kUoLmu7P-QErEu_drA1/edit#"
			Line "{ff0000}Narrator: {ffff00}So the story continues with victory of red!"
			Line "{ffff00}Poor villagers now dead or hiding in their houses in fear,"
			Line "{ffff00}await the onslaught to end, but that was just the beggining of"
			Line "{ffff00}the bloody adventure that awaits the red team!"
			Line "{ffff00}The only thing our heros could hear, are wooden creaks and"
			Line "{ffff00}marching in the distance ahead..."
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave1"
			TotalCount 	40
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	25
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
				{
					ClassIcon	demoknight_persian_nys
					Health	175
					Name	"Agressive Spartan"
					Scale   1
					Class	Demoman
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item	"The Tartan Spartan"
					Item	"The Steel Sixpack"
					Item	"The Persian Persuader"
					Item	"The Splendid Screen"
					Item	"Ali Baba's Wee Booties"
				}
			
		}
		
		WaveSpawn
		{
			Name "RedIcon"
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitForAllDead "Spartan SubWave1"
			WaitBeforeStarting	0
			WaitBetweenSpawns	9999999
			Where	spawnbot
			Support Limited
			Squad
			{
				TFBot
				{
					ClassIcon	red2_lite
					Health	1
					Name	RedIcon
					Scale	0.1
					Class	Heavy
					Skill	Easy
					Attributes	"IgnoreFlag"
					WeaponRestrictions	MeleeOnly
					CharacterAttributes
					{
						"move speed bonus"	0
						"active health degen" -4
					}
					Message
					{
						Name "{ffffff}Steve: Hey guys. I was wondering if you had any iron to spare. So you got some?"
						Delay 1
						Repeats 1
					}
					Message
					{
						Name "{ffffff}Steve: Great! I'll make great use of this."
						Delay 4
						Repeats 1
					}
					Message
					{
						Name "{ffffff}Steve: Wait... It's not for free? But I'm out of gold and diamonds..."
						Delay 7
						Repeats 1
					}
					Message
					{
						Name "{ffffff}Steve: But I got an idea!"
						Delay 10
						Repeats 1
					}
					Message
					{
						Name "{ffffff}Steve: Since you are in a bit of a pickle... I'll help you out a bit for that iron."
						Delay 13
						Repeats 1
					}
					Message
					{
						Name "{ffffff}Steve: I'm so glad I'm not playing on hardcore."
						Delay 16
						Repeats 1
					}
				}
			}
		}
		
		WaveSpawn
		{
			Name "Minecraft Player"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			TotalCurrency 0
			WaitForAllDead "Spartan SubWave1"
			WaitBetweenSpawns	15
			Where spawnbot_reddoorout
			FirstSpawnWarningSound DoorOpening.wav
			Support 1
			
			TFBot
			{
				ClassIcon	mcsteve
				Health	500
				Name	"Steve"
				Scale   1
				Class	Demoman
				WeaponRestrictions MeleeOnly
				Skill	Hard
				Action	Mobber
				DropWeapon 1
				UseHumanModel 1
				AddCond   { Name TF_COND_REPROGRAMMED } 
				Item "The Snapped Pupil"
				Item "The Chargin' Targe"
				Item "The Eyelander"
				Item "Bushi-Dou"
				CharacterAttributes
				{
					"collect currency on kill" 1
					"use human voice" 1
				}
				ItemAttributes
				{
					ItemName	"Bushi-Dou"
					"mult dmgtaken from melee" 0.7
				}
				ItemAttributes
				{
					ItemName	"The Chargin' Targe"
					"charge recharge rate increased" 0
				}
				ItemAttributes
				{
					ItemName	"The Eyelander"
					"damage bonus" 1.3
					"melee range multiplier" 3
					"fire rate bonus" 0.7 
					"move speed bonus" 1.35
					"stay after regenerate" 1
					"custom hit sound" "3DBlockGuyDeath.wav"
				}
			}
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave2"
			TotalCount 	20
			MaxActive	10
			SpawnCount 	5
			TotalCurrency 	25
			WaitForAllDead "Spartan SubWave1"
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
				{
					ClassIcon	demoknight_persian_nys
					Health	175
					Name	"Agressive Spartan"
					Scale   1
					Class	Demoman
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item	"The Tartan Spartan"
					Item	"The Steel Sixpack"
					Item	"The Persian Persuader"
					Item	"The Splendid Screen"
					Item	"Ali Baba's Wee Booties"
				}
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave2"
			TotalCount 	20
			MaxActive	10
			SpawnCount 	5
			TotalCurrency 	25
			WaitForAllDead "Spartan SubWave1"
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
				{
					ClassIcon	demoknight_charge
					Health	175
					Name	"Spartan"
					Scale   1
					Class	Demoman
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item	"The Tartan Spartan"
					Item	"The Steel Sixpack"
					Item	"The Claidheamohmor"
					Item	"The Splendid Screen"
					Item	"Ali Baba's Wee Booties"
					ItemAttributes
					{
					ItemName	"The Splendid Screen"
					"charge recharge rate increased" 0
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave3"
			WaitForAllDead	"Spartan SubWave2"
			TotalCurrency	50
			TotalCount	1
			WaitBeforeStarting 0
			Tank
			{
				Health 10000
				Speed 85
				Name "trojan_tank"
				StartingPathTrackNode "boss_path_a1"
				ForceRomeVision 1  
				SpawnTemplate WoodTank
				Classicon tank
				DisableSmokestack 1
				Scale 1
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}
		
		WaveSpawn
		{
			WaitBeforeStarting 0
			WaitForAllDead	"Spartan SubWave2"
			FirstSpawnMessage "{ff0000}Narrator: {ffff00}Here comes the Trojan Tank..."
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave3"
			TotalCount 	20
			MaxActive	20
			SpawnCount 	5
			TotalCurrency 	25
			WaitForAllDead "Spartan SubWave2"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
				{
					ClassIcon	sniper_bow
					Health	200
					Name	"Archer Spartan"
					Scale   1
					Class	Sniper
					UseHumanModel 1
					Skill	Expert
					Item	"The Tartan Spartan"
					Item	"The Steel Sixpack"
					Item	"The Huntsman"
				}
			
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave4"
			WaitForAllDead	"Spartan SubWave3"
			TotalCurrency	50
			TotalCount	1
			WaitBeforeStarting 0
			Tank
			{
				Health 10000
				Speed 85
				Name "trojan_tank"
				StartingPathTrackNode "boss_path_a1"
				ForceRomeVision 1  
				SpawnTemplate WoodTank
				Classicon tank
				DisableSmokestack 1
				Scale 1
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave4"
			TotalCount 	1
			MaxActive	1
			SpawnCount 	1
			TotalCurrency 	50
			WaitForAllDead "Spartan SubWave3"
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
				{
					ClassIcon	demoknight_charge_giant
					Health	7475
					Name	"Leonidas"
					Scale   1.6
					Class	Demoman
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Attributes	"UseBossHealthBar"
					Tag	"bot_giant"
					Item	"The Tartan Spartan"
					Item	"The Steel Sixpack"
					Item	"The Claidheamohmor"
					Item	"The Splendid Screen"
					Item	"Ali Baba's Wee Booties"
					CharacterAttributes
					{
						"damage force reduction"	0.5
						"move speed bonus"	0.5
						"override footstep sound set"	4
					}
					ItemAttributes
					{
					ItemName	"The Splendid Screen"
					"charge recharge rate increased" 0
					}
						Message
					{
						Name "{ff0000}Narrator: {ffff00}And then Leonidas said: 'it's spartaning time"
						Delay 1
						Repeats 1
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave4"
			TotalCount 	40
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	25
			WaitForAllDead "Spartan SubWave3"
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
				{
					ClassIcon	demoknight_persian_nys
					Health	175
					Name	"Agressive Spartan"
					Scale   1
					Class	Demoman
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item	"The Tartan Spartan"
					Item	"The Steel Sixpack"
					Item	"The Persian Persuader"
					Item	"The Splendid Screen"
					Item	"Ali Baba's Wee Booties"
				}
			
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave4"
			TotalCount 	40
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	25
			WaitForAllDead "Spartan SubWave3"
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
				{
					ClassIcon	demoknight_charge
					Health	175
					Name	"Spartan"
					Scale   1
					Class	Demoman
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item	"The Tartan Spartan"
					Item	"The Steel Sixpack"
					Item	"The Claidheamohmor"
					Item	"The Splendid Screen"
					Item	"Ali Baba's Wee Booties"
					ItemAttributes
					{
					ItemName	"The Splendid Screen"
					"charge recharge rate increased" 0
					}
				}
			
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave4"
			TotalCount 	40
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	25
			WaitForAllDead "Spartan SubWave3"
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
				{
					ClassIcon	sniper_bow
					Health	200
					Name	"Archer Spartan"
					Scale   1
					Class	Sniper
					UseHumanModel 1
					Skill	Expert
					Item	"The Tartan Spartan"
					Item	"The Steel Sixpack"
					Item	"The Huntsman"
				}
			
		}
		
		WaveSpawn
		{
			Name "Spartan SubWave5"
			TotalCount 	80
			MaxActive	20
			SpawnCount 	20
			TotalCurrency 	25
			WaitForAllDead "Spartan SubWave4"
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
				{
					ClassIcon	demoknight_headtaker_nys
					Health	175
					Name	"Berserker Spartan"
					Scale   1
					Class	Demoman
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item	"The Bolgan"
					Item	"The Steel Sixpack"
					Item	"The Splendid Screen"
					Item	"Ali Baba's Wee Booties"
					Item 	"TF_WEAPON_FIREAXE"
					ItemAttributes
					{
						ItemName	"TF_WEAPON_FIREAXE"
						"damage bonus" 1.5
						"fire rate bonus" 0.75
					}
				}
			
		}
	}
	
	Wave
	{
		CustomMaxWaveNumber 5
		InitWaveOutput
		{
			Target wave_initB_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		Explanation  
		{
			Line "{ff0000}Narrator: {ffff00}Here's rulebook just in case if you need."
			Line "{00ffff}https://docs.google.com/document/d/1Ed6QokCRxiOj1kUoLmu7P-QErEu_drA1/edit#"
			Line "{ff0000}Narrator: {ffff00}300 Spartans have been defeated, yet we are"
			Line "{ffff00}far from being done. Get ready quickly for more trouble."
			Line "{ffff00}Seems like bad and good joined forces against you..."
			Line "{ffff00}Are those wizards behind those legions? Also is that a dragon?"
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave1"
			TotalCount 	20
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	20
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	machete_lite
				Health	200
				Name	"Butcher Villger"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItem "TF_WEAPON_SCATTERGUN"  
				UseHumanModel 1
				Skill	Expert
				Item "EOTL_FURCAP"
				Item "Prinny Machete"
				Item "The Flying Guillotine"
				ItemAttributes
				{
					ItemName	"Prinny Machete"
					"damage bonus" 2
					"fire rate bonus" 0.7
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave1"
			TotalCount 	20
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	30
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	sniper_bow
				Health	200
				Name	"Hunter Villager"
				Scale   1
				Class	Sniper
				UseHumanModel 1
				Skill	Expert
				Item "Saxton Hat"
				Item "The Dictator"
				Item "The Ham Shank"
				Item "The Huntsman"
				Item "The Cozy Camper"
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave2"
			TotalCount 	30
			MaxActive	10
			SpawnCount 	10
			TotalCurrency 	25
			WaitForAllDead "Medieval SubWave1"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	pyro_fireaxe_lite
				Health	200
				Name	"Lumberjack Villager"
				Scale   1
				Class	Demoman
				StripItemSlot 1  
				StripItemSlot 2  
				WeaponRestrictions MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Item "The Bearded Bombardier"
				Item "Tam O'Shanter"
				Item "TF_WEAPON_FIREAXE"
				ItemAttributes
				{
					ItemName	"TF_WEAPON_FIREAXE"
					"damage bonus" 1.35
					"fire rate bonus" 0.85
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave2"
			TotalCount 	30
			MaxActive	10
			SpawnCount 	10
			TotalCurrency 	25
			WaitForAllDead "Medieval SubWave1"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	soldier_equalizer
				Health	300
				Name	"Miner Villager"
				Scale   1
				Class	Soldier
				WeaponRestrictions MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Item "The Equalizer"
				Item "The Lone Survivor"
				Item "The Tin Pot"
				ItemAttributes
				{
					ItemName	"The Equalizer"
					"minicrits become crits" 1
					"turn to gold" 1
					"dmg taken increased" 1.33
					"mod shovel damage boost" 0
					"reduced_healing_from_medics" 1
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave3"
			TotalCount 	70
			MaxActive	28
			SpawnCount 	14
			TotalCurrency 	100
			WaitForAllDead "Medieval SubWave2"
			WaitBetweenSpawns	15
			Where spawnbot
			Squad
			{
				TFBot
				{
					ClassIcon	machete_lite
					Health	200
					Name	"Butcher Villger"
					Scale   1
					Class	Scout
					StripItemSlot 1  
					StripItem "TF_WEAPON_SCATTERGUN"  
					UseHumanModel 1
					Skill	Expert
					Item "EOTL_FURCAP"
					Item "Prinny Machete"
					Item "The Flying Guillotine"
					ItemAttributes
					{
						ItemName	"Prinny Machete"
						"damage bonus" 2
						"fire rate bonus" 0.7
					}
				}
				TFBot
				{
					ClassIcon	machete_lite
					Health	200
					Name	"Butcher Villger"
					Scale   1
					Class	Scout
					StripItemSlot 1  
					StripItem "TF_WEAPON_SCATTERGUN"  
					UseHumanModel 1
					Skill	Expert
					Item "EOTL_FURCAP"
					Item "Prinny Machete"
					Item "The Flying Guillotine"
					ItemAttributes
					{
						ItemName	"Prinny Machete"
						"damage bonus" 2
						"fire rate bonus" 0.7
					}
				}
				TFBot
				{
					ClassIcon	pyro_fireaxe_lite
					Health	200
					Name	"Lumberjack Villager"
					Scale   1
					Class	Demoman
					StripItemSlot 1  
					StripItemSlot 2  
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item "The Bearded Bombardier"
					Item "Tam O'Shanter"
					Item "TF_WEAPON_FIREAXE"
					ItemAttributes
					{
						ItemName	"TF_WEAPON_FIREAXE"
						"damage bonus" 1.35
						"fire rate bonus" 0.85
					}
				}
				TFBot
				{
					ClassIcon	pyro_fireaxe_lite
					Health	200
					Name	"Lumberjack Villager"
					Scale   1
					Class	Demoman
					StripItemSlot 1  
					StripItemSlot 2  
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item "The Bearded Bombardier"
					Item "Tam O'Shanter"
					Item "TF_WEAPON_FIREAXE"
					ItemAttributes
					{
						ItemName	"TF_WEAPON_FIREAXE"
						"damage bonus" 1.35
						"fire rate bonus" 0.85
					}
				}
				TFBot
				{
					ClassIcon	soldier_equalizer
					Health	300
					Name	"Miner Villager"
					Scale   1
					Class	Soldier
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item "The Equalizer"
					Item "The Lone Survivor"
					Item "The Tin Pot"
					ItemAttributes
					{
						ItemName	"The Equalizer"
						"minicrits become crits" 1
						"turn to gold" 1
						"dmg taken increased" 1.33
						"mod shovel damage boost" 0
						"reduced_healing_from_medics" 1
					}
				}
				TFBot
				{
					ClassIcon	soldier_equalizer
					Health	300
					Name	"Miner Villager"
					Scale   1
					Class	Soldier
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Item "The Equalizer"
					Item "The Lone Survivor"
					Item "The Tin Pot"
					ItemAttributes
					{
						ItemName	"The Equalizer"
						"minicrits become crits" 1
						"turn to gold" 1
						"dmg taken increased" 1.33
						"mod shovel damage boost" 0
						"reduced_healing_from_medics" 1
					}
				}
				TFBot
				{
					ClassIcon	engineer_wrench_sif
					Health	1500
					Name	"Brute Blacksmith"
					Scale   1.5
					Class	Engineer
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Tag	"bot_giant"
					Action FetchFlag
					Item "TF_WEAPON_WRENCH"
					Item "Brass Bucket"
					Item "The Dark Age Defender"
					Item "The Teufort Tooth Kicker"
					CharacterAttributes
					{
						"override footstep sound set"	7
						"damage force reduction"	0.5
						"move speed penalty" 0.75
						"voice pitch scale" 0.85
					}
					ItemAttributes
					{
						ItemName "TF_WEAPON_WRENCH"
						"damage bonus" 1.5
						"fire rate penalty" 1.3
					}
				}
				
			}
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave4"
			TotalCount 	20
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	40
			WaitForAllDead "Medieval SubWave3"
			WaitBetweenSpawns	13
			Where spawnbot
			
			TFBot
			{
				ClassIcon	demo
				Health	200
				Name	"Bomber"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItemSlot 3  
				StripItem "TF_WEAPON_SCATTERGUN"  
				StripItem "TF_WEAPON_BAT"  
				WeaponRestrictions	SecondaryOnly
				UseHumanModel 1
				Skill	Expert
				Action	Mobber
				Item "The Flying Guillotine"
				Item "Vintage Tyrolean"
				Item "The Dictator"
				Item "The Egghead's Overalls"
				Item "The Level Three Chin"
				ItemColor   //Set item color
				{
					ItemName	"Vintage Tyrolean"
					Red 50
					Green 205
					Blue 50
				}
				ItemAttributes
				{
					ItemName	"The Flying Guillotine"
					"override projectile type" 17
					"damage bonus" 20
					"Blast radius increased" 1.1
					"grenade explode on impact" 1
					"custom item model" "models/weapons/w_models/w_cannonball.mdl"
					"projectile sound" "BombThrow.wav"
					"custom weapon fire sound" "AnNoNeXiStEnTiAlSoUnDoFtHrOw.wav"
					"effect bar recharge rate increased" 0.5
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave4"
			TotalCount 	20
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	30
			WaitForAllDead "Medieval SubWave3"
			WaitBetweenSpawns	13
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scout_threerune_daan
				Health	200
				Name	"Adventurer"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItem "TF_WEAPON_SCATTERGUN"  
				WeaponRestrictions	MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Item "Three-Rune Blade"
				Item "Herald's Helm"
				Item "Courtly Cuirass"
				Item "Squire's Sabatons"
				ItemAttributes
				{
					ItemName "Three-Rune Blade"
					"hit self on miss" 0
					"bleeding duration" 0
					"is_a_sword" 1
					"fire rate penalty" 1.25
					"damage bonus" 1.3
					"silent killer" 1
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave4"
			TotalCount 	20
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	30
			WaitForAllDead "Medieval SubWave3"
			WaitBetweenSpawns	13
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scout_bostonbasher
				Health	200
				Name	"Barbarian"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItem "TF_WEAPON_SCATTERGUN"  
				WeaponRestrictions	MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Item "The Boston Basher"
				Item "The Mustachioed Mann"
				Item "The Eye-Catcher"
				Item "The Beastly Bonnet"
				ItemAttributes
				{
					ItemName "The Boston Basher"
					"hit self on miss" 0
					"dmg taken from fire increased" 1.5
					"dmg taken from blast increased" 1.5
					"bleeding duration" 10
					"damage bonus" 2
					"fire rate penalty" 1.65
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave4"
			TotalCount 	20
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	0
			WaitForAllDead "Medieval SubWave3"
			WaitBetweenSpawns	13
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scout_unarmed_combat_sif
				Health	200
				Name	"Zombie"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItem "TF_WEAPON_SCATTERGUN"  
				WeaponRestrictions	MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Item "Unarmed Combat"
				Item "Zombie Scout"
				ItemAttributes
				{
					ItemName "Unarmed Combat"
					"heal on hit for slowfire" 20
					"max health additive bonus" 35
					"aoe heal chance" 15
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave4"
			TotalCount 	20
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	20
			WaitForAllDead "Medieval SubWave3"
			WaitBetweenSpawns	13
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scout_fish_2
				Health	200
				Name	"Witch"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItem "TF_WEAPON_SCATTERGUN"  
				UseHumanModel 1
				Skill	Expert
				Item "The Holy Mackerel"
				Item "Mad Milk"
				Item "The Crone's Dome"
				Item "The Southie Shinobi"
				ItemAttributes
				{
					ItemName "The Holy Mackerel"
					"slow enemy on hit major" 5
					"bleeding duration" 5
					"damage penalty" 0.25
					"max health additive penalty" -25
					"melee range multiplier" 3
					"add cond on hit" 30
					"add cond on hit duration" 5
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave4"
			TotalCount 	20
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	20
			WaitForAllDead "Medieval SubWave3"
			WaitBetweenSpawns	13
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scout_sun
				Health	200
				Name	"Fire Elementalist"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItem "TF_WEAPON_SCATTERGUN"  
				WeaponRestrictions	MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Item "Sun-on-a-Stick"
				Item "Point and Shoot"
				Item "The Southie Shinobi"
				ItemAttributes
				{
					ItemName "Sun-on-a-Stick"
					"afterburn immunity" 1
					"dmg taken from fire reduced on active" 1
					"Set DamageType Ignite" 1
					"crit vs burning players" 0
					"damage penalty" 1
					"no double jump" 1
					"deploy time increased" 1.5
					"minicrit vs burning player" 1
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave4"
			TotalCount 	20
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	30
			WaitForAllDead "Medieval SubWave3"
			WaitBetweenSpawns	13
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scout_bonk_nys
				Health	200
				Name	"Potion Adventurer"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItem "TF_WEAPON_SCATTERGUN"  
				UseHumanModel 1
				Skill	Expert
				Action	Mobber
				Item "Three-Rune Blade"
				Item "Bonk! Atomic Punch"
				Item "Herald's Helm"
				Item "Courtly Cuirass"
				Item "Squire's Sabatons"
				ItemAttributes
				{
					ItemName "Three-Rune Blade"
					"hit self on miss" 0
					"bleeding duration" 0
					"is_a_sword" 1
					"fire rate penalty" 1.25
					"damage bonus" 1.3
					"silent killer" 1
				}
				ItemAttributes
				{
					ItemName "Bonk! Atomic Punch"
					"effect cond override" 52
					"charge recharge rate increased" 0.65
					"effect bar recharge rate increased" 0.6
					"mult effect duration" 1.4
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave4"
			TotalCount 	20
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	30
			WaitForAllDead "Medieval SubWave3"
			WaitBetweenSpawns	13
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scout_cola_nys
				Health	200
				Name	"Potion Barbarian"
				Scale   1
				Class	Scout
				StripItemSlot 1  
				StripItem "TF_WEAPON_SCATTERGUN"  
				UseHumanModel 1
				Skill	Expert
				Action	Mobber
				Item "Crit-a-Cola"
				Item "The Boston Basher"
				Item "The Mustachioed Mann"
				Item "The Eye-Catcher"
				Item "The Beastly Bonnet"
				ItemAttributes
				{
					ItemName "The Boston Basher"
					"hit self on miss" 0
					"dmg taken from fire increased" 1.5
					"dmg taken from blast increased" 1.5
					"bleeding duration" 10
					"damage bonus" 2
					"fire rate penalty" 1.65
				}
				ItemAttributes
				{
					ItemName "Crit-a-Cola"
					"effect cond override" 74
					"charge recharge rate increased" 0.5
					"mult effect duration" 1.4
					"effect bar recharge rate increased" 0.6
				}
			}
			
		}
		
		WaveSpawn
		{
		    Name "Medieval SubWave5"
			TotalCount 	1
			MaxActive	1
			SpawnCount 	1
			TotalCurrency 	100
			WaitForAllDead "Medieval SubWave4"

			Tank
			{
				Name   "Tank"
				ClassIcon tank_saw_nys
				Health 13000
				Speed  75
				StartingPathTrackNode "path1"
				ForceRomeVision 1  
				SpawnTemplate Lumberjack_Tank
				SpawnTemplate WoodTank

				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave5"
			TotalCount 	30
			MaxActive	10
			SpawnCount 	10
			TotalCurrency 	0
			WaitForAllDead "Medieval SubWave4"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	pyro_fireaxe_lite
				Health	200
				Name	"Lumberjack Villager"
				Scale   1
				Class	Demoman
				StripItemSlot 1  
				StripItemSlot 2  
				WeaponRestrictions MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Item "The Bearded Bombardier"
				Item "Tam O'Shanter"
				Item "TF_WEAPON_FIREAXE"
				ItemAttributes
				{
					ItemName	"TF_WEAPON_FIREAXE"
					"damage bonus" 1.35
					"fire rate bonus" 0.85
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave5"
			TotalCount 	6
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	60
			WaitForAllDead "Medieval SubWave4"
			WaitBetweenSpawns	30
			Where spawnbot
			
			TFBot
			{
				ClassIcon	pyro_fireaxe_lite_giant
				Health	2000
				Name	"Giant Lumberjack"
				Scale   1.6
				Class	Demoman
				StripItemSlot 1  
				StripItemSlot 2  
				WeaponRestrictions MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Attributes	"MiniBoss"
				Tag	"bot_giant"
				Item "The Bearded Bombardier"
				Item "Tam O'Shanter"
				Item "TF_WEAPON_FIREAXE"
				CharacterAttributes
				{
					"damage force reduction"	0.5
					"move speed bonus"	0.75
					"override footstep sound set"	4
				}
				ItemAttributes
				{
					ItemName	"TF_WEAPON_FIREAXE"
					"damage bonus" 1.35
					"fire rate bonus" 0.85
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave5"
			TotalCount 	15
			MaxActive	5
			SpawnCount 	5
			TotalCurrency 	0
			WaitForAllDead "Medieval SubWave4"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	soldier_equalizer
				Health	300
				Name	"Miner Villager"
				Scale   1
				Class	Soldier
				WeaponRestrictions MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Item "The Equalizer"
				Item "The Lone Survivor"
				Item "The Tin Pot"
				ItemAttributes
				{
					ItemName	"The Equalizer"
					"minicrits become crits" 1
					"turn to gold" 1
					"dmg taken increased" 1.33
					"mod shovel damage boost" 0
					"reduced_healing_from_medics" 1
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave5"
			TotalCount 	3
			MaxActive	2
			SpawnCount 	1
			TotalCurrency 	40
			WaitForAllDead "Medieval SubWave4"
			WaitBetweenSpawns	30
			Where spawnbot
			
			TFBot
			{
				ClassIcon	soldier_equalizer_giant
				Health	3000
				Name	"Giant Miner"
				Scale   1.6
				Class	Soldier
				WeaponRestrictions MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Attributes	"MiniBoss"
				Tag	"bot_giant"
				Item "The Equalizer"
				Item "The Lone Survivor"
				Item "The Tin Pot"
				CharacterAttributes
				{
					"override footstep sound set"	3
					"damage force reduction"	0.4
					"move speed bonus"	0.75
				}
				ItemAttributes
				{
					ItemName	"The Equalizer"
					"minicrits become crits" 1
					"turn to gold" 1
					"dmg taken increased" 1.33
					"mod shovel damage boost" 0
					"reduced_healing_from_medics" 1
				}
			}
		}
	}
	
	Wave
	{
		CustomWaveNumber 3
		CustomMaxWaveNumber 5
		InitWaveOutput
		{
			Target wave_initB_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		Explanation  
		{
			Line "{ff0000}Narrator: {ffff00}Have a checkpoint. You will need it!"
			Line "{ffff00}Here's rulebook just in case if you need."
			Line "{00ffff}https://docs.google.com/document/d/1Ed6QokCRxiOj1kUoLmu7P-QErEu_drA1/edit#"
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave6"
			TotalCount 	40
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	25
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
			{
				ClassIcon	demoknight
				Health	200
				Name	"Swordsman"
				Scale   1
				Class	Demoman
				StripItemSlot 1  
				StripItem "TF_WEAPON_GRENADELAUNCHER"  
				UseHumanModel 1
				Skill	Expert
				Item "The Stormin' Norman"
				Item "Shin Shredders"
				Item "The Eyelander"
				Item "The Chargin' Targe"
				ItemAttributes
				{
					ItemName	"The Eyelander"
					"fire rate bonus" 0.85
				}
				ItemAttributes
				{
					ItemName	"The Chargin' Targe"
					"dmg taken from bullets reduced" 0.5
					"dmg taken from blast reduced" 0.5
					"charge recharge rate increased" 0
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Gnomes"
			TotalCount 	60
			MaxActive	6
			SpawnCount 	3
			TotalCurrency 	20
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
			{
				ClassIcon	heavy_mittens
				Health	100
				Name	"Forest Gnome"
				Scale   0.65
				Class	Heavyweapons
				WeaponRestrictions MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Action Mobber
				Attributes	"AlwaysCrit"
				Item 	"Bull Locks"
				Item 	"The Holiday Punch"
				Item 	"Tough Guy's Toque"
				ItemAttributes
				{
					ItemName	"The Holiday Punch"
					"always crit" 1
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave6"
			TotalCount 	40
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	25
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
			{
				ClassIcon	demo_knight_persian
				Health	200
				Name	"Pirate"
				Scale   1
				Class	Demoman
				StripItemSlot 1  
				StripItem "TF_WEAPON_GRENADELAUNCHER"  
				UseHumanModel 1
				Skill	Expert
				Item "Pirate Bandana"
				Item "The Persian Persuader"
				Item "Tartantaloons"
				ItemAttributes
				{
					ItemName	"The Persian Persuader"
					"critboost on kill" 5
					"fire rate bonus" 0.75
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave7"
			TotalCount 	20
			MaxActive	5
			SpawnCount 	5
			TotalCurrency 	30
			WaitForAllDead "Medieval SubWave6"
			WaitBeforeStarting 5
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
			{
				ClassIcon	sniper_bow
				Health	200
				Name	"Archer"
				Scale   1
				Class	Sniper
				UseHumanModel 1
				Skill	Expert
				Item "Larrikin Robin"
				Item "The Triggerman's Tacticals"
				Item "Poacher's Safari Jacket"
				Item "The Huntsman"
				Item "The Razorback"
				ItemAttributes
				{
					ItemName	"The Huntsman"
					"faster reload rate" 0.8
				}
			}
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave7"
			TotalCount 	20
			MaxActive	10
			SpawnCount 	5
			TotalCurrency 	30
			WaitForAllDead "Medieval SubWave6"
			WaitBeforeStarting 5
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scout_luger
				Health	200
				Name	"Flintlocker"
				Scale   1
				Class	Engineer
				WeaponRestrictions	SecondaryOnly
				UseHumanModel 1
				Skill	Expert
				Action FetchFlag
				Item "Pirate Bandana"
				Item "Tartantaloons"
				Item "TTG Max Pistol"
				ItemAttributes
				{
					ItemName	"TTG Max Pistol"
					"critboost on kill" 5
					"fire rate penalty" 5
				}
			}
		}
		
		WaveSpawn
		{
			Name "Medieval Support1"
			TotalCount 	8
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	0
			WaitForAllDead "Medieval SubWave6"
			WaitBetweenSpawns	15
			Where spawnbot
			Support	1
			
			TFBot
			{
				ClassIcon	demoknight_two
				Health	200
				Name	"Swordsman"
				Scale   1
				Class	Demoman
				StripItemSlot 1  
				StripItem "TF_WEAPON_GRENADELAUNCHER"  
				UseHumanModel 1
				Skill	Expert
				Item "The Stormin' Norman"
				Item "Shin Shredders"
				Item "The Eyelander"
				Item "The Chargin' Targe"
				ItemAttributes
				{
					ItemName	"The Eyelander"
					"fire rate bonus" 0.85
				}
				ItemAttributes
				{
					ItemName	"The Chargin' Targe"
					"dmg taken from bullets reduced" 0.5
					"dmg taken from blast reduced" 0.5
					"charge recharge rate increased" 0
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval Support2"
			TotalCount 	8
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	0
			WaitForAllDead "Medieval SubWave6"
			WaitBetweenSpawns	15
			Where spawnbot
			Support	1
			
			TFBot
			{
				ClassIcon	demoknight_persian_nys
				Health	200
				Name	"Pirate"
				Scale   1
				Class	Demoman
				StripItemSlot 1  
				StripItem "TF_WEAPON_GRENADELAUNCHER"  
				UseHumanModel 1
				Skill	Expert
				Item "Pirate Bandana"
				Item "The Persian Persuader"
				Item "Tartantaloons"
				ItemAttributes
				{
					ItemName	"The Persian Persuader"
					"critboost on kill" 5
					"fire rate bonus" 0.75
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave8"
			TotalCount 	30
			MaxActive	6
			SpawnCount 	3
			TotalCurrency 	40
			WaitForAllDead "Medieval SubWave7"
			WaitBeforeStarting 21
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
			{
				ClassIcon	demoknight_skullcutter_lite
				Health	350
				Name	"Knight"
				Scale   1.2
				Class	Demoman
				StripItemSlot 1  
				StripItem "TF_WEAPON_GRENADELAUNCHER"  
				UseHumanModel 1
				Skill	Expert
				Item "Forgotten King's Pauldrons"
				Item "The Hood of Sorrows"
				Item "Dynamite Abs"
				Item "Shin Shredders"
				Item "The Scotsman's Skullcutter"
				Item "The Chargin' Targe"
				ItemAttributes
				{
					ItemName	"The Scotsman's Skullcutter"
					"fire rate bonus" 0.85
				}
				ItemAttributes
				{
					ItemName	"The Chargin' Targe"
					"dmg taken from bullets reduced" 0.25
					"dmg taken from blast reduced" 0.25
					"charge recharge rate increased" 0
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave8"
			TotalCount 	30
			MaxActive	6
			SpawnCount 	3
			TotalCurrency 	50
			WaitForAllDead "Medieval SubWave7"
			WaitBeforeStarting 21
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
			{
				ClassIcon	demoknight_persian_tind
				Health	350
				Name	"Blademaster"
				Scale   1.2
				Class	Soldier
				StripItemSlot 1  
				WeaponRestrictions	MeleeOnly
				UseHumanModel 1
				Skill	Expert
				Item "Tartantaloons"
				Item "Nasty Norsemann"
				Item "The Persian Persuader"
				ItemAttributes
				{
					ItemName	"The Persian Persuader"
					"critboost on kill" 5
					"fire rate bonus" 0.6
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Medieval Captain"
			TotalCount 	1
			MaxActive	1
			SpawnCount 	1
			TotalCurrency 	100
			WaitForAllDead "Medieval SubWave7"
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
			{
				ClassIcon	demoknight_persian_tind_giant
				Health	10000
				Name	"Pirate Captain"
				Scale   1.7
				Class	Demoman
				UseHumanModel 1
				Skill	Expert
				Attributes	"MiniBoss"
				Attributes	"UseBossHealthBar"
				Tag	"bot_giant"
				Item	"The Tartantaloons"
				Item	"Mann of the Seven Sees"
				Item	"The Persian Persuader"
				Item	"tf_weapon_grenadelauncher"
				Item	"The Tide Turner"
				CharacterAttributes
				{
					"damage force reduction"	0.5
					"move speed bonus"	0.5
					"override footstep sound set"	4
				}
				ItemAttributes
				{
					ItemName	"The Persian Persuader"
					"critboost on kill" 5
					"fire rate bonus" 0.75
				}
				ItemAttributes
				{
					ItemName	"The Tide Turner"
					"charge recharge rate increased" 0
				}
				ItemAttributes  
				{
					ItemName "tf_weapon_grenadelauncher"
					"clip size penalty" 0.25
					"damage bonus" 3
					"Projectile speed increased" 2.5
					"move speed penalty" 0.6
					"mult duck speed" 2
					"grenade explode on impact" 1
					"self dmg push force decreased" 0.01
					"fire rate penalty" 1.75
					"custom projectile model" "models\weapons\w_models\w_cannonball.mdl"
					"custom item model" "models/workshop/weapons/c_models/c_demo_cannon/c_demo_cannon.mdl"
				}
				WeaponSwitch
				{
					Delay 10
					Cooldown 15
					Type "Primary"
				}
				WeaponSwitch
				{
					Delay 15
					Cooldown 15
					Type "Melee"
				}
				Message
				{
					Name "{ff0000}Narrator: {ffff00}The Captain is here! I wonder where's the king..."
					Delay 1
					Repeats 1
				}
			}
			
		}
		
		
		WaveSpawn
		{
			Name "CaveTank"
			TotalCount 	1
			MaxActive	1
			SpawnCount 	1
			TotalCurrency 	25
			WaitBeforeStarting 30
			WaitForAllDead "Medieval SubWave7"
			Tank
			{
				Health 15000
				Speed 75
				Name "tankboss"
				ClassIcon tank_spider
				StartingPathTrackNode "boss_path_a1"
				Template SpiderTank  
				ForceRomeVision 1  
				SpawnTemplate WoodTank

				OnKilledOutput                                  
				{
					Target boss_dead_relay
					Action Trigger                         
				}
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}
		
		WaveSpawn
		{
			WaitBeforeStarting 0
			WaitForAllDead	"Medieval SubWave7"
			FirstSpawnMessage "{ff0000}Narrator: {ffff00}This old contraption got infested!"
		}
		
		WaveSpawn
		{
			Name "Medieval King"
			TotalCount 	3
			MaxActive	3
			SpawnCount 	3
			TotalCurrency 	100
			WaitForAllDead "Medieval Captain"
			WaitBetweenSpawns	15
			Where spawnbot
			Squad
			{
			
				TFBot
				{
					ClassIcon	demoknight_king
					Health	10025
					Name	"King Rowan"
					Scale   1.7
					Class	Demoman
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Attributes	"UseBossHealthBar"
					WeaponRestrictions	MeleeOnly
					Tag	"bot_giant"
					Item	"The King of Scotland Cape"
					Item	"Prince Tavish's Crown"
					Item	"Festive Targe"
					Item	"The Eyelander"
					CharacterAttributes
					{
						"damage force reduction"	0.5
						"move speed bonus"	0.5
						"override footstep sound set"	4
					}
					ItemAttributes
					{
						ItemName	"The Eyelander"
						"critboost on kill" 5
						"fire rate bonus" 0.75
						"heal on kill" 500
						"damage bonus" 1.5
						"item style override" 1
					}
					ItemAttributes
					{
						ItemName	"The King of Scotland Cape"
						"fists have radial buff" 1
					}
					ItemAttributes
					{
						ItemName	"Festive Targe"
						"charge recharge rate increased" 0
					}
					Message
					{
						Name "{990000}King Rowan: {00ffff}For the peace of the kingdom!"
						Delay 1
						Repeats 1
					}
				}
				
				TFBot
				{
						ClassIcon	bullet_immune_demoknight_golden
						Health	2025
						Name	"Royal Guard"
						Scale   1.3
						Class	Demoman
						WeaponRestrictions MeleeOnly
						UseHumanModel 1
						Skill	Expert
						Attributes	"MiniBoss"
						Tag	"bot_giant"
						Action FetchFlag
						Item "The Eyelander"
						Item "The Glasgow Great Helm"
						Item "The Dark Age Defender"
						Item "Shin Shredders"
						Item "The Chargin' Targe"
						CharacterAttributes
						{
							"damage force reduction"	0.5
							"move speed bonus"	0.75
							"override footstep sound set"	4
							"voice pitch scale" 0.85
						}
						ItemAttributes
						{
							ItemName "The Eyelander"
							"item style override" 1
							"damage bonus" 1.25
							"fire rate penalty" 1.35
						}
						ItemAttributes
						{
							ItemName	"The Chargin' Targe"
							"dmg taken from bullets reduced" 0
							"dmg taken from blast reduced" 0.5
							"charge recharge rate increased" 0
						}
				}
				
				TFBot
				{
						ClassIcon	bullet_immune_demoknight_golden
						Health	2025
						Name	"Royal Guard"
						Scale   1.3
						Class	Demoman
						WeaponRestrictions MeleeOnly
						UseHumanModel 1
						Skill	Expert
						Attributes	"MiniBoss"
						Tag	"bot_giant"
						Action FetchFlag
						Item "The Eyelander"
						Item "The Glasgow Great Helm"
						Item "The Dark Age Defender"
						Item "Shin Shredders"
						Item "The Chargin' Targe"
						CharacterAttributes
						{
							"damage force reduction"	0.5
							"move speed bonus"	0.75
							"override footstep sound set"	4
							"voice pitch scale" 0.85
						}
						ItemAttributes
						{
							ItemName "The Eyelander"
							"is_australium_item" 1
							"damage bonus" 1.25
							"fire rate penalty" 1.35
						}
						ItemAttributes
						{
							ItemName	"The Chargin' Targe"
							"dmg taken from bullets reduced" 0
							"dmg taken from blast reduced" 0.5
							"charge recharge rate increased" 0
						}
				}
			}
		}
		
		WaveSpawn
		{
			Name "Medieval SubWave9"
			TotalCount 	50
			MaxActive	30
			SpawnCount 	10
			TotalCurrency 	50
			WaitForAllDead "Medieval Captain"
			WaitBetweenSpawns	15
			Where spawnbot
			Squad
			{
			
				TFBot
				{
					ClassIcon	sniper_bow
					Health	200
					Name	"Archer"
					Scale   1
					Class	Sniper
					UseHumanModel 1
					Skill	Expert
					Item "Larrikin Robin"
					Item "The Triggerman's Tacticals"
					Item "Poacher's Safari Jacket"
					Item "The Huntsman"
					Item "The Razorback"
					ItemAttributes
					{
						ItemName	"The Huntsman"
						"faster reload rate" 0.8
					}
				}
				
				TFBot
				{
					ClassIcon	sniper_bow
					Health	200
					Name	"Archer"
					Scale   1
					Class	Sniper
					UseHumanModel 1
					Skill	Expert
					Item "Larrikin Robin"
					Item "The Triggerman's Tacticals"
					Item "Poacher's Safari Jacket"
					Item "The Huntsman"
					Item "The Razorback"
					ItemAttributes
					{
						ItemName	"The Huntsman"
						"faster reload rate" 0.8
					}
				}
				
				TFBot
				{
					ClassIcon	sniper_bow
					Health	200
					Name	"Archer"
					Scale   1
					Class	Sniper
					UseHumanModel 1
					Skill	Expert
					Item "Larrikin Robin"
					Item "The Triggerman's Tacticals"
					Item "Poacher's Safari Jacket"
					Item "The Huntsman"
					Item "The Razorback"
					ItemAttributes
					{
						ItemName	"The Huntsman"
						"faster reload rate" 0.8
					}
				}
				
				TFBot
				{
					ClassIcon	demo_loose
					Health	500
					Name	"Cannoneer"
					Scale   1.3
					Class	Demoman
					UseHumanModel 1
					Skill	Expert
					WeaponRestrictions PrimaryOnly
					Item "The Glasgow Great Helm"
					Item "The Dark Age Defender"
					Item "Shin Shredders"
					Item "A Whiff of the Old Brimstone"
					Item "tf_weapon_grenadelauncher"
					ItemAttributes  
					{
						ItemName "tf_weapon_grenadelauncher"
						"clip size penalty" 0.25
						"damage bonus" 3
						"Projectile speed increased" 2.5
						"move speed penalty" 0.6
						"mult duck speed" 2
						"grenade explode on impact" 1
						"self dmg push force decreased" 0.01
						"fire rate penalty" 1.75
						"custom projectile model" "models\weapons\w_models\w_cannonball.mdl"
						"custom item model" "models/workshop/weapons/c_models/c_demo_cannon/c_demo_cannon.mdl"
					}
				}
				
				TFBot
				{
					ClassIcon	melee_immune_crossbow
					Health	200
					Name	"Healing Wizard"
					Scale	1
					Class	Medic
					UseHumanModel 1
					Skill	Expert
					Action FetchFlag
					WeaponRestrictions PrimaryOnly
					Attributes	"AlwaysFireWeapon"
					Item	"festive crusader's crossbow"
					Item	"the ham shank"
					Item	"point and shoot"
					Item	"the ruffled ruprecht"
					CharacterAttributes
					{
						"backstab shield"	10
					}
					ItemAttributes
					{
						ItemName	"festive crusader's crossbow"
						"dmg from melee increased"	-100
					}
					ItemAttributes
					{
						ItemName	"the ham shank"
						"dmg from melee increased"	-100
					}
				}
				
			}
		}
		
		WaveSpawn
		{
			Name "Medieval Dragon"
			TotalCount 	3
			MaxActive	3
			SpawnCount 	3
			TotalCurrency 	50
			WaitForAllDead "Medieval Captain"
			WaitBeforeStarting 45
			Where spawnbot
			Squad
			{
				TFBot
				{
					ClassIcon	pyro
					Health	6000
					Name	"Fire Dragon"
					Scale   2.25
					Class	Pyro
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Attributes	"AlwaysFireWeapon"
					WeaponRestrictions	PrimaryOnly
					UseMeleeThreatPrioritization 1
					Tag	"bot_giant"
					Item	"the backburner"
					Item	"the gothic guise"
					Item	"fallen angel"
					CharacterAttributes
						{
							"move speed bonus"	0.5
							"damage force reduction"	0.6
							"override footstep sound set"	6
							"dmg taken from fire reduced"	0
							"dmg taken from crit reduced"	0.3
							"dmg taken from blast reduced"	0.45
							"dmg taken from bullets reduced"	0.85
							"dmg from melee increased" -0.5
						}
				
					Message
					{
						Name "{ff0000}Narrator: {ffff00}Is... Is that a dragon?!"
						Delay 1
						Repeats 1
					}
				}
				
				TFBot
				{
					ClassIcon	engineer_wrench_sif
					Health	1500
					Name	"Brute Blacksmith"
					Scale   1.5
					Class	Engineer
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Tag	"bot_giant"
					Action FetchFlag
					Item "TF_WEAPON_WRENCH"
					Item "Brass Bucket"
					Item "The Dark Age Defender"
					Item "The Teufort Tooth Kicker"
					CharacterAttributes
					{
						"override footstep sound set"	7
						"damage force reduction"	0.5
						"move speed penalty" 0.75
						"voice pitch scale" 0.85
					}
					ItemAttributes
					{
						ItemName "TF_WEAPON_WRENCH"
						"damage bonus" 1.5
						"fire rate penalty" 1.3
					}
				}
				
				TFBot
				{
					ClassIcon	engineer_wrench_sif
					Health	1500
					Name	"Brute Blacksmith"
					Scale   1.5
					Class	Engineer
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Tag	"bot_giant"
					Action FetchFlag
					Item "TF_WEAPON_WRENCH"
					Item "Brass Bucket"
					Item "The Dark Age Defender"
					Item "The Teufort Tooth Kicker"
					CharacterAttributes
					{
						"override footstep sound set"	7
						"damage force reduction"	0.5
						"move speed penalty" 0.75
						"voice pitch scale" 0.85
					}
					ItemAttributes
					{
						ItemName "TF_WEAPON_WRENCH"
						"damage bonus" 1.5
						"fire rate penalty" 1.3
					}
				}
			}
		}
		WaveSpawn
		{
			Name "Medieval SubWave9"
			TotalCount 	40
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	25
			WaitForAllDead "Medieval Captain"
			WaitBetweenSpawns	15
			Where spawnbot
			
			TFBot
			{
				ClassIcon	demoknight
				Health	200
				Name	"Swordsman"
				Scale   1
				Class	Demoman
				StripItemSlot 1  
				StripItem "TF_WEAPON_GRENADELAUNCHER"  
				UseHumanModel 1
				Skill	Expert
				Item "The Stormin' Norman"
				Item "Shin Shredders"
				Item "The Eyelander"
				Item "The Chargin' Targe"
				ItemAttributes
				{
					ItemName	"The Eyelander"
					"fire rate bonus" 0.85
				}
				ItemAttributes
				{
					ItemName	"The Chargin' Targe"
					"dmg taken from bullets reduced" 0.5
					"dmg taken from blast reduced" 0.5
					"charge recharge rate increased" 0
				}
			}
			
		}
	}
	
	Wave
	{
		CustomWaveNumber 4
		CustomMaxWaveNumber 5
		InitWaveOutput
		{
			Target wave_initB_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		Explanation  
		{
			Line "{ff0000}Narrator: {ffff00}And with the help of the mysterious blocky man,"
			Line "{ffff00}entire medieval war was won! Brute force and magic creatures now fully slayed!"
			Line "{ffff00}But sadly... The attacks on the castle aren't over yet!"
			Line "{ffff00}Is it possible that enemy changed style?"
			Line "{ffff00}Meanwhile Heavy teached Soldier how to make grenades."
			Line "{ffff00}Here's rulebook just in case if you need."
			Line "{00ffff}https://docs.google.com/document/d/1Ed6QokCRxiOj1kUoLmu7P-QErEu_drA1/edit#"
		}
		
		WaveSpawn
        {
            Name "Renaissance SubWave1"
            TotalCount 	1
			MaxActive	1
			SpawnCount 	1
			TotalCurrency 	50
			WaitBetweenSpawns	10
			WaitBeforeStarting 21

            Tank
			{
				Health 10000
				Speed 75
				Classicon blimp2_lite
				Skin 1  
				MaxTurnRate 50  
				Scale 0.6
				Model "models/bots/boss_bot/boss_blimp.mdl"	  
				Gravity 0  
				DisableTracks 1  
                DisableSmokestack 1  
				DisableChildModels 1  
				ReplaceModelCollisions 1  
				EngineLoopSound "npc\combine_gunship\dropship_engine_distant_loop1.wav"  
				PingSound "npc\combine_gunship\ping_search.wav"  
				Name tankboss
				StartingPathTrackNode blimp_path_1

				OnKilledOutput
				{
					Target boss_dead_relay
					Action Trigger
				}
				
				OnBombDroppedOutput
				{
					Target boss_deploy_relay
					Action Trigger
				}
			}
        }
		
		WaveSpawn
		{
			WaitBeforeStarting 0
			FirstSpawnMessage "{ff0000}Narrator: {ffff00}Seems like they invented hot air balloon..."
		}

		WaveSpawn
		{
			Name "Renaissance SubWave1"
			TotalCount 	30
			MaxActive	12
			SpawnCount 	6
			TotalCurrency 	20
			WaitBetweenSpawns	10
			WaitBeforeStarting 21
			Where spawnbot
				
				TFBot
				{
						ClassIcon	scout_runeblade
						Health	200
						Name	"Fencer"
						Scale   1
						Class	Spy
						Action 	FetchFlag
						StripItemSlot 0
						StripItemSlot 1
						StripItemSlot 3
						StripItemSlot 4
						WeaponRestrictions MeleeOnly
						UseMeleeThreatPrioritization 1
						UseHumanModel 1
						Skill	Expert
						Item 	"Three-Rune Blade"
						Item 	"Murderer's Motif"
						Item 	"The Bountiful Bow"
						Item 	"The Scoped Spartan"
						ItemAttributes
						{
							ItemName 	"Three-Rune Blade"
							"hit self on miss" 0
							"bleeding duration" 0
							"is_a_sword" 1
							"move speed penalty" 0.75
							"fire rate penalty" 1.6
							"damage bonus" 1.4
							"silent killer" 1
						}
				}
		}
		
		WaveSpawn
		{
			Name "Renaissance SubWave1"
			TotalCount 	30
			MaxActive	12
			SpawnCount 	6
			TotalCurrency 	20
			WaitBetweenSpawns	10
			WaitBeforeStarting 21
			Where spawnbot
				TFBot
				{
					ClassIcon	demoknight_fire
					Health	300
					Name	"Warrior"
					Scale   1.2
					Class	Soldier
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item "Steel Pipes"
					Item "Bushi-Dou"
					Item "Shin Shredders"
					Item "The Hellmet"
					Item "TF_WEAPON_SHOVEL"
					ItemAttributes
					{
						ItemName 	"TF_WEAPON_SHOVEL"
						"fire rate bonus" 0.85
						"add cond when active" 69
						"Set DamageType Ignite" 1
						"is_a_sword" 1
						"custom item model" "models/workshop/weapons/c_models/c_claidheamohmor/c_claidheamohmor.mdl"
					}
				}
		}
		
		WaveSpawn
		{
			Name "Renaissance SubWave1"
			TotalCount 	20
			MaxActive	12
			SpawnCount 	4
			TotalCurrency 	40
			WaitBetweenSpawns	15
			WaitBeforeStarting 22
			Where spawnbot
			TFBot
				{
					ClassIcon	melee_immune_crossbow
					Health	200
					Name	"Healing Wizard"
					Scale	1
					Class	Medic
					UseHumanModel 1
					Skill	Expert
					Action FetchFlag
					WeaponRestrictions PrimaryOnly
					Attributes	"AlwaysFireWeapon"
					Item	"festive crusader's crossbow"
					Item	"the ham shank"
					Item	"point and shoot"
					Item	"the ruffled ruprecht"
					CharacterAttributes
					{
						"backstab shield"	10
					}
					ItemAttributes
					{
						ItemName 	"festive crusader's crossbow"
						"dmg from melee increased"	-100
					}
					ItemAttributes
					{
						ItemName 	"the ham shank"
						"dmg from melee increased"	-100
					}
				}
		}
		
		WaveSpawn
		{
			Name "Renaissance SubWave2"
			TotalCount 	20
			MaxActive	12
			SpawnCount 	3
			TotalCurrency 	60
			WaitForAllDead "Renaissance SubWave1"
			WaitBetweenSpawns	7
			WaitBeforeStarting 0
			Where spawnbot
			TFBot
				{
					ClassIcon	demo_loose
					Health	500
					Name	"Cannoneer"
					Scale   1.3
					Class	Demoman
					UseHumanModel 1
					Skill	Expert
					WeaponRestrictions PrimaryOnly
					Item "The Glasgow Great Helm"
					Item "The Dark Age Defender"
					Item "Shin Shredders"
					Item "A Whiff of the Old Brimstone"
					Item "tf_weapon_grenadelauncher"
					ItemAttributes  
					{
						ItemName "tf_weapon_grenadelauncher"
						"clip size penalty" 0.25
						"damage bonus" 3
						"Projectile speed increased" 2.5
						"move speed penalty" 0.6
						"mult duck speed" 2
						"grenade explode on impact" 1
						"self dmg push force decreased" 0.01
						"fire rate penalty" 1.75
						"custom projectile model" "models\weapons\w_models\w_cannonball.mdl"
						"custom item model" "models/workshop/weapons/c_models/c_demo_cannon/c_demo_cannon.mdl"
					}
				}
		}
		
		WaveSpawn
		{
			Name "Renaissance SubWave2"
			TotalCount 	50
			MaxActive	15
			SpawnCount 	5
			TotalCurrency 	40
			WaitForAllDead "Renaissance SubWave1"
			WaitBetweenSpawns	7
			WaitBeforeStarting 0
			Where spawnbot
			TFBot
			{
				ClassIcon	demoknight_skullcutter_lite
				Health	500
				Name	"Halberdier"
				Scale   1.3
				Class	Demoman
				StripItemSlot 1  
				StripItem "TF_WEAPON_GRENADELAUNCHER"  
				UseHumanModel 1
				Skill	Expert
				Item "Forgotten King's Pauldrons"
				Item "The Hood of Sorrows"
				Item "Dynamite Abs"
				Item "Shin Shredders"
				Item "The Scotsman's Skullcutter"
				Item "The Chargin' Targe"
				ItemAttributes
				{
					ItemName 	"The Scotsman's Skullcutter"
					"fire rate bonus" 0.85
					"melee range multiplier" 2
					"move speed penalty" 0.75
				}
				ItemAttributes
				{
					ItemName 	"The Chargin' Targe"
					"dmg taken from bullets reduced" 0.25
					"dmg taken from blast reduced" 0.25
					"charge recharge rate increased" 0
				}
			}
		}
		
		WaveSpawn
		{
			Name "Renaissance SubWave2"
			TotalCount 	10
			MaxActive	10
			SpawnCount 	10
			TotalCurrency 	20
			WaitForAllDead "Renaissance SubWave1"
			WaitBetweenSpawns	7
			WaitBeforeStarting 0
			Where spawnbot
			Squad
			{
				TFBot
				{
					ClassIcon	spy
					Health	150
					Name	"Assasin"
					Scale   1
					Class	Spy
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item	"Your Eternal Reward"
					Item 	"The Lurking Legionnaire"
					Item 	"The Dashin' Hashshashin"
				}
				TFBot
				{
					ClassIcon	spy
					Health	150
					Name	"Winter Predator"
					Scale   1
					Class	Spy
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item 	"dec2014 The Puffy Provocateur"
					Item 	"dec2014 Stealthy Scarf"
					Item 	"The Covert Covers"
					Item 	"The Spy-cicle"
				}
				TFBot
				{
					ClassIcon	spy
					Health	175
					Name	"Pseudo-Pacifist"
					Scale   1
					Class	Spy
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item 	"The Big Earner"
					ItemAttributes  
					{
					ItemName "The Big Earner"
					"mult dmg vs tanks" 2.5
					"move speed bonus" 1.1
					"increased jump height" 1.1
					"add cloak on kill" 0
					"speed_boost_on_kill" 0
					}
				}
				TFBot
				{
					ClassIcon	spy
					Health	205
					Name	"Ninja"
					Scale   1
					Class	Spy
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item 	"Conniver's Kunai"
					Item 	"The Southie Shinobi"
					Item 	"The Red Socks"
					Item 	"The Frickin' Sweet Ninja Hood"
					CharacterAttributes
					{
						"move speed bonus" 2
					}
					ItemAttributes  
					{
						ItemName "Conniver's Kunai"
						"disguise damage reduction" 0.5
						"disguise no burn" 1
						"max health additive penalty" -25
						"add cond on kill" 5
						"add cond on kill duration" 3
					}
				}
				TFBot
				{
					ClassIcon	spy
					Health	150
					Name	"Assasin"
					Scale   1
					Class	Spy
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item	"Your Eternal Reward"
					Item 	"The Lurking Legionnaire"
					Item 	"The Dashin' Hashshashin"
				}
			}
		}
		
		WaveSpawn
		{
			Name "Renaissance SubWave3"
			TotalCount 	50
			MaxActive	15
			SpawnCount 	5
			TotalCurrency 	80
			WaitForAllDead "Renaissance SubWave2"
			WaitBetweenSpawns	15
			WaitBeforeStarting 0
			Where spawnbot
			TFBot
			{
				ClassIcon	sniper_bazaar_lite
				Health	200
				Name	"Musketeer"
				Scale   1
				Class	Sniper
				Action 	FetchFlag
				WeaponRestrictions 	PrimaryOnly
				Attributes	"AlwaysFireWeapon"
				UseHumanModel 1
				Skill	Expert
				Item "The Bazaar Bargain"
				Item "dec2014 hunter_vest"
				Item "The Bare Necessities"
				CharacterAttributes
				{
					"move speed penalty" 0.8
				}
				ItemAttributes
				{
					ItemName	"The Bazaar Bargain"
					"fire rate penalty" 3
					"reload time increased" 3
					"damage bonus" 5
				}
			}
		}
		
		WaveSpawn
		{
			Name "Renaissance SubWave3"
			TotalCount 	20
			MaxActive	12
			SpawnCount 	3
			TotalCurrency 	60
			WaitForAllDead "Renaissance SubWave2"
			WaitBetweenSpawns	7
			WaitBeforeStarting 0
			Where spawnbot
			TFBot
				{
					ClassIcon	demo_loose
					Health	500
					Name	"Cannoneer"
					Scale   1.3
					Class	Demoman
					UseHumanModel 1
					Skill	Expert
					WeaponRestrictions PrimaryOnly
					Item "The Glasgow Great Helm"
					Item "The Dark Age Defender"
					Item "Shin Shredders"
					Item "A Whiff of the Old Brimstone"
					Item "tf_weapon_grenadelauncher"
					ItemAttributes  
					{
						ItemName "tf_weapon_grenadelauncher"
						"clip size penalty" 0.25
						"damage bonus" 3
						"Projectile speed increased" 2.5
						"move speed penalty" 0.6
						"mult duck speed" 2
						"grenade explode on impact" 1
						"self dmg push force decreased" 0.01
						"fire rate penalty" 1.75
						"custom projectile model" "models\weapons\w_models\w_cannonball.mdl"
						"custom item model" "models/workshop/weapons/c_models/c_demo_cannon/c_demo_cannon.mdl"
					}
				}
		}
		
		WaveSpawn
		{
			Name "Renaissance SubWave3"
			TotalCount 	30
			MaxActive	12
			SpawnCount 	6
			TotalCurrency 	30
			WaitForAllDead "Renaissance SubWave2"
			WaitBetweenSpawns	10
			WaitBeforeStarting 21
			Where spawnbot
				TFBot
				{
					ClassIcon	demoknight_fire
					Health	300
					Name	"Warrior"
					Scale   1.2
					Class	Soldier
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item "Steel Pipes"
					Item "Bushi-Dou"
					Item "Shin Shredders"
					Item "The Hellmet"
					Item "TF_WEAPON_SHOVEL"
					ItemAttributes
					{
						ItemName 	"TF_WEAPON_SHOVEL"
						"fire rate bonus" 0.85
						"add cond when active" 69
						"Set DamageType Ignite" 1
						"is_a_sword" 1
						"custom item model" "models/workshop/weapons/c_models/c_claidheamohmor/c_claidheamohmor.mdl"
					}
				}
		}
		
		WaveSpawn
		{
			Name "Renaissance SubWave3"
			TotalCount 	4
			MaxActive	4
			SpawnCount 	2
			TotalCurrency 	100
			WaitForAllDead "Renaissance SubWave2"
			WaitBetweenSpawns	10
			WaitBeforeStarting 21
			Where spawnbot
				
				TFBot
				{
						ClassIcon	scout_runeblade_giant
						Health	2000
						Name	"Fencer Elite"
						Scale   2
						Class	Spy
						Action 	FetchFlag
						StripItemSlot 0
						StripItemSlot 1
						StripItemSlot 3
						StripItemSlot 4
						WeaponRestrictions MeleeOnly
						UseMeleeThreatPrioritization 1
						Attributes	"MiniBoss"
						Tag	"bot_giant"
						UseHumanModel 1
						Skill	Expert
						Item 	"Three-Rune Blade"
						Item 	"Murderer's Motif"
						Item 	"The Bountiful Bow"
						Item 	"The Scoped Spartan"
						CharacterAttributes
						{
							"override footstep sound set" 7
							"move speed bonus" 0.8
							"damage force reduction" 0.5
						}
						ItemAttributes
						{
							ItemName 	"Three-Rune Blade"
							"hit self on miss" 0
							"bleeding duration" 0
							"is_a_sword" 1
							"move speed penalty" 0.75
							"fire rate penalty" 1.6
							"damage bonus" 1.4
							"silent killer" 1
						}
				}
		}
		
		WaveSpawn
		{
			Name "RedIcon"
			TotalCurrency	0
			TotalCount	1
			MaxActive	1
			SpawnCount	1
			WaitBeforeStarting	0
			WaitBetweenSpawns	9999999
			Where	spawnbot
			Support Limited
			Squad
			{
				TFBot
				{
					ClassIcon	red2_lite
					Health	1
					Name	RedIcon
					Scale	0.1
					Class	Heavy
					Skill	Easy
					Attributes	"IgnoreFlag"
					WeaponRestrictions	MeleeOnly
					CharacterAttributes
					{
						"move speed bonus"	0
						"active health degen" -4
					}
				}
			}
		}
		
		
		WaveSpawn
		{
			Name "Father - Bread Boys"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 10
			Where spawnbot_redcastledoor
			FirstSpawnWarningSound FatherSpawn.mp3
			DoneWarningSound FatherDeath.mp3
			Support Limited
			TFBot
			{
				Name "Father"
				Item "Brass Bucket"
				WeaponRestrictions SecondaryOnly
				Item "The Shogun's Shoulder Guard"
				Item "The Hornblower"
				Item "The Teufort Tooth Kicker"
				Item "tf_weapon_shotgun_soldier"
				Class Soldier
				ClassIcon boss_metal_gear_crusader
				DropWeapon 1
				UseHumanModel 1
				Skill	Expert
				AddCond   { Name TF_COND_REPROGRAMMED } 
				Action Mobber
				Health 3000
				CharacterAttributes
				{
					"collect currency on kill" 1
					"health regen" 100
				}
				ItemAttributes
					{
						ItemName	"tf_weapon_shotgun_soldier"
						"damage bonus" 10
						"fire rate penalty" 3.5
					}
					Message
					{
						Name "{000000}Father: ARE YOU WINNING SON?!"
						Delay 0
						Repeats 1
					}
					Message
					{
						Name "{000000}Wait... You aren't my son... I probably forgot to take my meds!"
						Delay 3
						Repeats 1
					}
					Message
					{
						Name "{000000}Is that... WAR going on that I hear?!"
						Delay 5
						Repeats 1
					}
					Message
					{
						Name "{000000}THEN COUNT ME IN! I'M COMING!"
						Delay 8
						Repeats 1
					}
					Message
					{
						Name "{000000}FOR JERUSALEM!"
						Delay 10
						Repeats 1
					}
			}
		}
		
		WaveSpawn
		{
			Name "Father - Bread Boys"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 120
			Where spawnbot_reddoorin
			FirstSpawnWarningSound sonspawn.mp3
			DoneWarningSound sondead.mp3
			Support Limited
			TFBot
			{
				Name "Son"
				WeaponRestrictions SecondaryOnly
				Item "The Hunger Force"
				ItemColor   //Set item color
				{
					ItemName "The Hunger Force"
					Red 0
					Green 0
					Blue 255
				}
				Item "Brass Bucket"
				ItemColor   //Set item color
				{
					ItemName "Brass Bucket"
					Red 0
					Green 0
					Blue 0
				}
				Item "Pretty Boy's Pocket Pistol"
				Class Heavy
				ClassIcon boss_metal_gear_crusader
				DropWeapon 1
				UseHumanModel 1
				Skill	Hard
				AddCond   { Name TF_COND_REPROGRAMMED } 
				Action Mobber
				Health 2000
				CharacterAttributes
				{
					"collect currency on kill" 1
					"health regen" 50
					"critboost on kill" 5
					"use original class weapon animations" 1
					"use original class player animations" 1
				}
				ItemAttributes
					{
						ItemName	"Pretty Boy's Pocket Pistol"
						"damage bonus" 7.5
						"fire rate penalty" 2.5
						"use original class weapon animations" 1
						"use original class player animations" 1
					}
					Message
					{
						Name "{0000ff}Son: FATHER! WHERE THE HELL ARE YOU?"
						Delay 0
						Repeats 1
					}
					Message
					{
						Name "{000000}Father: SON! HELP ME DEFEND THE JERUSALEM!"
						Delay 3
						Repeats 1
					}
					Message
					{
						Name "{0000ff}Son: Wha- No."
						Delay 5
						Repeats 1
					}
					Message
					{
						Name "{000000}Father: THE KING IS HERE. DEFEND, OR I WILL KILL YOU MYSELF."
						Delay 8
						Repeats 1
					}
					Message
					{
						Name "{0000ff}Son: Jesus... Fine!"
						Delay 10
						Repeats 1
					}
			}
		}
		
		WaveSpawn
		{
			Name "KING"
			TotalCount 1
			MaxActive 1
			SpawnCount 1
			WaitBeforeStarting 0
			TotalCurrency 	200
			Where spawnbot_redcastledoor
			FirstSpawnWarningSound vo\Demoman_battlecry07.mp3
			DoneWarningSound vo\Demoman_paincrticialdeath05.mp3
			Support Limited
			TFBot
			{
				Name "King Tavish Redboot"
				Scale 1.5
				Item "Prince Tavish's Crown"
				WeaponRestrictions MeleeOnly
				Item "The King of Scotland Cape"
				Item "Shin Shredders"
				Item "Festive Eyelander"
				Class Demoman
				ClassIcon powerup_king_lite
				UseHumanModel 1
				Attributes	"MiniBoss"
				Attributes	"UseBossHealthBar"
				AlwaysGlow 1  
				AddCond   { Name TF_COND_REPROGRAMMED } 
				Action Mobber
				Health 10025
				CharacterAttributes
				{
					"move speed bonus" 0.5
					"override footstep sound set" 4
					"damage force reduction" 0.5
					"collect currency on kill" 1
				}
				ItemAttributes
					{
						ItemName	"Festive Eyelander"
						"damage bonus" 5.5
						"melee range multiplier" 1.5
						"fire rate penalty" 2
					}
				Message
					{
						Name "{ffffff}King Tavish Redboot:{ff0000} I'm not a bad king! I will fight alongside my men!"
						Delay 0
						Repeats 1
					}
				Message
					{
						Name "{0000ff}Protect King or Game Over!"
						Delay 1
						Repeats 1
					}
				InterruptAction
				{
					Target "1846 597 -255"
					Delay 0
					Cooldown 20
					Duration 20
					Repeats 9999999
					Distance 125
				}
			}
		}
		
		WaveSpawn
		{
			Name "time_is_up"
			TotalCount 0
			SpawnCount 0
			WaitForAllDead "KING"
			Support Limited

			FirstSpawnOutput
			{
			Target bluwin_relay
			Action Trigger
			}

			FirstSpawnWarningSound "music\mvm_lost_wave.wav"

			//RandomChoice
			//{
			// RandomChoice
			// {
			// TFBot
			// {
			// ClassIcon sniper
			// }
			// }
			//}
		}
	}
	
	Wave
	{
		CustomWaveNumber 5
		CustomMaxWaveNumber 5
		InitWaveOutput
		{
			Target wave_initB_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		Explanation  
		{
			Line "{ff0000}Narrator: {ffff00}Renaissance wasn't a problem for our heros,"
			Line "{ffff00}as they were assisted not only by KING himself, but also his loyal Knight."
			Line "{ffff00}Not even hot air balloon and first bullets can stop them."
			Line "{ffff00}Here's rulebook just in case if you need."
			Line "{00ffff}https://docs.google.com/document/d/1Ed6QokCRxiOj1kUoLmu7P-QErEu_drA1/edit#"
		}
		
		SpawnTemplate  
		{
			Name "TankFire"
			Origin "5 5 5"
		}
	
		WaveSpawn
		{
			Name "Colonial SubWave1"
			TotalCount 	50
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	80
			WaitBetweenSpawns	15
			WaitBeforeStarting 0
			Where spawnbot
			TFBot
			{
				ClassIcon	sniper_bazaar_lite
				Health	200
				Name	"Musketeer"
				Scale   1
				Class	Sniper
				Action 	FetchFlag
				WeaponRestrictions 	PrimaryOnly
				Attributes	"AlwaysFireWeapon"
				UseHumanModel 1
				Skill	Expert
				Item "The Bazaar Bargain"
				Item "dec2014 hunter_vest"
				Item "The Bare Necessities"
				CharacterAttributes
				{
					"move speed penalty" 0.8
				}
				ItemAttributes
				{
					ItemName	"The Bazaar Bargain"
					"fire rate penalty" 3
					"reload time increased" 3
					"damage bonus" 5
				}
			}
		}
		
		WaveSpawn
		{
			Name "Colonial SubWave1"
			TotalCount 	10
			MaxActive	8
			SpawnCount 	2
			TotalCurrency 	30
			WaitBetweenSpawns	15
			Where spawnbot
			TFBot
				{
					ClassIcon	demo_loose
					Health	500
					Name	"Cannoneer"
					Scale   1.3
					Class	Demoman
					UseHumanModel 1
					Skill	Expert
					WeaponRestrictions PrimaryOnly
					Item "The Glasgow Great Helm"
					Item "The Dark Age Defender"
					Item "Shin Shredders"
					Item "A Whiff of the Old Brimstone"
					Item "tf_weapon_grenadelauncher"
					ItemAttributes  
					{
						ItemName "tf_weapon_grenadelauncher"
						"clip size penalty" 0.25
						"damage bonus" 3
						"Projectile speed increased" 2.5
						"move speed penalty" 0.6
						"mult duck speed" 2
						"grenade explode on impact" 1
						"self dmg push force decreased" 0.01
						"fire rate penalty" 1.75
						"custom projectile model" "models\weapons\w_models\w_cannonball.mdl"
						"custom item model" "models/workshop/weapons/c_models/c_demo_cannon/c_demo_cannon.mdl"
					}
				}
		}
		
		WaveSpawn
        {
            Name "Colonial SubWave1"
            TotalCount 	1
			MaxActive	1
			SpawnCount 	1
			TotalCurrency 	90
			WaitBetweenSpawns	10

            FirstSpawnOutput
            {
                Target tankfire_start_relay			
                Action Trigger                
            }

			DoneOutput
			{
				Target tankfire_stop_relay
				Action Trigger
			}
			
			Tank
			{
				Health 20000
				Classicon tank_vac_fire_lite
				Speed 75
				Skin 0
				Model "models/bots/boss_bot/boss_tank_color.mdl"  
				Name "burntank"
				SpawnTemplate ColorTank2
				StartingPathTrackNode "tank_path_a1"

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

			}			
		}
		
		WaveSpawn
		{
			WaitBeforeStarting 0
			FirstSpawnMessage "{ff0000}Narrator: {ffff00}A metal tank. What's their idea? Why is this tank on fire...?"
		}
		
		WaveSpawn
		{
			Name "Colonial SubWave2"
			TotalCount 	30
			MaxActive	20
			SpawnCount 	5
			TotalCurrency 	50
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	sniper_bow_fire
				Health	200
				Name	"Revolutionist"
				Scale   1
				Class	Sniper
				UseHumanModel 1
				Skill	Expert
				Item "The Anger"
				Item "The Ham Shank"
				Item "The Huntsman"
				ItemAttributes  
					{
						ItemName "The Huntsman"
						"Set DamageType Ignite" 1
					}
			}
		}
		
		WaveSpawn
		{
			Name "Colonial SubWave2"
			TotalCount 	60
			MaxActive	12
			SpawnCount 	6
			TotalCurrency 	60
			WaitForAllDead "Colonial SubWave1"
			WaitBetweenSpawns	10
			Where spawnbot
				TFBot
				{
					ClassIcon	demoknight_fire
					Health	300
					Name	"Warrior"
					Scale   1.2
					Class	Soldier
					WeaponRestrictions MeleeOnly
					UseMeleeThreatPrioritization 1
					UseHumanModel 1
					Skill	Expert
					Item "Steel Pipes"
					Item "Bushi-Dou"
					Item "Shin Shredders"
					Item "The Hellmet"
					Item "TF_WEAPON_SHOVEL"
					ItemAttributes
					{
						ItemName 	"TF_WEAPON_SHOVEL"
						"fire rate bonus" 0.85
						"add cond when active" 69
						"Set DamageType Ignite" 1
						"is_a_sword" 1
						"custom item model" "models/workshop/weapons/c_models/c_claidheamohmor/c_claidheamohmor.mdl"
					}
				}
		}
		
		WaveSpawn
		{
			Name "Colonial SubWave2"
			TotalCount 	20
			MaxActive	5
			SpawnCount 	5
			TotalCurrency 	200
			WaitForAllDead "Colonial SubWave1"
			WaitBetweenSpawns	10
			WaitBeforeStarting 5
			Where spawnbot
				
				TFBot
				{
						ClassIcon	scout_runeblade_giant
						Health	2000
						Name	"Fencer Elite"
						Scale   2
						Class	Spy
						Action 	FetchFlag
						StripItemSlot 0
						StripItemSlot 1
						StripItemSlot 3
						StripItemSlot 4
						WeaponRestrictions MeleeOnly
						UseMeleeThreatPrioritization 1
						Attributes	"MiniBoss"
						Tag	"bot_giant"
						UseHumanModel 1
						Skill	Expert
						Item 	"Three-Rune Blade"
						Item 	"Murderer's Motif"
						Item 	"The Bountiful Bow"
						Item 	"The Scoped Spartan"
						CharacterAttributes
						{
							"override footstep sound set" 7
							"move speed bonus" 0.8
							"damage force reduction" 0.5
						}
						ItemAttributes
						{
							ItemName 	"Three-Rune Blade"
							"hit self on miss" 0
							"bleeding duration" 0
							"is_a_sword" 1
							"move speed penalty" 0.75
							"fire rate penalty" 1.3
							"damage bonus" 1.4
							"silent killer" 1
						}
				}
		}
		
		WaveSpawn
		{
			Name "Colonial SubWave2"
			TotalCount 	8
			MaxActive	2
			SpawnCount 	2
			TotalCurrency 	100
			WaitForAllDead "Colonial SubWave1"
			WaitBetweenSpawns	10
			WaitBeforeStarting 5
			Where spawnbot
			
			TFBot
				{
					ClassIcon	engineer_eureka_sif
					Health	3000
					Name	"Armored Bruteneer"
					Scale   1.5
					Class	Engineer
					WeaponRestrictions MeleeOnly
					UseHumanModel 1
					Skill	Expert
					Attributes	"MiniBoss"
					Tag	"bot_giant"
					Action FetchFlag
					Item "The Eureka Effect"
					Item "Brass Bucket"
					Item "The Dark Age Defender"
					Item "The Teufort Tooth Kicker"
					CharacterAttributes
					{
						"override footstep sound set"	7
						"damage force reduction"	0.5
						"move speed penalty" 0.75
						"voice pitch scale" 0.85
					}
					ItemAttributes
					{
						ItemName "The Eureka Effect"
						"Construction rate decreased" 1
						"metal_pickup_decreased" 1
						"mult dmg vs tanks" 1.5
						"Set DamageType Ignite" 1
						"healing received bonus" 1.35
					}
				}
		}
		
		WaveSpawn
		{
			Name	"Colonial SubWave2"
			WaitForAllDead	"Colonial SubWave1"
			TotalCurrency	90
			TotalCount	1
			Tank
			{
				Health 17500
				Speed 75
				Name "dread_tank"
				StartingPathTrackNode "boss_path_a1"
				SpawnTemplate ColorCritTank
				Classicon tank_green
				DisableSmokestack 1
				CritImmune 1  
				IsCrit 1
				Scale 0.9
				Model "models/bots/boss_bot/boss_tank_color.mdl"  
				
				OnBombDroppedOutput                             
				{
					Target boss_deploy_relay 
					Action Trigger                         
				}
			}
		}
		WaveSpawn
		{
			WaitBeforeStarting 0
			WaitForAllDead	"Colonial SubWave1"
			FirstSpawnMessage "{ff0000}Narrator: {ffff00}Green color allows to ignore crits. Atleast for tanks..."
		}
		WaveSpawn
		{
			Name "Colonial SubWave3"
			TotalCount 	36
			MaxActive	12
			SpawnCount 	6
			TotalCurrency 	60
			WaitForAllDead	"Colonial SubWave2"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scoutshuriken
				Health	150
				Name	"Ninja"
				Scale   1
				Class	Scout
				WeaponRestrictions MeleeOnly
				UseHumanModel 1
				Skill	Expert
				AutoJumpMin	5
				AutoJumpMax	5
				Attributes	"AutoJump"
				Item "The Frickin' Sweet Ninja Hood"
				Item "The Southie Shinobi"
				Item "The Red Socks"
				Item "Prinny Machete"
				Item "The Flying Guillotine"
				CharacterAttributes
				{
					"move speed bonus" 1.5
					"voice pitch scale" 0
				}
				ItemAttributes
				{
					ItemName	"Prinny Machete"
					"damage bonus" 1.5
					"is_a_sword" 1
					"silent killer" 1
					"custom item model" "models/workshop_partner/weapons/c_models/c_shogun_katana/c_shogun_katana.mdl"
				}
			}
			
		}
		
		WaveSpawn
		{
			Name "Colonial SubWave3"
			TotalCount 	18
			MaxActive	15
			SpawnCount 	3
			TotalCurrency 	40
			WaitForAllDead	"Colonial SubWave2"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	scoutshuriken
				Health	150
				Name	"Ninja"
				Scale   1
				Class	Scout
				WeaponRestrictions SecondaryOnly
				UseHumanModel 1
				Skill	Expert
				AutoJumpMin	5
				AutoJumpMax	5
				Attributes	"AutoJump"
				Item "The Frickin' Sweet Ninja Hood"
				Item "The Southie Shinobi"
				Item "The Red Socks"
				Item "Prinny Machete"
				Item "The Flying Guillotine"
				CharacterAttributes
				{
					"move speed bonus" 1.5
					"voice pitch scale" 0
				}
				ItemAttributes
				{
					ItemName	"The Flying Guillotine"
					"silent killer" 1
					"effect bar recharge rate increased" 0.001
				}
			}
			
		}
		WaveSpawn
		{
			Name "Colonial SubWave3"
			TotalCount 	10
			MaxActive	6
			SpawnCount 	2
			TotalCurrency 	40
			WaitForAllDead	"Colonial SubWave2"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	firework
				Health	200
				Name	"Fireworker"
				Scale   1
				Class	Engineer
				WeaponRestrictions PrimaryOnly
				UseHumanModel 1
				Skill	Expert
				Action FetchFlag
				Item	"hong kong cone"
				Item	"TF_WEAPON_ROCKETLAUNCHER"
				CharacterAttributes
				{
					"move speed bonus" 0.85
					"voice pitch scale" 0
				}
				ItemAttributes
				{
					ItemName	"TF_WEAPON_ROCKETLAUNCHER"
					"custom item model" "models/workshop/weapons/c_models/c_xms_giftwrap/c_xms_giftwrap.mdl"
					"clip size penalty" 0.25
					"Reload time increased" 2
					"damage penalty" 0.8
					"explosion particle" "mvm_pow_gold_seq_firework_mid"
				}
			}
			
		}
		WaveSpawn
		{
			Name "Colonial SubWave3"
			TotalCount 	8
			MaxActive	6
			SpawnCount 	2
			TotalCurrency 	30
			WaitForAllDead	"Colonial SubWave2"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	firework
				Health	200
				Name	"Festive Fireworker"
				Scale   1
				Class	Medic
				WeaponRestrictions PrimaryOnly
				UseHumanModel 1
				Skill	Expert
				Action FetchFlag
				Item	"hong kong cone"
				Item	"TF_WEAPON_ROCKETLAUNCHER"
				CharacterAttributes
				{
					"move speed bonus" 0.85
					"voice pitch scale" 0
				}
				ItemAttributes
				{
					ItemName	"TF_WEAPON_ROCKETLAUNCHER"
					"custom item model" "models/workshop/weapons/c_models/c_xms_giftwrap/c_xms_giftwrap.mdl"
					"clip size penalty" 0.25
					"Reload time increased" 2
					"damage penalty" 0.8
					"Set DamageType Ignite" 1
					"explosion particle" "mvm_pow_gold_seq_firework_mid"
				}
			}
			
		}
		WaveSpawn
		{
			Name "Colonial SubWave3"
			TotalCount 	8
			MaxActive	6
			SpawnCount 	2
			TotalCurrency 	30
			WaitForAllDead	"Colonial SubWave2"
			WaitBetweenSpawns	10
			Where spawnbot
			
			TFBot
			{
				ClassIcon	firework
				Health	200
				Name	"Big Bang Fireworker"
				Scale   1
				Class	Demoman
				WeaponRestrictions PrimaryOnly
				UseHumanModel 1
				Skill	Expert
				Item	"hong kong cone"
				Item	"TF_WEAPON_ROCKETLAUNCHER"
				CharacterAttributes
				{
					"move speed bonus" 0.85
					"voice pitch scale" 0
				}
				ItemAttributes
				{
					ItemName	"TF_WEAPON_ROCKETLAUNCHER"
					"custom item model" "models/workshop/weapons/c_models/c_xms_giftwrap/c_xms_giftwrap.mdl"
					"clip size penalty" 0.25
					"Reload time increased" 2
					"damage penalty" 0.8
					"Blast radius increased" 2
					"explosion particle" "mvm_pow_gold_seq_firework_mid"
				}
			}
			
		}
		
		WaveSpawn // Tank # HP
        {
            Name "Ghosty"
            TotalCount 1
            MaxActive 1
            SpawnCount 1
            WaitBeforeStarting 15
            WaitForAllDead	"Colonial SubWave2"
        
            TotalCurrency 90
        
            Tank
            {
                Name "tankboss"
                StartingPathTrackNode "flank_tank_path_1"
                Health 12500
                Speed 90
                DisableSmokestack 1 
                SpawnTemplate "ghosttank"
                Model "models/bots/boss_bot/boss_tank_color.mdl"
				StartSound "ambient/halloween/thunder_10.wav"  
                EngineLoopSound "ambient/underground.wav"  
				PingSound "ambient/hallow02.wav"  
				DeploySound "ambient/creak03.wav"
				Classicon tank_ghost
                OnKilledOutput {}
                OnBombDroppedOutput
                {
                    Target boss_deploy_relay
                    Action Trigger
                }
            }
        }
		
		WaveSpawn
		{
			Name "TANKFX"
			WaitForAllSpawned "Ghosty"
			WaitBeforeStarting 33.4
			FirstSpawnWarningSound ambient\materials\cartrap_explode_impact1.wav
			FirstSpawnOutput                                                                                                                                                            
			{
				Target shakeit2                
				Action StartShake       
			}
		}
		WaveSpawn
		{
			Name "TANKFX"
			WaitForAllSpawned "Ghosty"
			WaitBeforeStarting 33.4
			FirstSpawnWarningSound ambient\materials\cartrap_explode_impact2.wav
			FirstSpawnOutput                                                                                                                                                            
			{
				Target shakeit2                
				Action StartShake       
			}
		}
		
		WaveSpawn
		{
			Name "TANKFX2"
			WaitForAllSpawned "Ghosty"
			WaitBeforeStarting 43.5
			FirstSpawnWarningSound ambient\materials\cartrap_explode_impact1.wav
			FirstSpawnOutput                                                                                                                                                            
			{
				Target shakeit2                
				Action StartShake       
			}
		}
		WaveSpawn
		{
			Name "TANKFX2"
			WaitForAllSpawned "Ghosty"
			WaitBeforeStarting 43.5
			FirstSpawnWarningSound ambient\materials\cartrap_explode_impact2.wav
			FirstSpawnOutput                                                                                                                                                            
			{
				Target shakeit2                
				Action StartShake       
			}
		}
		WaveSpawn
		{
			WaitBeforeStarting 0
			WaitForAllSpawned "Ghosty"
			FirstSpawnMessage "{ff0000}Narrator: {ffff00}Tactics, FEAR! and inventions."
		}
	}
	
	Wave
	{
		CustomWaveNumber 5
		CustomMaxWaveNumber 5
		InitWaveOutput
		{
			Target wave_initB_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target	wave_finished_relay
			Action	Trigger
		}
		WaitWhenDone 65
		Checkpoint Yes
		Explanation  
		{
			Line "{ff0000}Narrator: {ffff00}Colonial age full of flames and technological experimentation has fallen."
			Line "{ffff00}But as they say..."
			Line "{ffff00}It's hiiigh nooooon!"
			Line "{ffff00}Here's rulebook just in case if you need."
			Line "{00ffff}https://docs.google.com/document/d/1Ed6QokCRxiOj1kUoLmu7P-QErEu_drA1/edit#"
		}
		
		WaveSpawn
		{
			Name "West SubWave1"
			TotalCount 	50
			MaxActive	20
			SpawnCount 	10
			TotalCurrency 	80
			WaitBetweenSpawns	15
			WaitBeforeStarting 0
			Where spawnbot
			TFBot
			{
				ClassIcon	sniper_bazaar_lite
				Health	200
				Name	"Musketeer"
				Scale   1
				Class	Sniper
				Action 	FetchFlag
				WeaponRestrictions 	PrimaryOnly
				Attributes	"AlwaysFireWeapon"
				UseHumanModel 1
				Skill	Expert
				Item "The Bazaar Bargain"
				Item "dec2014 hunter_vest"
				Item "The Bare Necessities"
				CharacterAttributes
				{
					"move speed penalty" 0.8
				}
				ItemAttributes
				{
					ItemName	"The Bazaar Bargain"
					"fire rate penalty" 3
					"reload time increased" 3
					"damage bonus" 5
				}
			}
		}
		
	}
	
	ExtraTankPath  
    {
        Name blimp_path
        Node "-4578 591 -351"
        Node "-3756 592 -348"
        Node "-2121 613 321"
        Node "-562 600 333"
        Node "-544 1458 312"
		Node "1987 1453 327"
		Node "2676 1804 -13"
		Node "4303 1800 -16"
		Node "4324 1228 17"
		Node "4323 845 187"
		Node "3894 840 227"
    }
	
	ExtraTankPath  
    {
        Name blimpa_path
        Node "-4578 591 -351"
        Node "-3756 592 -348"
        Node "-2121 613 321"
        Node "-562 600 333"
        Node "-559 -219 386"
		Node "1959 -160 365"
		Node "2711 -115 -33"
		Node "4325 -103 -36"
		Node "4330 393 -21"
		Node "4323 845 187"
		Node "3894 840 227"
    }
	
	ExtraTankPath  
    {
        Name bonus_tank_path
        Node "-4631 590 -403"
        Node "-904 587 -350"
        Node "-330 1472 -253"
        Node "1222 1447 -253"
        Node "1315 602 -253"
		Node "2046 597 -255"
		Node "2461 -111 -255"
		Node "4855 -119 -191"
		Node "4878 846 -191"
		Node "3979 837 14"
    }
	
	ExtraTankPath  
    {
        Name bbonus_tank_path
        Node "-4631 590 -403"
        Node "-904 587 -350"
        Node "-459 -324 -282"
        Node "1197 -312 -253"
        Node "1315 602 -253"
		Node "2046 597 -255"
		Node "2513 1802 -255"
		Node "4872 1804 -191"
		Node "4878 846 -191"
		Node "3979 837 14"
    }
	
	ExtraTankPath  
    {
        Name flank_tank_path
        Node "-435 2713 268"
        Node "-439 1993 268"
        Node "490 1997 268"
        Node "1071 2149 268"
        Node "1662 2148 268"
		Node "1631 1302 268"
		Node "1961 1295 -255"
		Node "2329 594 -255"
		Node "4343 590 -255"
		Node "4336 149 -255"
		Node "4887 151 -191"
		Node "4878 846 -191"
		Node "3979 837 14"
    }
	
	FlagResetTime   //Overrides default bomb reset time
	{
		Name "intel" //Name of flag entity on the map
		ResetTime 90
	}
	
	ExtraSpawnPoint    //Inside castle walls gate
    {
        Name spawnbot_reddoorin
		// StartDisabled 1 // If the spawn point starts disabled (Default: 0)
        TeamNum 3 // 2 - Red team 3 - Robots. If you are adding spawn for reprogrammed robots, use team 3
        X	"2342"                     
        Y	"-285"                  
        Z	"-255"        
    }
	
	ExtraSpawnPoint    //Inside castle double door
    {
        Name spawnbot_redcastledoor
		// StartDisabled 1 // If the spawn point starts disabled (Default: 0)
        TeamNum 3 // 2 - Red team 3 - Robots. If you are adding spawn for reprogrammed robots, use team 3
        X	"4620"                     
        Y	"-235"                  
        Z	"-191"        
    }
	
	ExtraSpawnPoint    //Outside castle walls gate
    {
        Name spawnbot_reddoorout
		// StartDisabled 1 // If the spawn point starts disabled (Default: 0)
        TeamNum 3 // 2 - Red team 3 - Robots. If you are adding spawn for reprogrammed robots, use team 3
        X	"1286"                     
        Y	"1935"                  
        Z	"-253"        
    }
	
	ExtraSpawnPoint    //Right villager house
    {
        Name spawnbot_villagerdoor1
		// StartDisabled 1 // If the spawn point starts disabled (Default: 0)
        TeamNum 3 // 2 - Red team 3 - Robots. If you are adding spawn for reprogrammed robots, use team 3
        X	"697"                     
        Y	"664"                  
        Z	"-253"        
    }
	
	ExtraSpawnPoint    //Left villager house
    {
        Name spawnbot_villagerdoor2
		// StartDisabled 1 // If the spawn point starts disabled (Default: 0)
        TeamNum 3 // 2 - Red team 3 - Robots. If you are adding spawn for reprogrammed robots, use team 3
        X	"953"                     
        Y	"522"                  
        Z	"-253"        
    }
	
	ExtraSpawnPoint    //House with arrows
    {
        Name spawnbot_villagerdoor3
		// StartDisabled 1 // If the spawn point starts disabled (Default: 0)
        TeamNum 3 // 2 - Red team 3 - Robots. If you are adding spawn for reprogrammed robots, use team 3
        X	"-310"                     
        Y	"1016"                  
        Z	"-253"        
    }
	
	ExtraSpawnPoint    //Adds spawn points on specified location
    {
        Name spawnbot_villagerdoor4
		// StartDisabled 1 // If the spawn point starts disabled (Default: 0)
        TeamNum 3 // 2 - Red team 3 - Robots. If you are adding spawn for reprogrammed robots, use team 3
        X	"-606"                     
        Y	"1616"                  
        Z	"-282"        
    }
	
	ExtraSpawnPoint    //Right villager house
    {
        Name spawnbot_exactfront
		// StartDisabled 1 // If the spawn point starts disabled (Default: 0)
        TeamNum 3 // 2 - Red team 3 - Robots. If you are adding spawn for reprogrammed robots, use team 3
        X	"-1821"                     
        Y	"594"                  
        Z	"-373"        
    }
	
	PointTemplates  
	{
	
			WoodTank
        {
            OnSpawnOutput
            {
                Target "!activator"
                Action "color"
                Param  "186, 140, 99"
            }
        }
		
			ColorCritTank
        {
            OnSpawnOutput
            {
                Target "!activator"
                Action "color"
                Param  "0 255 0"
            }
        }
		
			ColorTank3
        {
            OnSpawnOutput
            {
                Target "!activator"
                Action "color"
                Param  "255 255 0"
            }
        }
		
			PanicTank
		{
			OnSpawnOutput
			{
				Target "panictank_init_relay"
				Action "Trigger"
			}
			
			logic_relay
			{
				"targetname" "panictank_init_relay"
				
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow90Percent !self:SetSpeed:75:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow70Percent !self:SetSpeed:100:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow50Percent !self:SetSpeed:125:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow30Percent !self:SetSpeed:150:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow20Percent !self:SetSpeed:200:0:-1,0,-1"
				"OnTrigger"  "!parent,AddOutput,OnHealthBelow10Percent !self:SetSpeed:250:0:-1,0,-1"
			}
		}
		
			VacTankRandom
		{
			OnSpawnOutput
			{
				Target "!parent"
				Action SetDamageFilter
				Param  "filter_bullet"
				Delay  0.00
			}
			
            ambient_generic
            {
                "targetname" "tank_vacc_deploy_sound"            
                "health"     "10"
                "message"    "weapons/medi_shield_deploy.wav"
                "pitch"      "100"
                "pitchstart" "100"
                "radius"     "5000"
                "spawnflags" "48"
                "origin"     "0 0 180"
            }
			
			logic_timer
			{
				"targetname"    "tank_vacc_timer"
				"RefireTime"    "15"
				"spawnflags"    "0"
				"StartDisabled" "0"
				"UseRandomTime" "0"

				"OnTimer"       "tank_vacc_changing,Trigger,,0,-1"
				"OnTimer"       "tank_vacc_deploy_sound,PlaySound,,4,-1"
				"OnTimer"       "tank_vacc_case,PickRandom,,4,-1"
			}
			
			logic_relay
			{
				"targetname" "tank_vacc_enable_all"
				
				"OnTrigger"  "tank_shield_melee,Enable,,0,-1"
				"OnTrigger"  "tank_shield_bullet,Enable,,0,-1"
				"OnTrigger"  "tank_shield_blast,Enable,,0,-1"
				"OnTrigger"  "tank_shield_fire,Enable,,0,-1"					
			}
			logic_relay
			{
				"targetname" "tank_vacc_disable_all"
				
				"OnTrigger"  "tank_shield_fire,Disable,,0,-1"
				"OnTrigger"  "tank_shield_melee,Disable,,0,-1"
				"OnTrigger"  "tank_shield_bullet,Disable,,0,-1"
				"OnTrigger"  "tank_shield_blast,Disable,,0,-1"				
			}
			logic_relay
			{
				"targetname" "tank_vacc_changing"
				
				"OnTrigger"  "!parent,SetDamageFilter,,0,-1"       // Tank is vulnerable to all damage for this duration
				"OnTrigger"  "tank_vacc_enable_all,Trigger,,0,-1"
				"OnTrigger"  "tank_vacc_disable_all,Trigger,,0.5,-1"
				"OnTrigger"  "tank_vacc_enable_all,Trigger,,1,-1"
				"OnTrigger"  "tank_vacc_disable_all,Trigger,,1.5,-1"
				"OnTrigger"  "tank_vacc_enable_all,Trigger,,2,-1"
				"OnTrigger"  "tank_vacc_disable_all,Trigger,,2.5,-1"
				"OnTrigger"  "tank_vacc_enable_all,Trigger,,3,-1"
				"OnTrigger"  "tank_vacc_disable_all,Trigger,,3.5,-1"
			}
			
			logic_case
			{
				"targetname" "tank_vacc_case"
				
				"OnCase01"   "!parent,SetDamageFilter,filter_bullet,0,-1"
				"OnCase01"   "tank_shield_bullet,Enable,,0,-1"
				"OnCase02"   "!parent,SetDamageFilter,filter_bullet,0,-1"
				"OnCase02"   "tank_shield_bullet,Enable,,0,-1"
				
				"OnCase03"   "!parent,SetDamageFilter,filter_blast,0,-1"
				"OnCase03"   "tank_shield_blast,Enable,,0,-1"
				"OnCase04"   "!parent,SetDamageFilter,filter_blast,0,-1"
				"OnCase04"   "tank_shield_blast,Enable,,0,-1"

				"OnCase05"   "!parent,SetDamageFilter,filter_fire,0,-1"
				"OnCase05"   "tank_shield_fire,Enable,,0,-1"
				"OnCase06"   "!parent,SetDamageFilter,filter_fire,0,-1"
				"OnCase06"   "tank_shield_fire,Enable,,0,-1"

				"OnCase07"   "!parent,SetDamageFilter,filter_melee,0,-1"
				"OnCase07"   "tank_shield_melee,Enable,,0,-1"				
			}
			
			
            prop_dynamic
            {
                "targetname"    "tank_shield_melee"
                "model"         "models/props_tumb/mvm/tank_shield.mdl"
				"StartDisabled" "1"
                "skin"          "1"
            }
            prop_dynamic
            {
                "targetname"    "tank_shield_bullet"
                "model"         "models/props_tumb/mvm/tank_shield.mdl"
				"StartDisabled" "0"
                "skin"          "2"
            }
            prop_dynamic
            {
                "targetname"    "tank_shield_blast"
                "model"         "models/props_tumb/mvm/tank_shield.mdl"
				"StartDisabled" "1"
                "skin"          "3"
            }
            prop_dynamic
            {
                "targetname"    "tank_shield_fire"
                "model"         "models/props_tumb/mvm/tank_shield.mdl"
				"StartDisabled" "1"
                "skin"          "4"
            }
		}
		
			VacTankFilters
		{
			// BULLET
			// -----------------------------------------------------------
			filter_damage_type
			{
				"targetname" "filter_bullet1"
				"damagetype" "538968064"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_bullet2"
				"damagetype" "540016640"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_bullet3"
				"damagetype" "2097154"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_bullet4"
				"damagetype" "3145730"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_bullet5"
				"damagetype" "34603010"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_bullet6"
				"damagetype" "33554434"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_bullet7"
				"damagetype" "2228226"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_bullet8"
				"damagetype" "2230274"
				"Negated"    "1"
			}
			
			filter_multi
			{
				"targetname" "filter_bullet_mix1"
				"Negated"    "0"
				"filtertype" "0"
				"Filter01"   "filter_bullet6"
				"Filter02"   "filter_bullet7"
				"Filter03"   "filter_bullet8"
				"Filter04"   "filter_isnt_building"
			}
			filter_multi
			{
				"targetname" "filter_bullet_mix2"
				"Negated"    "0"
				"filtertype" "0"
				"Filter01"   "filter_bullet1"
				"Filter02"   "filter_bullet2"
				"Filter03"   "filter_bullet3"
				"Filter04"   "filter_bullet4"
				"Filter05"   "filter_bullet5"
			}
			filter_multi
			{
				"targetname" "filter_bullet_mixall"
				"Negated"    "0"
				"filtertype" "0"
				"Filter01"   "filter_bullet_mix1"
				"Filter02"   "filter_bullet_mix2"
			}
			filter_multi
			{
				"targetname" "filter_bullet"
				"Negated"    "0"
				"filtertype" "1"
				"Filter01"   "filter_sentry_explosives"
				"Filter02"   "filter_bullet_mixall"
			}
			
			// BLAST
			// -----------------------------------------------------------
			filter_damage_type
			{
				"targetname" "filter_blast1"
				"damagetype" "2359360"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_blast2"
				"damagetype" "3407936"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_blast3"
				"damagetype" "262208"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_blast4"
				"damagetype" "1310784"
				"Negated"    "1"
			}
			
			filter_multi
			{
				"targetname" "filter_blast_allow"
				"Negated"    "1"
				"filtertype" "0"
				"Filter01"   "filter_blast1"
				"Filter02"   "filter_blast2"
				"Filter03"   "filter_blast3"
				"Filter04"   "filter_blast4"
			}
			filter_multi
			{
				"targetname" "filter_blast"
				"Negated"    "0"
				"filtertype" "0"
				"Filter01"   "filter_blast1"
				"Filter02"   "filter_blast2"
				"Filter03"   "filter_blast3"
				"Filter04"   "filter_blast4"
				"Filter05"   "filter_blast5"
			}			

			// FIRE
			// -----------------------------------------------------------
			filter_damage_type
			{
				"targetname" "filter_fire1"
				"damagetype" "16779264"
				"Negated"    "1"
			}
			filter_damage_type
			{
				"targetname" "filter_fire2"
				"damagetype" "17827840"
				"Negated"    "1"
			}
			
			filter_multi
			{
				"targetname" "filter_fire"
				"Negated"    "0"
				"filtertype" "0"
				"Filter01"   "filter_fire1"
				"Filter02"   "filter_fire2"
			}

			// MISC
			// -----------------------------------------------------------
			filter_tf_damaged_by_weapon_in_slot
			{
				"targetname" "filter_isnt_primary"
				"Negated"    "1"
				"weaponSlot" "0"
			}
			filter_tf_damaged_by_weapon_in_slot
			{
				"targetname" "filter_isnt_secondary"
				"Negated"    "1"
				"weaponSlot" "1"
			}
			filter_tf_damaged_by_weapon_in_slot
			{
				"targetname" "filter_melee"
				"Negated"    "0"
				"weaponSlot" "2"
			}
			filter_tf_damaged_by_weapon_in_slot
			{
				"targetname" "filter_isnt_melee"
				"Negated"    "1"
				"weaponSlot" "2"
			}
			
			filter_multi
			{
				"targetname" "filter_is_building"
				"Negated"    "0"
				"filtertype" "0"
				"Filter01"   "filter_isnt_primary"
				"Filter02"   "filter_isnt_secondary"
				"Filter03"   "filter_isnt_melee"
			}
			filter_multi
			{
				"targetname" "filter_isnt_building"
				"Negated"    "1"
				"filtertype" "0"
				"Filter01"   "filter_isnt_primary"
				"Filter02"   "filter_isnt_secondary"
				"Filter03"   "filter_isnt_melee"
			}	
			filter_multi
			{
				"targetname" "filter_sentry_explosives"
				"Negated"    "0"
				"filtertype" "0"
				"Filter01"   "filter_is_building"
				"Filter02"   "filter_blast_allow"
			}		
		}
		
			BlimpVacBullet // bullet resistant blimp
		{
			OnSpawnOutput
			{
				Target "!activator"
				Action "SetDamageFilter"
				Param "filter_bullet"
				Delay 0
			}
			filter_damage_type
			{
				"damagetype" "2097154"
				"Negated" "1"
				"targetname" "filter_bullet1"
			}
			filter_damage_type
			{
				"damagetype" "3145730"
				"Negated" "1"
				"targetname" "filter_bullet2"
			}
			filter_damage_type
			{
				"damagetype" "538968064"
				"Negated" "1"
				"targetname" "filter_bullet3"
			}
			filter_damage_type
			{
				"damagetype" "540016640"
				"Negated" "1"
				"targetname" "filter_bullet4"
			}
			filter_damage_type
			{
				"damagetype" "538968066"
				"Negated" "1"
				"targetname" "filter_bullet5"
			}
			filter_damage_type
			{
				"damagetype" "540016642"
				"Negated" "1"
				"targetname" "filter_bullet6"
			}
			filter_damage_type
			{
				"damagetype" "16777218"
				"Negated" "1"
				"targetname" "filter_bullet7"
			}
			filter_damage_type
			{
				"damagetype" "17825794"
				"Negated" "1"
				"targetname" "filter_bullet8"
			}
			filter_damage_type
			{
				"damagetype" "2230274"
				"Negated" "1"
				"targetname" "filter_bullet9"
			}
			filter_damage_type
			{
				"damagetype" "3278850"
				"Negated" "1"
				"targetname" "filter_bullet10"
			}
			filter_damage_type
			{
				"damagetype" "33554434"
				"Negated" "1"
				"targetname" "filter_bullet11"
			}
			filter_damage_type
			{
				"damagetype" "34603010"
				"Negated" "1"
				"targetname" "filter_bullet12"
			}
			filter_damage_type
			{
				"damagetype" "2"
				"Negated" "1"
				"targetname" "filter_bullet13"
			}
			filter_damage_type
			{
				"damagetype" "1048578"
				"Negated" "1"
				"targetname" "filter_bullet14"
			}
			filter_damage_type
			{
				"damagetype" "2232322"
				"Negated" "1"
				"targetname" "filter_bullet15"
			}
			filter_damage_type
			{
				"damagetype" "3280898"
				"Negated" "1"
				"targetname" "filter_bullet16"
			}
			filter_multi
			{
				"targetname" "filter_bullet_sub1"
				"Filter01" "filter_bullet1"
				"Filter02" "filter_bullet2"
				"Filter03" "filter_bullet3"
				"Filter04" "filter_bullet4"
				"Filter05" "filter_bullet5"
			}
			filter_multi
			{
				"targetname" "filter_bullet_sub2"
				"Filter01" "filter_bullet6"
				"Filter02" "filter_bullet7"
				"Filter03" "filter_bullet8"
				"Filter04" "filter_bullet9"
				"Filter05" "filter_bullet10"
			}
			filter_multi
			{
				"targetname" "filter_bullet_sub3"
				"Filter01" "filter_bullet11"
				"Filter02" "filter_bullet12"
				"Filter03" "filter_bullet13"
				"Filter04" "filter_bullet14"
				"Filter05" "filter_bullet15"
			}
			filter_multi
			{
				"targetname" "filter_bullet"
				"Filter01" "filter_bullet_sub1"
				"Filter02" "filter_bullet_sub2"
				"Filter03" "filter_bullet_sub3"
				"Filter04" "filter_bullet16"
			}
			prop_dynamic
			{
				"targetname" "blimp_shield"
				"model" "models/props_mvm/blimp_shield.mdl"
				"skin" "2"
			}
		}
			BlimpVacBlast // explosive resistant blimp
		{
			OnSpawnOutput
			{
				Target "!activator"
				Action "SetDamageFilter"
				Param "filter_blast"
				Delay 0
			}
			filter_damage_type
			{
				"damagetype" "2359360"
				"Negated" "1"
				"targetname" "filter_blast1"
			}
			filter_damage_type
			{
				"damagetype" "3407936"
				"Negated" "1"
				"targetname" "filter_blast2"
			}
			filter_damage_type
			{
				"damagetype" "20185152"
				"Negated" "1"
				"targetname" "filter_blast3"
			}
			filter_damage_type
			{
				"damagetype" "262208"
				"Negated" "1"
				"targetname" "filter_blast4"
			}
			filter_damage_type
			{
				"damagetype" "1310784"
				"Negated" "1"
				"targetname" "filter_blast5"
			}
			filter_damage_type
			{
				"damagetype" "2490432"
				"Negated" "1"
				"targetname" "filter_blast6"
			}
			filter_damage_type
			{
				"damagetype" "3539008"
				"Negated" "1"
				"targetname" "filter_blast7"
			}
			filter_damage_type
			{
				"damagetype" "17039362"
				"Negated" "1"
				"targetname" "filter_blast8"
			}
			filter_damage_type
			{
				"damagetype" "18087938"
				"Negated" "1"
				"targetname" "filter_blast9"
			}
			filter_damage_type
			{
				"damagetype" "00240040"
				"Negated" "1"
				"targetname" "filter_blast10"
			}
			filter_multi
			{
				"targetname" "filter_blast_sub1"
				"Filter01" "filter_blast1"
				"Filter02" "filter_blast2"
				"Filter03" "filter_blast3"
				"Filter04" "filter_blast4"
				"Filter05" "filter_blast5"
			}
			filter_multi
			{
				"targetname" "filter_blast_sub2"
				"Filter01" "filter_blast6"
				"Filter02" "filter_blast7"
				"Filter03" "filter_blast8"
				"Filter04" "filter_blast9"
				"Filter05" "filter_blast10"
			}
			filter_multi
			{
				"targetname" "filter_blast"
				"Filter01" "filter_blast_sub1"
				"Filter02" "filter_blast_sub2"
			}
			prop_dynamic
			{
				"targetname" "blimp_shield"
				"model" "models/props_mvm/blimp_shield.mdl"
				"skin" "3"
			}
		}
			BlimpVacFire // fire resistant blimp
		{
			OnSpawnOutput
			{
				Target "!activator"
				Action "SetDamageFilter"
				Param "filter_fire"
				Delay 0
			}
			filter_damage_type
			{
				"damagetype" "16779264"
				"Negated" "1"
				"targetname" "filter_fire1"
			}
			filter_damage_type
			{
				"damagetype" "17827840"
				"Negated" "1"
				"targetname" "filter_fire2"
			}
			filter_damage_type
			{
				"damagetype" "19005440"
				"Negated" "1"
				"targetname" "filter_fire3"
			}
			filter_damage_type
			{
				"damagetype" "20054016"
				"Negated" "1"
				"targetname" "filter_fire4"
			}
			filter_damage_type
			{
				"damagetype" "16777218"
				"Negated" "1"
				"targetname" "filter_fire5"
			}
			filter_damage_type
			{
				"damagetype" "17825794"
				"Negated" "1"
				"targetname" "filter_fire6"
			}
			filter_multi
			{
				"targetname" "filter_fire_sub1"
				"Filter01" "filter_fire1"
				"Filter02" "filter_fire2"
				"Filter03" "filter_fire3"
				"Filter04" "filter_fire4"
				"Filter05" "filter_fire5"
			}
			filter_multi
			{
				"targetname" "filter_fire"
				"Filter01" "filter_fire_sub1"
				"Filter02" "filter_fire6"
			}
			prop_dynamic
			{
				"targetname" "blimp_shield"
				"model" "models/props_mvm/blimp_shield.mdl"
				"skin" "4"
			}
		}
			BlimpVacMelee // a blimp that is resistant to everything except melee
		{
			OnSpawnOutput
			{
				Target "!activator"
				Action "SetDamageFilter"
				Param "filter_melee"
				Delay 0
			}
			filter_tf_damaged_by_weapon_in_slot
			{
				"weaponSlot" "2"
				"Negated" "0"
				"targetname" "filter_melee"
			}
			prop_dynamic
			{
				"targetname" "blimp_shield"
				"model" "models/props_mvm/blimp_shield.mdl"
				"skin" "0"
			}
			prop_dynamic
			{
				"targetname" "blimp_shield"
				"model" "models/props_mvm/blimp_shield.mdl"
				"skin" "1"
			}
		}
		
		TankFire
		{
			NoFixup 1
            logic_relay
            {
                "targetname" "tankfire_start_relay"
                "OnTrigger" "fire_ring,SetParent,burntank,0.05,-1"
                "OnTrigger" "fire_hurt,SetParent,burntank,0.05,-1"
                "OnTrigger" "fire_timer,SetParent,burntank,0.05,-1"
                "OnTrigger" "fire_timer,Enable,,0,-1"
                "OnTrigger" "fire_hurt,Enable,,0,-1"
				
            }
			logic_relay
			{
				"targetname" "tankfire_stop_relay"
				"OnTrigger" "fire_timer,Disable,,0,-1"
				"OnTrigger" "fire_hurt,Disable,,0,-1"
				"OnTrigger" "fire_ring,Kill,,0,-1"
			}
            logic_timer
            {
                "targetname" "fire_timer"
                "RefireTime" "0.5"
                "spawnflags" "0"
                "UseRandomTime" "0"
                "StartDisabled" "1"
                "OnTimer" "fire_ring,Start,,0,-1"
                "OnTimer" "fire_ring,Stop,,0.1,-1"
                "OnTimer" "fire_hurt,Enable,,0,-1"
                "OnTimer" "fire_hurt,Disable,,0.1,-1"
            }
            info_particle_system
            {
                "targetname" "fire_ring"
                "effect_name" "heavy_ring_of_fire"
                "flag_as_weather" "0"
                "start_active" "0"
                "origin" "-4525 594 -348"
            }
			info_particle_system
            {
                "targetname" "fire_ring"
                "effect_name" "heavy_ring_of_fire"
                "flag_as_weather" "0"
                "start_active" "0"
                "origin" "-4525 594 -348"
            }
			info_particle_system
            {
                "targetname" "fire_ring"
                "effect_name" "heavy_ring_of_fire"
                "flag_as_weather" "0"
                "start_active" "0"
                "origin" "-4525 594 -348"
            }
            trigger_ignite
            {
                "targetname" "fire_hurt"
                "filtername" "tankfire_filter"
                "burn_duration" "8"
                "damage_percent_per_second" "72"
                "origin" "-4525 594 -348"
                "spawnflags" "1"
                "StartDisabled" "1"
                "mins" "-155 -155 -24"
                "maxs" "155 155 48"
            }
            filter_activator_tfteam
            {
                "targetname" "tankfire_filter"
                "TeamNum" "2"
                "Negated" "0"
            }
		}
		
		ColorTank2
        {
            OnSpawnOutput
            {
                Target "!activator"
                Action "color"
                Param  "255 160 0"
            }
        }
		
		ColorTank4
        {
            OnSpawnOutput
            {
                Target "!activator"
                Action "color"
                Param  "0, 0, 255"
            }
        }
	
		Lumberjack_Tank // only one out at a time.
        {
			prop_dynamic
            {
                "targetname" "hat"
                "model" "models/player/items/heavy/fwk_heavy_lumber.mdl"
				"origin" "-50 0 143"
				"skin" "1"
				"modelscale" "2.2"
            }
            prop_dynamic
            {
                "model" "models/props_forest/sawblade_moving.mdl"
				"name" "sawblade"
                "solid" "0"
                "origin" "150 0 55"
				"angles" "0 120 90"
				"solid" "0"
				"skin" "1"
				"defaultanim" "idle"
            }
            prop_dynamic
            {
                "model" "models/props_forest/sawblade_moving.mdl"
				"name" "sawblade"
                "solid" "0"
                "origin" "100 0 60"
				"angles" "0 270 270"
				"solid" "0"
				"skin" "1"
				"modelscale" "0.7"
				"defaultanim" "idle"
            }
            trigger_hurt
            {
                "targetname" "sawblade_hurt"
                "filtername" "filter_redteam"
                "damage" "500"
                "damagetype" "65536"
                "spawnflags" "1"
                "origin" "150 25 65"
                "mins" "-50 -50 -40"
                "maxs" "50 50 40"
                "OnHurtPlayer" "saw_hit,PlaySound,,0,-1"
                "OnHurtPlayer" "saw_blood,Start,,0,-1"
                "OnHurtPlayer" "saw_blood,Stop,,0.1,-1"
                //"OnHurtPlayer" "!activator,$takedamage,500,0,-1" // janky ass trigger_hurts
            }
            trigger_hurt
            {
                "targetname" "sawblade_hurt"
                "filtername" "filter_redteam"
                "damage" "500"
                "damagetype" "65536"
                "spawnflags" "1"
                "origin" "150 -25 65"
                "mins" "-50 -50 -40"
                "maxs" "50 50 40"
                "OnHurtPlayer" "saw_hit,PlaySound,,0,-1"
                "OnHurtPlayer" "saw_blood,Start,,0,-1"
                "OnHurtPlayer" "saw_blood,Stop,,0.1,-1"
                //"OnHurtPlayer" "!activator,$takedamage,500,0,-1" // janky ass trigger_hurts
            }
            trigger_hurt
            {
                "targetname" "sawblade_hurt"
                "filtername" "filter_redteam"
                "damage" "500"
                "damagetype" "65536"
                "spawnflags" "1"
                "origin" "200 25 65"
                "mins" "-50 -50 -40"
                "maxs" "50 50 40"
                "OnHurtPlayer" "saw_hit,PlaySound,,0,-1"
                "OnHurtPlayer" "saw_blood,Start,,0,-1"
                "OnHurtPlayer" "saw_blood,Stop,,0.1,-1"
                //"OnHurtPlayer" "!activator,$takedamage,500,0,-1" // janky ass trigger_hurts
            }
            trigger_hurt
            {
                "targetname" "sawblade_hurt"
                "filtername" "filter_redteam"
                "damage" "500"
                "damagetype" "65536"
                "spawnflags" "1"
                "origin" "200 -25 65"
                "mins" "-50 -50 -40"
                "maxs" "50 50 40"
                "OnHurtPlayer" "saw_hit,PlaySound,,0,-1"
                "OnHurtPlayer" "saw_blood,Start,,0,-1"
                "OnHurtPlayer" "saw_blood,Stop,,0.1,-1"
                //"OnHurtPlayer" "!activator,$takedamage,500,0,-1" // janky ass trigger_hurts
            }
            ambient_generic
            {
                "targetname" "saw_hit"
                "message" "ambient/sawblade_impact1.wav"
                "health" "10"
				"radius" "2200"
                "spawnflags" "32"
                "origin" "150 0 65"
            }
            ambient_generic
            {
                "targetname" "saw_idle"
                "message" "ambient/sawblade.wav"
                "health" "10"
				"radius" "2200"				
                "origin" "150 0 65"
            }
            ambient_generic
            {
                "targetname" "saw_idle"
                "message" "ambient/sawblade.wav"
                "health" "10"
				"radius" "2200"				
                "origin" "150 0 65"
            }
            info_particle_system
            {
                "targetname" "saw_blood"
                "effect_name" "env_sawblood"
                "origin" "190 0 65"
            }
		}
		
		spelltank_color
        {
            //NoFixup 1
            
            OnSpawnOutput
			{
				Target "!activator"
				Action "color"
				
				//Change to any RGB value
				Param "0 0 255"
			}
            OnSpawnOutput
			{
				Target "!activator"
				Action "DisableShadow"
			}
            OnSpawnOutput
            {
                Target "spelltank_color_timer*"
                Action Disable
                Delay 0
            }
            OnSpawnOutput
            {
                Target "spelltank_color_timer*"
                Action Enable
                Delay 7
            }
            logic_timer
			{
				"targetname"    "spelltank_color_timer"
				"RefireTime"    "0.05"    // How quickly color is transitioned. | Minimum: 0.03
                "StartDisabled" "1"         
				"spawnflags"    "0"
				"StartDisabled" "0"
				"UseRandomTime" "0"

				"OnTimer"       "spelltank_color_state,GetValue,,0,-1"
			}
            // Holds which color math_counter we're adding to
			math_counter
			{
				"targetname" "spelltank_color_state"
				"startvalue" "1"
				"min"        "1"
				"max"        "6"                // Change this value if you change the number of colors in your transition
				
				"OnGetValue" "spelltank_color_changecase,InValue,,0,-1"
			}
			
			// Which color math_counter should we modify for this iteration based on tank_color_state
			logic_case
			{
				"targetname" "spelltank_color_changecase"
				"Case01"    "1"
                "Case02"    "2"
				"Case03"    "3"
                "Case04"    "4"
                "Case05"    "5"
                "Case06"    "6"
				
				// Changing how much is added each timer iteration changes the smoothness of the color transition
				// (5 is smoother than 25, and goes through more colors values, but is also much slower)
				"OnCase01"   "spelltank_color_bo,Add,1.1,0,-1"
                "OnCase02"   "spelltank_color_ow,Add,18,0,-1"
				"OnCase03"   "spelltank_color_owb,Add,18,0,-1"
                "OnCase04"   "spelltank_color_bp,Add,1.1,0,-1"
                "OnCase05"   "spelltank_color_pw,Add,18,0,-1"
                "OnCase06"   "spelltank_color_pwb,Add,18,0,-1"
			}
			
			// The math_counters below hold the value for where the color is in the transition for their corresponding math_colorblend
			// To customize, modify the colormins and colormaxs, or add new sets of math_counters and math_colorblends with the
			// appropriate outputs (remember to modify the entities above as well)
			// ----------------------------------------------------------------------------------------------------------------------
			
			// Counter 1 (BLU - YELLOW)
			math_counter
			{
				"targetname"    "spelltank_color_bo"
				"StartDisabled" "0"
				"startvalue"    "0"
				"min"           "0"
				"max"           "255"

				"OutValue"      "spelltank_color_bo_blend,InValue,,0,-1"
				"OnHitMax"      "spelltank_color_state,SetValueNoFire,2,0,-1"
				"OnHitMax"      "!self,SetValueNoFire,0,.01,-1"
				"OnHitMax"      "!self,Disable,,.02,-1"
				"OnHitMax"      "spelltank_color_ow,Enable,,.02,-1"				
			}
			math_colorblend
			{
				"targetname" "spelltank_color_bo_blend"
				"spawnflags" "1"
				"inmin"      "0"
				"inmax"      "255"
				"colormin"   "0 0 255"
				"colormax"   "255 255 0"
				
				"OutColor"   "!parent,Color,,0,-1"
			}
			
			// Counter 2 (YELLOW - GREEN)
			math_counter
			{
				"targetname"    "spelltank_color_ow"
				"StartDisabled" "1"
				"startvalue"    "0"
				"min"           "0"
				"max"           "255"

				"OutValue"      "spelltank_color_ow_blend,InValue,,0,-1"
				"OnHitMax"      "spelltank_color_state,SetValueNoFire,3,0,-1"
				"OnHitMax"      "!self,SetValueNoFire,0,.01,-1"
				"OnHitMax"      "!self,Disable,,.02,-1"		
				"OnHitMax"      "spelltank_color_owb,Enable,,.02,-1"	
			}
			math_colorblend
			{
				"targetname" "spelltank_color_ow_blend"
				"spawnflags" "1"
				"inmin"      "0"
				"inmax"      "255"
				"colormin"   "255 255 0"
				"colormax"   "0 255 0"
				
				"OutColor"   "!parent,Color,,0,-1"
			}
            // Counter 3 (GREEN - BLU)
			math_counter
			{
				"targetname"    "spelltank_color_owb"
				"StartDisabled" "1"
				"startvalue"    "0"
				"min"           "0"
				"max"           "255"

				"OutValue"      "spelltank_color_owb_blend,InValue,,0,-1"
				"OnHitMax"      "spelltank_color_state,SetValueNoFire,4,0,-1"
				"OnHitMax"      "!self,SetValueNoFire,0,.01,-1"
				"OnHitMax"      "!self,Disable,,.02,-1"		
				"OnHitMax"      "spelltank_color_bp,Enable,,.02,-1"	
			}
			math_colorblend
			{
				"targetname" "spelltank_color_owb_blend"
				"spawnflags" "1"
				"inmin"      "0"
				"inmax"      "255"
				"colormin"   "0 255 0"
				"colormax"   "0 0 255"
				
				"OutColor"   "!parent,Color,,0,-1"
			}
            // Counter 4 (BLU - RED)
			math_counter
			{
				"targetname"    "spelltank_color_bp"
				"StartDisabled" "1"
				"startvalue"    "0"
				"min"           "0"
				"max"           "255"

				"OutValue"      "spelltank_color_bp_blend,InValue,,0,-1"
				"OnHitMax"      "spelltank_color_state,SetValueNoFire,5,.0,-1"
				"OnHitMax"      "!self,SetValueNoFire,0,.01,-1"
				"OnHitMax"      "!self,Disable,,.02,-1"		
				"OnHitMax"      "spelltank_color_pw,Enable,,.02,-1"	
			}
			math_colorblend
			{
				"targetname" "spelltank_color_bp_blend"
				"spawnflags" "1"
				"inmin"      "0"
				"inmax"      "255"
				"colormin"   "0 0 255"
				"colormax"   "255 0 0"
				
				"OutColor"   "!parent,Color,,0,-1"
			}
            // Counter 5 (RED - GREEN)
			math_counter
			{
				"targetname"    "spelltank_color_pw"
				"StartDisabled" "1"
				"startvalue"    "0"
				"min"           "0"
				"max"           "255"

				"OutValue"      "spelltank_color_pw_blend,InValue,,0,-1"
				"OnHitMax"      "spelltank_color_state,SetValueNoFire,6,0,-1"
				"OnHitMax"      "!self,SetValueNoFire,0,.01,-1"
				"OnHitMax"      "!self,Disable,,.02,-1"		
				"OnHitMax"      "spelltank_color_pwb,Enable,,.02,-1"	
			}
			math_colorblend
			{
				"targetname" "spelltank_color_pw_blend"
				"spawnflags" "1"
				"inmin"      "0"
				"inmax"      "255"
				"colormin"   "255 0 0"
				"colormax"   "0 255 0"
				
				"OutColor"   "!parent,Color,,0,-1"
			}
            // Counter 6 (GREEN - BLU)
			math_counter
			{
				"targetname"    "spelltank_color_pwb"
				"StartDisabled" "1"
				"startvalue"    "0"
				"min"           "0"
				"max"           "255"

				"OutValue"      "spelltank_color_pwb_blend,InValue,,0,-1"
				"OnHitMax"      "spelltank_color_state,SetValueNoFire,1,0,-1"
				"OnHitMax"      "!self,SetValueNoFire,0,.01,-1"
				"OnHitMax"      "!self,Disable,,.02,-1"		
				"OnHitMax"      "spelltank_color_bo,Enable,,.02,-1"	
			}
			math_colorblend
			{
				"targetname" "spelltank_color_pwb_blend"
				"spawnflags" "1"
				"inmin"      "0"
				"inmax"      "255"
				"colormin"   "0 255 0"
				"colormax"   "0 0 255"
				
				"OutColor"   "!parent,Color,,0,-1"
			}
        }
		
		Ubertank
		{
			NoFixup 1
			logic_relay //relay that disables damage to tanks named "ubertank"
			{
				"targetname" "tank_uber_on"
				"OnTrigger" "ubertank,SetDamageFilter,filter_butts,0,-1"
			}
			logic_relay // relay that enables damage to tanks named "ubertank"
			{
				"targetname" "tank_uber_off"
				"OnTrigger" "ubertank,SetDamageFilter,filter_red,0,-1"
				"OnTrigger" "ubertank,Skin,0,0,-1"
			}
			filter_activator_name
			{
				"filtername" "buttsandonlybutts"
				"Negated" "0"
				"targetname" "filter_butts"
			}
		}
		
		corelogic_blubots
		{
			NoFixup 1

			logic_relay
			{
			"targetname" "bluwin_relay"
			"OnTrigger" "bots_win_blu,RoundWin,,0,-1"
			"OnTrigger" "bluwin_gametext,Display,,0,-1"
			}

			game_round_win
			{
			"targetname" "bots_win_blu"
			"origin" "0 0 0"
			"TeamNum" "3"
			"force_map_reset" "1"
			//"classname" "game_round_win"
				}

			game_text_tf
			{
			"background" "2"
			"display_to_team" "2"
			"icon" "ico_demolish"
			"targetname" "bluwin_gametext"
			"message" "YOUR KING DIED!"
			}

		}
		
		DrillTank
		{
			NoFixup	1
			logic_relay
			{
				"OnSpawn" "!parent,addoutput,onuser4 @c@!self:fireuser1::0:-1,0,-1"
				"OnSpawn" "drill_hurt_2,Enable,,82.5,-1"
				"OnSpawn" "tank_drill,SetSpeed,0,83.25,-1"
			}
			prop_dynamic
			{
				"targetname" "tank_drill"
				"model" "models/bots/boss_bot/tank_drill.mdl"	
				"skin" "2"
				"DefaultAnim" "drill_spin"
				"onuser1" "!self,setanimation,drill_deploy,0,-1"
				"onuser1" "!self,setdefaultanimation,drill_deploy_idle,0.1,-1"
			}
			trigger_multiple
			{
				"targetname" "drill_hurt_1"
				"origin" "182 0 86"
				"mins" "-50 -40 -50"
				"maxs" "50 40 50"
				"spawnflags" "1"
				"ontrigger" "driller,SetSpeed,25,0,-1"
				"ontrigger" "!activator,bleedplayer,1,0,-1"
				"ontrigger" "!activator,$takedamage,20,0,-1"
				"ontrigger" "!activator,$takedamage,20,0.25,-1"
				"ontrigger" "!activator,$takedamage,20,0.50,-1"
				"ontrigger" "!activator,$takedamage,20,0.75,-1"
				"ontrigger" "drill,Pitch,100,0,-1"
				"ontrigger" "drill2,Pitch,100,0.25,-1"
				"ontrigger" "drill3,Pitch,100,0.50,-1"
				"ontrigger" "drill2,Pitch,100,0.75,-1"
				"onendtouch" "driller,SetSpeed,75,0,-1"
				"wait" "0.1"
				"onuser1" "!self,disable,,0,-1"
			}
			ambient_generic
			{
				"targetname" "drill"
				"message" "npc\manhack\grind_flesh2.wav"
				"health" "10"
				"pitch" "100"
				"pitchstart" "100"
				"radius" "5000"
				"spawnflags" "17"
				"sourceentityname" "!parent"
				"onuser1" "!self,stopsound,,0,-1"
			}
			ambient_generic
			{
				"targetname" "drill2"
				"message" "npc\manhack\grind_flesh1.wav"
				"health" "10"
				"pitch" "100"
				"pitchstart" "100"
				"radius" "5000"
				"spawnflags" "17"
				"sourceentityname" "!parent"
				"onuser1" "!self,stopsound,,0,-1"
			}
			ambient_generic
			{
				"targetname" "drill3"
				"message" "npc\manhack\grind_flesh3.wav"
				"health" "10"
				"pitch" "100"
				"pitchstart" "100"
				"radius" "5000"
				"spawnflags" "17"
				"sourceentityname" "!parent"
				"onuser1" "!self,stopsound,,0,-1"
			}
			trigger_multiple
			{
				"targetname" "drill_hurt_2"
				"origin" "182 0 86"
				"mins" "-50 -40 -50"
				"maxs" "50 40 50"
				"spawnflags" "1"
				"ontrigger" "driller,SetSpeed,25,0,-1"
				"ontrigger" "!activator,bleedplayer,1,0,-1"
				"ontrigger" "!activator,$takedamage,500,0,-1"
				"ontrigger" "!activator,$takedamage,500,0.25,-1"
				"ontrigger" "!activator,$takedamage,500,0.50,-1"
				"ontrigger" "!activator,$takedamage,500,0.75,-1"
				"ontrigger" "drill_bot,Pitch,100,0,-1"
				"ontrigger" "drill2_bot,Pitch,100,0.25,-1"
				"ontrigger" "drill3_bot,Pitch,100,0.50,-1"
				"ontrigger" "drill4_bot,Pitch,100,0.75,-1"
				"onendtouch" "driller,SetSpeed,75,0,-1"
				"wait" "0.1"
				"StartDisabled"	1
				"onuser1" "!self,disable,,0,-1"
			}
			ambient_generic
			{
				"targetname" "drill_bot"
				"message" "ambient\grinder\grinderbot_01.wav"
				"health" "10"
				"pitch" "100"
				"pitchstart" "100"
				"radius" "5000"
				"spawnflags" "17"
				"sourceentityname" "!parent"
				"onuser1" "!self,stopsound,,0,-1"
			}
			ambient_generic
			{
				"targetname" "drill2_bot"
				"message" "ambient\grinder\grinderbot_02.wav"
				"health" "10"
				"pitch" "100"
				"pitchstart" "100"
				"radius" "5000"
				"spawnflags" "17"
				"sourceentityname" "!parent"
				"onuser1" "!self,stopsound,,0,-1"
			}
			ambient_generic
			{
				"targetname" "drill3_bot"
				"message" "ambient\grinder\grinderbot_03.wav"
				"health" "10"
				"pitch" "100"
				"pitchstart" "100"
				"radius" "5000"
				"spawnflags" "17"
				"sourceentityname" "!parent"
				"onuser1" "!self,stopsound,,0,-1"
			}
			ambient_generic
			{
				"targetname" "drill4_bot"
				"message" "mvm\physics\robo_impact_hard_05.wav"
				"health" "10"
				"pitch" "100"
				"pitchstart" "100"
				"radius" "5000"
				"spawnflags" "17"
				"sourceentityname" "!parent"
				"onuser1" "!self,stopsound,,0,-1"
			}
			ambient_generic
			{
				"targetname" "drill_sound"
				"message" "ambient/sawblade.wav"
				"health" "10"
				"pitch" "60"
				"pitchstart" "60"
				"radius" "1250"
				"sourceentityname" "!parent"
				"onuser1" "!self,stopsound,,0,-1"
			}
			ambient_generic
			{
				"targetname" "drill_sound"
				"message" "ambient/sawblade.wav"
				"health" "10"
				"pitch" "60"
				"pitchstart" "60"
				"radius" "1250"
				"sourceentityname" "!parent"
				"onuser1" "!self,stopsound,,0,-1"
			}
		}
		
		CausticTank
        {
            OnSpawnOutput
            {
                Target  "!activator"
                Action  "color"
                Param  "110 0 0" 
            }
            trigger_multiple
			{
				"targetname" "ffff"
				"mins" "-200 -100 0" //Trigger bounds, relative to origin
				"maxs" "200 100 230"
				"spawnflags" "1" //Target players. setting this to 64 will target most entities
				"onstarttouch" "!activator,BleedPlayer,5,0,0" //When a player touches the trigger (tank), make him bleed
			}
        }
		
		SentryTankBreakable
		{
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"spawnflags" "8"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"spawnflags" "8"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"spawnflags" "8"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"spawnflags" "8"
			}
		}
		
		SentryTankLvl2Breakable
		{
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "1"
				"spawnflags" "8"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "1"
				"spawnflags" "8"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "1"
				"spawnflags" "8"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "1"
				"spawnflags" "8"
			}
		}
		
		SentryTankLvl3Breakable
		{
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "2"
				"spawnflags" "8"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "2"
				"spawnflags" "8"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "2"
				"spawnflags" "8"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "2"
				"spawnflags" "8"
			}
		}
		
		SentryTankUnbreakable
		{
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"spawnflags" "10"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"spawnflags" "10"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"spawnflags" "10"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"spawnflags" "10"
			}
		}
		
		SentryTankLvl2Unbreakable
		{
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "1"
				"spawnflags" "10"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "1"
				"spawnflags" "10"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "1"
				"spawnflags" "10"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "1"
				"spawnflags" "10"
			}
		}
		
		SentryTankLvl3Unbreakable
		{
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "2"
				"spawnflags" "10"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "2"
				"spawnflags" "10"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "70 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "2"
				"spawnflags" "10"
			}
			obj_sentrygun
			{
				"targetname" "l"
				"origin" "-50 -10 155"
				"SolidToPlayer" "0"
				"teamnum" "3"
				"defaultupgrade" "2"
				"spawnflags" "10"
			}
		}
		
		ghosttank
		{
			OnSpawnOutput
			{
				Target "!activator"
				Action "color"
				
				//Change to any RGB value
				Param "203 255 203"
			}
            OnSpawnOutput
			{
				Target "!activator"
				Action "DisableShadow"
			}
            OnSpawnOutput
            {
				Target  "!activator"
				Action  "Alpha"
				Param   "100"
            }
            OnSpawnOutput
            {
				Target  "!activator"
				Action  "AddOutput"
				Param   "rendermode 5"
            }
            prop_dynamic
			{
				"targetname" "ghosthat"
				"disableshadows" "1"
				"model" "models/workshop/player/items/all_class/hw2013_the_haunted_hat/hw2013_the_haunted_hat_medic.mdl"
                "origin" "-47 0 4"
                "angles" "-90 0 0"
				"modelscale" "2"
               //"lightingorigin" "in_a_rock"
			}
        }
		
		p_shakelong
		{
			NoFixup 1
			env_shake
			{
				"id" "3"
				"classname" "env_shake"
				"amplitude" "255"
				"duration" "3"
				"frequency" "255"
				"radius" "50000"
				"spawnflags" "5"
				"targetname" "shakeit2"
				"origin" "2023 601 -255"
			}
		}
	
		pyro_dispenser_template
		{
			dispenser_touch_trigger
			{
				"targetname"    "pyro_dispenser_touchtrigger"
				"StartDisabled" "0"
				"wait"          "0"
				"mins"          "-128 -128 -24"
				"maxs"          "128 128 128"
			}
			
			obj_dispenser
			{
				"targetname" "pyro_dispenser"
				"touch_trigger" "pyro_dispenser_touchtrigger"
				"modelscale" "0.01"
				"body" "0"
				"defaultupgrade" "0"
				"disablereceiveshadows" "0"
				"disableshadows" "0"
				"skin" "0"
				"solid" "0"
				"SolidToPlayer" "0"
				"spawnflags" "2"
				"TeamNum" "2"			
			}
		}
		
		pyro_manmelter_shoottemplate
		{
			KeepAlive 1
			
			OnParentKilledOutput
			{
				Target "pyro_manmelter_sentry_maker"
				Action ForceSpawnAtEntityOrigin
				Param  "projectile"
				Delay  0.00
			}
			
			OnParentKilledOutput
			{
				Target "projectile"
				Action Kill
				Delay  0.01
			}
			
			prop_dynamic
			{
				"targetname" "projectile"
				"DisableBoneFollowers" "1"
				"disableshadows" "1"
				"model" "models/empty.mdl"
				"solid" "0"
				"spawnflags" "0"
				"StartDisabled" "0"	
			}
		}
		
		pyro_manmelter_sentry
		{
			KeepAlive 1
			
			OnSpawnOutput
			{
				Target "pyro_sentry"
				Action AddOutput
				Param  "angles 0 0 0"
				Delay  0.00
			}
			
			OnSpawnOutput
			{
				Target "pyro_sentry"
				Action AddOutput
				Param "solid 0"
				Delay 0.00
			}
			
			OnSpawnOutput
			{
				Target "pyro_sentry"
				Action RemoveHealth
				Param  696969
				Delay  8.00
			}
			
			obj_sentrygun
			{
				"targetname"            "pyro_sentry"
				"defaultupgrade"        "0"
				"modelscale"            "0.75"
				"spawnflags"            "0"
				"TeamNum"               "2"
				"skin"                  "1"
				"solid"                 "0"
				"SolidToPlayer"         "0"
				"disablereceiveshadows" "1"
				"disableshadows"        "1"
				"origin"                "0 0 0"
				"angles"                "0 0 0"
			}
		}
		
		Misc
		{
			NoFixup 1
			
			OnSpawnOutput
			{
				Target "outputs_relay"
				Action Trigger
			}
			
			env_entity_maker
			{
				"targetname"     "pyro_manmelter_sentry_maker"
				"EntityTemplate" "pyro_manmelter_sentry"				
			}
			
			logic_relay
			{
				"targetname" "outputs_relay"
				"OnTrigger" "buildings_spawn_trigger,AddOutput,OnStartTouch filter_dutchman_bot:TestActivator::0:-1,0,-1"
				"OnTrigger" "buildings_spawn_trigger,AddOutput,OnStartTouch filter_pumpkin_bot:TestActivator::0:-1,0,-1"
				"OnTrigger" "pyro_give_dispenser_trigger,Enable,,0.01,-1"
				"OnTrigger" "pyro_check_changed_timer,Enable,,0.02,-1"
				"OnTrigger" "player,AddOutput,targetname ,0,-1"
				"OnTrigger" "wave_initB_relay,AddOutput,player color:0 255 0:0:-1,0,-1"
			}		
		}
	}
	
	PointTemplates
	{
		bumper
		{
			OnSpawnOutput
			{
				Target !activator
				Action $addcond
				Param "82"
			}
		}
	}
	
	PointTemplates
	{
		stripspycigars
		{
			OnSpawnOutput
			{
				Target !activator
				Action "$weaponstripslot"
				Param 3
				Delay 0
			}
		}
	}
	PointTemplates
	{
		stripspyclocks
		{
			OnSpawnOutput
			{
				Target !activator
				Action "$weaponstripslot"
				Param 4
				Delay 0
			}
		}
	}
	
	//PointTemplates
	//{
	//	heavy_model_override
	//	{
	//		OnSpawnOutput
	//		{
	//			Target !activator
	//			Action SetCustomModelVisibleToSelf
	//			Param 1
	//		}
	//		OnSpawnOutput
	//		{
	//			Target !activator
	//			Action SetCustomModelWithClassAnimations
	//			Param "models/player/heavy_freddy.mdl"
	//		}
    //    }
	//	
	//}
	
	PointTemplates
	{
		sniper_model_override
		{
			OnSpawnOutput
			{
				Target !activator
				Action SetCustomModelVisibleToSelf
				Param 1
			}
			OnSpawnOutput
			{
				Target !activator
				Action SetCustomModelWithClassAnimations
				Param "models/player/sniper_bonnie.mdl"
			}
        }
		
	}
	
	PlayerItemEquipSpawnTemplate
	{
		ItemName "Gloves of Running Urgently"
		Name bumper
	}
	PlayerItemEquipSpawnTemplate
	{
		ItemName "Festive Gloves of Running Urgently"
		Name bumper
	}
	PlayerItemEquipSpawnTemplate
	{
		ItemName "Real Knife"
		Name stripspycigars
	}
	PlayerItemEquipSpawnTemplate
	{
		ItemName "Real Knife"
		Name stripspyclocks
	}
	//	PlayerItemEquipSpawnTemplate
	//{
	//	ItemName "April Fools Memorial"
	//	Name heavy_model_override
	//}
		PlayerItemEquipSpawnTemplate
	{
		ItemName "April Big Ears"
		Name sniper_model_override
	}
	
	SpawnTemplate "VacTankFilters"		   
	SpawnTemplate "Misc"				   
	SpawnTemplate "Ubertank" 
	SpawnTemplate "corelogic_blubots"
	SpawnTemplate "p_shakelong"  

	PlayerSpawnTemplate  
	{
		Name "pyro_dispenser_template"
		Class Pyro
	}
	
	PlayerShootTemplate  
	{
		Name "pyro_manmelter_shoottemplate"
		ItemName "The Manmelter"
		AttachToProjectile 1
	}
}