; Stripper is loaded
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "309160"
	}
	insert:
	{
		"OnMapSpawn" "cmd,Command,say **Stripper v1.3 loaded**,0.25,-1"
	}
}

; 09/01/2026
; Nerf spear item
modify:
{
	match:
	{
		"targetname" "item_spear_filter"
		"classname" "filter_activator_name"
	}
	delete:
	{
		"OnPass" "item_spear_pushDisable0.8-1"
		"OnPass" "item_spear_moveClose0.8-1"
		"OnPass" "item_spear_buttonUnlock3-1"
	}
	insert:
	{
		"OnPass" "item_spear_pushDisable0.6-1"
		"OnPass" "item_spear_moveClose0.6-1"
		"OnPass" "item_spear_buttonUnlock4.5-1"
	}
}

; Modify SetFarZ to fix visual issue on gundyr boss area
modify:
{
	match:
	{
		"targetname" "t_s1_once_door_05"
		"classname" "trigger_once"
	}
	delete:
	{
"OnStartTouch" "fogSetFarZ4000251"
	}
	insert:
	{
"OnStartTouch" "fogSetFarZ5500251"
	}
}

; Disable gundyr hurt on start so it doesnt play any animation
modify:
{
	match:
	{
		"targetname" "gundyr_Hurt"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"StartDisabled" "0"
	}
	insert:
	{
		"StartDisabled" "1"
	}
}

; Rework gundyr attacks and damage
modify:
{
	match:
	{
		"targetname" "gundyr_att_z1"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "gundyr_maker_npcForceSpawn2-1"
		"OnTrigger" "gundyr_maker_npcForceSpawn3-1"
	}
}

modify:
{
	match:
	{
		"targetname" "gundyr_att_z1"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "gundyr_maker_npcForceSpawn2-1"
		"OnTrigger" "gundyr_maker_npcForceSpawn3-1"
	}
}

modify:
{
	match:
	{
		"targetname" "wxc_gundyr_smoke_hurt"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"damage" "150"
	}
	insert:
	{
		"damage" "300"
	}
}

; Modify lake of blood exit grate breaking time. Hold is longer
modify:
{
	match:
	{
		"targetname" "s2_grate_break_once"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s2_grate_breakBreak151"
		"OnStartTouch" "cmdCommandsay ** KEEP DEFENDING ! **01"
		"OnStartTouch" "s2_teleport_07Enable341"
	}
	insert:
	{
		"OnStartTouch" "s2_grate_breakBreak251"
		"OnStartTouch" "cmdCommandsay ** KEEP DEFENDING ! **01"
		"OnStartTouch" "cmdCommandsay ** GRATE BREAKING IN 10 SECONDS **151"
		"OnStartTouch" "s2_teleport_07Enable291"
	}
}

; Keep enable the particle around eidolon on phase 2 to show players to not get near him since there is a trigger_hurt around the boss
modify:
{
	match:
	{
		"targetname" "boss_phase2_start_relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "s1_sk_phase1_start_pKill4.51"
	}
}

modify:
{
	match:
	{
		"targetname" "phase2_sk_death_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "s1_sk_phase1_start_pKill01"
	}
}


; Lake of blood doors will disappear after some time to prevent infinite hold (2 min 10sec after door opens)
modify:
{
	match:
	{
		"targetname" "s2_button06"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "cmdCommandsay ** LAKE OF BLOOD ENTRANCE DOOR WILL BREAK IN 30 SECONDS **1001"
		"OnPressed" "cmdCommandsay ** LAKE OF BLOOD ENTRANCE DOOR WILL BREAK IN 10 SECONDS **1201"
		"OnPressed" "s2_lob_doors_pStart129.91"
		"OnPressed" "s2_lob_doors_p_sPlaySound129.91"
		"OnPressed" "s2_lake_of_blood_door1Kill1301"
		"OnPressed" "s2_lake_of_blood_door2Kill1301"
		"OnPressed" "s2_lob_doors_exp_npcTrigger1301"
		"OnPressed" "s2_lob_doors_exp_npc2Trigger1311"
		"OnPressed" "s2_lob_doors_exp_npc3Trigger1321"
	}
}

