//new frosty beam beam
add:
{
	"targetname" "bossex_beam_p"
	"origin" "-9328 4304 60"
	"start_active" "0"
	"parentname" "bex_rot"
	"flag_as_weather" "0"
	"effect_name" "bosstest_beam"
	"cpoint7_parent" "0"
	"cpoint6_parent" "0"
	"cpoint5_parent" "0"
	"cpoint4_parent" "0"
	"cpoint3_parent" "0"
	"cpoint2_parent" "0"
	"cpoint1_parent" "0"
	"angles" "0 90 0"
	"classname" "info_particle_system"
	"hammerid" "22918"
}
add:
{
	"origin" "-9312 4288 60"
	"targetname" "bossex_beam_p"
	"start_active" "0"
	"parentname" "bex_rot"
	"flag_as_weather" "0"
	"effect_name" "bosstest_beam"
	"cpoint7_parent" "0"
	"cpoint6_parent" "0"
	"cpoint5_parent" "0"
	"cpoint4_parent" "0"
	"cpoint3_parent" "0"
	"cpoint2_parent" "0"
	"cpoint1_parent" "0"
	"angles" "0 0 0"
	"classname" "info_particle_system"
	"hammerid" "22853"
}
add:
{
	"origin" "-9328 4272 60"
	"targetname" "bossex_beam_p"
	"start_active" "0"
	"parentname" "bex_rot"
	"flag_as_weather" "0"
	"effect_name" "bosstest_beam"
	"cpoint7_parent" "0"
	"cpoint6_parent" "0"
	"cpoint5_parent" "0"
	"cpoint4_parent" "0"
	"cpoint3_parent" "0"
	"cpoint2_parent" "0"
	"cpoint1_parent" "0"
	"angles" "0 270 0"
	"classname" "info_particle_system"
}
add:
{
	"origin" "-9344 4288 50"
	"targetname" "bossex_beam_p"
	"start_active" "0"
	"parentname" "bex_rot"
	"flag_as_weather" "0"
	"effect_name" "bosstest_beam"
	"cpoint7_parent" "0"
	"cpoint6_parent" "0"
	"cpoint5_parent" "0"
	"cpoint4_parent" "0"
	"cpoint3_parent" "0"
	"cpoint2_parent" "0"
	"cpoint1_parent" "0"
	"angles" "0 180 0"
	"classname" "info_particle_system"
}

