//20960 - cap_destroy_relay at (-2948 -256 708)
//20962 - boss_deploy_relay at (-2948 -216 708)
//20964 - cap_destroy_anim_gate_relay at (-2916 -232 705)
//118447 - remove_medigun_relay at (584.293 2421.92 -466.033)
//118541 - cutout_convert_relay at (416 2432 -488.893)


//Additional notes for spawns, since most spawn points are just "spawnbot_main"
//I will just use some areas for spawnbot
//spawnbot_upper or flank for the top for main
//spawnbot / spawnbot_right for left
//spawnbot_left / spawnbot_sentrybuster? right side
//spawnbot_chief? what the fuck is this?
//spawnbot_chief_move? what?
//spawnbot_dud_kill? this does what you probably expect
//spawnbot_dud? this I do not know

//ST / ? //found out its stickytank things
//ST_kill_relay
//ST_shooter_relay
//ST_maker_relay

//botattributes. Im not sure what these do
//botattributes1_relay
//botattributes2_relay
//botattributes3_relay
//botattributes4_relay
//botattributes1_setdefault_relay
//botattributes2_setdefault_relay
//botattributes3_setdefault_relay
//botattributes4_setdefault_relay
//botattributes1_disable_relay
//botattributes2_disable_relay
//botattributes3_disable_relay
//botattributes4_disable_relay
//botattributes1_enable_relay
//botattributes2_enable_relay
//botattributes3_enable_relay
//botattributes4_enable_relay
//botattributes_random_setinterval_2
//botattributes_random_setinterval_4
//botattributes_random_setinterval_8
//botattributes_random_setinterval_16
//botattributes_random_setinterval_reset
//botattributes_revertdefault_back_relay
//botattributes_revert_relay
//botattributes_setdefault_random_start_relay
//botattributes_random_start_relay
//botattributes_random_stop_relay

//Ambush
//ambush_alarm
//ambush_gate_alarm_light_off
//ambush_gate_yellow_alarm_lower
//ambush_gate_yellow_alarm_upper

//Waves
//wave_start_boss_relay
//wave_init_lower_relay
//wave_init_upper_relay
//wave_reset_relay
//wave_start_relay
//wave_init_relay
//wave_prepare_relay_lower
//wave_prepare_relay_upper

//Relays
//gate2_alarm_timer_relay
//gatebot_convert_relay
//gate1_alarm_timer_relay
//gate01_relay
//relay_bomb_timer
//relay_tank_disp_end
//relay_close_ambush
//relay_open_ambush
//relay_mission_use_ambush
//relay_tank_blast_path
//relay_tank_fire_path
//relay_tank_bullet_path
//relay_tank_bullet_start
//relay_tank_blast_start
//relay_tank_fire_start
//relay_tank_bullet_end
//relay_tank_blast_end
//relay_tank_fire_end
//relay_disable_teleporter_post_capture
//relay_add_bomb
//relay_bomb_no_timer
//relay_thunder
//relay_door_close_low
//relay_door_close_up
//relay_activate_upgradestation
//relay_deactivate_upgradestation
//relay_deactivate_botspawn
//relay_activate_botspawn
//relay_deactivate_botspawn_30sec_upgradestation
//relay_deactivate_botspawn_30sec
//relay_tank_disp_start_path
//relay_tank_disp_start

//Wave Things
//wave_start_boss_relay_notimer
//wave_start_relay_notimer

//Nav options
//Prefer options
//bot_flank_r
//bot_flank_l
//nav_prefer_flank_l
//nav_prefer_flank_r

//Prerequisite
//prereq_up_point_stay
//prereq_up_point_stay_2
//prereq_low_point_stay
//prereq_low_point_stay_2?

//Tag most likely for tanks
//bot_blast
//bot_bullet
//bot_fire
//bot_flank_r
//bot_flank_l

//Avoids options
//bot_flank_l
//bot_flank_r
//bomb_carrier
//bot_noflank
//block_low_route
//blocker_l
//blocker_r

//to open gates
//ent_fire gate_low toggle //closes if used again
//ent_fire gate_up toggle
//works the same way as the top I guess
//using gate_up/low once its open if you want to close it use it again
//or relay_door_close_up/low trigger to do the same function as gate_up
//I prefer gate_up as the main source

//TFBot
//{
//    Class Demoman
//    Name "Sentry Buster"
//    Skill Expert
//    Health 2500
//    Item "The Ullapool Caber"
//    WeaponRestrictions MeleeOnly
//    Attributes DisableDodge
//    Attributes IgnoreEnemies
//    Attributes SuppressFire
//    ClassIcon sentry_buster
//    Attributes MiniBoss
//    CharacterAttributes
//    {
//        "move speed bonus" 2
//        "damage force reduction" 0.5
//        "airblast vulnerability multiplier" 0.5
//        "override footstep sound set" 7
//        "cannot be backstabbed" 1
//    }    
//    Action SuicideBomber 
//    UseBusterModel 1 
//    CustomEyeGlowColor "0 0 0"
//    StripItemSlot 0
//    StripItemSlot 1
//    CustomWeaponModel {Slot 2 Model "models/empty.mdl"}
//}

#base robot_standard.pop
#base robot_giant.pop
#base robot_gatebot.pop

WaveSchedule //This mission will never be played, its a once in a lifetime thing
{
    StartingCurrency 600
    RespawnWaveTime 4
    FixedRespawnWaveTime Yes
    CanBotsAttackWhileInSpawnRoom No
    AddSentryBusterWhenKillCountExceeds 13
    AddSentryBusterWhenDamageDealtExceeds 3000
    Advanced 1
    ForceHoliday 2  
    BotsdropSpells 1  
    SpellsEnabled 1  
    GiantsDropRareSpells 1  
    SpellDropRateCommon 0.3   //will continue to investigate
    SpellDropRateGiant 0.25  
    NoCritPumpkin 1  
    NoSkeletonSplit 1   //Will continue to investigate
    SniperHideLasers 1  
    SentryBusterFriendlyFire 0  
    SniperAllowHeadshots 1  
    NoCreditsVelocity 1  
    NoMvMDeathTune 1  
    RemoveBotExpressions 1  
    WaveStartCountdown 3  
    MaxSpeedLimit 520  
    //VacNumCharges 16   //I believe this is what causes games to crash
    NoRomevisionCosmetics 1  
    //BotsAreHumans 1   //might implement

    SpellBookNormalRoll  
    {
        "Healing Aura" 2
        "Fireball" 5
        "Fireball" 6
        "Ball O' Bats" 4
        "Pumpkin MIRV" 4
        "SuperJump" 4
        "Invisibility" 2
        //"Minify" 1 //NUKING THIS SHIT, KILLS PEOPLE IF YOUR AGAINST A WALL
        "Meteor Shower" 3
        "Summon Monoculus" 2
        "Summon Skeleton" 2
    }
    SpellBookRareRoll  
    {
        "Tesla Bolt" 4
        "Ball O' Bats" 2
        "Ball O' Bats" 2
        "Ball O' Bats" 3
        "Fireball" 5
        "Fireball" 8
        "Meteor Shower" 2
        "Meteor Shower" 3
        "Summon Monoculus" 1
        "Summon Skeleton" 5 //doesnt work?
        //"Summon Skeleton" 5
    }
    PointTemplates  
    {
        logic_relay //man fuck this relay, I hate this map
        {
            "targetname" "pathchange"
            "OnPass1" "path_tank_upper,EnablePath,,0,-1"
        }
        logic_relay
        {
            "targetname" "pathchangelower"
            "OnPass1" "path_tank_lower,EnablePath,,0,-1"
        }
    }

    DisallowUpgrade  
    {
        Upgrade "dmg taken from fire reduced"
        MaxLevel 2
        CheckAllSlots 1
    }

    // Scout
    ItemAttributes  
    {
        ClassName "TF_WEAPON_SCATTERGUN"
        "health from healers increased" 2
        "dmg taken from fire reduced" 0.3
        "damage force reduction" 0
        "airblast vertical vulnerability multiplier" 0
    }
    ItemAttributes  
    {
        ItemName "Bonk! Atomic Punch"
        "effect bar recharge rate increased" 0.2
        "damage force reduction" 0
        "airblast vertical vulnerability multiplier" 0
        "max health additive bonus" 75
    }
    ItemAttributes  
    {
        ItemName "The Shortstop"
        "faster reload rate" 0.7
        "bullets per shot bonus" 2
    }
    ItemAttributes  
    {
        ItemName "Mad Milk"
        "effect bar recharge rate increased" -1
        "Blast radius increased" 2
    }

    // Demoman
    ItemAttributes  
    {
        ClassName "TF_WEAPON_PIPEBOMBLAUNCHER"
        "stickybomb charge rate" -2
        "max pipebombs increased" 2
        //"clip size bonus" 1.5
        "provide on active" 1
        "fire rate bonus HIDDEN" 0.4
        "stickybomb stick to enemies" 1
        "penetrate teammates" 1
        "Reload time increased" 0.6
        "dmg taken from fire reduced" 0.4
        "airblast vertical vulnerability multiplier" 0
        //"override projectile type extra" spellmirv
        //"hold fire until full reload" 1
    }
    ItemAttributes  
    {
        ItemName "TF_WEAPON_GRENADELAUNCHER"
        "override projectile type extra" spellmirv  
        "special item description" "Grenades are replaced with Pumpkins, to make this work, you must have your spellbook equipped"
        "reload time increased hidden" 4
        "clip size upgrade atomic" -2
        "dmg taken from fire reduced" 0.4
    }

    // Heavy
    ItemAttributes  
    {
        ItemName "TF_WEAPON_MINIGUN"
        "airblast vertical vulnerability multiplier" 0
        "airblast vulnerability multiplier" 0
        "damage force reduction" 0.4
        "dmg taken from fire reduced" 0.4
        "max health additive bonus" 150
        "weapon spread bonus" 0.6
    }
    ItemAttributes  
    {
        ItemName "Tomislav"
        "override projectile type extra" spellfireball  
        "special item description" "Bullets are replaced with fireball, you still shoot bullets though."
        "fire rate bonus HIDDEN" 8
        "penetrate teammates" 1
        "cannot pickup spells" 1
        "maxammo primary increased" 0.3
        "Projectile speed increased" 0.5
    }
    ItemAttributes  
    {
        ItemName "The Brass Beast"
        "bullets per shot bonus" 1.2
        "ubercharge rate bonus for healer" 1.5
        "dmg taken from fire reduced" 0.33
        "dmg from ranged reduced" 0.4
        "health from healers increased" 1.8
    }
    ItemAttributes  
    {
        ItemName "Fists of Steel"
        "dmg taken from crit reduced" 0.3
        "dmg taken from blast reduced" 0.3
        "dmg taken from bullets reduced" 0.3
        "dmg taken from fire reduced" 0.3
        "provide on active" 1
        "airblast vulnerability multiplier" 0.4
        "airblast vertical vulnerability multiplier" 0.3
        "damage force reduction" 0.3
        "melee attack rate bonus" 0.8
    }

    // Soldier
    ItemAttributes  
    {
        ClassName "TF_WEAPON_ROCKETLAUNCHER"
        "penetrate teammates" 1
        "dmg taken from fire reduced" 0.3
        "airblast vertical vulnerability multiplier" 0
    }
    ItemAttributes  
    {
        ClassName "tf_weapon_buff_item"
        "increase buff duration hidden" 2
        "mod soldier buff range" 1.4
    }

    // Sniper
    ItemAttributes  
    {
        ClassName "TF_WEAPON_SNIPERRIFLE"
        "faster reload rate" 0.3
        "sniper charge per sec" 1.5
        "dmg taken from fire reduced" 0.3
        "airblast vertical vulnerability multiplier" 0
    }
    ItemAttributes  
    {
        ItemName "The Sydney Sleeper"
        "radius sleeper" 3
    }
    ItemAttributes  
    {
        ItemName "The Razorback"
        "effect bar recharge rate increased" 0.3
        "health regen" 4
        "fire retardant" 1
    }
    ItemAttributes  
    {
        ItemName "Jarate"
        "effect bar recharge rate increased" -1
        "slow enemy on hit" 0.3
        "Blast radius increased" 2
    }
    ItemAttributes  
    {
        ItemName "The Cozy Camper"
        "health from healers increased" 1.5
        "damage force reduction" 0.1
        "fire retardant" 1
    }

    // Pyro
    DisallowUpgrade  
    {
        Upgrade "heal on kill"
        MaxLevel 2
        CheckAllSlots 1
        ClassName "tf_weapon_rocketlauncher_fireball"
    }
    DisallowUpgrade  
    {
        Upgrade "airblast pushback scale"
        MaxLevel 0
        CheckAllSlots 1
        ClassName "tf_weapon_rocketlauncher_fireball"
    }
    ItemAttributes  
    {
        ClassName "TF_WEAPON_FLAMETHROWER"
        "airblast vertical vulnerability multiplier" 0
        "damage force reduction" 0.6
        "dmg taken from fire reduced" 0.5
        "heal on hit for rapidfire" 1
    }
    ItemAttributes  
    {
        ClassName "tf_weapon_rocketlauncher_fireball"
        "special item description" "Your flames are longer now. You also Heal on Hit for 1 Health."
        "mult_item_meter_charge_rate" 0.7
        "weapon burn dmg increased" 1.2
        "flame_drag" 3
        "damage force reduction" 0.7
        "dmg taken from fire reduced" 0.5
        "heal on hit for slowfire" 1
        "airblast vertical vulnerability multiplier" 0.3
    }

    // Medic //do not edit vac passive or deploys as it crashes your game
    ItemAttributes  
    {
        ClassName "TF_WEAPON_MEDIGUN"
        "mult medigun range" 1.5
        "overheal bonus" 4
        "heal rate bonus" 4
        "revive rate" 3
        "ubercharge rate bonus" 1.2
        "dmg from ranged reduced" 0.1
        "dmg taken from crit reduced" 0.3
        "dmg taken from fire reduced" 0.4
        "health from healers increased" 1.5
        "damage force reduction" 0
        "airblast vertical vulnerability multiplier" 0
        "increase buff duration" 2
    }
    ItemAttributes  
    {
        ClassName "TF_WEAPON_SYRINGEGUN_MEDIC"
        "mad milk syringes" 3
        "maxammo primary increased" 1.5
    }

    // Engineer
    ItemAttributes  
    {
        ItemName "TF_WEAPON_WRENCH"
        "Construction rate increased" 1.6
        "engy sentry fire rate increased" 1.6
        "engy sentry damage bonus" 1.4
        "engy dispenser radius increased" 2
        "max health additive bonus" 75
        "dmg taken from blast reduced" 0.5
        "dmg taken from fire reduced" 0.5
        "dmg taken from crit increased" 1.5
        "dmg taken from fire reduced" 0.3
        "healing received bonus" 1.3
        "airblast vertical vulnerability multiplier" 0
    }
    ItemAttributes  
    {
        ItemName "The Jag"
        "Construction rate increased" 2
        "engy sentry radius increased" 3
        "engy sentry damage bonus" 1.5
        "mvm sentry ammo" 1.5
        "mult dispenser rate" 2
        "dmg taken from crit reduced" 0.5
        "dmg taken from fire reduced" 0.5
    }
    ItemAttributes  
    {
        ItemName "The Short Circuit"
        "metal regen" 50
    }
    ItemAttributes  
    {
        ItemName "The Gunslinger"
        "damage bonus" 2.2
        "dmg taken from fire reduced" 0.4
        "dmg taken from crit reduced" 0.2
        "dmg taken from blast reduced" 0.2
        "dmg taken from bullets reduced" 0.3
        "airblast vertical vulnerability multiplier" 0.4
        "damage force reduction" 0.2
        //"afterburn immunity" 1
        "fire rate bonus HIDDEN" 0.6
    }
    ItemAttributes  
    {
        ItemName "The Pomson 6000"
        "penetrate teammates" 1
        "Projectile speed increased" 1.3
        "energy weapon penetration" 4
        "fire rate bonus HIDDEN" 0.7
        "damage bonus" 1.5
        "Set DamageType Ignite" 1
        "dmg taken from fire reduced" 0.4
        "dmg taken from blast reduced" 0.7
    }

    // Spy
    ItemAttributes  
    {
        ClassName "TF_WEAPON_KNIFE"
        //"effect bar recharge rate increased" 0.1 //might remove
        "fire retardant" 1
        "dmg taken from fire reduced" 0.4
        "dmg taken from crit reduced" 0
        "damage force reduction" 0.3
        "airblast vertical vulnerability multiplier" 0
        "afterburn immunity" 1
        "cloak consume rate decreased" -1
        "mult cloak meter regen rate" 0
        "not solid to players" 1
        "special item description" "You can pass through robots regardless if cloaked or not."
    }
    ItemAttributes  
    {
        ItemName "L'Etranger"
        "fire rate bonus HIDDEN" 0.8
        "faster reload rate" 0.6
    }
    ItemAttributes  
    {
        ItemName "Ambassador"
        "faster reload rate" 0.7
        "weapon spread bonus" 0
        "damage bonus"  3
        "explosive sniper shot" 2
        "fire rate bonus" 7
    }
    DisallowUpgrade  
    {
        Upgrade "robo sapper"
        MaxLevel 1
        CheckAllSlots 1
        ClassName "tf_weapon_builder"
    }
    DisallowUpgrade  
    {
        Upgrade "robo sapper"
        MaxLevel 1
        CheckAllSlots 1
        ClassName "tf_weapon_sapper"
    }

    //ItemAttributes
    //{
    //    ItemName "TF_WEAPON_REVOLVER"
    //    "fire rate bonus" -2
    //    "clip size bonus" 0.5
    //    "faster reload rate" 5
    //    "sniper fires tracer HIDDEN" 1
    //    "weapon spread bonus" 0.8
    //    "subtract victim medigun charge on hit" 2
    //    "bleeding duration" 5
    //    "mod stun waist high airborne" 1
    //}

    //ItemAttributes //DO NOT ENABLE, its super overpowered
    //{
    //    ClassName "TF_WEAPON_ROCKETLAUNCHER"
    //    "penetrate teammates" 1
    //    "override projectile type extra" spellmirv  
    //    "fire rate bonus" -2
    //    "faster reload rate" 0.4
    //    "clip size upgrade atomic" 5
    //    "projectile spread angle penalty" 8
    //}

    // Misc
    ItemAttributes  
    {
        ClassName "tf_weapon_parachute"
        "parachute redeploy" 1
        "health regen" 4
    }

    Templates
    {
		T_TFBot_Giant_Medic_Uber_Armored
		{
			ClassIcon	medic_uber_armored_giant
			Health	10000
			Name	"Giant Armored Uber Medic"
			Class	Medic
			Skill	Expert
			WeaponRestrictions	SecondaryOnly
			Attributes	"SpawnWithFullCharge"
			Attributes	"MiniBoss"
			ItemAttributes
			{
				ItemName	TF_WEAPON_SYRINGEGUN_MEDIC
				"damage penalty"	0.1
			}
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction"	0.6
				"airblast vulnerability multiplier"	0.6
				"heal rate bonus"	200
				"health regen"	50
				"bot medic uber health threshold" 500
				"ubercharge rate bonus"	2
				"uber duration bonus"  8
			}
			Item	"Berlin Brain Bowl"
			Item	"Coldfront Carapace"
		}
		T_TFBot_Medic_Kritzkrieg_Armored
		{
			ClassIcon	medic_kritz_armored
			Health	500
			Scale	1.3
			Name	"Armored Kritzkrieg Medic"
			Class	Medic
			Skill	Expert
			Attributes	"SpawnWithFullCharge"
			Attributes	"AlwaysCrit"
			ItemAttributes
			{
				ItemName	TF_WEAPON_SYRINGEGUN_MEDIC
				"damage penalty"	0.1
			}
			ItemAttributes
			{
				ItemName	"The Kritzkrieg"
				"ubercharge rate bonus"	200
				"uber duration bonus"	200
			}
			CharacterAttributes
			{
				"bot medic uber health threshold"	1000
			}
			Item	"The Kritzkrieg"
			Item	"Coldfront Carapace"
			Item	"Vintage Tyrolean"
		}
		T_TFBot_Medic_Quickheal_Extended
		{
			Class Medic
			Name "Extended Quick Heal Medic"
			ClassIcon medic_quickfix_inf
			Skill Expert
			Attributes SpawnWithFullCharge
			ItemAttributes
			{
				ItemName "The Quick-Fix"
				"heal rate bonus" 200
				"uber duration bonus" 200
				"bot medic uber health threshold" 300
			}
			Item	"The Quick-Fix"
			Item	"Das Naggenvatcher"
		}
		T_TFBot_Medic_Uber_Extended_Hyper
		{
			Class Medic
			Name "Hyper Extended Uber Medic"
			ClassIcon medic_uber_invert_hyper
			Skill Expert
			Attributes SpawnWithFullCharge
			ItemAttributes
			{
				ItemName "TF_WEAPON_MEDIGUN"
				"uber duration bonus" 16
				"bot medic uber health threshold" 300
			}
			Item	"Berlin Brain Bowl"
		}
		T_TFBot_Pyro_Gaspasser_Slow
		{
			ClassIcon	pyro_gascann_slowdown
			Name	"Sticky Gas Thrower"
			Class	Pyro
			Skill	Expert
			WeaponRestrictions	SecondaryOnly
			ItemAttributes
			{
				ItemName "The Gas Passer"
				"mult_item_meter_charge_rate" 0.05
				"applies snare effect" 0.35
				"fire rate penalty" 5
			}
			Item	"Neptune's Nightmare"
			Item    "The Gas Passer"
		}
		T_TFBot_Pyro_Gaspasser_Explove
		{
			ClassIcon	pyro_gascann_explode
			Name	"Explosive Gas Thrower"
			Class	Pyro
			Skill	Expert
			WeaponRestrictions	SecondaryOnly
			ItemAttributes
			{
				ItemName "The Gas Passer"
				"mult_item_meter_charge_rate" 0.05
				"explode_on_ignite" 1
				"fire rate penalty" 5
			}
			Item    "The Gas Passer"
			Item	"Neptune's Nightmare"
		}
		T_TFBot_Heavy_Deflector_Crit
		{
			ClassIcon	heavy_deflector_bigcrit
			Name	"Crit Deflector Heavy"
			Class	Heavyweapons
			Skill	Expert
			MaxVisionRange	1200
			Attributes	"AlwaysCrit"
			ItemAttributes
			{
				ItemName	Deflector
				"attack projectiles"	1
				"damage bonus"	1.5
			}
			Item	"Deflector"
			Item	"The U-clank-a"
		}
		T_TFBot_Giant_Scout_Fast_Bonk_Expert
		{
			ClassIcon	scout_superbonk_giant
			Health	1600
			Name	"Super Bonk Scout"
			Class	Scout
			Skill	Expert
			WeaponRestrictions	PrimaryOnly
			Attributes	"MiniBoss"
			CharacterAttributes
			{
				"damage force reduction"	0.7
				"airblast vulnerability multiplier"	0.7
				"override footstep sound set"	5
				"effect bar recharge rate increased"	0.55
				"move speed bonus"	2.0
				"deploy time increased" 0.5
			}
			Item	"Bonk! Atomic Punch"
			Item	"The Holy Mackerel"
			Item	"Bonk Helm"
			Item	"Bonk Boy"
		}
		T_TFBot_Scout_FAN_Pusher_Wizard
		{
			Health 650
			Scale 1.4
			Class Scout
			ClassIcon scout_fan_spell
			Name "Wizard Pusher Scout"
			Skill Expert
			MaxVisionRange 500

			Item "TF_WEAPON_SPELLBOOK"
			Item "Point and Shoot"
			Item "The Force-a-Nature"
			ItemAttributes
			{
				ItemName "The Force-a-Nature"
				"scattergun knockback mult" 2
			}
			CharacterAttributes
			{
				"head scale" 0.7
				"hand scale" 0
				"move speed bonus" 1.25
			}

			Spell  
			{
				Delay 5
				Cooldown 15
				Type "Ball O' Bats"
			}
		}
		T_TFBot_Giant_Sniper_Rifleman_Charged
		{
			ClassIcon	sniper_power_giant
			Health	3000
			Name	"Giant Charged Sniper"
			Class	Sniper
			Skill	Expert
			WeaponRestrictions	PrimaryOnly
			Attributes MiniBoss
			Attributes AlwaysFireWeapon
			Item "The Anger"
			Item "The Bazaar Bargain"
			AimAt Head  
			AimTrackingInterval 0  
			ItemAttributes
			{
				ItemName	"The Bazaar Bargain"
				"damage bonus"	3.0
			}
			CharacterAttributes
			{
				"move speed bonus" 0.6
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 7
				"head scale" 0.8
			}
		}
		T_TFBot_Soldier_Spammer_Backup
		{
			ClassIcon	soldier_backup_spammer
			Name	"Rapid Fire Soldier"
			Class	Soldier
			Skill	Expert
			Attributes	"SpawnWithFullCharge"
			Item	"The Battalion's Backup"
			ItemAttributes
			{
				ItemName	TF_WEAPON_ROCKETLAUNCHER
				"Projectile speed increased"	0.65
				"faster reload rate"	-0.8
				"fire rate bonus"	0.5
			}
			CharacterAttributes
			{
				"increase buff duration"	9.0
				"deploy time increased" 0.5
			}
		}
		T_TFBot_Soldier_Burst_Buff
		{
			ClassIcon	soldier_burstfire_buff
			Name	"Burst Fire Soldier"
			Class	Soldier
			Skill	Expert
			Attributes	"HoldFireUntilFullReload"
			Attributes	"SpawnWithFullCharge"
			Item	"The Buff Banner"
			ItemAttributes
			{
				ItemName	TF_WEAPON_ROCKETLAUNCHER
				"Projectile speed increased"	0.65
				"faster reload rate"	0.6
				"fire rate bonus"	0.1
				"clip size upgrade atomic"	5.0
			}
			CharacterAttributes
			{
				"increase buff duration"	9.0
				"deploy time increased" 0.5
			}
		}
		T_TFBot_Spy_Silent_Click
		{
			Name	"Silent Spy"
			Class	Spy
			Skill	Expert
			Item	"Your Eternal Reward"
			CharacterAttributes
			{
				"voice pitch scale"	0
				"disguise speed penalty" -4
				"gesture speed increase" 0.01
			}
		}
		T_TFBot_Giant_Spy_Ambassador_Explosive_Hyper
		{
			Name	"Giant Deadly Ambassador Spy"
			Class	Spy
			ClassIcon	spy_ambassador_deadly_giant
			Skill	Expert
			Health	3000
			Attributes MiniBoss
			//WeaponRestrictions PrimaryOnly
			Action 	FetchFlag  
			AimAt	Head  
			AimTrackingInterval 0  
			Item	"The Ambassador"
			Item	"The Crosslinker's Coil"
			Item	"The Doublecross-Comm"
			ItemAttributes
			{
				ItemName "The Ambassador"
				"sniper fires tracer"	1
				"explosive sniper shot"	5.0
				"damage bonus"	2.0
				"fire rate bonus"	2
				"weapon spread bonus" 0
			}
			CharacterAttributes
			{
				"move speed bonus"	0.6
				"damage force reduction"	0.6
				"airblast vulnerability multiplier"	0.6
				"override footstep sound set"	6
				"cannot disguise" 1
			}
		}
		T_TFBot_Giant_Heavyweapons_Shotgun_Healonkill
		{
			Class Heavyweapons
			Name "Giant Heal-On-Kill Shotgun Heavy"
			ClassIcon heavy_shotgun_healonkill
			Skill Expert
			Health 5000
			WeaponRestrictions SecondaryOnly
			MaxVisionRange 700
			Attributes MiniBoss
			Attributes HoldFireUntilFullReload
			ItemAttributes
			{
				ItemName "TF_WEAPON_SHOTGUN_HWG"
				"fire rate bonus" 2.5
				"bullets per shot bonus" 10
				"faster reload rate" 0.1
				"heal on kill" 5000
				"damage bonus"	0.5
			}
			CharacterAttributes
			{
				"move speed bonus"	0.7
				"damage force reduction" 0.3
				"airblast vulnerability multiplier" 0.3
				"attack projectiles" 1	// force ability to shoot down projectiles
				"override footstep sound set" 2
			}
			Item	"The Tungsten Toque"
		}
		T_TFBot_Giant_Soldier_Tankbuster
		{
			ClassIcon	soldier_tankbuster_giant
			Health	4000
			Name	"Giant Tank Buster Soldier"
			Class	Soldier
			Skill	Expert
			Attributes	"HoldFireUntilFullReload"
			Attributes	"MiniBoss"
			Attributes	"SpawnWithFullCharge"
			ItemAttributes
			{
				ItemName	"The Black Box"
				"dmg bonus vs buildings"	51
				"damage bonus"	0.5
				"Projectile speed increased"	0.5
				"damage causes airblast"	1
				"Blast radius increased"	3.0
			}
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction"	0.4
				"airblast vulnerability multiplier"	0.4
				"override footstep sound set"	3
				"increase buff duration"	9.0
				"deploy time increased" 0.5
			}
			Item	"The Black Box"
			Item	"The Battalion's Backup"
			Item	"The Grenadier's Softcap"
		}
		T_TFBot_Giant_Engineer_Pomson
		{
			Health	3300
			Name	"Giant Pomson Engineer"
			Class	Engineer
			ClassIcon	engineer_pomson_giant
			Skill	Expert
			WeaponRestrictions	PrimaryOnly
			Attributes	MiniBoss
			Action	FetchFlag  
			ItemAttributes
			{
				ItemName	"The Pomson 6000"
				"damage bonus"	1.5
				"fire rate bonus" 0.8
			}
			CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 7
				"head scale" 0.8
			}
			Item	"The Pomson 6000"
		}
		T_TFBot_Giant_Pyro_ScorchShot_Barrage
		{
			Class Pyro
			Name "Giant Flare Rain Pyro"
			ClassIcon pyro_flare_rain_push
			Skill Expert
			Health 4200
			Item "The Scorch Shot"
			Item "Madame Dixie"
			WeaponRestrictions SecondaryOnly
			Attributes MiniBoss
			ItemAttributes
			{
				ItemName "The Scorch Shot"
				"fire rate bonus" 0.1
				"projectile spread angle penalty" 5
				"projectile speed decreased" 0.3
			}
			CharacterAttributes
			{
				"move speed bonus"	0.5
				"damage force reduction" 0.6
				"airblast vulnerability multiplier" 0.6
				"override footstep sound set" 6
			}
		}
		T_TFBot_Scout_Blaster_Hyper_Armored
		{
			ClassIcon	scout_publicenemy_armored_v2
			Name	"Armored Public Enemy Scout"
			Class	Scout
			Skill	Expert
			Scale   1.4
			Health  650
			MaxVisionRange	500
			ItemAttributes
			{
				ItemName	"Baby Face's Blaster"
				"scattergun has knockback"	5
				"bullets per shot bonus"	6
				"damage bonus"	2.0
				"faster reload rate"	-0.8
			}
			CharacterAttributes
			{
				"move speed bonus"	1.3
				"head scale" 0.7
			}
			Item	"Baby Face's Blaster"
			Item	"Pretty Boy's Pocket Pistol"
			Item	"The Fed-Fightin' Fedora"
			Item	"Dillinger's Duffel"
		}
		T_TFBot_Demoknight_Hyper
		{
			ClassIcon	demoknight_golden_lite
			Name	"Hyper Demoknight"
			Class	Demoman
			Skill	Expert
			WeaponRestrictions	MeleeOnly
			Attributes	"AlwaysCrit"
			ItemAttributes
			{
				ItemName	"The Chargin' Targe"
				"charge time increased"	10
				"Attack not cancel charge" 1	
				"no charge impact range"	1
				"charge impact damage increased"	2.0
				"charge recharge rate increased"	2.0
			}
			ItemAttributes
			{
				ItemName	"The Eyelander"
				"damage bonus"	2.0
				"fire rate bonus"	0.6
				"is australium item"	1
				"item style override" 1
			}
			CharacterAttributes
			{
				"move speed bonus"	1.5
			}
			Item	"Ali Baba's Wee Booties"
			Item	"The Chargin' Targe"
			Item	"The Eyelander"
			Item	"Prince Tavish's Crown"
			Item	"The King of Scotland Cape"
		}
		T_TFBot_Pyro_Hyper
		{
			ClassIcon	pyro_hyper
			Name	"Hyper Pyro"
			Class	Pyro
			Skill	Expert
			WeaponRestrictions	PrimaryOnly
			Attributes	"AlwaysCrit"
			ItemAttributes
			{
				ItemName	"Blood Botkiller Flame Thrower Mk.I"
				"damage bonus"	3.0
				"airblast pushback scale"	3.0
				"mult airblast refire time"	0.001
			}
			CharacterAttributes
			{
				"move speed bonus"	2.0
			}
			Item	"Blood Botkiller Flame Thrower Mk.I"
			Item	"The Flamboyant Flamenco"
		}
		T_TFBot_Pyro_Slow
		{
			ClassIcon	pyro_freeze
			Name	"Freeze Flame Pyro"
			Class	Pyro
			Skill	Expert
			WeaponRestrictions	PrimaryOnly					
			Attributes	"AlwaysFireWeapon"					
			ItemAttributes
			{
				ItemName	"Festive Flamethrower 2011"
				"lunchbox adds minicrits"	1
				"SPELL: Halloween green flames"	1
				"slow enemy on hit major" 3
				"attach particle effect" 30
			}
			Item	"Festive Flamethrower 2011"
			Item	"The B.M.O.C."
			Item	"The Ornament Armament"
		}
		T_TFBot_Pyro_Dragon_Armored
		{
			ClassIcon	pyro_dragon_fury_armored
			Name	"Armored Dragon Pyro"
			Class	Pyro
			Skill	Hard
			Health	650
			Scale	1.3
			WeaponRestrictions	PrimaryOnly
			MaxVisionRange 800
			ItemAttributes
			{
				ItemName	"The Dragon's Fury"
				"mult_item_meter_charge_rate"	0.7
				"damage bonus"	1.5
			}
			Item    "The Dragon's Fury"
			Item	"The Warsworn Helmet"
		}
    }