; Add the particles that will explose to break doors on lake of blood entrance
add:
{
    "classname" "info_particle_system"
    "targetname" "s2_lob_doors_p"
    "effect_name" "custom_particle_100"
    "start_active" "0"
    "angles" "0 0 0"
    "origin" "11708 -6268 -10892"
}

add:
{
    "classname" "info_particle_system"
    "targetname" "s2_lob_doors_p"
    "effect_name" "custom_particle_100"
    "start_active" "0"
    "angles" "0 0 0"
    "origin" "11932 -6324 -10780"
}

; Add the sound that will be played once door is kill with explosion
add:
{
	"targetname" "s2_lob_doors_p_s"
	"classname" "ambient_generic"
	"spawnflags" "48"
	"message" "explode_8"
	"health" "10"
	"radius" "6000"
	"pitchstart" "100"
	"pitch" "100"
	"origin" "11708 -6268 -10892"
}

; Add a mass of souls npcs once the lake of blood door break that will spawn instantly behind the door with zombies
add:
{
    "classname" "logic_relay"
    "targetname" "s2_lob_doors_exp_npc"
	"spawnflags" "0"
	"angles" "0 90 0"
	"origin" "11760 -6664 -10757.5"
	"OnTrigger" "maker_massofsoulsForceSpawnAtEntityOrigin!caller01"
	"OnTrigger" "!selfKill41"

}

add:
{
    "classname" "logic_relay"
    "targetname" "s2_lob_doors_exp_npc2"
	"spawnflags" "0"
	"angles" "0 90 0"
	"origin" "11968 -6624 -10757.5"
	"OnTrigger" "maker_massofsoulsForceSpawnAtEntityOrigin!caller01"
	"OnTrigger" "!selfKill41"

}

add:
{
    "classname" "logic_relay"
    "targetname" "s2_lob_doors_exp_npc3"
	"spawnflags" "0"
	"angles" "0 90 0"
	"origin" "11840 -6552 -10837.5"
	"OnTrigger" "maker_massofsoulsForceSpawnAtEntityOrigin!caller01"
	"OnTrigger" "!selfKill41"

}

; Add a particle to show that a npc spawned on stage 2 boss fight vermisanguis
add:
{
    "classname" "info_particle_system"
    "targetname" "oyt_Vermisanguis_npc_spawner_p2"
    "effect_name" "custom_particle_510"
    "start_active" "0"
    "angles" "0 0 0"
    "origin" "11052 4720 -14088"
}

; Add this particle to the existing template
modify:
{
    match:
    {
        "classname" "point_template"
        "targetname" "template_oyt_Vermisanguis_npc_spawner"
    }
    insert:
    {
        "Template04" "oyt_Vermisanguis_npc_spawner_p2"
    }
}

; The relay will start the particle when the npc spawn to prevent players
modify:
{
    match:
    {
        "classname" "logic_relay"
        "targetname" "oyt_Vermisanguis_npc_spawner_relay"
    }
    insert:
    {
        "OnSpawn" "oyt_Vermisanguis_npc_spawner_p2Start01"
		"OnSpawn" "oyt_Vermisanguis_npc_spawner_p2Kill11"
    }
}

 ; Modify trueend first music to fix issue stopping randomly in the middle
 modify:
 {
	 match:
	{
		"targetname" "t_s2_music01"
		"classname" "ambient_generic"
	}
	 delete:
	{ 
		"message" "#m4dara/music/for the dark soul.mp3"
	}
	 insert:
	{
		"message" "#m4dara/music/darkeater midir.mp3"
	}
 }

; On secret ending stage 1, the shortcut grate for zombies will also break after certain time and not only after triggering the lever
modify:
{
	match:
	{
		"targetname" "t_s1_button03"
		"classname" "func_button"
	}
	delete:
	{
		"OnPressed" "t_s1_break_door_2Break31"
	}
	insert:
	{
		"OnPressed" "t_s1_break_door_2Break1.51"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s1_case_door"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase01" "t_s1_break_door_2Break651"
		"OnCase02" "t_s1_break_door_2Break651"
	}
}

; Add a trigger_hurt when barrel item explode that deal heavy damage to zombies
add:
{
	"model" "*591"
	"classname" "trigger_hurt"
	"targetname" "b_barrel_hurt_exp"
	"filtername" "filter_zombies"
	"StartDisabled" "1"
	"spawnflags" "9"
	"damagecap" "1000"
	"damage" "5000"
	"origin" "2616 -8489.78 -5546"
}

