// strippa


modify:
{
    match:
    {
		"targetname" "RL_ST2_INIT"
    }
	insert:
	{
		"OnTrigger" "s2_RL_LocalRelay8,Enable,,1,1"
	}
}

// door
modify:
{
    match:
    {
		"targetname" "s2_end"
    }
	insert:
	{
		"wait" "-1"
	}
}


// volume slider
modify:
{
    match:
    {
		"targetname" "s2_Music1"
    }
	replace:
	{
		"message" "#iszaar/music/stage_2/architect_animals-65-105kbps.mp3"
	}
}


// parent issue
modify:
{
    match:
    {
		"targetname" "BRKTRL_Tank_Hurt"
    }
	replace:
	{
		"parentname" "BRKTRL_Tank_knife"
	}
}
// door
modify:
{
    match:
    {
		"targetname" "reactorRot"
    }
	replace:
	{
		"spawnflags" "0"
	}
}

modify:
{
    match:
    {
		"targetname" "s2_RL_LocalRelayFIX"
    }
	delete:
	{
		"OnTrigger" "s2_Music2,PlaySound,,1,1"
	}
	insert:
	{
		"OnTrigger" "s2_Music3,PlaySound,,1,1"
	}
}

filter:
{
	"targetname" "skybox3_particle"
	"effect_name" "custom_particle_067"
}

modify:
{
    match:
    {
		"targetname" "temp_inf_awp_trigg"
    }
	delete:
	{
		"OnTrigger" "p_Ammo,Use,,0,-1"
	}
	insert:
	{
		"OnTrigger" "ammo_equip,Use,,0,-1"
	}
}


modify:
{
    match:
    {
		"targetname" "s1_butt_entranceSystemActivate"
    }
	delete:
	{
		"OnPressed" "s1_gate-sys1,Open,,1,1"
		"OnPressed" "I_AM_FADE,Fade,,1,1"
		"OnPressed" "TRIGGER_ztpDest4,Enable,,0,1"
		"OnPressed" "s2_RL_LocalRelayFIX,Trigger,,1,1"
		"OnPressed" "s3_RL_LocalRelayFIX,Trigger,,1,1"
	}
	insert:
	{
		"OnPressed" "s1_gate-sys1,Open,,11,1"
		"OnPressed" "I_AM_FADE,Fade,,11,1"
		"OnPressed" "TRIGGER_ztpDest4,Enable,,10,1"
		"OnPressed" "s2_RL_LocalRelayFIX,Trigger,,11,1"
		"OnPressed" "s3_RL_LocalRelayFIX,Trigger,,11,1"
	}
}

;------------------------
; Fixes boss damage issue
;------------------------
modify:
{
    match:
    {
		"targetname" "zn_Nightmare_hp"
		"classname" "func_physbox"
    }
	replace:
	{
		"damagefilter" "filter_zombie"
	}
}
;------------------------
; Fixes boss damage issue
;------------------------
modify:
{
    match:
    {
		"targetname" "s2_bossPush"
		"classname" "trigger_push"
    }
	insert:
	{
		"OnStartTouch" "zn_Nightmare_hp,AddOutput,damagefilter filter_menneske,22,1"
	}
}
;----------------------------------------------------------
; Adds a small delay before the teleport after bridge part
;----------------------------------------------------------
modify:
{
    match:
    {
		"origin" "9707.89 -1911.57 -1411.27"
		"classname" "func_button"
    }
	delete:
	{
		"OnPressed" "s1_RL_LocalRelay7,Trigger,,0,1"
		"OnPressed" "s2_RL_LocalRelay7,Trigger,,0,1"
	}
	insert:
	{
		"OnPressed" "s1_RL_LocalRelay7,Trigger,,5,1"
		"OnPressed" "s2_RL_LocalRelay7,Trigger,,5,1"
	}
}
;----------------------------------------------------------
; A temporary fix for the teleport issue at the door...
;----------------------------------------------------------
modify:
{
    match:
    {
		"origin" "9622.55 -1762.33 -1448"
		"targetname" "s2_RL_LocalRelay7"
    }
	insert:
	{
		"OnTrigger" "TRIGGER_ztpDest8,Disable,,10,1"
	}
}
;----------------------------------------------------------
; A temporary fix for the teleport issue at the door...
;----------------------------------------------------------
modify:
{
    match:
    {
		"origin" "9662.55 -1762.33 -1448"
		"targetname" "s1_RL_LocalRelay7"
    }
	insert:
	{
		"OnTrigger" "TRIGGER_ztpDest8,Disable,,10,1"
	}
}
modify:
{
    match:
    {
		"origin" "9622.55 -1762.33 -1448"
		"targetname" "s2_RL_LocalRelay7"
    }
	insert:
	{
		"OnTrigger" "TRIGGER_ztpDest8,Disable,,10,1"
	}
}
modify:
{
    match:
    {
		"origin" "11464 984 -1549"
		"targetname" "s3_RL_LocalRelay8"
    }
	insert:
	{
		"OnTrigger" "TRIGGER_ztpDest7,Disable,,10,1"
	}
}
modify:
{
    match:
    {
		"origin" "9796 -3360 -1393.12"
		"classname" "trigger_once"
    }
	insert:
	{
		"OnStartTouch" "TRIGGER_ztpDest8,Enable,,35,1"
		"OnStartTouch" "TRIGGER_ztpDest7,Enable,,35,1"
	}
}
;----------------------------------------------------------
; A fix for the elevator doors at ending 1
;----------------------------------------------------------
modify:
{
    match:
    {
		"targetname" "s1_elevatorLast"
		"classname" "func_door"
    }
	replace:
	{
		"wait" "-1"
	}
}