//	Mission // sentry buster
//	{
//		Objective DestroySentries
//		InitialCooldown 10
//        Where spawnbot_sentrybuster
//		BeginAtWave 1
//		RunForThisManyWaves 1
//		CooldownTime 25
//        RandomChoice
//        {
//            TFBot
//	    	{
//	    		Template T_TFBot_SentryBuster
//                Name "Fireball Buster"
//                CharacterAttributes
//                {
//                    "airblast vertical vulnerability multiplier" 0
//                    "airblast vulnerability multiplier" 0
//                    "damage force reduction" 0.2
//                }
//                Spell  
//                {
//                    Delay 0
//                    Cooldown 8
//                    Charges 4
//                    Type "Fireball"
//                }
//            }
//            TFBot
//            {
//                Template T_TFBot_SentryBuster
//                Name "Pumpkin Caster Buster"
//                CharacterAttributes
//                {
//                    "airblast vulnerability multiplier" 0
//                    "airblast vertical vulnerability multiplier" 0
//                    "damage force reduction" 0.2
//                    "cannot be sapped" 1
//                    "cannot pickup spells" 1
//                }
//                Spell  
//                {
//                    Delay 0
//                    Cooldown 12
//                    Charges 3
//                    Type "Pumpkin MIRV"
//                }
//            }
//        }
//	}
    Mission
    {
        Objective Spy
        InitialCooldown 20
        Where spawnbot_ambush_lower
        Where spawnbot_ambush_upper
        BeginAtWave 1
        RunForThisManyWaves 1
        CooldownTime 30
        DesiredCount 2
        RandomChoice
        {
            TFBot
            {
    			ClassIcon	spy_hyper
                Name	"Hyper Spy"
                Class	Spy
                Skill	Expert
                Attributes	"AlwaysCrit"
                ItemAttributes
                {
                    ItemName	"The Ambassador"
                    "damage bonus"	2.0
                    "fire rate bonus"	0.5
                    "faster reload rate"	-0.8
                }
                ItemAttributes
                {
                    ItemName	"The Black Rose"
                    "damage bonus"	2.0
                    "fire rate bonus"	0.6
                }
                CharacterAttributes
                {
                    "move speed bonus"	1.2
                    "sapper damage bonus"	2.0
                    "sapper health bonus"	2.0
                }
                Item	"The Ambassador"
                Item	"The Black Rose"
                Item	"The Stealth Steeler"
                Item	"Bowtie"
            }
            TFBot
            {
                ClassIcon	spy_yer_tind
                Name	"Saharan Spy"
                Class	Spy
                Skill	Expert
                ItemAttributes
                {
                    ItemName	"Your Eternal Reward"
                    "fire rate bonus"	0.6
                    "mark for death"	1
                    "slow enemy on hit major" 5
                    "bleeding duration" 5
                }
                CharacterAttributes
                {
                    "voice pitch scale"	0
                    "disguise speed penalty" -4
                    "gesture speed increase" 0.01
                }
                Item	"L'Etranger"
                Item	"Your Eternal Reward"
                Item	"The Familiar Fez"
            }
        }
    }
    Mission
    {
        Objective Sniper
        InitialCooldown 10
        CooldownTime 32
        Where spawnbot_ambush_lower
        Where spawnbot_ambush_upper
        BeginAtWave 2
        RunForThisManyWaves 6
        TFBot
        {
            Class Sniper
            ClassIcon sniper_vacc_pierce
            Skill Expert
            Name "Invisibility Explosive Sniper"
            Item "TF_WEAPON_SPELLBOOK"
            Attributes AlwaysCrit
            ItemAttributes
            {
                ItemName "TF_WEAPON_SNIPERRIFLE"
                "sniper charge per sec" 10
                "sniper full charge damage bonus" 1.5
                "explosive sniper shot" 1
                "damage bonus" 1.5
                "dmg pierces resists absorbs" 1
            }
            Spell  
            {
                Delay 0
                Cooldown 10
                Charges 1
                Type "Invisibility"
            }
        }
    }
    Wave //upper relay
    {
        WaitWhenDone 0
		Checkpoint	Yes
		StartWaveOutput
		{
			Target	wave_prepare_relay_upper
			Action	Trigger
		}
		InitWaveOutput
		{
            Target BigNet
            Action RunScriptCode
            Param "IncludeScript(`popextensions_main`, getroottable())
                   ClientPrint(null,3, `\x0700FF00Careful for the Ambush spawns that appear at gates.`)
                   ClientPrint(null,3, `\x07FF0000Credits no longer have velocity.`)
                   ClientPrint(null,3, `\x07FF0000Snipers dont have lasers.`)
                   ClientPrint(null,3, `\x07FF0000Busters cannot kill their own team.`)
                   ClientPrint(null,3, `\x07FF0000Skeletons do not split.`)
                   ClientPrint(null,3, `\x07FF0000Death Tune is disabled.`)
                   ClientPrint(null,3, `\x07FF0000Common Bots and Giants drop spells.`)
                   EntFire(`relay_mission_use_ambush`, `Trigger`)
                   EntFire(`relay_open_ambush`, `Trigger`)"
		}
        DoneOutput
        {
			Target wave_init_upper_relay
			Action Trigger
        }
		WaveSpawn //switch this with annotation
		{
			Name message1
			FirstSpawnOutput
			{
		        Target BigNet
        		Action RunScriptCode
        		Param "
				SendGlobalGameEvent(`show_annotation`,
				{
			    	worldPosX = -1184
			    	worldPosY = 3192
    				worldPosZ = 528
				    text = `Watch out for Ambush Spawns. They are Always Active.`
					id = 1
    				lifetime = 5
    				show_distance = false
				    play_sound = `misc/null.wav`
				})"
			}
		}
        WaveSpawn
        {
            Name w1a1
            TotalCount 4
            SpawnCount 2
            MaxActive 4
            WaitBetweenSpawns 15
            TotalCurrency 100
            Where spawnbot_main
            Squad
            {
                TFBot
                {
                    Name "Giant Spammer Fireball Heavy"
                    Health 5000
                    Class Heavyweapons
                    Skill Expert
                    ClassIcon "heavy_spell_fireball"
                    Attributes MiniBoss
                    Attributes SuppressFire
                    Tag bot_giant
                    Tag bot_squad_member
                    Tag nav_prefer_flank_r
                    Item "TF_WEAPON_SPELLBOOK"
                    StripItemSlot 0  
                    StripItemSlot 1  
                    StripItemSlot 2  
                    CharacterAttributes
                    {
                        "move speed bonus" 0.5
                        "airblast vulnerability multiplier" 0.1
                        "airblast vertical vulnerability multiplier" 0.1
                        "damage force reduction" 0.4
                        "healing received bonus" 6
                        "cancel falling damage" 1
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                    Spell  
                    {
				    	Delay 0
                        Cooldown 4
        	   	        IfSeeTarget 1
				    	Charges 1
					    Type "Fireball"
                    }
                    Item "The Manneater"
                }
                TFBot
                {
                    // shoots 2 spells if weapon is drawned in a squad
                    // shoots 3 - 4 spells if bomb carrier
                    // giving charges in a squad uses 2 spells if charges are 4
                    // having a lot of issues, will not fiddle with this anymore
                    // man fuck this medic caster, still keeps giving me issues
                    Name "Quad Caster Medic"
                    Class Medic
                    Health 150
                    Skill Expert
                    ClassIcon "medic_spell_overheal"
                    Item "TF_WEAPON_SPELLBOOK"
                    StripItemSlot 0  
                    StripItemSlot 2  
                    StripItemSlot 1  
                    CharacterAttributes
                    {
                        "healing received bonus" 2
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                    Spell   //shoots 2 spells if using medigun, without it shoots 3 sometimes
                    {
                        Delay 0
                        Cooldown 6
                        IfSeeTarget 0
                        Charges 4
                        Type "Healing Aura"
                    }
                    Item "Victorian Villainy"
                }
            }
        }
        WaveSpawn
        {
            Name w1a2
            TotalCount 18
            SpawnCount 1
            MaxActive 8
            WaitBetweenSpawns 3
            WaitBeforeStarting 10
            TotalCurrency 50
            Where spawnbot_left
            Where spawnbot_right
            TFBot
            {
                Class Scout
                Template T_TFGateBot_Scout_Hard
                Skill Expert
                ClassIcon "scout_spell_fireball"
                Name "Fireball Caster Scout"
                Item "TF_WEAPON_SPELLBOOK"
                Tag nav_prefer_flank_l
                StripItemSlot 1  
                StripItemSlot 1 [$SISGEGV]
                StripItemSlot 2  
                Spell  
                {
                    Delay 0
                    Cooldown 4
                    IfSeeTarget 1
                    Charges 1
                    Type "Fireball"
                }
                CharacterAttributes
                {
                    "healing received bonus" 1.5
                    "cannot be sapped" 1
                }
                Item "Head Hunter"
            }
        }
        WaveSpawn
        {
            Name w1b1
            TotalCount 3
            SpawnCount 1
            MaxActive 2
            WaitBeforeStarting 2
            WaitBetweenSpawns 12
            WaitForAllDead w1a1
            TotalCurrency 100
            Where spawnbot_chief
            Where spawnbot_chief_move
            TFBot
            {
                Name "Giant Demo Pumpkin Caster"
                Class Demoman
                Health 3300
                Skill Expert
                UseHumanModel 1  
                Template T_TFGateBot_Demoman_Hard
                Attributes MiniBoss
                Tag bot_giant
                Tag nav_prefer_flank_r
                ClassIcon "demo_spell_pumpkin"
                Item "TF_WEAPON_SPELLBOOK"
                Item "Defaced Detonator"
                ItemAttributes
                {
                    ItemName "TF_WEAPON_GRENADELAUNCHER"
                    "faster reload rate" -2
                    "fire rate bonus" 0.6
                    "mod no reload DISPLAY ONLY" 1
                }
                CharacterAttributes
                {
                    "move speed bonus" 0.4
                    "airblast vulnerability multiplier" 0.2
                    "airblast vertical vulnerability multiplier" 0.2
                    "dmg taken from blast increased" 0.6
                    //^ this was added to prevent self killing from own spells
                    "damage force reduction" 0.4
                    "rage giving scale" 0.5
                    "no self blast dmg" 1
                    "cannot pickup spells" 1
                    "cannot be sapped" 1
                }
                Spell  
                {
                    Delay 2
                    Cooldown 5
                    Charges 1
                    IfSeeTarget 1
                    Type "Pumpkin MIRV"
                }
            }
        }
        WaveSpawn
        {
            Name w1b2
            TotalCount 26
            SpawnCount 2
            MaxActive 14
            WaitForAllDead w1a1
            WaitBeforeStarting 10
            WaitBetweenSpawns 2
            TotalCurrency 50
            Where spawnbot_main
            RandomChoice
            {
                TFBot
                {
                    Template T_TFGateBot_Soldier_RocketShotgun_Expert
                    Tag nav_prefer_flank_l
                }
                TFBot
                {
                    Template T_TFBot_Soldier_RocketPush
                    Skill Hard
                }
                TFBot
                {
                    Template T_TFGateBot_Soldier_RocketShotgun_Expert
                    Tag nav_prefer_flank_r
                }
                TFBot
                {
                    Template T_TFBot_Soldier_RocketPush
                    Skill Hard
                }
            }
        }
        WaveSpawn
        {
            Name w1c1
            TotalCount 1
            SpawnCount 1
            MaxActive 1
            WaitForAllSpawned w1b1
            WaitBeforeStarting 15
            TotalCurrency 50
            Where spawnbot_right
            TFBot
            {
		    	Class Demoman
	    		Skill Expert
		    	Name "Giant Burst Sticky Demo"
		    	ClassIcon demo_sticky_burst_giant
		    	Health 3300
		    	Attributes MiniBoss
		    	Attributes HoldFireUntilFullReload
		    	WeaponRestrictions SecondaryOnly
                Tag nav_prefer_flank_l
	    		ItemAttributes
	    		{
	    			ItemName "TF_WEAPON_GRENADELAUNCHER"
	    			"is_passive_weapon" 1 
	    			"override projectile type" 27
                    "clip size upgrade atomic" -4 //this prevents the demo from shooting this weapon
	    		}
	    		ItemAttributes
	    		{
	    			ItemName "TF_WEAPON_PIPEBOMBLAUNCHER"
	    			"stickybomb charge rate" 0.001
	    			"Projectile range increased" 0.5
                    "fire rate bonus" 0.001
                    "faster reload rate" 0.33
	    			"projectile spread angle penalty" 5
	    		}
	    		CharacterAttributes
	    		{
	    			"move speed bonus"	0.5
	    			"damage force reduction" 0.5
	    			"airblast vulnerability multiplier" 0.2
                    "airblast vertical vulnerability multiplier" 0.1
	    			"override footstep sound set" 4
	    			"no self blast dmg"	1
                }
                Item "Head Banger"
            }
        }
        WaveSpawn
        {
            Name w1c2
            TotalCount 25
            SpawnCount 3
            MaxActive 6
            WaitBetweenSpawns 8
            WaitBeforeStarting 10
            Where spawnbot_ambush_upper
            Where spawnbot_main
            Where spawnbot_right
            WaitForAllSpawned w1b1
            TotalCurrency 50
            TFBot
            {
                Class Sniper
                Name "Bowman Rapid Fire"
                Item "The Huntsman"
                ClassIcon sniper_bow
                Skill Hard
                Health 1200
                Scale 1.5
                Tag nav_prefer_flank_l
                ItemAttributes
                {
                    ItemName "The Huntsman"
                    "fire rate bonus" 0.6
                }
                CharacterAttributes
                {
                    "head scale" 0.7
                    "move speed bonus"	0.85
                }
            }
        }
        WaveSpawn
        {
            Name w1d1
            TotalCount 3
            SpawnCount 1
            MaxActive 3
            WaitBetweenSpawns 15
            WaitBeforeStarting 8
            WaitForAllDead w1c1
            TotalCurrency 100
            Where spawnbot_chief
            TFBot
            {
                Name "Giant Explosive Reserve Soldier"
                Class Soldier
                Health 3800
                ClassIcon "heavy_shotgun_explosive_giant"
                Attributes MiniBoss
                Attributes HoldFireUntilFullReload
                Tag bot_giant
                Tag nav_prefer_flank_r
				//Tag "popext_customattr{attribute = `explosive bullets ext`, value = 20}"
                WeaponRestrictions SecondaryOnly
                Item "The Reserve Shooter"
                Item "The Lucky Shot"
                ItemAttributes
                {
                    ItemName "The Reserve Shooter"
                    "bullets per shot bonus" 1.5
                    "explosive bullets" 150  
                }
                CharacterAttributes
                {
                    "move speed bonus" 0.5
                    "airblast vulnerability multiplier" 0.3
                    "airblast vertical vulnerability multiplier" 0.1
                    "damage force reduction" 0.2
                    "rage giving scale" 0.8
                    "cancel falling damage" 1
                    "cannot be sapped" 1
                }
            }
        }
        WaveSpawn
        {
            Name w1d2
            TotalCount 24
            SpawnCount 2
            MaxActive 10
            WaitBetweenSpawns 4
            WaitBeforeStarting 7
            WaitForAllDead w1c1
            TotalCurrency 50
            Where spawnbot_main
            Where spawnbot_left
            Where spawnbot_right
            RandomChoice
            {
                TFBot
                {
                    Name "Super Invisibility Scout"
                    ClassIcon "scout_fast_spell_invisibility"
                    Health 1600
                    Attributes MiniBoss
                    Attributes SuppressFire
                    Template T_TFGateBot_Scout_Hard
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "The Frickin' Sweet Ninja Hood"
                    Tag nav_prefer_flank_l
                    Tag nav_prefer_flank_r
                    Tag bot_flank_l
                    Tag bot_flank_r
                    StripItemSlot 0  
                    StripItemSlot 1  
                    StripItemSlot 2  
                    CharacterAttributes
                    {
                        "move speed bonus" 1.7
                        "airblast vulnerability multiplier" 0.4
                        "airblast vertical vulnerability multiplier" 0.3
                        "damage force reduction" 0.3
                        "override footstep sound set" 5
                        "rage giving scale" 0.4
                        "voice pitch scale" 0
                        "cannot pickup spells" 1
                    }
                    Spell  
                    {
                        Delay 0
                        Cooldown 8
                        Charges 1
                        Type "Invisibility"
                    }
                }
                TFBot
                {
                    Template T_TFBot_Giant_Scout_Fast_Bonk_Expert
                    CharacterAttributes
                    {
                        "airblast vulnerability multiplier" 0.5
                        "airblast vertical vulnerability multiplier" 0.4
                        "damage force reduction" 0.5
                        "rage giving scale" 0.4
                        "move speed bonus" 1.6
                    }
                }
            }
        }
        WaveSpawn
        {
            Name w1e1
            TotalCount 2
            SpawnCount 2
            MaxActive 2
            WaitForAllDead w1d1
            WaitBeforeStarting 10
            TotalCurrency 50
            Where spawnbot_main
            Squad
            {
                TFBot
                {
                    Name "Giant Meteor Shower Heavy"
                    Health 5000
                    Class Heavyweapons
                    Skill Expert
                    ClassIcon "heavy_spell_meteorshower"
                    Attributes MiniBoss
                    Attributes UseBossHealthBar
                    Attributes AlwaysCrit
                    MaxVisionRange 1300
                    //Tag nav_prefer_flank_l
                    Tag bot_flank_l
                    Tag bot_giant
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "Mad Mask"
                    CharacterAttributes
                    {
                        "airblast vulnerability multiplier" 0.01
                        "airblast vertical vulnerability multiplier" 0.01
                        "damage force reduction" 0.4
                        "rage giving scale" 0.4
                        "move speed bonus" 0.3
                        "healing received bonus" 20
                        "cancel falling damage" 1
                        "cannot pickup spells" 1
                        "cannot be sapped" 1
                    }
                    Spell  
                    {
                        Delay 0
                        Cooldown 20
                        Charges 1
                        Repeats 0
                        IfSeeTarget 0
                        Type "Meteor Shower"
                    }
                    ChangeAttributes  
                    {
                        Delay 0
                        Cooldown 20
                        Repeats 0
                        Name "spellmeteorshower"
                    }
                    ChangeAttributes  
                    {
                        Delay 2
                        Cooldown 16
                        Repeats 0
                        Name "Minigun" 
                    }
                    EventChangeAttributes  
                    {
                        spellmeteorshower
                        {
                            Item "TF_WEAPON_SPELLBOOK"
                            Spell  
                            {
                                Delay 0
                                Cooldown 20
                                Charges 1
                                Repeats 0
                                IfSeeTarget 1
                                Type "Meteor Shower"
                            }
                        }
                        Minigun
                        {
                            Item "TF_WEAPON_MINIGUN"
                            ItemAttributes
                            {
                                ItemName "TF_WEAPON_MINIGUN"
                                "bullets per shot bonus" 1
                                //"fire rate bonus" 0.7
                                //"minigun spinup time increased" -2 //Im not sure if this worked
                            }
                        }
                    }
                }
                TFBot
                {
                    //5/22/26 I been working on this stupid medic trying to do an eventchangeattribute
                    //seems like its very fucking hard to understand how it works WITH THE MEDIC BOTS
                    //i tried to work with it, it worked at first then it fucking stop
                    //note to self and anyone, dont use weaponswitch with spells WITH MEDICS
                    //its possible with eventchange, I just dont have the patience with it right now
                    //I will not be using squad meds eventchange with spells at the moment
                    //reason why I dont like "passive_weapon" it just looks ugly
	        		ClassIcon	medic_uber_armored_giant
	        		Health	10000
		        	Name	"Giant Armored Uber Medic"
		        	Class	Medic
		        	Skill	Expert
                    Attributes IgnoreEnemies
		        	Attributes	SpawnWithFullCharge
		        	Attributes	MiniBoss
                    Item "TF_WEAPON_SPELLBOOK"
                    StripItemSlot 0  
                    StripItemSlot 2  
	        		ItemAttributes
                    {
                        ItemName "TF_WEAPON_SPELLBOOK"
                        "fire rate bonus" 1
                        "is_passive_weapon" 1
                    }
	        		CharacterAttributes
	        		{
                        "healing received bonus" 10
	        			"move speed bonus"	0.5
		        		"damage force reduction"	0.5
		        		"airblast vulnerability multiplier"	0.5
			        	"heal rate bonus"	200
			        	"bot medic uber health threshold" 500
                        "bot medic uber deploy delay duration" 3
			        	"ubercharge rate bonus"	2
			        	"uber duration bonus"  8
                        "cannot pickup spells" 1
                        "cannot be sapped" 1
		        	}
                    Spell  
                    {
                        Delay 4
                        Cooldown 25
                        Charges 6 //giving 6 because AI is dumb to use intended amount ; uses 3
                        Repeats 1
                        IfHealthBelow 500
                        Type "Healing Aura"
                    }
		        	Item	"Berlin Brain Bowl"
		        	Item	"Coldfront Carapace"
                }
            }
        }
        WaveSpawn
        {
            Name w1e2
            TotalCount 14
            SpawnCount 4
            MaxActive 12
            WaitBetweenSpawns 2
            WaitForAllSpawned w1e1
            Where spawnbot_flank
            Where spawnbot_right
            TFBot
            {
		    	Class Demoman
	    		Name "Fireball Demoknight"
	    		ClassIcon demoknight_fireball2
	    		Skill Expert
	    		Item "Ali Baba's Wee Booties"
	    		Item "The Chargin' Targe"
	    		Item "The Eyelander"
	    		Item "The Warsworn Helmet"
	    		Item "TF_WEAPON_SPELLBOOK"
	    		ItemAttributes
	    		{
	    			ItemName "The Eyelander"
	    			"critboost on kill" 3
	    			"set damagetype ignite"	 1
	    			"attach particle effect" 1
	    			"weapon burn dmg increased"	3
	    		}
	    		Spell  
	    		{
	    			Delay 5
	    			Cooldown 10
	    			IfSeeTarget 1
	    			Type "Fireball"
	    		}
            }
        }
        WaveSpawn
        {
            Name w1s
            SpawnCount 1
            MaxActive 2
            WaitBetweenSpawns 15
            WaitBeforeStarting 25
            Support 1
            Where spawnbot_ambush_upper
            TFBot
            {
                Template T_TFGateBot_Pyro_AlwaysFireWeapon
                Skill Expert
            }
        }
        WaveSpawn
        {
            Name w1s
            Support 1
            SpawnCount 2
            MaxActive 2
            WaitBetweenSpawns 15
            WaitBeforeStarting 25
            Where spawnbot_ambush_upper
            TFBot
            {
                Template T_TFGateBot_Soldier_Extended_Concheror_Normal_Crit
            }
        }
    }
//	Mission // sentry buster
//	{
//		Objective DestroySentries
//		InitialCooldown 10
//		Where spawnbot_sentrybuster
//		BeginAtWave 2
//		RunForThisManyWaves 1
//		CooldownTime 20
//        RandomChoice
//        {
//            TFBot
//            {
//                Template T_TFBot_SentryBuster
//                Name "Fireball Spammer Buster"
//                Item "TF_WEAPON_SPELLBOOK"
//                CharacterAttributes
//                {
//                    "airblast vulnerability multiplier" 0
//                    "airblast vertical vulnerability multiplier" 0
//                    "damage force reduction" 0
//                    "cannot be sapped" 1
//                    "cannot pickup spells" 1
//                }
//                Spell  
//                {
//                    Delay 0
//                    Cooldown 9
//                    Charges 3
//                    Type "Fireball"
//                }
//            }
//            TFBot
//            {
//                Template T_TFBot_SentryBuster
//                Item "TF_WEAPON_SPELLBOOK"
//                Name "Bats Caster Buster"
//                CharacterAttributes
//                {
//                    "airblast vulnerability multiplier" 0
//                    "airblast vertical vulnerability multiplier" 0
//                    "damage force reduction" 0
//                    "cannot be sapped" 1
//                    "cannot pickup spells" 1
//                }
//                Spell  
//                {
//                    Delay 0
//                    Cooldown 9
//                    Charges 2
//                    Type "Ball O' Bats"
//                }
//            }
//        }
//	}
    Mission
    {
        Objective Engineer
        InitialCooldown 15
        Where spawnbot_ambush_upper
        Where spawnbot_ambush_lower
        Where spawnbot_left
        Where spawnbot_main
        BeginAtWave 2
        RunForThisManyWaves 1
        CooldownTime 25
        TFBot
        {
			Template T_TFBot_Engineer_Sentry_Tele_Battle
			ClassIcon Engineer_build_telein_hyper
			CharacterAttributes
			{
				"fire rate bonus" 0.5
				"move speed bonus" 1.5
				"Repair rate increased" 2
				"engy building health bonus" 10
				"Construction rate increased" 200
				"cannot be sapped" 1
			}
        }
    }
    Wave //lower relay
    {
		StartWaveOutput
		{
			Target	wave_prepare_relay_lower
			Action	Trigger
		}
		InitWaveOutput
		{
			Target BigNet
			Action RunScriptCode
            Param "EntFire(`relay_mission_use_ambush`, `Trigger`)
                   EntFire(`relay_open_ambush`, `Trigger`)"
		}
        DoneOutput
        {
            Target wave_init_lower_relay
            Action Trigger
        }
        WaveSpawn
        {
            Name message2
            FirstSpawnOutput
            {
                Target BigNet
                Action RunScriptCode
                Param "	
                SendGlobalGameEvent(`show_annotation`,
				{
			    	worldPosX = -1280
			    	worldPosY = 3080
    				worldPosZ = 120
				    text = `Watch out for Ambush Spawns. They are always active.`
					id = 1
    				lifetime = 7
    				show_distance = false
				    play_sound = `misc/null.wav`
				})"
            }
        }
        WaveSpawn //will need testing
        {
            Name w2a1
            TotalCount 2
            SpawnCount 2
            TotalCurrency 100
            Where spawnbot_left
            Squad
            {
                TFBot
                {
                    Name "Rocketrain Fireball Soldier"
                    ClassIcon "soldier_burstspell_fireball_1"
                    Health 4000
                    Class Soldier
                    Skill Expert
                    Attributes MiniBoss
                    Attributes HoldFireUntilFullReload
                    Attributes UseBossHealthBar
                    Tag bot_flank_r
                    Tag bot_giant
                    Tag bot_squad_member
		    		ShootTemplate  
		    		{
		    			Name spellfireball //Name of the template
		    			Speed 1000 //Velocity of the spawned objects (Default: 1000)
		    			Offset "0 0 0" //Offset from the bot shooting position (Default: 0 0 0)
		    			Angles "0 0 0" //Shooting angle offset (Default: 0 0 0)
		    			OverrideShoot 1 //Stop default projectile from being spawned (Default: 0)
		    			Spread 1 //Spread of the fired template entities. 0 - No spread, 0.1 - Beggar like spread, 1 - Very inaccurate (Default: 0)
		    			ItemName "TF_WEAPON_ROCKETLAUNCHER" //Can be specified to limit to a specific weapon
                        //The only things that dont work that I have tried is speed and spread. values dont do much
                        //probably for certain weapons, so use itemattributes to do whatever you want
			    	}
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_ROCKETLAUNCHER"
                        "override projectile type extra" spellfireball   //this overrides shoottemplates, the only thing necessary is "spellfireball"
                        "faster reload rate" 0.7
                        "fire rate bonus" -2
                        "projectile spread angle penalty" 4
                    }
                    CharacterAttributes
                    {
                        "airblast vertical vulnerability multiplier" 0.1
                        "airblast vulnerability multiplier" 0.01
                        "damage force reduction" 0.4
                        "move speed bonus" 0.4
                        "rage giving scale" 0.4
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                    Item "The Shellmet"
                    Item "The Caped Crusader"
                }
                TFBot
                {
                    Class Medic
                    ClassIcon "medic_quickfix"
                    Name "Giant Extended Quickfix Medic"
                    Health 4500
                    Skill Expert
                    Attributes SpawnWithFullCharge
                    Attributes IgnoreEnemies
                    Attributes MiniBoss
                    WeaponRestrictions SecondaryOnly
                    Item "The Quick-Fix"
                    Tag bot_squad_member
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SYRINGEGUN_MEDIC"
                        "damage penalty" 0.1
                    }
                    ItemAttributes
                    {
                        ItemName "The Quick-Fix"
                        "heal rate bonus" 300
                        "uber duration bonus" 8
                    }
                    CharacterAttributes
                    {
                        "bot medic uber health threshold" 500
                        "damage force reduction" 0.4
                        "airblast vulnerability multiplier" 0.3
                        "airblast vertical vulnerability multiplier" 0.1
                        "move speed bonus" 0.5
                        "rage giving scale" 0.4
                        "cannot be sapped" 1
                    }
                }
            }
        }
        WaveSpawn
        {
            Name w2a2
            TotalCount 28
            SpawnCount 2
            MaxActive 10
            WaitBetweenSpawns 4
            WaitBeforeStarting 8
            TotalCurrency 50
            Where spawnbot_ambush_lower
            Where spawnbot_ambush_upper
            TFBot
            {
                Class Pyro
                Name "Armored Dragon Fury Pyro"
                Health 650
                ClassIcon pyro_dragon_fury_armored
                Item "The Dragon's Fury"
                WeaponRestrictions PrimaryOnly
                ItemAttributes
                {
                    ItemName "The Dragon's Fury"
                    "fire rate bonus" 0.7
                }
            }
        }
        WaveSpawn
        {
            Name w2b1
            TotalCount 4
            SpawnCount 2
            MaxActive 2
            TotalCurrency 50
            WaitForAllDead w2a1
            Where spawnbot_flank
            Squad
            {
                TFBot
                {
                    Name "Giant Monoculus Summoner Demoman"
                    Class Demoman
                    Health 3300
                    ClassIcon "demo_spell_monoculus" //needs an icon change
                    Attributes MiniBoss
                    Attributes HoldFireUntilFullReload
                    Skill Expert
                    AimAt Body  
                    Tag bot_giant
                    Tag bot_flank_l
                    Tag bot_squad_member
                    Tag nav_prefer_flank_r
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "The Loch-n-Load"
                    ItemAttributes
                    {
                        ItemName "The Loch-n-Load"
                        "fire rate bonus" -1
                        "Projectile speed increased HIDDEN" 1.2
                        "faster reload rate" 0.8
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 0.4
                        "airblast vulnerability multiplier" 0.2
                        "airblast vertical vulnerability multiplier" 0.1
                        "damage force reduction" 0.4
                        "rage giving scale" 0.5
                        "add uber charge on hit" 15
                        "cannot pickup spells" 1
                    }
                    Spell  
                    {
                        Cooldown 10
                        IfSeeTarget 1
                        Charges 1
                        Type "Summon Monoculus"
                    }
                    Item "Nightbane Brim"
                }
                TFBot
                {
                    Template T_TFBot_Medic_Kritzkrieg_Armored
                }
            }
        }
        WaveSpawn //needs some adjustments
        {
            Name w2b2
            TotalCount 30
            SpawnCount 2
            MaxActive 12
            WaitForAllDead w2a1
            TotalCurrency 50
            Where spawnbot_ambush_lower
            Where spawnbot_flank
            Where spawnbot_left
            Squad
            {
                TFBot
                {
                    Name "Sticky Spammer Demo"
                    Class Demoman
                    Skill Hard
                    ClassIcon "demo_sticky_daan"
                    Attributes HoldFireUntilFullReload
                    WeaponRestrictions SecondaryOnly
                    Tag bot_squad_member
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_GRENADELAUNCHER"
                        "is_passive_weapon" 1
                        "clip size upgrade atomic" -4
                    }
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_PIPEBOMBLAUNCHER"
                        "damage bonus" 1.2
                        "max pipebombs increased" -4
                        "Projectile range increased" 1.5
                        "Projectile speed increased HIDDEN" 1.2
                        "stickybomb charge rate" -2
                        "fire rate bonus" 0.6
                    }
                    CharacterAttributes
                    {
                        "no self blast dmg" 1
                        "damage force reduction" 0 //used to prevent himself from flying from his own stickies
                    }
                }
                TFBot
                {
                    Name "Blinking Kritzrieg Medic"
                    Class Medic
                    Skill Expert
                    ClassIcon "medic_kritz2_flash"
                    Attributes SpawnWithFullCharge
                    Item "The Kritzkrieg"
                    WeaponRestrictions SecondaryOnly
                    Tag bot_squad_member
                    ItemAttributes
                    {
                        ItemName "The Kritzkrieg"
                        "ubercharge rate bonus" 200
                        "uber duration bonus" -6
                    }
                    CharacterAttributes
                    {
                        "heal rate bonus" 20
                        "bot medic uber health threshold" 200
                    }
                }
            }
        }
        WaveSpawn
        {
            Name w2c1
            TotalCount 1
            SpawnCount 1
            WaitBeforeStarting 5
            TotalCurrency 50
            WaitForAllSpawned w2b1
            FirstSpawnOutput
            {
                Target boss_spawn_relay
                Action Trigger
            }
            Tank
            {
                Health 30000
                Speed 70
                Name "Tank"
                StartingPathTrackNode path_tank_lower
		        OnKilledOutput
		        {
		        	Target boss_dead_relay
		        	Action Trigger
		        }
		        OnBombDroppedOutput
		        {
		        	Target boss_deploy_relay 
		        	Action Trigger
                }
            }
        }
        WaveSpawn
        {
            Name w2c1
            TotalCount 1
            SpawnCount 1
            WaitBeforeStarting 38
            TotalCurrency 50
            WaitForAllSpawned w2b1
            FirstSpawnOutput
            {
                Target pathchange
                Action Trigger
            }
            Tank
            {
                Health 40000
                Speed 60
                Name "Tank"
                StartingPathTrackNode path_tank_upper
                OnKilledOutput
                {
                    Target boss_dead_relay
                    Action Trigger
                }
                OnBombDroppedOutput
                {
                    Target boss_deploy_relay
                    Action Trigger
                }
            }
        }
        WaveSpawn //needs testing
        {
            Name w2c2
            TotalCount 2
            SpawnCount 1
            MaxActive 2
            WaitForAllSpawned w2c1
            WaitBetweenSpawns 18
            TotalCurrency 30
            Where spawnbot_chief_move
            TFBot
            {
		        Name "Regenerator"
                Class Soldier
                Health 4400
    	        Scale 1.8
		    	Skill Expert
                ClassIcon "soldier_escapeplan_conch_spell_minify"
                Attributes MiniBoss
                Action Mobber  
                Attributes IgnoreFlag
		    	Attributes SpawnWithFullCharge
                Attributes DisableDodge
	        	//Attributes AlwaysCrit
		    	StripItemSlot 0  
                Item "The Concheror"
                Item "The Escape Plan"
                Item "Chieftain's Challenge"
                Item "TF_WEAPON_SPELLBOOK"
                ItemAttributes
                {
                    ItemName "TF_WEAPON_SPELLBOOK"
                    "fire rate bonus" 1
                }
                ItemAttributes
                {
                    ItemName "The Escape Plan"
		    		"fire rate bonus" 0.7
                    "heal on hit for slowfire" 50
                }
                CharacterAttributes
    	        {
		    		"increase buff duration HIDDEN" 999
                    "move speed bonus" 1.2
    	            "airblast vulnerability multiplier" 0.01
                    "airblast vertical vulnerability multiplier" 0
            	    "damage force reduction" 0.3
		    		"mod see enemy health" 1
                    "healing received bonus" 1.5
                    "health regen" 50
                }
                Spell  
                {
                    Delay 15
                    Cooldown 50
                    Repeats 0
                    Charges 1
                    IfSeeTarget 0
                    Type "Minify"
                }
            }
        }
        WaveSpawn
        {
            Name w2c2
            TotalCount 2
            SpawnCount 1
            MaxActive 2
            WaitForAllSpawned w2c1
            WaitBetweenSpawns 15
            TotalCurrency 30
            Where spawnbot_chief_move
            TFBot
            {
        	    Name "Resistor"
                Class Soldier
    	        Health 4000
    	        Scale 1.8
		    	Skill Expert
    	        ClassIcon "soldier_equalizer_backup_spell_overheal"
    	        Attributes MiniBoss
    	        Attributes IgnoreFlag
                Attributes DisableDodge
	        	Attributes SpawnWithFullCharge
	        	//Attributes AlwaysCrit
	            Action Mobber  
	        	StripItemSlot 0  
                Item "TF_WEAPON_SPELLBOOK"
                Item "The Battalion's Backup"
                Item "The Equalizer"
	        	Item "Big Chief"
                ItemAttributes
                {
                    ItemName "TF_WEAPON_SPELLBOOK"
                    "fire rate bonus" 1
                }
                ItemAttributes
                {
                    ItemName "The Equalizer"
                    "damage bonus" 0.7
	        		"fire rate bonus" 0.7
                }
                CharacterAttributes
                {
                    "move speed bonus" 1.3
                    "airblast vulnerability multiplier" 0.01
                    "airblast vertical vulnerability multiplier" 0
                    "damage force reduction" 0.4
                    "add uber charge on hit" 10
	        		"increase buff duration HIDDEN" 999
		        	"mod see enemy health" 1
                    "healing received bonus" 1.5
                }
                Spell  
                {
                    Delay 0
                    Cooldown 20
                    Repeats 0
                    Charges 2
                    IfSeeTarget 0
                    Type "Healing Aura"
                }
            }
        }
        WaveSpawn
        {
            Name w2c2
            TotalCount 2
            SpawnCount 1
            MaxActive 2
            WaitForAllSpawned w2c1
            WaitBetweenSpawns 12
            TotalCurrency 30
            Where spawnbot_chief_move
            TFBot
            {
    	    	Name "Reinforcer"
		    	Class Soldier
		    	Health 5500
		    	Scale 1.8
		    	Skill Expert
		    	ClassIcon "soldier_shovel_buff_spell_bats"
		    	Attributes MiniBoss
		    	Action Mobber  
		    	Attributes IgnoreFlag
		    	//Attributes AlwaysCrit
                Attributes DisableDodge
		    	Attributes SpawnWithFullCharge
                Item "TF_WEAPON_SPELLBOOK"
		    	Item "The Buff Banner"
		    	Item "TF_WEAPON_SHOVEL"
		    	Item "Defiant Spartan"
		    	StripItemSlot 0  
		    	ItemAttributes
		    	{
	        		ItemName "TF_WEAPON_SHOVEL"
		    		"melee attack rate bonus" 0.5
		    	}
		    	CharacterAttributes
		    	{
		    		"move speed bonus" 1.3
		    		"airblast vulnerability multiplier" 0.01
		    		"airblast vertical vulnerability multiplier" 0
		    		"damage force reduction" 0.5
			    	"rage giving scale" 0.6
		        	"add uber charge on hit" 15
		        	"increase buff duration HIDDEN" 999
                    "healing received bonus" 4
                }
                Spell  
                {
                    Delay 0
                    Cooldown 24
                    Repeats 0
                    Charges 2
                    IfSeeTarget 0
                    Type "Ball O' Bats"
                }
            }
        }
        WaveSpawn //hope it works
        {
            WaitForAllDead w2c2
            FirstSpawnOutput
            {
                Target BigNet
                Action RunScriptCode
                Param "ClientPrint(null,3, `\x07FF0000Bomb Should No longer Reset this Wave`)
                        EntFire(`intel_infinite`, `Trigger`)"
            }
        }
        WaveSpawn
        {
            Name w2d1
            TotalCount 16
            SpawnCount 2
            MaxActive 4
            WaitForAllDead w2c2
            WaitBetweenSpawns 4
            TotalCurrency 30
            Where spawnbot_main
            Where spawnbot_right
            Where spawnbot_left
            Squad
            {
                TFBot
                {
                    Name "Swift Invis Rusher Soldier"
                    Class Soldier
                    Scale 1.4
                    Skill Expert
                    Health 3000
                    ClassIcon "soldier_escapeplan_spell_invisibility"
                    UseHumanModel 1  
                    Attributes MiniBoss
                    Attributes SuppressFire
                    Item "The Escape Plan"
                    Item "TF_WEAPON_SPELLBOOK"
                    StripItemSlot 0  
                    CharacterAttributes
                    {
                        "major move speed bonus" 3
                        "override footstep sound set" 2
                        "airblast vertical vulnerability multiplier" 0.3
                        "airblast vulnerability multiplier" 0.3
                        "damage force reduction" 0.5
                    }
                    Spell  
                    {
                        Delay 0
                        Cooldown 8
                        Charges 1
                        Type "Invisibility"
                    }
                    Item "The Freedom Feathers"
                }
                TFBot
                {
                    Name "Sturdy Minify Quickfix Medic"
                    Class Medic
                    ClassIcon "medic_spell_minify"
                    Skill Expert
                    UseHumanModel 1  
                    Attributes SpawnWithFullCharge
                    Attributes IgnoreEnemies
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "The Quick-Fix"
                    Item "Einstein"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SPELLBOOK"
                        "fire rate bonus" 1
                        "is_passive_weapon" 1
                    }
                    ItemAttributes
                    {
                        ItemName "The Quick-Fix"
                        "heal rate bonus" 150
                        "ubercharge rate bonus" 15
                        "uber duration bonus" 5
                    }
                    CharacterAttributes
                    {
                        "bot medic uber health threshold" 140
                        "bot medic uber deploy delay duration" 2
                        "damage force reduction" 0
                        "airblast vulnerability multiplier" 0
                        "move speed bonus" 3
                    }
                    StripItemSlot 0  
                    StripItemSlot 2  
                    Spell  
                    {
                        Delay 4
                        Cooldown 12
                        Repeats 2
                        Charges 1
                        IfHealthBelow 140
                        Type "Minify"
                    }
                }
            }
        }
        WaveSpawn
        {
            Name w2d2
            TotalCount 16
            SpawnCount 2
            MaxActive 12
            WaitForAllDead w2c2
            WaitBetweenSpawns 5
            WaitBeforeStarting 6
            TotalCurrency 30
            Where spawnbot_main
            TFBot
            {
                Name "Explosive Reserve Soldier"
                Class Soldier
                Health 200
                Skill Hard
                ClassIcon "heavy_shotgun_explosive_giant"
                Attributes HoldFireUntilFullReload
                Tag nav_prefer_flank_r
				//Tag "popext_customattr{attribute = `explosive bullets ext`, value = 50}"
                WeaponRestrictions SecondaryOnly
                Item "The Reserve Shooter"
                Item "The Lucky Shot"
                ItemAttributes
                {
                    ItemName "The Reserve Shooter"
                    "bullets per shot bonus" 1.5
                    "fire rate bonus" 0.5
                    "faster reload rate" 0.5
                    "explosive bullets" 140
                }
            }
        }
        WaveSpawn
        {
            Name w2s
            SpawnCount 2
            MaxActive 2
            Support 1
            WaitBetweenSpawnsAfterDeath 9
            Where spawnbot_main
            Where spawnbot_right
            TFBot
            {
                StripItemSlot 0  
                StripItemSlot 1  
		    	Class Heavyweapons
		    	Name "Steel Gauntlet"
		    	ClassIcon heavy_steelfist
		    	Health 900
		    	Scale 1.5
                Spell  
                {
                    Delay 0
                    Cooldown 15
                    Charges 2
                    Type "Healing Aura"
                }
                WeaponSwitch  
                {
                    Delay 0
                    Cooldown 15
                    Type "PDA"
                }
                WeaponSwitch  
                {
                    Delay 1
                    Cooldown 2
                    Type "Melee"
                }
			    EventChangeAttributes
			    {
			    	Default
			    	{
			    		Tag nav_prefer_gate1_flank	// having these will cause bots to run towards gates
			    		Tag bot_gatebot				// having these will cause bots to run towards gates
			    		BehaviorModifiers Push		// having these will cause bots to run towards gates
			    		Attributes IgnoreFlag		// having these will cause bots to run towards gates

			    		Item "Fists of Steel"
			    		Item "MvM GateBot Light Heavy"
			    		Attributes AlwaysCrit
			    		Tag bot_giant
			    		Skill Hard

				    }
			    	RevertGateBotsBehavior
			    	{
			    		Item "Fists of Steel"
			    		Item "MvM GateBot Light Heavy"
			    		ItemAttributes               // turn off light hat
			    		{
			    			ItemName "MvM GateBot Light Heavy"
			    			"item style override" 1
			    		}
			    		Attributes AlwaysCrit
			    		Tag bot_giant
			    		Skill Hard
                    }
                }
            }
        }
        WaveSpawn
        {
            Name w2s
            SpawnCount 2
            MaxActive 2
            Support 1
            WaitBetweenSpawnsAfterDeath 12
            Where spawnbot_ambush_lower
            TFBot
            {
                Template T_TFBot_Scout_FAN_Pusher_Wizard
                ClassIcon "scout_FAN_spell_bats"
            }
        }
    }