modify:
{
    match:
    {
        "classname" "point_template"
        "targetname" "ab_barrel_template"
    }
    insert:
    {
        "Template10" "b_barrel_hurt_exp"
    }
}

modify:
{
    match:
    {
        "classname" "math_counter"
        "targetname" "b_barrel_counter"
    }
    insert:
    {
        "OnHitMax" "b_barrel_hurt_expEnable21"
		"OnHitMax" "b_barrel_hurt_expKill2.121"
    }
}

modify:
{
    match:
    {
        "classname" "logic_relay"
        "targetname" "b_barrel_relay"
    }
    insert:
    {
        "OnSpawn" "b_barrel_hurt_expKill301"
    }
}

; Modify damage of the toxic orb (zombie item)
modify:
{
	match:
	{
		"targetname" "zombie_poisonmagic_hurt1"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"damage" "1"
		"damagetype" "16"
	}
	insert:
	{
		"damage" "200"
		"damagetype" "0"
	}
}

; Modify SetFarZ on secret ending stage 2 to fix visual glitch
modify:
{
	match:
	{
		"targetname" "s2_relay_fog_blood"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "fogSetFarZ83000.41"
	}
	insert:
	{
		"OnTrigger" "fogSetFarZ115000.41"
	}
}

modify:
{
	match:
	{
		"targetname" "admin_stage2_trueending_relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "fogSetFarZ850061"
	}
	insert:
	{
		"OnTrigger" "fogSetFarZ1150061"
	}
}

; Modify both dragons "meteor" counter
modify:
{
	match:
	{
		"targetname" "o_x_dragon_sdm_counter"
		"classname" "math_counter"
	}
	delete:
	{
		"max" "16"
	}
	insert:
	{
		"max" "8"
	}
}

modify:
{
	match:
	{
		"targetname" "x_bone_dragon_sdm_counter"
		"classname" "math_counter"
	}
	delete:
	{
		"max" "20"
	}
	insert:
	{
		"max" "10"
	}
}


; Delete useless "playsound"
modify:
{
	match:
	{
		"targetname" "level2_relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "s2_music02PlaySound3321"
	}
}

; Add trigger that kill humans if zombies reach levers
; Add the zm reach the objective trigger system through filter_activator_team
modify:
{
	match:
	{
		"classname" "filter_activator_team"
		"hammerid" "2421113"
	}
	insert:
	{
		"OnPass" "global_zm_detected_fadeFade0-1"
		"OnPass" "cmdCommandsay ** ZOMBIES HAVE REACHED THE OBJECTIVE **01"
		"OnPass" "playerSetHealth02.5-1"
	}
}
; Stage 1
; Add the trigger_once that will be use. If zombies touch this trigger before a human trigger the lever, round end
add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "s1_zm_objective_1"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-1080 -7568 -304.01"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

; Add on the button, if the human trigger the lever, the trigger_once is killed
modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "2026068"
	}
	insert:
	{
		"OnPressed" "s1_zm_objective_1Kill01"
	}
}

add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "s1_zm_objective_2"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "160 -5600 -112.01"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "2940625"
	}
	insert:
	{
		"OnPressed" "s1_zm_objective_2Kill01"
	}
}

add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "s1_zm_objective_3"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-2944 -7008 -160.01"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "2044761"
	}
	insert:
	{
		"OnPressed" "s1_zm_objective_3Kill01"
	}
}

add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "s1_zm_objective_4"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "2192 -7216 -192.01"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "2185130"
	}
	insert:
	{
		"OnPressed" "s1_zm_objective_4Kill01"
	}
}

; Secret ending stage 1
add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "t_s1_zm_objective_1"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "6128 -1904 -1304.26"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "3538823"
	}
	insert:
	{
		"OnPressed" "t_s1_zm_objective_1Kill01"
	}
}

; Stage 2
add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "s2_zm_objective_1"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "14416 -9000 -11760"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "3035035"
	}
	insert:
	{
		"OnPressed" "s2_zm_objective_1Kill01"
	}
}

add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "s2_zm_objective_2"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "14456 -11408 -11760"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "3035067"
	}
	insert:
	{
		"OnPressed" "s2_zm_objective_2Kill01"
	}
}