add:
{
	"model" "*27"
	"volume" "10"
	"targetname" "bex_rot"
	"spawnflags" "18"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "0"
	"parentname" "bt_move"
	"origin" "-9328.16 4288.35 -33.18"
	"maxspeed" "65"
	"fanfriction" "20"
	"dmg" "0"
	"disableshadows" "0"
	"disablereceiveshadows" "0"
	"angles" "0 0 0"
	"classname" "func_rotating"
}
add:
{
	"model" "*31"
	"targetname" "bossex_beam_h"
	"StartDisabled" "1"
	"spawnflags" "1"
	"parentname" "bex_rot"
	"origin" "-9328 4288 48"
	"nodmgforce" "0"
	"damagetype" "16"
	"damagemodel" "0"
	"damagecap" "20"
	"damage" "45"
	"classname" "trigger_hurt"
	"hammerid" "23113"
}
add:
{
	"origin" "-9072 4448 -14.9947"
	"targetname" "bex_attack_beam"
	"StartDisabled" "0"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "cmd,Command,say *** FROSTY BEAM ***,0,-1"
	"OnTrigger" "bossex_beam_p,Start,,0,-1"
	"OnTrigger" "bossex_beam_h,Enable,,1.2,-1"
	"OnTrigger" "bex_rot,Start,,0,-1"
	"OnTrigger" "bosstest_beam_p,Start,,0,-1"
	"OnTrigger" "bosstest_beam_h,Enable,,1.2,-1"
	"OnTrigger" "bt_move,Close,,1.2,-1"
	"OnTrigger" "bt_centre,SetSpeed,0.65,0,-1"
	"OnTrigger" "bt_move,Close,,1.2,-1"
	"OnTrigger" "bossex_beam_p,Stop,,13,-1"
	"OnTrigger" "bossex_beam_h,Disable,,13,-1"
	"OnTrigger" "bex_rot,Stop,,13,-1"
	"OnTrigger" "bosstest_beam_p,Stop,,13,-1"
	"OnTrigger" "bosstest_beam_h,Disable,,13,-1"
	"OnTrigger" "bex_attack_case,PickRandom,,17,-1"
	"OnTrigger" "bt_centre,SetSpeed,0.5,13,-1"
}
//upgraded blanket freeze
add:
{
	"origin" "-9328 4288 0"
	"angles" 0 45 0"
	"targetname" "bossex_p_blanket"
	"start_active" "0"
	"flag_as_weather" "0"
	"effect_name" "bosstest_blanketfreeze"
	"cpoint7_parent" "0"
	"cpoint6_parent" "0"
	"cpoint5_parent" "0"
	"cpoint4_parent" "0"
	"cpoint3_parent" "0"
	"cpoint2_parent" "0"
	"cpoint1_parent" "0"
	"angles" "0 180 0"
	"classname" "info_particle_system"
}
add:
{
	"origin" "-9328 4288 0"
	"angles" 0 90 0"
	"targetname" "bossex_p_blanket"
	"start_active" "0"
	"flag_as_weather" "0"
	"effect_name" "bosstest_blanketfreeze"
	"cpoint7_parent" "0"
	"cpoint6_parent" "0"
	"cpoint5_parent" "0"
	"cpoint4_parent" "0"
	"cpoint3_parent" "0"
	"cpoint2_parent" "0"
	"cpoint1_parent" "0"
	"angles" "0 180 0"
	"classname" "info_particle_system"
}
add:
{
	"origin" "-9072 4448 -14.9947"
	"targetname" "bex_attack_blanketfreeze"
	"StartDisabled" "0"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "cmd,Command,say *** BLANKET STORM ***,0,-1"
	"OnTrigger" "bosstest_p_blanket,Start,,0,-1"
	"OnTrigger" "atk_blanket,SetDamage,100,0,-1"
	"OnTrigger" "rnd_maker,AddOutput,EntityTemplate atk_crystal_temp,0,-1"
	"OnTrigger" "atk_crystal_timer,Enable,,0.02,-1"
	"OnTrigger" "atk_crystal_timer,Disable,,1.12,-1"
	"OnTrigger" "atk_crystal_hurt*,SetDamage,2,1.4,-1"
	"OnTrigger" "bex_attack_case,PickRandom,,18,-1"
	"OnTrigger" "bossex_p_blanket,Start,,5,-1"
	"OnTrigger" "atk_blanket,Enable,,5,-1"
	"OnTrigger" "rnd_rot,Stop,,5.2,-1"
	"OnTrigger" "rnd_rot,StartForward,,6,-1"
	"OnTrigger" "bossex_p_blanket,Stop,,10-1"
	"OnTrigger" "bosstest_p_blanket,Stop,,10,-1"
	"OnTrigger" "atk_crystal*,FireUser2,,10.1,-1"
	"OnTrigger" "atk_blanket,Disable,,10,-1"
	"OnTrigger" "bex_attack_case,AddOutput,OnCase05 bex_attack_blanketfreeze:Trigger::2:1,28,-1"
	"OnTrigger" "bex_attack_case,AddOutput,OnCase05 bt_move:Close::0:1,28,-1"
}
modify:
{
	match:
	{	
		"targetname" "atk_crystal_hurt"
		"classname" "trigger_hurt"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,targetname frozen,0,-1"
		"OnEndTouch" "!activator,AddOutput,targetname no,0.02,-1"
	}
}
modify:
{
	match:
	{	
		"targetname" "atk_blanket"
		"classname" "trigger_hurt"
	}
	insert:
	{
		"filtername" "filter_not_frozen"
	}
}
add:
{
	"origin" "-4886.93 4352.58 99.5127"
	"targetname" "filter_not_frozen"
	"Negated" "1"
	"filtername" "frozen"
	"classname" "filter_activator_name"
}
//upgraded icy wind
add:
{
"origin" "-9092 4464 -14.9947"
"targetname" "bex_attack_icywind"
"StartDisabled" "0"
"spawnflags" "0"
"classname" "logic_relay"
"OnTrigger" "cmd,Command,say *** ICY WIND ***,0,-1"
"OnTrigger" "bosstest_p_push,Start,,0,-1"
"OnTrigger" "bosstest_p_push,Stop,,3.5,-1"
"OnTrigger" "atk_push,Disable,,3.2,-1"
"OnTrigger" "atk_push,Enable,,2,-1"
"OnTrigger" "bosstest_p_pull,Start,,4,-1"
"OnTrigger" "bosstest_p_pull,Stop,,7.5,-1"
"OnTrigger" "atk_pull,Disable,,7.2,-1"
"OnTrigger" "atk_pull,Enable,,6,-1"
"OnTrigger" "bex_attack_case,PickRandom,,11,-1"
}