//    Mission
//    {
//		Objective DestroySentries
//		InitialCooldown 10
//		Where spawnbot_sentrybuster
//		BeginAtWave 3
//		RunForThisManyWaves 1
//		CooldownTime 20
//        RandomChoice
//        {
//            TFBot
//            {
//                Template T_TFBot_SentryBuster
//                Name "Overheal Buster"
//                Item "TF_WEAPON_SPELLBOOK"
//                CharacterAttributes
//                {
//                    "airblast vulnerability multiplier" 0
//                    "airblast vertical vulnerability multiplier" 0
//                    "damage force reduction" 0
//                    "cannot be sapped" 1
//                    "cannot pickup spells" 1
//                }
//                Spell  
//                {
//                    Delay 0
//                    Cooldown 7
//                    Charges 1
//                    Type "Healing Aura"
//                }
//            }
//            TFBot //unsure if this buster will work
//            {
//                Template T_TFBot_SentryBuster
//                Name "Does this work? -carbon"
//                Attributes IgnoreEnemies
//                Item "TF_WEAPON_SPELLBOOK"
//                CharacterAttributes
//                {
//                    "airblast vulnerability multiplier" 0
//                    "airblast vertical vulnerability multiplier" 0
//                    "damage force reduction" 0
//                    "cannot be sapped" 1
//                    "cannot pickup spells" 1
//                }
//                Spell  
//                {
//                    Delay 0
//                    Cooldown 11
//                    Charges 1
//                    Type "Teleport"
//                }
//            }
//        }
//    }
    Wave //lower relay
    {
		StartWaveOutput
		{
			Target	wave_prepare_relay_lower
			Action	Trigger
		}
        InitWaveOutput
        {
            Target BigNet
            Action RunScriptCode
            Param "
            IncludeScript(`tankextensions_main`, getroottable())
            IncludeScript(`tankextensions/vactank`, getroottable())
            EntFire(`relay_mission_use_ambush`, `Trigger`)
            EntFire(`relay_open_ambush`, `Trigger`)"
        }
        DoneOutput
        {
            Target wave_init_lower_relay
            Action Trigger
        }
        WaveSpawn
        {
            Name w3a1
            TotalCount 5
            SpawnCount 1
            MaxActive 4
            WaitBetweenSpawns 7
            TotalCurrency 50
            Where spawnbot_flank
            TFBot
            {
                Template T_TFGateBot_Soldier_Hard
                Name "Giant Burstfire Soldier"
                ClassIcon "soldier_crit_burstfire"
                Skill Expert
                Attributes HoldFireUntilFullReload
                Attributes MiniBoss
                Attributes AlwaysCrit
                Health 4200
                Tag bot_flank_r
                Tag nav_prefer_flank_l
                Item "The Original"
                ItemAttributes
                {
                    ItemName "The Original"
                    "damage bonus" 1.5
                    "clip size upgrade atomic" 4
                    "Projectile speed increased" 0.7
                    "fire rate bonus" 0.2
                    "faster reload rate" 0.5
                }
                CharacterAttributes
                {
                    "move speed bonus" 0.4
                    "airblast vulnerability multiplier" 0.2
                    "airblast vertical vulnerability multiplier" 0.1
                    "damage force reduction" 0.5
                    "cancel falling damage" 1
                }
            }
        }
        WaveSpawn //random choice to some going to gates and some pushing
        {
            Name w3a2
            TotalCount 20
            SpawnCount 2
            MaxActive 10
            WaitForAllSpawned w3a1
            WaitBetweenSpawns 4
            TotalCurrency 50
            Where spawnbot_main
            Where spawnbot_left
            Where spawnbot_right
            Where spawnbot_chief
            RandomChoice
            {
                TFBot
                {
                    Name "Giant Fireball Spammer Scout"
                    Template T_TFGateBot_Scout_Hard
                    Class Scout
                    Skill Expert
                    ClassIcon "scout_spell_fireball"
                    Attributes MiniBoss
                    Health 1400
                    StripItemSlot 0  
                    StripItemSlot 1  
                    StripItemSlot 2  
                    Item "TF_WEAPON_SPELLBOOK"
                    CharacterAttributes
                    {
                        "move speed bonus" 1.7
                        "airblast vulnerability multiplier" 0.5
                        "airblast vertical vulnerability multiplier" 0.2
                        "damage force reduction" 0.5
                        "override footstep sound set" 5
                    }
                    Spell  
                    {
                        Delay 0
                        Cooldown 5
                        Charges 1
                        IfSeeTarget 1
                        Type "Fireball"
                    }
                }
                TFBot
                {
                    Name "Giant Fireball Spammer Scout"
                    Class Scout
                    Skill Expert
                    UseHumanModel 1  
                    ClassIcon "scout_spell_fireball"
                    Attributes MiniBoss
                    Item "TF_WEAPON_SPELLBOOK"
                    Template T_TFBot_Giant_Scout
                    StripItemSlot 0  
                    StripItemSlot 1  
                    StripItemSlot 2  
                    Health 1800
                    CharacterAttributes
                    {
                        "move speed bonus" 2
                        "airblast vulnerability multiplier" 0.5
                        "airblast vertical vulnerability multiplier" 0.2
                        "damage force reduction" 0.5
                        "override footstep sound set" 5
                    }
                    Spell  
                    {
                        Delay 0
                        Cooldown 2
                        Charges 1
                        IfSeeTarget 1
                        Type "Fireball"
                    }
                    Item "The Masked Fiend"
                }
                TFBot
                {
                    Name "Giant Fireball Wizard Scout"
                    Class Scout
                    Health 1800
                    Skill Expert
                    ClassIcon "scout_spell_fireball"
                    UseHumanModel 1  
                    Attributes MiniBoss
                    Attributes HoldFireUntilFullReload
                    Action Mobber  
                    StripItemSlot 1  
                    StripItemSlot 2  
                    ShootTemplate  
                    {
		        		Name spellfireball //Name of the template
		        		Speed 1200 //Velocity of the spawned objects (Default: 1000)
		        		Offset "0 0 0" //Offset from the bot shooting position (Default: 0 0 0)
		        		Angles "0 0 0" //Shooting angle offset (Default: 0 0 0)
		        		OverrideShoot 1 //Stop default projectile from being spawned (Default: 0)
		        		Spread 1 //Spread of the fired template entities. 0 - No spread, 0.1 - Beggar like spread, 1 - Very inaccurate (Default: 0)
		        		ItemName "TF_WEAPON_SCATTERGUN" //Can be specified to limit to a specific weapon
                    }
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SCATTERGUN"
                        "override projectile type extra" spellfireball  
                        "fire rate bonus" 0.8
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 1.5
                        "airblast vulnerability multiplier" 0.3
                        "airblast vertical vulnerability multiplier" 0.1
                        "damage force reduction" 0.6
                    }
                    Item "Fortunate Son"
                }
            }
        }
        WaveSpawn // no one going to like this guy
        {
            Name w3b1
            TotalCount 1
            SpawnCount 1
            WaitForAllSpawned w3a2
            WaitBeforeStarting 25
            TotalCurrency 100
            Where spawnbot_right
            TFBot
            {
            	ClassIcon	heavy_brass_explosion_hyper_giant
		    	Health	5000
		    	Name	"Giant Explosive Bullet Heavy"
		    	Class	Heavyweapons
		    	Skill	Expert
		    	WeaponRestrictions	PrimaryOnly
                Attributes UseBossHealthBar
		    	Attributes	MiniBoss
		    	MaxVisionRange	1800
		    	ItemAttributes
		    	{
		    		ItemName	"The Brass Beast"
		    		"damage bonus"	10
		    		"turn to gold"	1
		    		"bullets per shot bonus"	2
		    		"weapon spread bonus"	1.5
		    		"fire rate bonus"	2.5
		    		"explosive bullets" 147  
		    	}
		    	CharacterAttributes
		    	{
		    		"move speed bonus"	0.5
		    		"damage force reduction"	0.3
		    		"airblast vulnerability multiplier"	0.1
                    "airblast vertical vulnerability multiplier" 0.1
		    		"override footstep sound set"	2
                    "cancel falling damage" 1
		    	}
		    	Item	"The Brass Beast"
		    	Item	"The Gridiron Guardian"
            }
        }
        WaveSpawn
        {
            Name w3b2
            TotalCount 18
            SpawnCount 3
            MaxActive 9
            WaitBetweenSpawns 6
            WaitForAllSpawned w3b1
            TotalCurrency 50
            Where spawnbot_ambush_lower
            Where spawnbot_flank
            TFBot
            {
                Name "Bat Caster Sniper"
                ClassIcon "sniper_spell_bats"
                Class Sniper
                Skill Expert
                Tag nav_prefer_flank_l
                Action FetchFlag  
                Attributes AlwaysFireWeapon
                WeaponRestrictions SecondaryOnly
                Item "TF_WEAPON_SPELLBOOK"
                Item "Jarate"
                Item "The Spellbinder's Bonnet"
                StripItemSlot 0  
                StripItemSlot 2  
                ShootTemplate  
                {
		        	Name spellbats //Name of the template
		        	Speed 1200 //Velocity of the spawned objects (Default: 1000)
		        	Offset "0 0 0" //Offset from the bot shooting position (Default: 0 0 0)
		        	Angles "0 0 0" //Shooting angle offset (Default: 0 0 0)
		        	OverrideShoot 1 //Stop default projectile from being spawned (Default: 0)
		        	Spread 0 //Spread of the fired template entities. 0 - No spread, 0.1 - Beggar like spread, 1 - Very inaccurate (Default: 0)
		        	ItemName "Jarate" //Can be specified to limit to a specific weapon
                }
                ItemAttributes
                {
                    ItemName "Jarate"
                    "override projectile type extra" spellbats  
                    "effect bar recharge rate increased" 0.1
                }
                CharacterAttributes
                {
                    "healing received bonus" 1.5
                }
            }
        }
        WaveSpawn
        {
            FirstSpawnOutput
            {
                Target BigNet
                Action RunScriptCode
                Param "ClientPrint(null,3, `\x0700FFFFDo you guys remember Cliffside Click Expert W3?`)"
            }
            Name w3c1
            TotalCount 18
            SpawnCount 3
            MaxActive 9
            WaitBetweenSpawns 10
            WaitBeforeStarting 18
            WaitForAllDead w3b1
            TotalCurrency 100
            Where spawnbot_main
            Where spawnbot_left
            Squad
            {
                TFBot
                {
                    Name "Giant Tesla Airstrike Soldier"
                    ClassIcon "soldier_airstrike_lite_spell_teslabolt"
                    Health 4400
                    Class Soldier
                    Attributes MiniBoss
                    Attributes HoldFireUntilFullReload
                    Attributes AlwaysCrit
                    Skill Expert
                    Template T_TFGateBot_Soldier_Hard
                    Tag bot_giant
                    Tag nav_prefer_flank_l
                    Item "The Air Strike"
                    Item "TF_WEAPON_SPELLBOOK"
                    StripItemSlot 1  
                    StripItemSlot 2  
                    ItemAttributes
                    {
                        ItemName "The Air Strike"
                        "clip size upgrade atomic" 4
                        "faster reload rate" 0.4
                        "fire rate bonus" -2
                        "projectile spread angle penalty" 2.5
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 0.4
                        "airblast vulnerability multiplier" 0.1
                        "airblast vertical vulnerability multiplier" 0.1
                        "damage force reduction" 0.2
                    }
                    Spell  
                    {
                        Delay 4
                        Cooldown 16
                        Charges 3
                        IfSeeTarget 0
                        Type "Tesla Bolt"
                    }
                    Item "Ground Control"
                }
                TFBot
                {
                    Template T_TFBot_Medic_Quickheal_Extended
                }
                TFBot
                {
                    Template T_TFBot_Medic_Uber_Extended_Hyper
                }
            }
        }
        WaveSpawn
        {
            Name w3c2
            TotalCount 20
            SpawnCount 1
            MaxActive 10
            WaitBetweenSpawns 3
            WaitBeforeStarting 5
            WaitForAllDead w3b1
            TotalCurrency 50
            Where spawnbot_ambush_lower
            Where spawnbot_ambush_upper
            Where spawnbot_left
            Where spawnbot_right
            Where spawnbot_main
            TFBot
            {
                Name "Superjump Airstrike Soldier"
                Class Soldier
                ClassIcon "soldier_airstrike"
                Skill Expert
                Attributes HoldFireUntilFullReload
                Attributes Parachute
                Item "The Air Strike"
                Item "The B.A.S.E. Jumper"
                Item "TF_WEAPON_SPELLBOOK"
                ItemAttributes
                {
                    ItemName "The Air Strike"
                    "faster reload rate" 0.4
                    "clip size upgrade atomic" 4
                    "fire rate bonus" 0.2
                }
                CharacterAttributes
                {
                    "cancel falling damage" 1
                    "increased air control" 2
                    "cannot pickup spells" 1
                }
                Spell  
                {
                    Delay 0
                    Cooldown 17
                    Charges 2
                    IfSeeTarget 0
                    Type "Superjump"
                }
                Item "Ground Control"
            }
        }
        WaveSpawn
        {
            Name w3d1
            TotalCount 1
            SpawnCount 1
            MaxActive 1
            WaitForAllSpawned w3c1
            TotalCurrency 50
            WaitBeforeStarting 15
            FirstSpawnOutput
            {
                Target boss_spawn_relay
                Action Trigger
            }
            Tank
            {
                Health 20000
                Speed 70
                Name "vactank_blast_fire"
                ClassIcon "tank_vacc_blast_fire"  
                StartingPathTrackNode path_tank_lower
                OnKilledOutput
                {
                    Target boss_dead_relay
                    Action Trigger
                }
                OnBombDroppedOutput
                {
                    Target boss_deploy_relay
                    Action Trigger
                }
            }
        }
        WaveSpawn
        {
            Name w3d1
            TotalCount 1
            SpawnCount 1
            MaxActive 1
            WaitForAllSpawned w3c1
            TotalCurrency 50
            WaitBeforeStarting 20
            FirstSpawnOutput
            {
                Target boss_spawn_relay
                Action Trigger
            }
            Tank
            {
                Health 20000
                Speed 70
                Name "vactank_bullet_blast"
                ClassIcon "tank_vacc_bullet_blast"  
                StartingPathTrackNode path_tank_lower
                OnKilledOutput
                {
                    Target boss_dead_relay
                    Action Trigger
                }
                OnBombDroppedOutput
                {
                    Target boss_deploy_relay
                    Action Trigger
                }
            }
        }
        WaveSpawn
        {
            Name w3d2
            TotalCount 40
            SpawnCount 5
            MaxActive 10
            WaitForAllSpawned w3d1
            TotalCurrency 50
            Where spawnbot_ambush_lower
            RandomChoice
            {
                TFBot
                {
                    Template T_TFBot_Pyro_Gaspasser_Slow
                }
                TFBot
                {
                    Template T_TFBot_Pyro_Gaspasser_Explove
                    ItemAttributes
                    {
                        ItemName "The Gas Passer"
                        "damage bonus" 1.5
                    }
                }
            }
        }
        WaveSpawn
        {
            Name w3e1
            TotalCount 5
            SpawnCount 1
            MaxActive 3
            WaitBetweenSpawns 11
            WaitForAllDead w3d1
            WaitBeforeStarting 8
            TotalCurrency 30
            Where spawnbot_left
            TFBot
            {
                Template T_TFGateBot_Demoman_Hard
                Name "Triple Charged Demo Caster"
                ClassIcon "demo_spell_overheal"
                Health 3300
                Skill Expert
                Attributes MiniBoss
                Attributes HoldFireUntilFullReload
                Attributes AlwaysCrit
                Tag nav_prefer_flank_r
                Item "TF_WEAPON_SPELLBOOK"
                Item "The Loch-n-Load"
                ItemAttributes
                {
                    ItemName "The Loch-n-Load"
                    "fire rate bonus" -2
                    "faster reload rate" 0.4
                    "clip size upgrade atomic" 8
                    "projectile spread angle penalty" 4
                }
                CharacterAttributes
                {
                    "healing received bonus" 2
                }
                Spell  
                {
                    Delay 0
                    Cooldown 8
                    Charges 3
                    Type "Healing Aura"
                }
            }
        }
        WaveSpawn
        {
            Name w3e2
            TotalCount 24
            SpawnCount 2
            MaxActive 12
            WaitForAllDead w3d1
            WaitBeforeStarting 11
            WaitBetweenSpawns 4
            TotalCurrency 20
            Where spawnbot_main
            TFBot
            {
		    	Class Heavyweapons
	    		Name "Steel Gauntlet Pusher Caster"
	    		ClassIcon heavy_gauntlet_armored_spell_overheal
	    		Health 900
	    		Scale 1.5
                StripItemSlot 0  
                StripItemSlot 1  
                WeaponSwitch  
                {
                    Delay 0
                    Cooldown 8
                    Type "PDA"
                }
                WeaponSwitch  
                {
                    Delay 1
                    Cooldown 1
                    Type "Melee"
                }
		    	EventChangeAttributes
		    	{
		    		Default
		    		{
		    			Tag nav_prefer_gate1_flank	// having these will cause bots to run towards gates
		    			Tag bot_gatebot				// having these will cause bots to run towards gates
		    			BehaviorModifiers Push		// having these will cause bots to run towards gates
		    			Attributes IgnoreFlag		// having these will cause bots to run towards gates
		    			Item "The Carl"
		    			Item "Fists of Steel"
		    			ItemAttributes
		    			{
		    				ItemName "Fists of Steel"
		    				"damage causes airblast" 1
		    				"damage bonus" 1.5
		    			}
		    			Item "MvM GateBot Light Heavy"
		    			Tag bot_giant
		    			Skill Expert
		    		}
		    		RevertGateBotsBehavior
			    	{
				    	Item "The Carl"
		    			Item "Fists of Steel"
		    			ItemAttributes
		    			{
		    				ItemName "Fists of Steel"
		    				"damage causes airblast" 1
		    				"damage bonus" 1.5
		    			}
		    			Item "MvM GateBot Light Heavy"
			    		ItemAttributes               // turn off light hat
			    		{
			    			ItemName "MvM GateBot Light Heavy"
			    			"item style override" 1
			    		}
			    		Tag bot_giant
			    		Skill Expert
			    	}
			    }
                Spell  
                {
                    Delay 0
                    Cooldown 8
                    IfSeeTarget 1
                    Type "Healing Aura"
                }
            }
        }
        WaveSpawn
        {
            Name w3f1
            TotalCount 1
            SpawnCount 1
            WaitForAllDead w3e1
            TotalCurrency 50
            Where spawnbot_main
            TFBot
            {
                Name "ReAnimator"
                Class Demoman
                Skill Expert
                ClassIcon "demo_spell_skeleton"
                Attributes MiniBoss
                Attributes UseBossHealthBar
                Scale 2.2
                Health 40000
                Item "The Half-Zatoichi"
                Item "TF_WEAPON_SPELLBOOK"
                StripItemSlot 0  
                StripItemSlot 1  
                ItemAttributes
                {
                    ItemName "The Half-Zatoichi"
                    "damage bonus" 3
                    "melee attack rate bonus" 0.7
                }
                CharacterAttributes
                {
                    "airblast vulnerability multiplier" 0.1
                    "airblast vertical vulnerability multiplier" 0.1
                    "damage force reduction" 0.6
                    "cancel falling damage" 1
                    "move speed bonus" 0.6
                }
                Spell  
                {
                    Cooldown 15
                    Charges 3
                    Type "Summon Skeletons"
                }
                Item "The Hood of Sorrows"
                Item "Zombie Demo"
            }
        }
        WaveSpawn
        {
            Name w3f2
            TotalCount 30
            SpawnCount 2
            MaxActive 14
            WaitForAllSpawned w3f1
            Where spawnbot_main
            Where spawnbot_left
            Where spawnbot_right
            TFBot
            {
                Template T_TFBot_Heavy_Deflector_Crit
            }
        }
        WaveSpawn
        {
            Name w3s
            Support 1
            SpawnCount 2
            MaxActive 2
            WaitBetweenSpawnsAfterDeath 7
            WaitBeforeStarting 15
            Where spawnbot_ambush_lower
            TFBot
            {
		    	Name "Rapid Stunner Soldier"
		    	Item "The Lucky Shot"
		    	Class	Soldier
		    	Skill	Expert
                ClassIcon "soldier_stun_spammer_spell_overheal"
                Template T_TFGateBot_Soldier_Hard
		    	ItemAttributes
		    	{
		    		ItemName	TF_WEAPON_ROCKETLAUNCHER
		    		"Projectile speed increased"	0.65
		    		"faster reload rate"	-0.8
		    		"fire rate bonus"	0.5
		    		"rocket specialist" 1
		    		"damage bonus" 0.8
		    	}
                Spell  
                {
                    Delay 1
                    Cooldown 7
                    Charges 2
                    Type "Healing Aura"
                }
            }
        }
        WaveSpawn
        {
            Name w3s
            Support 1
            SpawnCount 4
            MaxActive 4
            WaitBetweenSpawnsAfterDeath 18
            WaitBeforeStarting 10
            Where spawnbot_main
            Where spawnbot_left
            Where spawnbot_right
            Where spawnbot_flank
	    	TFBot
	    	{
	    		Template T_TFBot_Engineer_Sentry_Tele_Battle
	    		ClassIcon Engineer_build_telein_hyper
	    		CharacterAttributes
	    		{
	    			"fire rate bonus" 0.5
	    			"move speed bonus" 1.5
	    			"Repair rate increased" 2
	    			"engy building health bonus" 10
	    			"Construction rate increased" 200
	    			"cannot be sapped" 1
	    		}
	    	}
        }
    }