add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "s2_zm_objective_3"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "10688 -10784 -11280"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "3314966"
	}
	insert:
	{
		"OnPressed" "s2_zm_objective_3Kill01"
	}
}

add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "s2_zm_objective_4"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "9312 -10232 -10704"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "3035089"
	}
	insert:
	{
		"OnPressed" "s2_zm_objective_4Kill01"
	}
}

add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "s2_zm_objective_5"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "12168 -7744 -10384"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "3035342"
	}
	insert:
	{
		"OnPressed" "s2_zm_objective_5Kill01"
	}
}

add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "t_s2_zm_objective_0"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-13472 -3688 -8592"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "4180886"
	}
	insert:
	{
		"OnPressed" "t_s2_zm_objective_0Kill01"
	}
}

; Secret ending stage 2
add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "t_s2_zm_objective_1"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-13320 3992 -9609.57"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "4193837"
	}
	insert:
	{
		"OnPressed" "t_s2_zm_objective_1Kill01"
	}
}

add:
{
	"model" "*316"
	"classname" "trigger_once"
	"targetname" "t_s2_zm_objective_2"
	"filtername" "filter_zombies"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-10488 6176 -9488"
	"OnStartTouch" "filter_zombiesTestActivator01"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "4191300"
	}
	insert:
	{
		"OnPressed" "t_s2_zm_objective_2Kill01"
	}
}

; Boost music volume and other sounds
add:
{
	"targetname" "s2_music02"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#m4dara/music/demon_s souls [remake] ost - penetrator.mp3"
	"health" "10"
	"radius" "10000"
	"pitchstart" "100"
	"pitch" "100"
}

add:
{
	"targetname" "t_s2_saintarea"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#m4dara/saintarea.mp3"
	"health" "10"
	"radius" "10000"
	"pitchstart" "100"
	"pitch" "100"
}

add:
{
	"targetname" "new_area_sound"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "m4dara/elden ring_new location.mp3"
	"health" "10"
	"radius" "10000"
	"pitchstart" "100"
	"pitch" "100"
}

add:
{
	"targetname" "enemy_felled_s"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "m4dara/elden ring  enemy felled.mp3"
	"health" "10"
	"radius" "10000"
	"pitchstart" "100"
	"pitch" "100"
}

; 11/01/2026
; fix gundyr boss room where zombies can go ahead of humans once boss die. Adding trigger_teleport around the zombie cage
add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s1_bossroom_zm_fix_tp"
	"target" "true_s1_dest_bossroom_zm"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "4543.55 -3759.5 -9433.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s1_bossroom_zm_fix_tp"
	"target" "true_s1_dest_bossroom_zm"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "4543.55 -4271.5 -9433.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s1_bossroom_zm_fix_tp"
	"target" "true_s1_dest_bossroom_zm"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "4016.5 -4799.55 -9433.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s1_bossroom_zm_fix_tp"
	"target" "true_s1_dest_bossroom_zm"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "3504.5 -4799.55 -9433.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s1_bossroom_zm_fix_tp"
	"target" "true_s1_dest_bossroom_zm"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "2959.55 -4271.5 -9433.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s1_bossroom_zm_fix_tp"
	"target" "true_s1_dest_bossroom_zm"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "2959.55 -3759.5 -9433.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s1_bossroom_zm_fix_tp"
	"target" "true_s1_dest_bossroom_zm"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "3504.5 -3215.55 -9433.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s1_bossroom_zm_fix_tp"
	"target" "true_s1_dest_bossroom_zm"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "4016.5 -3215.55 -9433.2"
}

 ; Lower Vermisanguis HP
 modify:
 {
	 match:
	{
		"targetname" "s2_boss_health_add"
		"classname" "trigger_once"
	}
	 delete:
	{ 
		"OnStartTouch" "Vermisanguis_HitboxAddHealth55000-1"
	}
	 insert:
	{
		"OnStartTouch" "Vermisanguis_HitboxAddHealth48000-1"
	}
 }

 ; Lower bone dragon HP
 modify:
 {
	 match:
	{
		"targetname" "t_s2_bone_dragon_health_add"
		"classname" "trigger_once"
	}
	 delete:
	{ 
		"OnStartTouch" "bone_dragon_HitboxAddHealth38000.04-1"
	}
	 insert:
	{
		"OnStartTouch" "bone_dragon_HitboxAddHealth35000.04-1"
	}
 }

