;--------------------------
; Fix playermodel index
;--------------------------
modify:
{
        match:
        {
                "targetname" "Player_Skin_Trigger"
                "classname" "trigger_multiple"
        }
        delete:
        {
                "OnStartTouch" "!activator,AddOutput,modelindex 288,0.05,-1"
        }
        insert:
        {
                "OnStartTouch" "!activator,AddOutput,modelindex 288,0,-1"
        }
}


;------------------
; Fix teleporters
;------------------
modify:
{
        match:
        {
                "targetname" "hachi_teleport"
                "classname" "trigger_teleport"
        }
        replace:
        {
                "target" "l1_tele_trigger_6_1_in"
        }
}
modify:
{
        match:
        {
                "targetname" "bentham_teleport"
                "classname" "trigger_teleport"
        }
        replace:
        {
                "target" "l2_tele_trigger_6_1_in"
        }
}


;------------------------------------------------------------------
; Remove some inputs from a trigger_multiple to logic_auto
;------------------------------------------------------------------
modify:
{
        match:
        {
                "targetname" "spawnroom_reset_trigger"
                "origin" "13310.5 -12348 84"
                "classname" "trigger_multiple"
        }
        delete:
        {
                "OnStartTouch" "!activator,SetDamageFilter,,0,-1"
                "OnStartTouch" "!activator,AddOutput,rendermode 0,0,-1"
                "OnStartTouch" "!activator,AddOutput,renderfx 0,0,-1"
                "OnStartTouch" "!activator,AddOutput,targetname ,0,-1"
                "OnStartTouch" "!activator,SetModelScale,1,0,-1"
        }
}
modify:
{
        match:
        {
                "origin" "-15864 15336 -1016"
                "classname" "logic_auto"
        }
        insert:
        {
                "OnMapSpawn" "player,SetDamageFilter,,0,-1"
                "OnMapSpawn" "player,AddOutput,rendermode 0,0,-1"
                "OnMapSpawn" "player,AddOutput,renderfx 0,0,-1"
                "OnMapSpawn" "player,AddOutput,targetname ,0,-1"
                "OnMapSpawn" "player,SetModelScale,1,0,-1"
                "OnMapSpawn" "server,Command,say *** Stripper 1 loaded ***,6,-1"
        }
}


;------------------------------------------------------------------
; Adds a feedback message to stage 1 for when the boss door opens
;------------------------------------------------------------------
modify:
{
        match:
        {
                "origin" "9904 12472 123.669"
                "targetname" "l1_poster_3_1_relay"
                "classname" "logic_relay"
        }
        insert:
        {
                "OnTrigger" "server,Command,say *** Teleporter to boss enables in 30 seconds! ***,100,1"
        }
}


;---------------------------------------
; Adds a feedback messages to stage 1
;---------------------------------------
modify:
{
        match:
        {
                "origin" "9904 12472 123.669"
                "targetname" "l1_poster_3_1_relay"
                "classname" "logic_relay"
        }
        delete:
        {
                "OnTrigger" "server,Command,say *** Teleporting to Arlong Park in 10 SEC ***,80,1"
                "OnTrigger" "server,Command,say *** Teleporting to Arlong Park in 10 SEC ***,80,1"
                "OnTrigger" "server,Command,say *** Teleporting to Arlong Park in 10 SEC ***,80,1"
        }
        insert:
        {
                "OnTrigger" "server,Command,say *** Teleporting afks to Arlong Park in 10 SEC ***,80,1"
                "OnTrigger" "server,Command,say *** Teleporter is ready in 30 seconds ***,30,1"
                "OnTrigger" "server,Command,say *** Teleporter to boss enables in 30 seconds! ***,100,1"
        }
}


;---------------------------------------
; Adds a feedback messages to stage 2
;---------------------------------------
modify:
{
        match:
        {
                "origin" "9904 12488 123.669"
                "targetname" "l2_poster_3_1_relay"
                "classname" "logic_relay"
        }
        delete:
        {
                "OnTrigger" "server,Command,say *** Teleporting to Alubarna in 10 SEC ***,97,1"
                "OnTrigger" "server,Command,say *** Teleporting to Alubarna in 10 SEC ***,97,1"
                "OnTrigger" "server,Command,say *** Teleporting to Alubarna in 10 SEC ***,97,1"
        }
        insert:
        {
                "OnTrigger" "server,Command,say *** Teleporting afks to Alubarna in 10 SEC ***,97,1"
                "OnTrigger" "server,Command,say *** Teleporter is ready in 45 seconds ***,32,1"
                "OnTrigger" "server,Command,say *** Teleporter to boss enables in 40 seconds! ***,107,1"
        }
}


;-----------------------------------------------------------
; Moves the heal particle for chopper slightly up
;-----------------------------------------------------------
modify:
{
        match:
        {
                "origin" "-7735 13231 -3928.97"
                "targetname" "chopper_heal_particle"
                "classname" "info_particle_system"
        }
        replace:
        {
                "origin" "-7736 13231 -3910"
        }
}



;; zm items anti-spin? (from tesv stripper)

modify:
{
	match:
	{
		"pushdir" "0 90 0"
		"filtername" "filter_t"
		"classname" "trigger_push"
	}
	replace:
	{
		"speed" "107"
	}
}
modify:
{
	match:
	{
		"pushdir" "0 270 0"
		"filtername" "filter_t"
		"classname" "trigger_push"
	}
	replace:
	{
		"speed" "109"
	}
}
modify:
{
	match:
	{
		"pushdir" "0 180 -90"
		"filtername" "filter_t"
		"classname" "trigger_push"
	}
	replace:
	{
		"speed" "117"
	}
}
modify:
{
	match:
	{
		"pushdir" "0 0 -90"
		"filtername" "filter_t"
		"classname" "trigger_push"
	}
	replace:
	{
		"speed" "117"
	}
}