; 13/12/2021

; modify wrong npc spot

modify:
{
    match:
    {
        "targetname" "s1_npc_spawn_new"
        "classname" "logic_relay"
    }
    delete:
    {
	        "OnTrigger" "maker_bvn,ForceSpawnAtEntityOrigin,!caller,0,1"
    }
}

; fix wrong filter on trigger
modify:
{
    match:
    {
        "targetname" "s1_once_zm_extratp"
        "classname" "trigger_once"
    }
    insert:
    {
	"filtername" "filter_zombies"
    }
}

; tornado push fix
modify:
{
    match:
    {
        "targetname" "ksdk_push"
        "classname" "trigger_push"
    }
    replace:
    {
	"pushdir" "0 0 0"
    }
}

; item loc position fix
modify:
{
    match:
    {
        "targetname" "s1_item_loc4"
        "classname" "logic_relay"
    }
    replace:
    {
	"origin" "-78 2446 -6048"
    }
}

; fix platform not killing

modify:
{
    match:
    {
        "targetname" "s1_movelinear_triggerplat"
        "classname" "func_movelinear"
    }
    replace:
    {
	"blockdamage" "99999"
    }
}

; 15/12/2021
; bossfight update

modify:
{
    match:
    {
        "targetname" "pads_door1"
        "classname" "func_door"
    }
    replace:
    {
	"lip" "1900"
	"speed" "310"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_attack_case"
        "classname" "logic_case"
    }
    insert:
    {
		"OnCase16" "phase3_att16,Trigger,,0,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_att1"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,1.4,-1"
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,1.6,-1"
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,1.8,-1"
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,2,-1"
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,3.2,-1"
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,3.4,-1"
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,3.6,-1"
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,3.8,-1"
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,4,-1"
		"OnTrigger" "phase3_ballbeam_maker*,FireUser2,,4.2,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_att1"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "template_nvb,ForceSpawn,,3,-1"
		"OnTrigger" "template_nvb,ForceSpawn,,6.02,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_att4"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "template_nvb,ForceSpawn,,2,-1"
		"OnTrigger" "template_nvb,ForceSpawn,,5.02,-1"
		"OnTrigger" "phase3_timer_dodge,Enable,,6,-1"
		"OnTrigger" "phase3_timer_dodge,Disable,,12.5,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_att7"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "phase3_redbeam_maker,ForceSpawn,,11.5,-1"
		"OnTrigger" "template_nvb,ForceSpawn,,14,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_att10"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "phase3_maker_beam,ForceSpawn,,3,-1"
		"OnTrigger" "phase3_maker_beam,ForceSpawn,,7,-1"
		"OnTrigger" "phase3_maker_beam,ForceSpawn,,10,-1"
		"OnTrigger" "template_nvb,ForceSpawn,,9,-1"
		"OnTrigger" "template_nvb,ForceSpawn,,12.02,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_att12"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "template_nvb,ForceSpawn,,2,-1"
		"OnTrigger" "phase3_ballbeam_maker1,FireUser3,,2,-1"
		"OnTrigger" "phase3_ballbeam_maker2,FireUser3,,2,-1"
		"OnTrigger" "phase3_ballbeam_maker3,FireUser3,,2,-1"
		"OnTrigger" "phase3_ballbeam_maker4,FireUser3,,2,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,3.04,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,3.06,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,3.08,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,3.10,-1"
		"OnTrigger" "template_nvb,ForceSpawn,,5,-1"
		"OnTrigger" "phase3_ballbeam_maker5,FireUser3,,7,-1"
		"OnTrigger" "phase3_ballbeam_maker6,FireUser3,,7,-1"
		"OnTrigger" "phase3_ballbeam_maker7,FireUser3,,7,-1"
		"OnTrigger" "phase3_ballbeam_maker8,FireUser3,,7,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,6.5,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,6.52,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,6.54,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,6.56,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_att15"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "template_nvb,ForceSpawn,,1.5,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,3.02,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,3.04,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,3.06,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,3.08,-1"
		"OnTrigger" "template_nvb,ForceSpawn,,5,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,6.02,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,6.04,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,6.06,-1"
		"OnTrigger" "phase3_rez_case,PickRandomShuffle,,6.08,-1"
		"OnTrigger" "template_nvb,ForceSpawn,,8,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_att11"
        "classname" "logic_relay"
    }
    delete:
    {
		"OnTrigger" "phase3_timer_ball,RefireTime,0.25,13,-1"
    }
    insert:
    {
		"OnTrigger" "phase3_timer_ball,RefireTime,0.4,13,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_att14"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "phase3_maker_beam,ForceSpawn,,2,-1"
		"OnTrigger" "phase3_maker_beam,ForceSpawn,,3.5,-1"
		"OnTrigger" "phase3_maker_beam,ForceSpawn,,5,-1"
		"OnTrigger" "template_nvb,ForceSpawn,,9,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "stack_hurt"
        "classname" "trigger_hurt"
    }
    replace:
    {
	"damage" "15"
    }
}

modify:
{
    match:
    {
        "targetname" "try_door"
        "classname" "func_door"
    }
    replace:
    {
	"speed" "625"
	"lip" "1700"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_timer_dodge"
        "classname" "logic_timer"
    }
    replace:
    {
	"RefireTime" "0.05"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_trigger_gravity_arenazm"
        "classname" "trigger_multiple"
    }
    delete:
    {
		"OnStartTouch" "speed,ModifySpeed,0.65,0,-1"
		"OnStartTouch" "!activator,AddOutput,gravity 0.3,0,-1"
    }
    insert:
    {
		"OnStartTouch" "speed,ModifySpeed,0.75,0,-1"
		"OnStartTouch" "!activator,AddOutput,gravity 0.25,0,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "human_heal_temp"
        "classname" "point_template"
    }
    delete:
    {
	"Template03" "human_heal_relay"
    }
}


modify:
{
    match:
    {
        "targetname" "human_heal_itemtemp"
        "classname" "point_template"
    }
    insert:
    {
	"Template06" "human_heal_relay"
    }
}

; 17/12/2021

; Fix zm attack teleport
modify:
{
    match:
    {
        "targetname" "phase3_att6"
        "classname" "logic_relay"
    }
    delete:
    {
		"OnTrigger" "s1_tp_zmreset_attack,Disable,,16.5,-1"
    }
    insert:
    {
		"OnTrigger" "s1_tp_zmreset_attack,Disable,,42,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "phase3_death_relay"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "s1_tp_zm_bossattack,kill,,0,-1"
    }
}

; change pyramid health
modify:
{
    match:
    {
        "targetname" "redsq_break"
        "classname" "func_breakable"
    }
    replace:
    {
	"health" "450"
    }
}

; heal faster
modify:
{
    match:
    {
        "targetname" "human_heal_hurt"
        "classname" "trigger_hurt"
    }
    replace:
    {
	"damage" "-40"
    }
}

; change npc loc

modify:
{
    match:
    {
        "targetname" "s1_npc_spawn4"
        "classname" "logic_relay"
    }
    replace:
    {
	"origin" "-714 -938 -3660"
    }
}

modify:
{
    match:
    {
        "targetname" "s1_once_npcnew"
        "classname" "trigger_once"
    }
    delete:
    {
		"OnStartTouch" "s1_npc_spawn_new2,Trigger,,0,1"
    }
    insert:
    {
		"OnStartTouch" "s1_npc_spawn_new2,Trigger,,1,1"
    }
}