add:
{
	"origin" "-13237 -14752 -1017"
	"targetname" "TheCurrentLevelPlugin"
	"min" "1"
	"max" "4"
	"startvalue" "1"
	"classname" "math_counter"
}

modify:
{
	match:
	{
		"targetname" "lvl1_map_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "lvl2_map_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,2,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "lvl6_map_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,3,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "lvl4_map_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,4,0,1"
	}
}



;----------------------
; Fix Teleport Stage 3
;----------------------

modify:
{
	match:
	{
		"model" "*542"
		"hammerid" "3346941"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnUser1" "!self,AddOutput,mins -2712 -1640 -1256,0,1"
		"OnUser1" "!self,AddOutput,maxs 2712 1640 420,0,1"
	}
}
modify:
{
	match:
	{
		"hammerid" "123"
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "afktele20_2,FireUser1,,5,1"
	}
}

;-----------------------
; New Button Admin Room
;-----------------------

add:
{
	"model" "*12"
	"wait" "3"
	"unlocked_sound" "0"
	"unlocked_sentence" "0"
	"targetname" "lvl4_button"
	"speed" "5"
	"spawnflags" "1025"
	"sounds" "0"
	"rendermode" "0"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-14456.5 -14300.8 -973"
	"movedir" "0 0 0"
	"locked_sound" "0"
	"locked_sentence" "0"
	"lip" "0"
	"health" "0"
	"disablereceiveshadows" "0"
	"classname" "func_button"
	"hammerid" "7894561"
	"OnPressed" "map_command,Command,say >>> ADMIN CHANGED TO STAGE 0: DARK WORLD <<<,0,-1"
	"OnPressed" "lvl6_brush,Enable,,0,-1"
	"OnPressed" "lvl2_brush,Enable,,0,-1"
	"OnPressed" "lvl1_brush,Enable,,0,-1"
	"OnPressed" "lvl4_brush,Enable,,0,-1"
	"OnPressed" "lvl4_brush,Disable,,0.05,-1"
}

add:
{
	"classname" "prop_dynamic"
	"angles" "0 270 0"
	"DisableBoneFollowers" "1"
	"disablereceiveshadows" "0"
	"disableshadows" "0"
	"ExplodeDamage" "0"
	"ExplodeRadius" "0"
	"fademaxdist" "0"
	"fademindist" "-1"
	"fadescale" "1"
	"MaxAnimTime" "10"
	"maxdxlevel" "0"
	"MinAnimTime" "5"
	"mindxlevel" "0"
	"model" "models/props/cs_militia/toilet.mdl"
	"modelscale" "1.0"
	"PerformanceMode" "0"
	"pressuredelay" "0"
	"RandomAnimation" "0"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "0"
	"SetBodyGroup" "0"
	"skin" "0"
	"solid" "0"
	"spawnflags" "0"
	"StartDisabled" "0"
	"origin" "-14392.8 -14289 -992"
}

;-----------------------------------------------
;***********************************************
;********** STRIPPER BY KLIXUS *****************
;***********************************************
;-----------------------------------------------


;-------------------------------------
;			S T A G E  3
;-------------------------------------

;Fixes BossHP multiple trigger glitch:
add:
{
	"model" "*231"
	"targetname" "bosslvl3_harpy_trigger1"
	"wait" "0.1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "9285.01 -1296.63 -7934.5"
	"classname" "trigger_multiple"
	"OnStartTouch" "bosslvl3_harpy_counter1,Add,26,0,-1"
	"OnStartTouch" "bosslvl3_harpy_counter2,Add,26,0,-1"
}
add:
{
	"model" "*231"
	"targetname" "BossHP_glitch"
	"StartDisabled" "0"
	"speed" "600"
	"spawnflags" "1"
	"pushdir" "0 180 0"
	"filtername" "filter_human"
	"origin" "9314.75 -1312.72 -7934.5"
	"classname" "trigger_push"
}
add:
{
	"model" "*231"
	"targetname" "BossHP_glitch2"
	"StartDisabled" "0"
	"speed" "600"
	"spawnflags" "1"
	"pushdir" "0 180 0"
	"filtername" "filter_human"
	"origin" "9210.71 -1254.63 -7934.5"
	"classname" "trigger_push"
}
filter:
{
	"origin" "9856.5 -1392.5 -8482"
	"targetname" "bosslvl3_harpy_trigger1"
	"classname" "trigger_multiple"
	"hammerid" "2659073"	
}

;-------------------------------------
;			S T A G E  4
;-------------------------------------


;Deleting the Stage 0 boss attack that crashes clients
modify:
{
	match:
	{
		"origin" "2621 -9057 8443"
		"targetname" "bosslvl4_case"
		"classname" "logic_case"
		"hammerid" "2172637"
	}
	delete:
	{
		"OnCase06" "boss_command,Command,say >>> QUEEN USED FIRE BEAM <<<,3,-1"
		"OnCase06" "bosslvl4_fire_case,PickRandom,,3,-1"
		"OnCase06" "bosslvl4_fire2_eff,Start,,9.5,-1"
		"OnCase06" "bosslvl4_fire2_hurt,Enable,,9.5,-1"
		"OnCase06" "bosslvl4_fire2_rotate,Open,,10.5,-1"
		"OnCase06" "beamsound,PlaySound,,9.5,-1"
	}
}

;Filters out all related entities to the boss attack
filter:
{
	"origin" "2541 -9057 8443"
	"targetname" "bosslvl4_fire_case"
	"classname" "logic_case"
	"hammerid" "3047368"
}
filter:
{
	"origin" "2827 -7756 7893.5"
	"targetname" "bosslvl4_fire_move"
	"classname" "func_tanktrain"
	"hammerid" "3047326"
}
filter:
{
	"origin" "2826 -7756 7892"
	"targetname" "bosslvl4_fire_path2"
	"classname" "path_track"
	"hammerid" "3047395"
}
filter:
{
	"origin" "2826 -7356 7892"
	"targetname" "bosslvl4_fire_path1"
	"classname" "path_track"
	"hammerid" "3047421
}
filter:
{
	"origin" "2826 -8156 7892"
	"targetname" "bosslvl4_fire_path3"
	"classname" "path_track"
	"hammerid" "3047454
}
filter:
{
	"origin" "2670 -7764 7908"
	"targetname" "bosslvl4_fire2_eff"
	"classname" "info_particle_system"
	"hammerid" "3049350"
}
filter:
{
	"origin" "2670 -7764 7948"
	"targetname" "bosslvl4_fire2_hurt"
	"classname" "trigger_hurt"
	"hammerid" "3049415"
}