add:
{
"origin" "-9054 4485 -14.9947"
"targetname" "bex_attack_icywind2"
"StartDisabled" "0"
"spawnflags" "0"
"classname" "logic_relay"
"hammerid" "23351"
"OnTrigger" "cmd,Command,say *** ICY WIND ***,0,-1"
"OnTrigger" "bosstest_p_pull,Start,,0,-1"
"OnTrigger" "bosstest_p_pull,Stop,,3.5,-1"
"OnTrigger" "atk_pull,Disable,,3.2,-1"
"OnTrigger" "atk_pull,Enable,,2,-1"
"OnTrigger" "bosstest_p_push,Start,,4,-1"
"OnTrigger" "bosstest_p_push,Stop,,7.5,-1"
"OnTrigger" "atk_push,Disable,,7.2,-1"
"OnTrigger" "atk_push,Enable,,6,-1"
"OnTrigger" "bex_attack_case,PickRandom,,11,-1"
}
//upgraded crystallize
add:
{
"origin" "-9094.18 4438.23 -14.9947"
"targetname" "bex_attack_crystallize"
"StartDisabled" "0"
"spawnflags" "0"
"classname" "logic_relay"
"OnTrigger" "cmd,Command,say *** CRYSTALLIZE ***,0,-1"
"OnTrigger" "rnd_maker,AddOutput,EntityTemplate atk_crystal_temp,0,-1"
"OnTrigger" "atk_crystal_timer,Enable,,0.02,-1"
"OnTrigger" "atk_crystal_timer,Disable,,8.02,-1"
"OnTrigger" "rot_wall,Reverse,,3,-1"
"OnTrigger" "bex_attack_case,PickRandom,,14,-1"
"OnTrigger" "rnd_rot,Stop,,8.2,-1"
"OnTrigger" "rnd_rot,StartForward,,9,-1"
"OnTrigger" "atk_crystal*,FireUser2,,14,-1"
}
//upgraded crystal rain
add:
{
"origin" "-9120 4420 -14.9947"
"targetname" "bex_attack_crystalrain"
"StartDisabled" "0"
"spawnflags" "0"
"classname" "logic_relay"
"OnTrigger" "cmd,Command,say *** CRYSTAL RAIN ***,0,-1"
"OnTrigger" "rnd_maker,AddOutput,EntityTemplate atk_rain_temp,0,-1"
"OnTrigger" "atk_rain_timer,AddOutput,OnTimer atk_rain_hurt*:SetDamage:60:0.02:-1,0,1"
"OnTrigger" "atk_rain_timer,Enable,,0.02,-1"
"OnTrigger" "atk_rain_timer,Disable,,5.02,-1"
"OnTrigger" "bex_attack_case,PickRandom,,10,-1"
"OnTrigger" "rnd_rot,Stop,,5.2,-1"
"OnTrigger" "rnd_rot,StartForward,,6,-1"
}
//new case
add:
{
"origin" "-9086.05 4211.25 -14.9947"
"targetname" "bex_attack_case"
"classname" "logic_case"
"OnCase01" "bt_move,Open,,0,-1"
"OnCase01" "bex_attack_crystallize,Trigger,,2,-1"
"OnCase02" "bex_attack_icywind,Trigger,,1,-1"
"OnCase02" "bt_move,SetPosition,0.5,0,-1"
"OnCase04" "bex_attack_icywind2,Trigger,,1,-1"
"OnCase04" "bt_move,SetPosition,0.5,0,-1"
"OnCase05" "bex_attack_blanketfreeze,Trigger,,2,1"
"OnCase05" "bt_move,Close,,0,1"
"OnCase03" "bex_attack_beam,Trigger,,1,-1"
"OnCase03" "bt_move,Open,,0,-1"
"OnCase06" "bex_attack_crystalrain,Trigger,,2,-1"
"OnCase06" "bt_move,Open,,0,-1"
}
//iridescence (buff)
add:
{
"origin" "-9120 4420 -14.9947"
"targetname" "bex_upgrade"
"StartDisabled" "1"
"spawnflags" "0"
"classname" "logic_relay"
"OnTrigger" "bt_move,SetPosition,0.5,0,-1"
"OnTrigger" "cmd,Command,say *** IRIDESCENCE ***,2,-1"
"OnTrigger" "flashscreen,Fade,,3,-1"
"OnTrigger" "bex_attack_case,PickRandom,,6,-1"
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "bt_wall_setup"
	}
	insert:
	{
		"OnTrigger" "bt_attack_case,Kill,,12,-1"
		"OnTrigger" "bex_upgrade,Enable,,12,-1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "bt_attack_crystallize"
	}
	insert:
	{
		"OnTrigger" "bex_upgrade,Trigger,,12,-1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "bt_attack_crystalrain"
	}
	insert:
	{
		"OnTrigger" "bex_upgrade,Trigger,,10,-1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "bt_attack_icywind"
	}
	insert:
	{
		"OnTrigger" "bex_upgrade,Trigger,,6,-1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "bt_attack_icywind2"
	}
	insert:
	{
		"OnTrigger" "bex_upgrade,Trigger,,6,-1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "bt_attack_blanketfreeze"
	}
	insert:
	{
		"OnTrigger" "bex_upgrade,Trigger,,8,-1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "bt_attack_beam"
	}
	insert:
	{
		"OnTrigger" "bex_upgrade,Trigger,,17,-1"
	}
}

//kill all this shizzle
modify:
{
	match:
	{
		"classname" "func_physbox"
		"targetname" "bt_hitbox"
	}
	insert:
	{
		"OnBreak" "bex_attack*,CancelPending,,0,-1"
		"OnBreak" "bex_*,Kill,,0.02,-1"
		"OnBreak" "100hp,Kill,,0,-1"
	}
}

//1050hp
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"targetname" "100hp"
	}
	delete:
	{
		"OnStartTouch" "!activator,SetHealth,100,0,-1"
		"OnStartTouch" "!activator,AddOutput,health 100,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,health 150,0,-1"
	}
}