; Modify zm cage break time in dragon's boss area
modify:
{
	match:
	{
		"targetname" "t_s2_counter_dragons"
		"classname" "math_counter"
	}
	delete:
	{
		"OnHitMax" "t_s2_dragon_wall_toggle_zmToggle61"
		"OnHitMax" "t_s2_door_09Open161"
	}
	insert:
	{
		"OnHitMax" "t_s2_dragon_wall_toggle_zmToggle91"
		"OnHitMax" "t_s2_door_09Open181"
	}
}

; Fix skeleton dragon can be damaged before core is broken
modify:
{
	match:
	{
		"targetname" "bone_dragon_Model"
		"classname" "prop_dynamic"
	}
	delete:
	{
		"OnUser1" "bone_dragon_HitboxSetDamageFilter01"
	}
}

; Modify hitbox on skeleton dragon
modify:
{
	match:
	{
		"targetname" "bone_dragon_Hitbox"
		"classname" "func_physbox_multiplayer"
	}
	delete:
	{
		"origin" "-6496.45 12128.5 -13897.2"
	}
	insert:
	{
		"origin" "-6784.45 12128.5 -14025.2"
	}
}

add:
{
	"model" "*16"
	"classname" "func_physbox_multiplayer"
	"targetname" "bone_dragon_Hitbox"
	"parentname" "bone_dragon_Physbox"
	"damagefilter" "filter_zombies"
	"notsolid" "0"
	"nodamageforces" "0"
	"material" "10"
	"massScale" "0"
	"gibdir" "0 0 0"
	"forcetoenablemotion" "0"
	"explosion" "0"
	"ExplodeRadius" "0"
	"explodemagnitude" "0"
	"ExplodeDamage" "0"
	"disableshadows" "0"
	"disablereceiveshadows" "0"
	"Damagetype" "0"
	"damagetoenablemotion" "0"
	"health" "5000"
	"spawnflags" "58368"
	"origin" "-6224.45 12128.5 -14025.2"
}

; fix grate model with no collision on sides on secret ending stage 2
add:
{
	"model" "*531"
	"classname" "func_brush"
	"targetname" "secret2_colision_fix"
	"solid" "6"
	"StartDisabled" "0"
	"origin" "-14321 -4300 -9000.01"
}

add:
{
	"model" "*531"
	"classname" "func_brush"
	"targetname" "secret2_colision_fix2"
	"solid" "6"
	"StartDisabled" "0"
	"origin" "-14319 -4060 -9000.01"
}

add:
{
	"model" "*531"
	"classname" "func_brush"
	"targetname" "secret2_colision_fix3"
	"solid" "6"
	"StartDisabled" "0"
	"origin" "-14031 -4300 -9000.01"
}

add:
{
	"model" "*531"
	"classname" "func_brush"
	"targetname" "secret2_colision_fix4"
	"solid" "6"
	"StartDisabled" "0"
	"origin" "-14033 -4060 -9000.01"
}

add:
{
	"model" "*531"
	"classname" "func_brush"
	"targetname" "secret2_colision_fix5"
	"solid" "6"
	"StartDisabled" "0"
	"origin" "-13743 -4300 -9000.01"
}

add:
{
	"model" "*531"
	"classname" "func_brush"
	"targetname" "secret2_colision_fix6"
	"solid" "6"
	"StartDisabled" "0"
	"origin" "-13745 -4060 -9000.01"
}

; Delete some npc to trigger the map on secret ending stage 2
modify:
{
	match:
	{
		"targetname" "t_s2_breakable_door_s"
		"classname" "func_breakable"
	}
	delete:
	{
		"OnBreak" "t_s2_souls_spawner10Trigger01"
		"OnBreak" "t_s2_souls_spawner9Trigger01"
	}
}

; Modify particle that never disappear secret ending stage 2
modify:
{
	match:
	{
		"targetname" "t_s2_button01"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "t_s2_asn_spawn_pKill341"
	}
}

