;------------------------------------------------
;------Stripper sent by encapsulation_dot1q------
;------------------------------------------------

;; stage ? - prevent players from opening shortcut early

modify:
{
	match:
	{
		"origin" "3648 5488 -355.834"
		"targetname" "Break_fence"
		"hammerid" "634368"
		"classname" "prop_physics"
	}
	replace:
	{
		"classname" "prop_physics_override"
	}
}
 
modify:
{
	match:
	{
		"origin" "3520 5488 -355.834"
		"classname" "prop_physics"
		"hammerid" "634360"
	}
	replace:
	{
		"classname" "prop_physics_override"
	}
}
 
modify:
{
	match:
	{
		"origin" "3776 5488 -355.834"
		"classname" "prop_physics"
		"hammerid" "634372"
	}
	replace:
	{
		"classname" "prop_physics_override"
	}
}

;; stage 2 - additional fence on last hold

add:
{
	"angles" "0 90 0"
	"origin" "6792 260 822"
	"model" "models/props_c17/fence01b.mdl"
	"solid" "6"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "prop_dynamic"
}
add:
{
	"angles" "0 90 0"
	"origin" "6392 260 822"
	"model" "models/props_c17/fence01b.mdl"
	"solid" "6"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "prop_dynamic"
}
add:
{
	"angles" "0 90 0"
	"origin" "6393 764 822"
	"model" "models/props_c17/fence01b.mdl"
	"solid" "6"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "prop_dynamic"
}
add:
{
	"angles" "0 90 0"
	"origin" "6791 764 822"
	"model" "models/props_c17/fence01b.mdl"
	"solid" "6"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "prop_dynamic"
}

;; boss stage - fix damage filter

add:
{
	"model" "*110"
	"wait" "1"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "0 -704 -800"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,SetDamageFilter,Spawn_protection_off,0,-1"
}
modify:
{
	match:
	{
		"targetname" "miss_5_beat_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "Start_trigger_02,AddOutput,OnEndTouch !activator:SetDamageFilter:Spawn_protection_off:0.1:-1,0,1"
	}
}

add:
{
	"model" "*260"
	"targetname" "Z_tele_midpoint"
	"target" "Z_telepoint_midpoint_final_level"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "0 -712 480"
	"classname" "trigger_teleport"
}

;; city - delay afk tele

modify:
{
	match:
	{
		"origin" "5800 512 336"
		"classname" "trigger_once"
		"hammerid" "129995"
	}
	delete:
	{
		"OnStartTouch" "TeleportZone_01,Enable,,10,1"
	}
	insert:
	{
		"OnStartTouch" "TeleportZone_01,Enable,,20,1"
	}
}