//    Mission
//    {
//		Objective DestroySentries
//		InitialCooldown 10
//		Where spawnbot_sentrybuster
//		BeginAtWave 4
//		RunForThisManyWaves 1
//		CooldownTime 15
//        RandomChoice
//        {
//            TFBot
//            {
//                Template T_TFBot_SentryBuster
//                Item "TF_WEAPON_SPELLBOOK"
//                Name "Overheal Spammer Buster"
//                Spell  
//                {
//                    Delay 0
//                    Cooldown 5
//                    Charges 1
//                    Type "Fireball"
//                }
//            }
//            TFBot
//            {
//                Template T_TFBot_SentryBuster
//                Name "Minify Buster"
//                Item "TF_WEAPON_SPELLBOOK"
//                Spell  
//                {
//                    Delay 0
//                    Cooldown 9
//                    Charges 1
//                    Type "Minify"
//                }
//            }
//        }
//    }
    Mission
    {
        Objective Engineer
        InitialCooldown 10
        Where spawnbot
        BeginAtWave 4
        RunForThisManyWaves 1
        CooldownTime 10
        TFBot
        {
	    	Template T_TFBot_Engineer_Sentry_Tele_Battle
	    	ClassIcon Engineer_build_telein_hyper
	    	CharacterAttributes
	    	{
	    		"fire rate bonus" 0.5
	    		"move speed bonus" 1.5
	    		"Repair rate increased" 2
	    		"engy building health bonus" 10
	    		"Construction rate increased" 200
	    		"cannot be sapped" 1
	    	}
        }
    }
    Wave //upper relay
    {
		StartWaveOutput
		{
			Target	wave_prepare_relay_upper
			Action	Trigger
		}
        InitWaveOutput
        {
            Target BigNet
            Action RunScriptCode
            Param "
            //IncludeScript(`popextensions_main`, getroottable())
            EntFire(`relay_mission_use_ambush`, `Trigger`)
            EntFire(`relay_open_ambush`, `Trigger`)"
        }
		DoneOutput
		{
			Target wave_init_upper_relay
			Action Trigger
		}
        WaveSpawn
        {
            Name w4a1
            TotalCount 12
            SpawnCount 2
            MaxActive 8
            WaitBetweenSpawns 15
            TotalCurrency 50
            Where spawnbot_left
            Squad
            {
                TFBot
                {
    	    		ClassIcon	sniper_power_giant
		        	Health	3000
		        	Name	"Giant Charged Sniper"
	        		Class	Sniper
	        		Skill	Expert
	        		WeaponRestrictions	PrimaryOnly
		        	Attributes MiniBoss
		        	Attributes AlwaysFireWeapon
                    Attributes AlwaysCrit
		        	Item "The Anger"
		        	Item "The Bazaar Bargain"
		        	AimAt Head  
		        	AimTrackingInterval 0  
		        	ItemAttributes
		        	{
		        		ItemName	"The Bazaar Bargain"
		        		"damage bonus"	3.0
		        	}
		        	CharacterAttributes
		        	{
		        		"move speed bonus" 0.6
		        		"damage force reduction" 0.2
			        	"airblast vulnerability multiplier" 0.2
                        "airblast vertical vulnerability multiplier" 0.3
			        	"override footstep sound set" 7
		        		"head scale" 0.7
                        "healing received bonus" 1.5
		        	}
                }
                RandomChoice //if this does work I cannot figure out how to make them appear in the wavebar
                {
                    TFBot //it does work as its intented however they dont appear in the wavebar
                    {
	            		ClassIcon	medic_bullet
		            	Name	"Bullet Vaccinator Medic"
		            	Class	Medic
		            	Skill	Expert
	            		Attributes SpawnWithFullCharge
	            		Attributes VaccinatorBullets
                        Attributes IgnoreEnemies
	            		ItemAttributes
		            	{
		            		ItemName	TF_WEAPON_SYRINGEGUN_MEDIC
		            		"damage penalty"	0.1
		            	}
		            	ItemAttributes
                        {
                            ItemName "The Vaccinator"
                            "ubercharge rate bonus"	200
		            		"heal rate bonus"	1
			            	"medigun bullet resist passive"	1
	            			"medigun bullet resist deployed" 1
                            "bot medic uber health threshold" 444
                            "healing received bonus" 1.5
                        }
		            	Item "The Vaccinator"
	                }
                    TFBot
                    {
		            	ClassIcon	medic_blast
		            	Name	"Blast Vaccinator Medic"
	            		Class	Medic
	            		Skill	Expert
		            	Attributes	SpawnWithFullCharge
		            	Attributes	VaccinatorBlast
                        Attributes IgnoreEnemies
	            		ItemAttributes
	            		{
		            		ItemName	TF_WEAPON_SYRINGEGUN_MEDIC
		            		"damage penalty"	0.1
		            	}
	            		ItemAttributes
                        {
                            ItemName "The Vaccinator"
                            "ubercharge rate bonus"	200
		            		"heal rate bonus"	1
		            		"medigun blast resist passive"	1
		            		"medigun blast resist deployed"	1
                            "bot medic uber health threshold" 444
                            "healing received bonus" 1.5
                        }
	            		Item "The Vaccinator"
                    }
                    TFBot
                    {
		            	ClassIcon	medic_fire
	            		Name	"Fire Vaccinator Medic"
	            		Class	Medic
	            		Skill	Expert
	            		Attributes SpawnWithFullCharge
                        Attributes IgnoreEnemies
		            	Attributes VaccinatorFire
	            		ItemAttributes
		            	{
		            		ItemName	TF_WEAPON_SYRINGEGUN_MEDIC
		            		"damage penalty"	0.1
	            		}
	            		ItemAttributes
                        {
                            ItemName "The Vaccinator"
                            "ubercharge rate bonus"	200
		            		"heal rate bonus"	1
	            			"medigun fire resist passive"	1
	            			"medigun fire resist deployed"	1
                            "bot medic uber health threshold" 444
                            "healing received bonus" 1.5
                        }
		            	Item "The Vaccinator"
                    }
                }
            }
        }
        WaveSpawn
        {
            Name w4a2
            TotalCount 15
            SpawnCount 2
            MaxActive 10
            WaitBetweenSpawns 7
            WaitBeforeStarting 10
            TotalCurrency 20
            Where spawnbot_ambush_upper
            Where spawnbot_flank
            TFBot
            {
                Name "Fire Wizard Scout"
                Class Scout
                ClassIcon "scout_spell_fireball"
                Attributes HoldFireUntilFullReload
                Skill Expert
                Health 125
                ItemAttributes
                {
                    ItemName "TF_WEAPON_SCATTERGUN"
                    "fire rate bonus" -2
                    "faster reload rate" 1.7
                    "projectile spread angle penalty" 5
                    "Projectile speed increased" 1.5
                    "clip size bonus" 0.6
                    "override projectile type extra" spellfireball  
                }
                CharacterAttributes
                {
                    "healing received bonus" 1.5
                }
		    	ShootTemplate   //if any of these templates are used, must used the itemattribute projectile
		    	{
		    		Name spellfireball //Name of the template
		    		Speed 1200 //Velocity of the spawned objects (Default: 1000)
		    		Offset "0 0 0" //Offset from the bot shooting position (Default: 0 0 0)
		    		Angles "0 0 0" //Shooting angle offset (Default: 0 0 0)
		    		OverrideShoot 1 //Stop default projectile from being spawned (Default: 0)
		    		Spread 1 //Spread of the fired template entities. 0 - No spread, 0.1 - Beggar like spread, 1 - Very inaccurate (Default: 0)
		    		ItemName "TF_WEAPON_SCATTERGUN" //Can be specified to limit to a specific weapon
				}
                Item "Head Hunter"
            }
        }
        WaveSpawn
        {
            Name w4b1
            TotalCount 3
            SpawnCount 1
            MaxActive 3
            WaitForAllSpawned w4a1
            WaitBetweenSpawns 9
            TotalCurrency 50
            Where spawnbot_chief_move
            TFBot
            {
                Name "Meteor Caster Demoman"
                Class Demoman
                ClassIcon "demo_spell_meteorshower"
                Attributes MiniBoss
                Attributes HoldFireUntilFullReload
                Health 3300
                Skill Expert
                Item "TF_WEAPON_SPELLBOOK"
                ItemAttributes
                {
                    ItemName "TF_WEAPON_GRENADELAUNCHER"
                    "faster reload rate" 4
                    "clip size upgrade atomic" -3
                    "override projectile type extra" spellmeteorshower  
                }
                CharacterAttributes
                {
                    "move speed bonus" 0.4
                    "airblast vulnerability multiplier" 0.1
                    "airblast vertical vulnerability multiplier" 0.1
                    "damage force reduction" 0.5
                    "cancel falling damage" 1
                    "healing received bonus" 2.2
                    "cannot pickup spells" 1
                }
                Item "Head Banger"
            }
        }
        WaveSpawn
        {
            Name w4b2
            TotalCount 20
            SpawnCount 3
            MaxActive 15
            WaitBetweenSpawns 4
            TotalCurrency 30
            WaitForAllDead w4a1
            Where spawnbot_right
            TFBot
            {
                Name "Swift Bat Caster Soldier"
                Class Soldier
                ClassIcon "soldier_spell_bats"
                Health 200
                Skill Expert
                MaxVisionRange 600
                Action Mobber  
                StripItemSlot 0  
                StripItemSlot 1  
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "move speed bonus" 3
                    "healing received bonus" 1.3
                    "voice pitch scale" 0
                    "cannot pickup spells" 1
                }
                Spell  
                {
                    Delay 1
                    Cooldown 4
                    Charges 1
                    IfSeeTarget 1
                    Type "Ball O' Bats"
                }
                Item "The Spellbinder's Bonnet"
            }
        }
        WaveSpawn
        {
            Name w4c1
            TotalCount 2
            SpawnCount 2
            MaxActive 2
            WaitForAllSpawned w4b1
            WaitBeforeStarting 12
            TotalCurrency 100
            Where spawnbot_right
            Squad
            {
                TFBot
                {
                    Name "Suppression Pumpkin Soldier"
                    Class Soldier
                    ClassIcon "soldier_spell_pumpkin"
                    UseHumanModel 1  
                    Attributes HoldFireUntilFullReload
                    Attributes UseBossHealthBar
                    Attributes MiniBoss
                    Skill Expert
                    Health 35000
                    AimAt Head   //used to aim higher rather than their feet
                    Item "TF_WEAPON_SPELLBOOK"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_ROCKETLAUNCHER"
                        "fire rate bonus" -2
                        "Reload time increased" 2.7
                        "projectile spread angle penalty" 3
                        "Projectile range increased" 5 //this is the best I could do
                        "Projectile speed increased" 3.5
                        "override projectile type extra" spellmirv  
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 0.4
                        "airblast vulnerability multiplier" 0.1
                        "airblast vertical vulnerability multiplier" 0.1
                        "damage force reduction" 0.3
                        "cancel falling damage" 1
                        "healing received bonus" 2
                        "cannot be sapped" 1
                        //"cannot pickup spells" 1
                    }
                    Item "Cranial Cowl"
				}
                TFBot
                {
	        		ClassIcon	medic_battery_giant
	        		Health	4500
	        		Name	"Giant Blinking Uber Medic"
	        		Class	Medic
	        		Skill	Expert
		        	WeaponRestrictions	SecondaryOnly
		        	Attributes	"SpawnWithFullCharge"
		        	Attributes	"MiniBoss"
		        	ItemAttributes
		        	{
		        		ItemName	TF_WEAPON_SYRINGEGUN_MEDIC
		        		"damage penalty"	0.1
		        	}
		        	ItemAttributes
		        	{
		        		ItemName "TF_WEAPON_MEDIGUN"
		        		"ubercharge rate bonus" 15
		        		"uber duration bonus" -6
		        		"bot medic uber health threshold" 2950
		        	}
		        	CharacterAttributes
		        	{
		        		"move speed bonus"	0.5
		        		"damage force reduction"	0.6
		        		"airblast vulnerability multiplier"	0.6
		        		"heal rate bonus"	200
                        "healing received bonus" 2
                        "cannot be sapped" 1
		        	}
		        	Item	"Prussian Pickelhaube"
	            }
            }
        }
        WaveSpawn
        {
            Name w4c2
            TotalCount 25
            SpawnCount 10
            MaxActive 10
            WaitBetweenSpawns 10
            WaitForAllSpawned w4c1
            TotalCurrency 50
            Where spawnbot_left
            TFBot
            {
                Template T_TFBot_Soldier_Spammer_Backup
            }
        }
        WaveSpawn
        {
            Name w4c3
            TotalCount 15
            SpawnCount 3
            MaxActive 10
            WaitBetweenSpawns 8
            WaitForAllSpawned w4c1
            TotalCurrency 20
            Where spawnbot_ambush_upper
            Where spawnbot_flank
            TFBot
            {
                Name "Swift Invis Rusher Soldier"
                Class Soldier
                Scale 1.5
                Skill Expert //doesnt use spells unless there a target in range
                Health 4000
                UseHumanModel 1  
                ClassIcon soldier_escapeplan_spell_invisibility
                Attributes MiniBoss
                Attributes SuppressFire
                Item "The Escape Plan"
                Item "TF_WEAPON_SPELLBOOK"
                Action FetchFlag [$SISGEGV]
                StripItemSlot 1  
                StripItemSlot 0  
                CharacterAttributes
                {
                    "major move speed bonus" 3 //doesnt go higher values sadly
                    "override footstep sound set" 2
                    "airblast vertical vulnerability multiplier" 0
                    "airblast vulnerability multiplier" 0.4
                    "damage force reduction" 0.5
                    "voice pitch scale" 0
                    "healing received bonus" 1.5
                    "cannot pickup spells" 1
                    //"fire retardant" 1
                }
                Spell  
                {
                    Delay 0
                    Cooldown 8
                    Charges 1
                    IfSeeTarget 0
                    Type "Invisibility"
                }
                Item "The Freedom Feathers"
            }
        }
        WaveSpawn
        {
            Name w4d1
            TotalCount 3
            SpawnCount 1
            MaxActive 2
            WaitBetweenSpawns 15
            WaitForAllDead w4c1
            WaitBeforeStarting 20
            TotalCurrency 50
            Where spawnbot_left
            TFBot
            {
	    		Class Pyro
	    		Name "Giant Ice Dragon Pyro"
	    		ClassIcon pyro_fury_freeze_giant
	    		Skill Expert
	    		Health 3800
	    		WeaponRestrictions	PrimaryOnly
    			Attributes MiniBoss
	    		MaxVisionRange 800
		    	ItemAttributes
		    	{
		    		ItemName  "The Dragon's Fury"
		    		"mult_item_meter_charge_rate"	0.7
		    		"damage bonus"	1.5
		    		"is_festivized" 1
		    		"slow enemy on hit major" 3
		    		"attach particle effect" 30
		        }		    
		    	CharacterAttributes
		    	{
		    		"move speed bonus"	0.5
		    		"damage force reduction" 0.6
		    		"airblast vulnerability multiplier" 0.6
		    		"override footstep sound set" 6
                    "healing received bonus" 2
		    	}
		    	Item    "The Dragon's Fury"
		    	Item	"The B.M.O.C."
		    	Item	"The Ornament Armament"
            }
        }
        WaveSpawn
        {
            Name w4d2
            TotalCount 22
            SpawnCount 3
            MaxActive 9
            WaitBetweenSpawns 4
            WaitForAllDead w4c1
            WaitBeforeStarting 15
            TotalCurrency 30
            Where spawnbot_chief
            TFBot
            {
                Name "Swift Fireball Pyro"
                Class Pyro
                ClassIcon "pyro_spell_fireball"
                Skill Expert
                Health 175
                Item "TF_WEAPON_SPELLBOOK"
                StripItemSlot 0  
                StripItemSlot 1  
                StripItemSlot 2  
                CharacterAttributes
                {
                    "move speed bonus" 2
                    "healing received bonus" 1.5
                    //"cannot pickup spells" 1
                }
                Spell  
                {
                    Delay 1
                    Cooldown 3
                    IfSeeTarget 1
                    Charges 1
                    Type "Fireball"
                }
            }
        }
        WaveSpawn
        {
            Name w4e1
            TotalCount 2
            SpawnCount 1
            MaxActive 2
            WaitBetweenSpawns 20
            WaitBeforeStarting 10
            WaitForAllSpawned w4d1
            TotalCurrency 50
            Where spawnbot_chief_move
            TFBot
            {
                Health 6400
                ClassIcon "heavy_shotgun_explosive_spell_overheal"
	    		Name	"Giant Explosive Shotgun Soldier"
	    		Class	Soldier
	    		Skill	Expert
				//Tag "popext_customattr{attribute = `explosive bullets ext`, value = 5}" //value doesn't do anything?
	    		Attributes HoldFireUntilFullReload
                Attributes AlwaysCrit
                WeaponRestrictions SecondaryOnly
	    		Attributes MiniBoss
                StripItemSlot 0  
                StripItemSlot 1  
                StripItemSlot 2  
                Item "TF_WEAPON_SPELLBOOK"
                Item "The Reserve Shooter"
                Item "The Lucky Shot"
	    		ItemAttributes
	    		{
		    		ItemName "The Reserve Shooter"
	    			"damage bonus"	1.5
                    "bullets per shot bonus" 5
                    "fire rate bonus" 3
                    "explosive bullets" 150
	    		}
	    		CharacterAttributes
	    		{
	    			"move speed bonus"	0.5
	    			"damage force reduction"	0.4
	    			"airblast vulnerability multiplier"	0.4
	    			"override footstep sound set"	3
                    "healing received bonus" 1.3
                    "cannot pickup spells" 1
	    		}
                WeaponSwitch  
                {
                    Delay 0
                    Cooldown 1
                    Type "Secondary"
                }
                WeaponSwitch  
                {
                    Delay 3
                    Cooldown 10
                    Type "PDA"
                }
	    		Item "dec2014 Skullcap"
                Spell  
                {
                    Delay 3
                    Cooldown 10
                    Charges 2
                    Type "Healing Aura"
                }
            }
        }
        WaveSpawn
        {
            Name w4e2
            TotalCount 18
            SpawnCount 6
            MaxActive 18
            WaitBetweenSpawns 8
            WaitBeforeStarting 10
            WaitForAllSpawned w4d1
            Where spawnbot_main
            TFBot
            {
                Template T_TFBot_Soldier_Burst_Buff
                ClassIcon soldier_burstfire_spell_overheal
                Item "TF_WEAPON_SPELLBOOK"
                StripItemSlot 2  
                CharacterAttributes
                {
                    "healing received bonus" 1.5
                    //"cannot pickup spells" 1
                }
                Spell  
                {
                    Delay 1
                    Cooldown 8
                    IfHealthBelow 150
                    Type "Healing Aura"
                }
            }
        }
        WaveSpawn
        {
            Name w3s
            Support 1
            TotalCount 9999
            SpawnCount 2
            MaxActive 6
            WaitBetweenSpawns 2
            Where spawnbot_flank
            Where spawnbot_ambush_lower
            Where spawnbot_ambush_upper
            RandomChoice
            {
                TFBot
                {
                    Name "Tough Uber Caster Soldier"
                    Health 700
                    Class Soldier
                    ClassIcon "soldier_spell_overheal"
                    Attributes HoldFireUntilFullReload
                    Attributes AlwaysCrit
                    Skill Expert
                    Action EscortFlag  
                    StripItemSlot 0  
                    StripItemSlot 2  
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "The Lucky Shot"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SHOTGUN_SOLDIER"
                        "bullets per shot bonus" 1.5
                        "damage bonus" 1.5
                        "fire rate bonus" 0.5
                        "faster reload rate" 0.5
                    }
                    CharacterAttributes
                    {
                        "healing received bonus" 3
                        "cannot pickup spells" 1
                    }
                    Spell [$SISGEGV]
                    {
                        Delay 0
                        Cooldown 8
                        Charges 2
                        Type "Healing Aura"
                    }
                }
                TFBot
                {
                    Name "Tough Uber Caster Medic"
                    Health 500
                    Class Medic
                    ClassIcon "medic_spell_overheal"
                    Attributes HoldFireUntilFullReload
                    Skill Expert
                    StripItemSlot 1 [$SISGEGV]
                    StripItemSlot 2  
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "The Crusader's Crossbow"
                    ItemAttributes
                    {
                        ItemName "The Crusader's Crossbow"
                        "clip size bonus" 6
                        "fire rate bonus" -2
                        "projectile penetration" 1
                        "projectile spread angle penalty" 3
                        "faster reload rate" 0.5
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 2
                        "healing received bonus" 3
                        "cannot pickup spells" 1
                    }
                    Spell [$SISGEGV]
                    {
                        Delay 0
                        Cooldown 6
                        Charges 2
                        Type "Healing Aura"
                    }
                    Item "Das Naggenvatcher"
                }
                TFBot
                {
                    Name "Armored Uber Caster Heavy"
                    Template T_TFBot_Heavyweapons_Fist
                    Health 900
                    Class Heavyweapons
                    ClassIcon "heavy_gauntlet_armored_spell_overheal"
                    Attributes AlwaysCrit
                    Skill Expert
                    Action EscortFlag  
                    StripItemSlot 0  
                    StripItemSlot 1  
                    Item "TF_WEAPON_SPELLBOOK"
                    CharacterAttributes
                    {
                        "healing received bonus" 3
                        "cannot pickup spells" 1
                    }
                    Spell  
                    {
                        Delay 0
                        Cooldown 7
                        Charges 2
                        Type "Healing Aura"
                    }
                    Item "The U-clank-a"
                }
                TFBot
                {
                    Name "Tough Uber Caster Scout"
                    Class Scout
                    ClassIcon "scout_spell_overheal"
                    Skill Expert
                    Health 650
                    Attributes HoldFireUntilFullReload
                    Attributes AlwaysCrit
                    Item "TF_WEAPON_SPELLBOOK"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SCATTERGUN"
                        "fire rate bonus" 0.2
                        "faster reload rate" 0.5
                        "damage bonus" 1.5
                    }
                    CharacterAttributes
                    {
                        "healing received bonus" 3
                        "cannot pickup spells" 1
                    }
                    Spell [$SISGEGV]
                    {
                        Delay 1
                        Cooldown 5
                        Type "Healing Aura"
                    }
                    Item "The El Jefe"
                }
            }
        }
    }
    Mission
    {
		Objective DestroySentries
		InitialCooldown 20
		Where spawnbot_sentrybuster
		BeginAtWave 5
		RunForThisManyWaves 1
		CooldownTime 15
        RandomChoice
        {
            TFBot
            {
                Template T_TFBot_SentryBuster
                Item "TF_WEAPON_SPELLBOOK"
                Name "Tesla Buster"
                Spell  
                {
                    Delay 0
                    Cooldown 14
                    Charges 2
                    Type "Tesla Bolt"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Item "TF_WEAPON_SPELLBOOK"
                Name "Skeleton Caster Buster"
                Spell  
                {
                    Delay 0
                    Cooldown 11
                    Charges 3
                    Type "Summon Skeleton"
                }
            }
        }
    }
    Mission
    {
        Objective Engineer
        RunForThisManyWaves 1
        InitialCooldown 30
        DesiredCount 3
        BeginAtWave 5
        Where spawnbot
        Where spawnbot_ambush_lower
        Where spawnbot_ambush_upper
        Where spawnbot_main
        TFBot
        {
	    	Template T_TFBot_Engineer_Sentry_Tele_Battle
	    	ClassIcon Engineer_build_telein_hyper
	    	CharacterAttributes
	    	{
	    		"fire rate bonus" 0.5
	    		"move speed bonus" 1.5
	    		"Repair rate increased" 2
	    		"engy building health bonus" 10
	    		"Construction rate increased" 200
	    		"cannot be sapped" 1
	    	}
        }
    }
    Wave //upper relay
    {
        StartWaveOutput
		{
			Target	wave_prepare_relay_upper
			Action	Trigger
		}
		DoneOutput
		{
			Target wave_init_upper_relay
			Action Trigger
		}
        WaveSpawn
        {
            Name w6tank
            TotalCount 1
            SpawnCount 1
            TotalCurrency 800
            Tank
            {
                Health 450000
                Speed 20
                Name "Tank"
                ClassIcon "tank_shield"  
                StartingPathTrackNode path_tank_upper
		        OnKilledOutput
		        {
		        	Target boss_dead_relay
		        	Action Trigger
		        }
		        OnBombDroppedOutput
		        {
		        	Target boss_deploy_relay 
		        	Action Trigger
                }
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 2
            MaxActive 2
            WaitBetweenSpawnsAfterDeath 14
            Where spawnbot_left
            TFBot
            {
                Name "Firespell Soldier"
                ClassIcon "soldier_burstspell_fireball_1"
                Health 200
                Class Soldier
                Skill Hard
                Attributes HoldFireUntilFullReload
                Item "TF_WEAPON_SPELLBOOK"
		    	ShootTemplate  
		    	{
		    		Name spellfireball //Name of the template
		    		Speed 1000 //Velocity of the spawned objects (Default: 1000)
		    		Offset "0 0 0" //Offset from the bot shooting position (Default: 0 0 0)
		    		Angles "0 0 0" //Shooting angle offset (Default: 0 0 0)
		    		OverrideShoot 1 //Stop default projectile from being spawned (Default: 0)
		    		Spread 0.5 //Spread of the fired template entities. 0 - No spread, 0.1 - Beggar like spread, 1 - Very inaccurate (Default: 0)
		    		ItemName "TF_WEAPON_ROCKETLAUNCHER" //Can be specified to limit to a specific weapon
				}
                ItemAttributes
                {
                    ItemName "TF_WEAPON_ROCKETLAUNCHER"
                    "override projectile type extra" spellfireball  
                    "faster reload rate" 0.5
                    "clip size upgrade atomic" 2 //will check this if its too much
                    "projectile spread angle penalty" 2.3
                    "fire rate bonus" -2
                }
                CharacterAttributes
                {
                    "cannot be sapped" 1
                }
                Item "The Shellmet"
                Item "The Caped Crusader"
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 2
            MaxActive 2
            WaitBetweenSpawns 17
            Where spawnbot_flank
            TFBot
            {
                Name "Meteor Caster Pyro"
                Class Pyro
                ClassIcon "pyro_spell_meteorshower"
                Health 175
                Item "TF_WEAPON_SPELLBOOK"
                Action Mobber  
                StripItemSlot 0  
                StripItemSlot 1  
                StripItemSlot 2  
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                }
                Spell  
                {
                    Delay 2
                    Cooldown 11
                    Charges 2
                    IfSeeTarget 1
                    Type "Meteor Shower"
                }
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 2
            MaxActive 2
            WaitBeforeStarting 8
            WaitBetweenSpawnsAfterDeath 11
            Where spawnbot_left
            TFBot
            {
                Name "Death From Above"
                Class Demoman
                ClassIcon "demo_spell_pumpkin"
                Attributes Parachute
                Skill Hard
                Item "TF_WEAPON_SPELLBOOK"
                Item "The B.A.S.E. Jumper"
                WeaponRestrictions SecondaryOnly
                ItemAttributes
                {
                    ItemName "TF_WEAPON_GRENADELAUNCHER"
                    "is_passive_weapon" 1
                    "override projectile type" 27
                    //"clip size upgrade atomic" -4
                }
                ItemAttributes
                {
                    ItemName "TF_WEAPON_PIPEBOMBLAUNCHER"
                    "clip size upgrade atomic" -5
                    "fire rate bonus" 0.6
                    "faster reload rate" 0.6
                    "stickybomb charge rate" 0.01
                    "Projectile range increased" 2
                    "Projectile speed increased" 2
                    "override projectile type extra" spellmirv  
                }
                CharacterAttributes
                {
                    "increased air control" 4
                    "cancel falling damage" 1
                    "dmg taken from blast increased" 0.4
                    "cannot pickup spells" 1
                }
                WeaponSwitch  
                {
                    Delay 0
                    Cooldown 1
                    Repeats 0
                    Type "Secondary"
                }
                WeaponSwitch  
                {
                    Delay 0
                    Cooldown 12
                    Repeats 0
                    Type "PDA"
                }
                Spell  
                {
                    Delay 0
                    Cooldown 12
                    Charges 2
                    IfSeeTarget 1
                    Type "Superjump"
                }
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 2
            MaxActive 2
            WaitBetweenSpawnsAfterDeath 8
            Where spawnbot_main
            TFBot
            {
                Name "Fireball Heavy"
                Class Heavyweapons
                Skill Expert
                ClassIcon "heavy_spell_fireball"
                Health 300
                ItemAttributes
                {
                    ItemName "TF_WEAPON_MINIGUN"
                    "override projectile type extra" spellfireball  
                    "fire rate bonus" 5
                    "aiming movespeed increased" 1.5
                }
                Item "The Trash Man"
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 3
            MaxActive 3
            WaitBetweenSpawnsAfterDeath 10
            Where spawnbot_left
            TFBot
            {
                Name "Armored Demoknight Caster"
                Template T_TFBot_Demoman_Knight
                Class Demoman
                ClassIcon "demoknight_shield"
                Health 700
                Skill Expert
                Item "The Eyelander"
                Item "TF_WEAPON_SPELLBOOK"
                ItemAttributes
                {
                    ItemName "The Eyelander"
                    "critboost on kill" 5
                    "damage bonus" 1.5
                }
                CharacterAttributes
                {
                    "cannot pickup spells" 1
                    "cannot be sapped" 1
                }
                Spell  
                {
                    Delay 0
                    Cooldown 9
                    Charges 1
                    Type "Invisibility"
                }
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 2
            MaxActive 2
            WaitBetweenSpawnsAfterDeath 15
            Where spawnbot_ambush_upper
            Where spawnbot_flank
            TFBot
            {
                Name "Superjump Airstrike Soldier"
                Class Soldier
                ClassIcon "soldier_airstrike_lite_burstfire"
                Skill Expert
                Attributes HoldFireUntilFullReload
                Attributes AlwaysCrit
                Attributes Parachute
                Item "The Air Strike"
                Item "The B.A.S.E. Jumper"
                Item "TF_WEAPON_SPELLBOOK"
                ItemAttributes
                {
                    ItemName "The Air Strike"
                    "faster reload rate" 0.4
                    "clip size upgrade atomic" 4
                    "fire rate bonus" 0.1
                }
                CharacterAttributes
                {
                    "cancel falling damage" 1
                    "increased air control" 2
                    "cannot pickup spells" 1
                }
                Spell  
                {
                    Cooldown 13
                    Charges 2
                    Repeats 1
                    Type "Superjump"
                }
                Item "Ground Control"
            }
        }
        WaveSpawn //needs a rework
        {
            Name w5s
            Support 1
            SpawnCount 2
            WaitBetweenSpawnsAfterDeath 9
            Where spawnbot_flank
            Where spawnbot_ambush_lower
            Where spawnbot_ambush_upper
            Where spawnbot_main
            TFBot
            {
                Template T_TFBot_Spy_Silent_Click
                ClassIcon spy_saharan_spell_invisibility
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot pickup spells" 1
                }
                Spell  
                {
                    Delay 0
                    Cooldown 7
                    Type "Invisibility"
                }
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 1
            MaxActive 2
            WaitBetweenSpawnsAfterDeath 9
            Where spawnbot_right
            TFBot
            {
                Template T_TFGateBot_Demoman_Hard
                Name "Giant Spammer Bat Demo"
                Class Demoman
                Skill Expert
                Health 3300
                ClassIcon "demo_spell_bats"
                Attributes MiniBoss
                Tag bot_giant
                ItemAttributes
                {
                    ItemName "TF_WEAPON_GRENADELAUNCHER"
                    "faster reload rate" -2
                    "fire rate bonus" 1.1
                    "mod max primary clip override" -1
                    "override projectile type extra" spellbats  
                }
                CharacterAttributes
                {
                    "move speed bonus" 0.5
                    "airblast vulnerability multiplier" 0.2
                    "airblast vertical vulnerability multiplier" 0.1
                    "damage force reduction" 0.6
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                }
                Item "The Parasight"
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 1
            MaxActive 1
            WaitBetweenSpawnsAfterDeath 15
            Where spawnbot_main
            TFBot
            {
                Template T_TFBot_Giant_Spy_Ambassador_Explosive_Hyper
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 1
            MaxActive 1
            WaitBetweenSpawnsAfterDeath 9
            Where spawnbot_main
            TFBot
            {
                Template T_TFBot_Giant_Soldier_Tankbuster
            }
        }
        WaveSpawn
        {
            Name w6S
            Support 1
            SpawnCount 1
            WaitBetweenSpawnsAfterDeath 11
            Where spawnbot_chief_move
            TFBot
            {
                Template T_TFBot_Giant_Heavyweapons_Shotgun_Healonkill
            }
        }
    }
    Mission
    {
		Objective DestroySentries
		InitialCooldown 5
		Where spawnbot_sentrybuster
		BeginAtWave 6
		RunForThisManyWaves 1
		CooldownTime 15
        RandomChoice
        {
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "I cast fireball"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 6
                    Charges 2
                    Type "Fireball"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "Pumpkin Caster Buster"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                    "health regen" 200
                }
                Spell  
                {
                    Delay 0
                    Cooldown 8
                    Charges 2
                    Type "Pumpkin MIRV"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "Skeleton Summoner Buster"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 6
                    Charges 2
                    Type "Summon Skeleton"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "Monoculus Buster"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 8
                    Type "Summon Monoculus"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "Everyone favorite Buster"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 7
                    Charges 1
                    Type "Tesla Bolt"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "does this work? - carboncat"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 5
                    Charges 1
                    Type "Teleport"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "Minify Buster"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 20
                    Charges 1
                    Type "Minify"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "Meteor Shower Buster"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 9
                    Charges 1
                    Type "Meteor Shower"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "Healing Aura Buster"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 5
                    Charges 1
                    Type "Healing Aura"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "Bats Caster Buster"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 6
                    Charges 2
                    Type "Ball O' Bats"
                }
            }
            TFBot
            {
                Template T_TFBot_SentryBuster
                Name "Invisibility Buster"
                Item "TF_WEAPON_SPELLBOOK"
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 7
                    Charges 1
                    Type "Invisibility"
                }
            }
        }
    }
    Mission
    {
        Objective Engineer
        RunForThisManyWaves 1
        InitialCooldown 30
        DesiredCount 3
        BeginAtWave 6
        Where spawnbot
        Where spawnbot_ambush_lower
        Where spawnbot_ambush_upper
        Where spawnbot_main
        TFBot
        {
	    	Template T_TFBot_Engineer_Sentry_Tele_Battle
	    	ClassIcon Engineer_build_telein_hyper
	    	CharacterAttributes
	    	{
	    		"fire rate bonus" 0.5
	    		"move speed bonus" 1.5
	    		"Repair rate increased" 2
	    		"engy building health bonus" 10
	    		"Construction rate increased" 200
	    		"cannot be sapped" 1
	    	}
        }
    }
    Wave //upper relay
    {
        StartWaveOutput
        {
            Target wave_prepare_relay_upper
            Action Trigger
        }
        InitWaveOutput
        {
            Target BigNet
            Action RunScriptCode
            Param "IncludeScript(`tankextensions_main`, getroottable())
                   IncludeScript(`tankextensions/vactank`, getroottable())
            ClientPrint(null,3, `\x070000FFBombs No longer Reset.`)
            ClientPrint(null,3, `\x0700FF00All Spell Busters are Random Choice.`)

            EntFire(`relay_add_bomb`, `Trigger`)
            EntFire(`relay_add_bomb`, `Trigger`)
            EntFire(`relay_bomb_no_timer`, `Trigger`)
            EntFire(`relay_open_ambush`, `Trigger`)
            EntFire(`relay_mission_use_ambush`, `Trigger`)"
        }
        DoneOutput
        {
            Target wave_init_upper_relay
            Action Trigger
        }
        WaveSpawn
        {
            Name w6a1
            TotalCount 6
            SpawnCount 2
            MaxActive 4
            WaitBetweenSpawns 10
            TotalCurrency 100
            Where spawnbot_chief_move
            Squad
            {
                TFBot
                {
		        	ClassIcon heavy_deflector_fire_giant
		        	Health	8000
		        	Name	"Giant Flame Deflector Heavy"
		        	Class	Heavyweapons
		        	Skill	Expert
		        	MaxVisionRange	1600
		        	WeaponRestrictions	PrimaryOnly
	        		Attributes	MiniBoss
		        	ItemAttributes
		        	{
		        		ItemName	"The Huo Long Heatmaker"
			        	"damage bonus" 2.5
		        		"ragdolls become ash"	1
		        		"ring of fire while aiming"	50
		        		"attack projectiles"	1
		        		"set damagetype ignite"	 1
		        	}
		        	CharacterAttributes
	        		{
		        		"move speed bonus"	0.5
			        	"damage force reduction"	0.3
	        			"airblast vulnerability multiplier"	0.1
                        "airblast vertical vulnerability multiplier" 0.1
		        		"override footstep sound set"	2
		        	}
		        	Item	"The Huo Long Heatmaker"
		        	Item	"The U-clank-a"
                }
                TFBot
                {
                    ClassIcon	medic_kritz_armored_giant
                    Health	10000
                    Name	"Giant Armored Kritzkrieg Medic"
                    Class	Medic
                    Skill	Expert
                    WeaponRestrictions	SecondaryOnly
                    Attributes	SpawnWithFullCharge
                    Attributes IgnoreEnemies
                    Attributes	AlwaysCrit
                    Attributes	MiniBoss
                    ItemAttributes
                    {
                        ItemName	TF_WEAPON_SYRINGEGUN_MEDIC
                        "damage penalty"	0.1
                    }
                    ItemAttributes
                    {
                        ItemName	"The Kritzkrieg"
                        "ubercharge rate bonus"	200
                        "uber duration bonus"	1000
                    }
                    CharacterAttributes
                    {
                        "move speed bonus"	0.5
                        "damage force reduction"	0.1
                        "airblast vulnerability multiplier"	0.1
                        "airblast vertical vulnerability multiplier" 0.1
                        "heal rate bonus"	200
                        "bot medic uber health threshold"	11000
                        "health regen"	50
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                    Item	"The Kritzkrieg"
                    Item	"Vintage Tyrolean"
                    Item	"Coldfront Carapace"
                }
            }
        }
        WaveSpawn
        {
            Name w6a2
            TotalCount 1
            SpawnCount 1
            MaxActive 1
            WaitBeforeStarting 18
            TotalCurrency 100
            Where spawnbot_flank
            TFBot
            {
				Health	20000
				Name	"Giant Death-Ray Engineer"
				Template	T_TFBot_Giant_Engineer_Pomson
				Attributes AlwaysCrit
                Attributes AlwaysFireWeapon
                Aimat Body  
				MaxVisionRange 1800
				ItemAttributes
				{
					ItemName	"The Pomson 6000"
					"damage bonus" 2 //1.11
					"fire rate bonus"	0.05
					"faster reload rate"	-1
					"Projectile speed increased"	1.5
					"energy weapon penetration"	6
					"ragdolls plasma effect"	1
					"mod no reload DISPLAY ONLY"	1
					"Set DamageType Ignite"	1
				}
				CharacterAttributes
				{
					"damage force reduction"	0.2
					"airblast vulnerability multiplier"	0.1
					"airblast vertical vulnerability multiplier" 0.1
					"cannot be sapped" 1
				}
				Item	"The Data Mining Light"
				Item	"dec2014 Thermal Insulation Layer"
            }
        }
        WaveSpawn
        {
            Name w6b1
            TotalCount 8
            SpawnCount 2
            MaxActive 8
            WaitBetweenSpawns 12
            WaitForAllDead w6a1
            Where spawnbot_main
            Where spawnbot_left
            Where spawnbot_right
            TotalCurrency 50
            TFBot
            {
				Name "BurstFire Ranger Engineer"
				Class Engineer
				ClassIcon engineer_ranger_nys_rapid_spell_fireball
				Health 3000
				Skill Expert
                UseHumanModel 1  
				Action FetchFlag  
                Attributes MiniBoss
				Attributes AlwaysCrit
				Attributes HoldFireUntilFullReload
				AimAt Body  
                Item "TF_WEAPON_SPELLBOOK"
				Item "The Rescue Ranger"
				MaxVisionRange 1300
                EventChangeAttributes  
                {
                    pewpew
                    {
                        Item "The Rescue Ranger"
                        ItemAttributes
                        {
                            ItemName "The Rescue Ranger"
                            "clip size bonus" 2
                            "projectile penetration heavy" 3
                            "fire rate bonus" -3
                            "maxammo primary increased" 3
                            "projectile spread angle penalty" 2.2
                            "faster reload rate" 0.6
                            "hold fire until full reload" 1
                        }
                    }
                    pewpew2
                    {
                        Item "The Rescue Ranger"
                        ItemAttributes
                        {
                            ItemName "The Rescue Ranger"
                            "fire rate bonus" 1.5
                            "maxammo primary increased" 3
                            "projectile spread angle penalty" 1.5
                            "Projectile speed increased" 2 //without these, they might just kill themselves
                            "Projectile range increased" 3
                            "clip size bonus" 0.4
                            "faster reload rate" 0.7
                            "projectile take damage type" 3   //still takes spell dmg
                            "hold fire until full reload" 1
                            "fire full clip at once" 1  
                            "override projectile type extra" spellmirv  
                        }
                    }
                }
                ChangeAttributes  
                {
                    Delay 0
                    Cooldown 9
                    Name "pewpew"
                }
                ChangeAttributes  
                {
                    Delay 0
                    Cooldown 18
                    Name "pewpew2"
                }
				CharacterAttributes
				{
					"move speed bonus" 0.4
					"airblast vulnerability multiplier" 0.1
					"airblast vertical vulnerability multiplier" 0
					"damage force reduction" 0.5
					"cannot be sapped" 1
					"cancel falling damage" 1
                    "voice pitch scale" 0
				}
				Item "Defragmenting Hard Hat 17%"
            }
        }
        WaveSpawn
        {
            Name w6b2
            TotalCount 50
            SpawnCount 9
            WaitForAllDead w6a1
            WaitBetweenSpawns 1
            WaitBeforeStarting 8
            TotalCurrency 50
            Where spawnbot_main
            RandomChoice
            {
                TFBot
                {
                    Template T_TFBot_Pyro_Hyper
                }
                TFBot
                {
                    Template T_TFBot_Pyro_Slow
                }
                TFBot
                {
                    Template T_TFBot_Pyro_Dragon_Armored
                }
            }
        }
        WaveSpawn
        {
            Name w6c1
            TotalCount 1
            SpawnCount 1
            WaitBeforeStarting 35
            WaitForAllSpawned w6b1
            TotalCurrency 50
            Where spawnbot_left
            TFBot
            {
                Name "Re-ReAnimator"
                Class Demoman
                ClassIcon demo_boss_reanimator_sword_fight
                Scale 1.8
                Skill Expert
                Health 40000
                Attributes MiniBoss
                Attributes UseBossHealthBar
                Attributes AlwaysCrit
                //Item "The Half-Zatoichi"
                Item "TF_WEAPON_SPELLBOOK"
                Item "Ali Baba's Wee Booties"
                Item "Festive Targe 2014"
                //UseMeleeThreatPrioritization 1   //is this even needed when he just melee only?
                ChangeAttributes  
                {
                    Delay 0
                    Cooldown 25
                    Name "Ihavenoideawhattoputhere"
                }
                ChangeAttributes  
                {
                    Delay 0
                    Cooldown 10
                    Name "yourgoingtodielittlebro"
                }
                EventChangeAttributes  
                {
                    Ihavenoideawhattoputhere
                    {
                        Item "The Eyelander"
                        ItemAttributes
                        {
                            ItemName "The Eyelander"
                            "damage bonus" 2
                            "melee attack rate bonus" 0.5
                            "attach particle effect" 14
                        }
                    }
                    yourgoingtodielittlebro
                    {
                        Item "The Half-Zatoichi"
                        ItemAttributes
                        {
                            ItemName "The Half-Zatoichi"
                            "damage bonus" 2
                            "melee attack rate bonus" 0.3
                            "attach particle effect" 13
                        }
                    }
                }
                ItemAttributes
                {
                    ItemName "Festive Targe 2014"
                    "attach particle effect" 374
                }
                CharacterAttributes
                {
                    "move speed bonus" 0.4
                    "airblast vulnerability multiplier" 0.3
                    "airblast vertical vulnerability multiplier" 0.2
                    "damage force reduction" 0.5
                    "rage giving scale" 0.4
                    "SPELL: set Halloween footstep type" 3100495
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                }
                Spell  
                {
                    Delay 0
                    Cooldown 20
                    Charges 5
                    Type "Summon Skeleton"
                }
            }
        }
        WaveSpawn
        {
            Name w6d1
            TotalCount 2
            SpawnCount 1
            MaxActive 2
            WaitBetweenSpawns 20
            WaitForAllDead w6c1
            TotalCurrency 50
            Where spawnbot_left
            TFBot
            {
                ClassIcon medic_crossbow_burst_spell_fireball
                Health	4500
                Name	"Giant Burst Crossbow Medic"
                Class	Medic
                Skill	Expert
                AimAt Head    
                AimLeadProjectileSpeed 2400  
                Action FetchFlag   
                WeaponRestrictions	PrimaryOnly
                Attributes	MiniBoss
                ItemAttributes
                {
                    ItemName	"The Crusader's Crossbow"
                    "damage bonus"	1.5
                    "clip size upgrade atomic"	7.0
                    "auto fires full clip"	1
                    "auto fires when full"	1
                    "projectile spread angle penalty"	3.0
                    "fire rate bonus"	0.1
                    "faster reload rate"	0.4
                    "override projectile type extra" spellfireball  
                }
                CharacterAttributes
                {
                    "move speed bonus"	0.5
                    "damage force reduction"	0.5
                    "airblast vulnerability multiplier"	0.2
                    "airblast vertical vulnerability multiplier" 0.1
                    "rage giving scale" 0.4
                    "cannot pickup spells" 1
                    "cannot be sapped" 1
                }
                Item	"The Crusader's Crossbow"
                Item	"Berliner's Bucket Helm"
            }
        }
        WaveSpawn
        {
            Name w6d2
            TotalCount 30
            SpawnCount 5
            WaitForAllSpawned w6d1
            TotalCurrency 50
            Where spawnbot_upper
            TFBot
            {
                ClassIcon	heavy_heater_bigcrit
                Name	"Crit Flame Heavy"
                Class	Heavyweapons
                Skill	Expert
                MaxVisionRange	1200
                Attributes	"AlwaysCrit"
                ItemAttributes
                {
                    ItemName	"The Huo Long Heatmaker"
                    "ring of fire while aiming"	50
                    "ragdolls become ash"	1
                    "set damagetype ignite"	 1
                    "damage bonus"	1.5
                }
                CharacterAttributes
                {
                    "cannot pickup spells" 1
                }
                Item	"The Huo Long Heatmaker"
                Item	"The Bunsen Brave"
            }
        }
        WaveSpawn
        {
            Name w6e1
            TotalCount 4
            SpawnCount 4
            WaitForAllDead w6d1
            TotalCurrency 100
            WaitBeforeStarting 10
            Where spawnbot_left
            Squad
            {
                TFBot
                {
                    Name "SuperBarrage Fireball Soldier"
                    Class Soldier
                    ClassIcon soldier_barrage_spell_fireball
                    Skill Expert
                    Health 45000
                    WeaponRestrictions PrimaryOnly
                    Attributes MiniBoss
                    Attributes HoldFireUntilFullReload
                    Scale 1.9
                    MaxVisionRange 1900
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "Breach and Bomb"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_ROCKETLAUNCHER"
                        "fire rate bonus" 0.4
                        "faster reload rate" 0.4
                        "clip size upgrade atomic" 56
                        "projectile spread angle penalty" 1.6
                        "Projectile speed increased" 0.5
                        "fire rate bonus with reduced health" 0.2
                        "override projectile type extra" spellfireball  
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 0.3
                        "airblast vulnerability multiplier" 0.1
                        "airblast vertical vulnerability multiplier" 0.1
                        "damage force reduction" 0.5
                        "rage giving scale" 0.2
                        "add uber charge on hit" 12
                        "healing received bonus" 2.5
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
	    	    	ShootTemplate  
	    	    	{
	    	    		Name spellfireball //Name of the template
	    	    		Speed 1000 //Velocity of the spawned objects (Default: 1000)
	    	    		Offset "0 0 0" //Offset from the bot shooting position (Default: 0 0 0)
	    	    		Angles "0 0 0" //Shooting angle offset (Default: 0 0 0)
	    	    		OverrideShoot 1 //Stop default projectile from being spawned (Default: 0)
	    	    		Spread 0.5 //Spread of the fired template entities. 0 - No spread, 0.1 - Beggar like spread, 1 - Very inaccurate (Default: 0)
	    	    		ItemName "TF_WEAPON_ROCKETLAUNCHER" //Can be specified to limit to a specific weapon
	    			}
                }
                TFBot
                {
                    Name "Regenerator"
                    Class Soldier
                    Health 23000
                    Scale 1.8
                    Skill Expert
                    ClassIcon soldier_escapeplan_conch_spell_meteorshower
                    Attributes MiniBoss
                    //Action Mobber  
                    Attributes IgnoreFlag
                    Attributes SpawnWithFullCharge
                    Attributes AlwaysCrit
                    StripItemSlot 0  
                    Item "The Concheror"
                    Item "The Escape Plan"
                    Item "Chieftain's Challenge"
                    Item "TF_WEAPON_SPELLBOOK"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SPELLBOOK"
                        "fire rate bonus" 1
                    }
                    ItemAttributes
                    {
                        ItemName "The Escape Plan"
                        "damage bonus" 1.5
                        "fire rate bonus" 0.7
                        "heal on hit for rapidfire" 200
                    }
                    CharacterAttributes
                    {
                        "health regen" 200
                        "increase buff duration HIDDEN" 999
                        "move speed bonus" 0.4
                        "airblast vulnerability multiplier" 0.01
                        "airblast vertical vulnerability multiplier" 0
                        "damage force reduction" 0.3
                        "add uber charge on hit" 10
                        "rage giving scale" 0.4
                        "mod see enemy health" 1
                        "healing received bonus" 1.5
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                    //whoever is reading this, healing received bonus multiplies health regen
                    Spell  
                    {
                        Delay 0
                        Cooldown 17
                        Charges 2
                        Repeats 0
                        IfSeeTarget 0
                        Type "Meteor Shower"
                    }
                }
                TFBot
                {
                    Name "Resistor"
                    Class Soldier
                    Health 25000
                    Scale 1.8
                    Skill Expert
                    ClassIcon soldier_equalizer_backup_spell_overheal
                    Attributes MiniBoss
                    Attributes IgnoreFlag
                    Attributes SpawnWithFullCharge
                    Attributes AlwaysCrit
                    //Action Mobber  
                    StripItemSlot 0  
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "The Battalion's Backup"
                    Item "The Equalizer"
                    Item "Big Chief"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SPELLBOOK"
                        "fire rate bonus" 1
                    }
                    ItemAttributes
                    {
                        ItemName "The Equalizer"
                        "damage bonus" 1.5
                        "fire rate bonus" 0.7
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 0.4
                        "airblast vulnerability multiplier" 0.01
                        "airblast vertical vulnerability multiplier" 0
                        "damage force reduction" 0.4
                        "add uber charge on hit" 10
                        "rage giving scale" 0.5
                        "increase buff duration HIDDEN" 999
                        "mod see enemy health" 1
                        "healing received bonus" 3.33
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                    Spell  
                    {
                        Delay 0
                        Cooldown 20
                        Repeats 0
                        Charges 2
                        IfSeeTarget 0
                        Type "Healing Aura"
                    }
                }
                TFBot
                {
                    Name "Reinforcer"
                    Class Soldier
                    Health 25000
                    Scale 1.8
                    Skill Expert
                    ClassIcon soldier_shovel_buff_spell_bats
                    Attributes MiniBoss
                    //Action Mobber  
                    Attributes IgnoreFlag
                    Attributes AlwaysCrit
                    Attributes SpawnWithFullCharge
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "The Buff Banner"
                    Item "TF_WEAPON_SHOVEL"
                    Item "Defiant Spartan"
                    StripItemSlot 0  
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SHOVEL"
                        "damage bonus" 1.5
                        "fire rate bonus" 0.5
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 0.4
                        "airblast vulnerability multiplier" 0.01
                        "airblast vertical vulnerability multiplier" 0
                        "damage force reduction" 0.5
                        "rage giving scale" 0.4
                        "add uber charge on hit" 15
                        "increase buff duration HIDDEN" 999
                        "healing received bonus" 4
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                    Spell  
                    {
                        Delay 0
                        Cooldown 19
                        Repeats 0
                        Charges 2
                        IfSeeTarget 0
                        IfLeftSpawn 1
                        Type "Ball O' Bats"
                    }
                }
            }
        }
        WaveSpawn
        {
            Name w6e2
            TotalCount 30
            SpawnCount 5
            MaxActive 15
            WaitBetweenSpawns 6
            WaitBeforeStarting 5
            WaitForAllSpawned w6e1
            TotalCurrency 50
            Where spawnbot_ambush_upper
            Where spawnbot_flank
            Where spawnbot_chief_move
            TFBot
            {
                Template T_TFBot_Demoknight_Hyper
            }
        }
        WaveSpawn
        {
            Name w6f1
            TotalCount 1
            SpawnCount 1
            WaitForAllDead w6e1
            WaitBeforeStarting 23
            TotalCurrency 50
            FirstSpawnOutput
            {
                Target pathchangelower
                Action Trigger
            }
            Tank
            {
                Name "vactank_blast_fire"
                ClassIcon "tank_vacc_blast_fire"  
                Speed 70
                Health 30000
                StartingPathTrackNode path_tank_lower
		        OnKilledOutput
		        {
		        	Target boss_dead_relay
		        	Action Trigger
		        }
		        OnBombDroppedOutput
		        {
		        	Target boss_deploy_relay 
		        	Action Trigger
                }
            }
        }
        WaveSpawn
        {
            Name w6f2
            TotalCount 32
            SpawnCount 4
            MaxActive 16
            WaitBetweenSpawns 3
            TotalCurrency 50
            Where spawnbot_ambush_upper
            TFBot
            {
                Template T_TFBot_Scout_Blaster_Hyper_Armored
            }
        }
        WaveSpawn
        {
            Name finale
            TotalCount 5
            SpawnCount 5
            MaxActive 5
            WaitForAllDead w6f1
            WaitBeforeStarting 15
            TotalCurrency 100
            Where spawnbot_right
            HideIcon 1  
            FirstSpawnOutput
            {
                Target BigNet
                Action RunScriptCode
                Param "ClientPrint(null,3, `\x07FF0000You have 3 minutes and 30 seconds to defeat him before they join.`)
                       ClientPrint(null,3, `\x07FF0000Also beware of his stickies.`)"
            }
            Squad
            {
                TFBot
                {
                    Name "Re-Re-ReAnimator"
                    Class Demoman
                    ClassIcon "demo_boss_reanimator"
                    Attributes MiniBoss
                    Attributes UseBossHealthBar
                    Attributes HoldFireUntilFullReload
                    UseHumanModel 1  
                    Skill Expert
                    Scale 1.8
                    Health 60000
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "TF_WEAPON_PIPEBOMBLAUNCHER"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SPELLBOOK"
                        "fire rate bonus" 0.1
                    }
                    ChangeAttributes  
                    {
                        Delay 0
                        Cooldown 15
                        Name "oopsallbombs"
                    }
                    ChangeAttributes  
                    {
                        Delay 0
                        Cooldown 30
                        Name "fucktonofbombs"
                    }
                    EventChangeAttributes  
                    {
                        oopsallbombs
                        {
                            Item "TF_WEAPON_PIPEBOMBLAUNCHER"
                            Item "TF_WEAPON_GRENADELAUNCHER"
                            WeaponRestrictions SecondaryOnly
                            ItemAttributes
                            {
                                ItemName "TF_WEAPON_PIPEBOMBLAUNCHER"
                                //"damage bonus" 0.5 instant kills with a full clip
                                "clip size upgrade atomic" 2 //unsure if this does anything
                                "max pipebombs increased" 7
                                "fire rate bonus" -2
                                "faster reload rate" 0.6
                                "stickybomb charge rate" -2
                                //"stickybomb_charge_damage_increase" 0.5 already a powerful upgrade
                                "Blast radius increased" 1.2
                                "projectile spread angle penalty" 2.5
                                "sticky arm time bonus" -2
                                "hold fire until full reload" 1
                                "projectile explode time" 0.8   //this helps with stickies to prevent from self exploding
                                "stickybomb stick to enemies" 1  
                                "killstreak idleeffect" 7
                                "killstreak tier" 3
                                "force weapon switch" 1
                            }
                            ItemAttributes
                            {
                                ItemName "TF_WEAPON_GRENADELAUNCHER"
                                "is_passive_weapon" 1
                                "clip size upgrade atomic" -4
                            }
                        }
                        //shutupblockhead //gives me issues. sometimes
                        //{
                        //    Item "The Eyelander"
                        //    ItemAttributes
                        //    {
                        //        ItemName "The Eyelander"
                        //        "damage bonus" 3
                        //        "melee attack rate bonus" 0.6
                        //        "melee range multiplier" 2
                        //        "melee bounds multiplier" 2
                        //        "heal on kill" 3000
                        //        "critboost on kill" 8
                        //        "damage causes airblast" 1
                        //        "apply z velocity on damage" 300
                        //        "apply look velocity on damage" 300
                        //        "killstreak idleeffect" 7
                        //        "killstreak tier" 3
                        //    }
                        //}
                        fucktonofbombs
                        {
                            Item "The Loch-n-Load"
                            ItemAttributes
                            {
                                ItemName "The Loch-n-Load"
                                "damage bonus" 2
                                "clip size upgrade atomic" 6
                                "fire rate bonus" 0.1
                                "Projectile range increased" 1.5
                                "Projectile speed increased" 2
                                "projectile spread angle penalty" 1.8
                                "faster reload rate" 0.3
                                "SPELL: Halloween pumpkin explosions" 1
                                "critboost on kill" 5
                                "heal on kill" 2000
                                "hold fire until full reload" 1
                            }
                        }
                    }
                    FireWeapon   //failsafe in case stickies dont explode
                    {
                        Delay 0
                        Cooldown 4
                        Duration 2
                        Type Secondary
                    }
                    CharacterAttributes
                    {
                        "airblast vulnerability multiplier" 0
                        "airblast vertical vulnerability multiplier" 0
                        "damage force reduction" 0.6
                        "cancel falling damage" 1
                        "rage giving scale" 0.4
                        "move speed bonus" 0.25
                        "SPELL: set Halloween footstep type" 8208497
                        "healing received bonus" 1.55
                        "voice pitch scale" 0
                        "use robot voice" 1

                    }
                    Spell  
                    {
                        Cooldown 30
                        Charges 7
                        Type "Summon Skeletons"
                    }
                    Item "The Hood of Sorrows"
                    Item "Zombie Demo"
                }
                TFBot
                {
                    Name "UnNamed Summoner"
                    Health 30000
                    Class Heavyweapons
                    Skill Expert
                    UseHumanModel 1  
                    ClassIcon "heavy_spell_monoculus"
                    Attributes MiniBoss
                    Attributes AlwaysCrit
                    Attributes IgnoreFlag
                    Tag bot_giant
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "Zombie Heavy"
                    Item "Mad Mask"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SPELLBOOK"
                        "fire rate bonus" 0.8
                    }
                    CharacterAttributes
                    {
                        "airblast vulnerability multiplier" 0.01
                        "airblast vertical vulnerability multiplier" 0.01
                        "damage force reduction" 0.4
                        "rage giving scale" 1.5
                        "move speed bonus" 0.3
                        "cancel falling damage" 1
                        "SPELL: set Halloween footstep type" 3100495
                        "use robot voice" 1
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                    ChangeAttributes  
                    {
                        Delay 3
                        Cooldown 22
                        Repeats 0
                        Name "Summon"
                    }
                    ChangeAttributes  
                    {
                        Delay 4
                        Cooldown 15
                        Repeats 0
                        Name "Minigun" 
                    }
                    EventChangeAttributes  
                    {
                        Summon
                        {
                            Item "TF_WEAPON_SPELLBOOK"
                            Spell  
                            {
                                Delay 1
                                Cooldown 22
                                Charges 1
                                Repeats 0
                                IfSeeTarget 0
                                Type "Summon Monoculus"
                            }
                        }
                        Minigun
                        {
                            Item "TF_WEAPON_MINIGUN"
                            ItemAttributes
                            {
                                ItemName "TF_WEAPON_MINIGUN"
                                "bullets per shot bonus" 1.5
                                "damage bonus" 1
                                //"fire rate bonus" 0.7
                                "minigun spinup time increased" -2 //Im not sure if this worked
                                "killstreak idleeffect" 7
                                "killstreak tier" 3
                                //"force weapon switch" 1
                            }
                        }
                    }
                }
                TFBot
                {
                    Name "Senator Shooting Star"
                    ClassIcon "soldier_burstspell_fireball_1"
                    UseHumanModel 1  
                    Health 44000
                    Class Soldier
                    Skill Expert
                    Attributes IgnoreFlag
                    Attributes MiniBoss
                    Attributes HoldFireUntilFullReload
                    Item "Zombie Soldier"
                    Item "Brass Bucket"
                    ShootTemplate  
                    {
                        Name spellfireball //Name of the template
                        Speed 1000 //Velocity of the spawned objects (Default: 1000)
                        Offset "0 0 0" //Offset from the bot shooting position (Default: 0 0 0)
                        Angles "0 0 0" //Shooting angle offset (Default: 0 0 0)
                        OverrideShoot 1 //Stop default projectile from being spawned (Default: 0)
                        Spread 0.5 //Spread of the fired template entities. 0 - No spread, 0.1 - Beggar like spread, 1 - Very inaccurate (Default: 0)
                        ItemName "TF_WEAPON_ROCKETLAUNCHER" //Can be specified to limit to a specific weapon
                    }
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_ROCKETLAUNCHER"
                        "override projectile type extra" spellfireball  
                        "faster reload rate" 0.8
                        "clip size upgrade atomic" 4
                        "projectile spread angle penalty" 3.5
                        "Projectile speed increased" 1.3
                        "weapon burn time increased" 3
                        //"weapon burn dmg increased" 1.6
                        "afterburn duration bonus" 3
                        "fire rate bonus" -2
                        "killstreak idleeffect" 7
                        "killstreak tier" 3
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 0.3
                        "airblast vulnerability multiplier" 0
                        "airblast vertical vulnerability multiplier" 0
                        "damage force reduction" 0.6
                        "rage giving scale" 0.6
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                }
                TFBot
                {
                    Name "Wizard Empathy"
                    Class Sniper
                    ClassIcon "sniper_spell_bats"
                    Health 40000
                    Skill Expert
                    UseHumanModel 1  
                    Attributes MiniBoss
                    Attributes AlwaysCrit
                    Attributes IgnoreFlag
                    Attributes AlwaysFireWeapon
                    Item "TF_WEAPON_SNIPERRIFLE"
                    Item "Jarate"
                    Item "Zombie Sniper"
                    Item "Sightseer"
                    ItemAttributes
                    {
                        ItemName "TF_WEAPON_SNIPERRIFLE"
                        "faster reload rate" 0.8
                        "fire rate bonus" 0.7
                        "damage bonus" 3
                        "killstreak idleeffect" 7
                        "killstreak tier" 3
                    }
                    ItemAttributes
                    {
                        ItemName "Jarate"
                        "override projectile type extra" spellbats  
                        "effect bar recharge rate increased" 0.1
                        "Projectile range increased" 3
                        "Projectile speed increased" 2
                        "Blast radius increased" 2
                    }
                    CharacterAttributes
                    {
                        "move speed bonus" 0.3
                        "airblast vulnerability multiplier" 0
                        "airblast vertical vulnerability multiplier" 0
                        "damage force reduction" 0.2
                        "rage giving scale" 0.2
                        "SPELL: set Halloween footstep type" 5322826
                        "cannot pickup spells" 1
                        "cannot be sapped" 1
                        "use robot voice" 1
                    }
                    WeaponSwitch  
                    {
                        Delay 0
                        Cooldown 4
                        Repeats 0
                        IfSeeTarget 0
                        Type "Primary"
                    }
                    WeaponSwitch  
                    {
                        Delay 0
                        Cooldown 12
                        Repeats 0
                        IfSeeTarget 0
                        Type "Secondary"
                    }
                    ShootTemplate  
                    {
                        Name spellbats
                        OverrideShoot 1
                        ItemName "Jarate"
                    }
                }
                TFBot //this bot is weird, it working in scrapyard but now he not here? I removed weaponswitch
                {
                    Name "Spectraulnaut"
                    Class Pyro
                    Health 40000
                    Skill Expert
                    Scale 1.9
                    UseHumanModel 1  
                    ClassIcon spectralnaut
                    Attributes AlwaysCrit
                    Attributes MiniBoss
                    Attributes AlwaysFireWeapon
                    Attributes IgnoreFlag
                    Item "Upgradeable TF_WEAPON_FLAMETHROWER"
                    ItemAttributes
                    {
                        ItemName "Upgradeable TF_WEAPON_FLAMETHROWER"
                        "paintkit_proto_def_index" 241
                        "set_item_texture_wear" 1
                        "damage bonus" 2.0
                        "critboost on kill" 8
                        "flame_drag" 3
                        "max_flame_reflection_count" 1000
                        "flame_reflect_on_collision" 1000
                        "flame_spread_degree" 8
                        "flame_up_speed" 75
                        "flame_lifetime" 6
                        "weapon burn dmg increased" 3
                        "weapon burn time increased" 4
                        "killstreak idleeffect" 7
                        "killstreak tier" 3
                        "attach particle effect static" 3042
                        "ragdolls become ash" 1
                        "heal on kill" 2000
                        "dmg bonus vs buildings" 0.45
                    }
                    ItemAttributes
                    {
                        ItemName "The Spectralnaut"
                        "attach particle effect" 13
                        "particle effect use head origin" 1
                        "particle effect vertical offset" 16
                    }
                    CharacterAttributes
                    {
                        "move speed bonus"	0.3
                        "damage force reduction" 0.4
                        "airblast vulnerability multiplier" 0.07
                        "airblast vertical vulnerability multiplier" 0
                        "add uber charge on hit" 10
                        "healing received bonus" 1.55
                        "override footstep sound set" 6
                        //"dmg taken from bullets reduced" -0.2
                        //"dmg taken from blast reduced" 0.2
                        //"dmg taken from fire reduced" 0.2
                        "cannot be sapped" 1
                        "cannot pickup spells" 1
                    }
                    ItemAttributes
                    {
                        ItemName "Scorched Earth Stompers"
                        "SPELL: set Halloween footstep type" 8208497
                    }
                    Spell  
                    {
                        Delay 1
                        Cooldown 15
                        IfSeeTarget 0
                        Charges 1
                        Type "Meteor Shower"
                    }
                    Item "TF_WEAPON_SPELLBOOK"
                    Item "The Spectralnaut"
                    Item "Scorched Earth Stompers"
                }
            }
        }
        WaveSpawn
        {
            Name w6s
            Support 1
            SpawnCount 1
            MaxActive 2
            WaitBetweenSpawns 10
            Where spawnbot_upper
            TFBot
            {
                Name "Giant Uber Caster Scout"
                Class Scout
                ClassIcon "scout_spell_overheal"
                Health 2400
                Skill Expert
                Attributes MiniBoss
                Attributes HoldFireUntilFullReload
                Attributes AlwaysCrit
                Item "TF_WEAPON_SPELLBOOK"
                Item "The Frickin' Sweet Ninja Hood"
                ItemAttributes
                {
                    ItemName "TF_WEAPON_SCATTERGUN"
                    "bullets per shot bonus" 3
                    "damage bonus" 2
                    "fire rate bonus" 0.6
                    "clip size bonus" 2
                    "scattergun has knockback" 1
                }
                CharacterAttributes
                {
                    "move speed bonus" 1.5
                    "airblast vulnerability multiplier" 0.3
                    "airblast vertical vulnerability multiplier" 0.2
                    "damage force reduction" 0.5
                    "rage giving scale" 0.2
                    "add uber charge on hit" 10
                    "healing received bonus" 4
                    "voice pitch scale" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 11
                    Charges 3
                    Type "Healing Aura"
                }
            }
        }
        WaveSpawn
        {
            Name w6s
            Support 1
            SpawnCount 4
            MaxActive 4
            WaitBetweenSpawns 10
            Where spawnbot_main
            TFBot
            {
                ClassIcon	demo_caber_nuke_spell_invisibility
                Name	"Invisible Kamikaze Demo"
                Class	Demoman
                Skill	Expert
                //Attributes AlwaysCrit
                Attributes IgnoreFlag
                Action Mobber  
                Item "TF_WEAPON_SPELLBOOK"
                ItemAttributes
                {
                    ItemName	"The Ullapool Caber"
                    "damage bonus"	10
                    "blast dmg to self increased"	100
                    "blast radius increased"	2
                }
                CharacterAttributes
                {
                    "bombinomicon effect on death" 1
                    "voice pitch scale" 0
                }
                Item	"Ali Baba's Wee Booties"
                Item	"The Chargin' Targe"
                Item	"The Ullapool Caber"
                Item	"Sober Stuntman"
                Spell  
                {
                    Delay 0
                    Cooldown 15
                    Charges 1
                    Type "Invisibility"
                }
            }
        }
        WaveSpawn
        {
            Name w6s
            Support 1
            SpawnCount 3
            MaxActive 3
            WaitBetweenSpawns 6
            Where spawnbot_main
            TFBot
            {
                Name "Hyper Rocketrain Fireball Soldier"
                ClassIcon "soldier_burstspell_fireball_1"
                Health 200
                Class Soldier
                Skill Expert
                Tag bot_flank_l
                Attributes HoldFireUntilFullReload
		    	ShootTemplate  
		    	{
		    		Name spellfireball //Name of the template
		    		Speed 1000 //Velocity of the spawned objects (Default: 1000)
		    		Offset "0 0 0" //Offset from the bot shooting position (Default: 0 0 0)
		    		Angles "0 0 0" //Shooting angle offset (Default: 0 0 0)
		    		OverrideShoot 1 //Stop default projectile from being spawned (Default: 0)
		    		Spread 0.5 //Spread of the fired template entities. 0 - No spread, 0.1 - Beggar like spread, 1 - Very inaccurate (Default: 0)
		    		ItemName "TF_WEAPON_ROCKETLAUNCHER" //Can be specified to limit to a specific weapon
				}
                ItemAttributes
                {
                    ItemName "TF_WEAPON_ROCKETLAUNCHER"
                    "override projectile type extra" spellfireball  
                    "faster reload rate" 0.4
                    "clip size upgrade atomic" 2 //will check this if its too much
                    "projectile spread angle penalty" 2.3
                    "fire rate bonus" -2
                }
                CharacterAttributes
                {
                    "cannot be sapped" 1
                    "cannot pickup spells" 1
                }
                Item "The Shellmet"
                Item "The Caped Crusader"
            }
        }
        WaveSpawn
        {
            Name w6s
            Support 1
            SpawnCount 2
            MaxActive 4
            WaitBetweenSpawns 5
            WaitForAllSpawned finale
            Where spawnbot_right
            TFBot
            {
                Template T_TFBot_Giant_Pyro_ScorchShot_Barrage
            }
        }
        WaveSpawn //will adjust once I added cash
        {
            FirstSpawnOutput
            {
                Target BigNet
                Action RunScriptCode
                Param "ClientPrint(null,3, `\x07FF0000You took too long and you now must face the consequences.`)"
            }
            Name w6s
            Support 1
            SpawnCount 2
            MaxActive 2
            WaitBeforeStarting 210
            WaitForAllSpawned finale
            HideIcon 1  
            Where spawnbot_chief_move
            FirstSpawnWarningSound "mvm\ambient_mp3\mvm_siren.mp3"
            TFBot
            {
                Name "Hyper Tesla Bolt Soldier"
                Class Soldier
                ClassIcon teslabolt_direct_hyper
                Health 10000
                Skill Expert
                Attributes MiniBoss
                Attributes AlwaysCrit
                Attributes HoldFireUntilFullReload
                Attributes UseBossHealthBar
                Tag bot_giant
                Tag nav_prefer_flank_l
                Item "The Direct Hit"
                Item "TF_WEAPON_SPELLBOOK"
                Item "Thousand-Yard Stare"
                ItemAttributes
                {
                    ItemName "The Direct Hit"
                    "damage bonus HIDDEN" 3
                    "Projectile speed increased HIDDEN" 2
                    "fire rate bonus HIDDEN" 1.5
                    "faster reload rate" 1.4
                    "clip size upgrade atomic" -2
                    "Blast radius increased" 1.6
                    "energy weapon no deflect" 1
                }
                CharacterAttributes
                {
                    "major move speed bonus" 0.5
                    "airblast vulnerability multiplier" 0
                    "airblast vertical vulnerability multiplier" 0
                    "damage force reduction" 0.6
                    "rage giving scale" 0
                    "add cloak on hit" 0
                    "add uber charge on hit" 0
                }
                Spell  
                {
                    Delay 0
                    Cooldown 10
                    Charges 4
                    Type "Tesla Bolt"
                }
            }
        }
        WaveSpawn
        {
            Name w6s
            Support 1
            SpawnCount 1
            MaxActive 1
            WaitBetweenSpawnsAfterDeath 25
            WaitForAllSpawned finale
            Where spawnbot_left
            TFBot
            {
				Health	15000
				Name	"Giant Death-Ray Engineer"
				Template	T_TFBot_Giant_Engineer_Pomson
				Attributes AlwaysCrit
                //Attributes AlwaysFireWeapon
                Aimat Body  
				MaxVisionRange 1800
				ItemAttributes
				{
					ItemName	"The Pomson 6000"
					"damage bonus" 2 //1.11
					"fire rate bonus"	0.05
					"faster reload rate"	-1
					"Projectile speed increased"	1.5
					"energy weapon penetration"	6
					"ragdolls plasma effect"	1
					"mod no reload DISPLAY ONLY"	1
					"Set DamageType Ignite"	1
				}
				CharacterAttributes
				{
					"damage force reduction"	0.2
					"airblast vulnerability multiplier"	0.1
					"airblast vertical vulnerability multiplier" 0.1
                    "rage giving scale" 0.5
					"cannot be sapped" 1
                    "cannot pickup spells" 1
				}
				Item	"The Data Mining Light"
				Item	"dec2014 Thermal Insulation Layer"   
            }
        }
    }
}