; Add multiple messages on the boulder part
modify:
{
	match:
	{
		"targetname" "t_s2_button03_a"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "CMDCommandsay ** FIRST BOULDER DISABLED **11"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_button03_b"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "CMDCommandsay ** SECOND BOULDER DISABLED **11"
	}
}

; Add message in dragon boss
modify:
{
	match:
	{
		"targetname" "bone_dragon_energy_hitbox"
		"classname" "func_physbox_multiplayer"
	}
	insert:
	{
		"OnBreak" "CMDCommandsay ** AIM FOR THE PURPLE AURA UNDER THE DRAGON TO DEAL DAMAGE **2.51"
	}
}

; Modify gate lip on secret ending stage 2
modify:
{
	match:
	{
		"targetname" "t_s2_door_04_a"
		"classname" "func_movelinear"
	}
	delete:
	{
		"movedistance" "160"
	}
	insert:
	{
		"movedistance" "120"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_door_04_b"
		"classname" "func_movelinear"
	}
	delete:
	{
		"movedistance" "128"
	}
	insert:
	{
		"movedistance" "118"
	}
}

; Modify chest orientation in secret ending stage 2
modify:
{
	match:
	{
		"targetname" "t_s2_chest_item_location3"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 270 0"
	}
	insert:
	{
		"angles" "0 90 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_mimic_spawner03"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 90 0"
	}
	insert:
	{
		"angles" "0 270 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_chest_item_location4"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 90 0"
	}
	insert:
	{
		"angles" "0 270 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_chest_item_location5"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 180 0"
	}
	insert:
	{
		"angles" "0 0 0"
	}
}

; Modify bone dragon makers origin
modify:
{
	match:
	{
		"targetname" "bone_dragon_maker_b_b1"
		"classname" "env_entity_maker"
	}
	delete:
	{
		"origin" "-6406.93 12112 -14517.9"
	}
	insert:
	{
		"origin" "-6406.93 12112 -14485.9"
	}
}

modify:
{
	match:
	{
		"targetname" "bone_dragon_maker_b_b2"
		"classname" "env_entity_maker"
	}
	delete:
	{
		"origin" "-6486.93 12192 -14517.9"
	}
	insert:
	{
		"origin" "-6486.93 12192 -14485.9"
	}
}

modify:
{
	match:
	{
		"targetname" "bone_dragon_maker_b_b3"
		"classname" "env_entity_maker"
	}
	delete:
	{
		"origin" "-6566.93 12112 -14517.9"
	}
	insert:
	{
		"origin" "-6566.93 12112 -14485.9"
	}
}

modify:
{
	match:
	{
		"targetname" "bone_dragon_maker_b_b4"
		"classname" "env_entity_maker"
	}
	delete:
	{
		"origin" "-6486.93 12032 -14517.9"
	}
	insert:
	{
		"origin" "-6486.93 12032 -14485.9"
	}
}

modify:
{
	match:
	{
		"targetname" "bone_dragon_maker_b3"
		"classname" "env_entity_maker"
	}
	delete:
	{
		"origin" "-6486.93 12199.6 -14320"
	}
	insert:
	{
		"origin" "-6486.93 12199.6 -14464"
	}
}

modify:
{
	match:
	{
		"targetname" "bone_dragon_maker_b1"
		"classname" "env_entity_maker"
	}
	delete:
	{
		"origin" "-6406.93 12119.6 -14320"
	}
	insert:
	{
		"origin" "-6406.93 12119.6 -14464"
	}
}


; 12/01/2026
; Fix zm cage not breaking after secret ending stage 2 MYCELAR boss. Cage is a func_detail instead of func_wall_toggle
add:
{
	"classname" "info_teleport_destination"
	"targetname" "trueend_s2_dest_fix_zm"
	"angles" "0 180 0"
	"origin" "-7408 12032 -9312"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s2_fix_tp_zm_mycellar"
	"target" "trueend_s2_dest_fix_zm"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-7151.5 12320.5 -8697.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s2_fix_tp_zm_mycellar"
	"target" "trueend_s2_dest_fix_zm"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-7663.5 12320.5 -8697.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s2_fix_tp_zm_mycellar"
	"target" "trueend_s2_dest_fix_zm"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-7151.5 11760.5 -8697.2"
}

add:
{
	"model" "*16"
	"classname" "trigger_teleport"
	"targetname" "t_s2_fix_tp_zm_mycellar"
	"target" "trueend_s2_dest_fix_zm"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-7663.5 11760.5 -8697.2"
}

modify:
{
	match:
	{
		"targetname" "drowned_warden_Hitbox"
		"classname" "func_physbox_multiplayer"
	}
	insert:
	{
		"OnBreak" "t_s2_fix_tp_zm_mycellarEnable121"
	}
}

; Fix chest and mimic system not spawning on secret ending stage 2
modify:
{
	match:
	{
		"targetname" "trueend_s2_start_relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "t_s2_case_chestKill41"
		"OnTrigger" "t_s2_case_mimic_chestKill41"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_once_start"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "t_s2_case_chestKill61"
		"OnStartTouch" "t_s2_case_mimic_chestKill61"
	}
}

; Change filter_activor on disable bhop before the cave on secret ending stage 1 to zombies only
modify:
{
	match:
	{
		"targetname" "t_s1_disablebhop"
		"classname" "trigger_once"
	}
	insert:
	{
		"filtername" "filter_zombies"
	}
}

; Change damage on eidolon phase 1 attack
modify:
{
	match:
	{
		"targetname" "skeleton_guardian_bump_t"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"damage" "40"
	}
	insert:
	{
		"damage" "90"
	}
}

; Modify health of the ice spawned by ice bow so zombies can destroy it faster
modify:
{
	match:
	{
		"targetname" "xom_crystal_break"
		"classname" "func_breakable"
	}
	delete:
	{
		"health" "400"
	}
	insert:
	{
		"health" "300"
	}
}

; Slightly move in front the teleport_destination of zombies after Gundyr die
modify:
{
	match:
	{
		"targetname" "true_s1_dest_after_bossroom_zm"
		"classname" "info_teleport_destination"
	}
	delete:
	{
		"origin" "1900 -4032 -10405.3"
	}
	insert:
	{
		"origin" "2704 -4032 -10405.3"
	}
}

; Fix some of the chest and mimic angles again
modify:
{
	match:
	{
		"targetname" "t_s1_chest_spawner05"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 270 0"
	}
	insert:
	{
		"angles" "0 90 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_mimic_spawner02"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 0 0"
	}
	insert:
	{
		"angles" "0 180 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_mimic_spawner02"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 0 0"
	}
	insert:
	{
		"angles" "0 180 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_chest_item_location2"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 180 0"
	}
	insert:
	{
		"angles" "0 0 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_mimic_spawner05"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 270 0"
	}
	insert:
	{
		"angles" "0 90 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_chest_item_location8"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 135 0"
	}
	insert:
	{
		"angles" "0 315 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_mimic_spawner01"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 333 0"
	}
	insert:
	{
		"angles" "0 150 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_chest_item_location1"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 323 0"
	}
	insert:
	{
		"angles" "0 150 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_mimic_spawner04"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 322 0"
	}
	insert:
	{
		"angles" "0 152 0"
	}
}

modify:
{
	match:
	{
		"targetname" "t_s2_mimic_spawner06"
		"classname" "logic_relay"
	}
	delete:
	{
		"angles" "0 90 0"
	}
	insert:
	{
		"angles" "0 270 0"
	}
}

; Change beast health
modify:
{
	match:
	{
		"targetname" "beast_Hitbox"
		"classname" "func_physbox"
	}
	delete:
	{
		"health" "2000"
	}
	insert:
	{
		"health" "2800"
	}
}

; Add a beast npc before exiting lake of blood
add:
{
    "classname" "logic_relay"
    "targetname" "s2_beast_extra_lob"
	"spawnflags" "0"
	"angles" "0 270 0"
	"origin" "8992 2624 -11096"
	"OnTrigger" "maker_beastForceSpawnAtEntityOrigin!caller01"
	"OnTrigger" "!selfKill41"

}

modify:
{
	match:
	{
		"targetname" "s2_plate_lake4"
		"classname" "func_door"
	}
	insert:
	{
		"OnFullyOpen" "s2_beast_extra_lobTrigger01"
	}
}

; Fix teleport on zombies not enabled on dragons boss
modify:
{
	match:
	{
		"targetname" "vx_relay_ts2_enable_secret_ending"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "t_s2_tp_05Enable91"
	}
}
