;ze_ffxiv_wanderers_palace_v6css -- Stripper config needed to fix issues
;Last updated August 29th, 2020

;Enables bhop at the start of every round since Stage 3 disables and re-enables it at times

modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	insert:
	{
		"OnNewGame" "Server,FireUser4,,0,-1"
	}
}

;Edits a console message that I forgot to edit after the boss on Stage 1

modify:
{
	match:
	{
		"targetname" "KOH_Hitbox"
		"classname" "func_physbox_multiplayer"
	}
	delete:
	{
		"OnBreak" "Server,Command,say < Boss has been defeated >,0,1"
	}
	insert:
	{
		"OnBreak" "Server,Command,say < The Keeper of Halidom has been defeated >,0,1"
	}
}

;Adds extra HP to Kain Highwind in Stage 2 as HP is too little and boss dies too fast

modify:
{
	match:
	{
		"targetname" "Kain_Highwind_HP_Add"
		"filtername" "Filter_Team_Human"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Boss_HP_Counter,Add,150,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Boss_HP_Counter,Add,300,0,-1"
	}
}

;Adds an extra tp on Ultimate stage so that if you fall as a zombie you get teleported

add:
{
	"origin" "-12668 11892 876"
	"targetname" "TD_Castle_Extra"
	"angles" "0 0 0"
	"classname" "info_teleport_destination"
}

add:
{
	"model" "*199"
	"UseLandmarkAngles" "1"
	"targetname" "TP_Castle_Fallen_Extra"
	"target" "TD_Castle_Extra"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-11136 11888 -800"
	"CheckDestIfClearForPlayer" "0"
	"classname" "trigger_teleport"
	"OnStartTouch" "Filter_Team_Zombie,TestActivator,,0,-1"
}

;Adds a new hurt trigger in the middle of the bridge during lazers to discourage jumping all of them

add:
{
	"model" "*160"
	"targetname" "Garland_Laser_Hurt_Middle"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-13752 -68 -315"
	"nodmgforce" "0"
	"filtername" "Filter_Team_Human"
	"damagetype" "1"
	"damagemodel" "0"
	"damagecap" "20"
	"damage" "240"
	"classname" "trigger_hurt"
	
	"OnUser2" "!self,Enable,,0,-1"
	
	"OnUser3" "!self,Disable,,0,-1"
}

add:
{
	"origin" "-12200 -260 -346"
	"targetname" "Garland_Laser_Hurt_Middle_Particle"
	"start_active" "0"
	"effect_name" "custom_particle_056"
	"cpoint7_parent" "0"
	"cpoint6_parent" "0"
	"cpoint5_parent" "0"
	"cpoint4_parent" "0"
	"cpoint3_parent" "0"
	"cpoint2_parent" "0"
	"cpoint1_parent" "0"
	"angles" "0 0 0"
	"classname" "info_particle_system"
}

add:
{
	"origin" "-12200 -330 -346"
	"targetname" "Garland_Laser_Hurt_Middle_Particle"
	"start_active" "0"
	"effect_name" "custom_particle_056"
	"cpoint7_parent" "0"
	"cpoint6_parent" "0"
	"cpoint5_parent" "0"
	"cpoint4_parent" "0"
	"cpoint3_parent" "0"
	"cpoint2_parent" "0"
	"cpoint1_parent" "0"
	"angles" "0 0 0"
	"classname" "info_particle_system"
}

modify:
{
	match:
	{
		"targetname" "Trigger_Ultimate"
		"origin" "-11016 -64 56"
		"filtername" "Filter_Team_Human"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "Garland_Laser_Hurt_Middle,FireUser2,,6,1"
		"OnStartTouch" "Garland_Laser_Hurt_Middle_Particle,Start,,6,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Garland_Hitbox"
		"damagefilter" "Filter_Nada"
		"classname" "func_physbox_multiplayer"
	}
	insert:
	{
		"OnBreak" "Garland_Laser_Hurt_Middle,FireUser3,,0,1"
		"OnBreak" "Garland_Laser_Hurt_Middle_Particle,Stop,,0,1"
	}
}

;Reduces the height of some lazers to make it so that you can't stand up during them

modify:
{
	match:
	{
		"targetname" "Garland_Laser_Case"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase03" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -260,0,-1"
		"OnCase04" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -275,0,-1"
		"OnCase04" "Garland_Laser_Maker,AddOutput,angles 0 0 7,0,-1"
		"OnCase05" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -275,0,-1"
		"OnCase05" "Garland_Laser_Maker,AddOutput,angles 0 0 -7,0,-1"
		"OnCase06" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -260,0,-1"
		"OnCase06" "Garland_Laser_Maker,AddOutput,angles 0 0 7,0,-1"
		"OnCase07" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -260,0,-1"
		"OnCase07" "Garland_Laser_Maker,AddOutput,angles 0 0 -7,0,-1"
	}
	insert:
	{
		"OnCase03" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -262,0,-1"
		"OnCase04" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -273,0,-1"
		"OnCase04" "Garland_Laser_Maker,AddOutput,angles 0 0 7,0,-1"
		"OnCase05" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -273,0,-1"
		"OnCase05" "Garland_Laser_Maker,AddOutput,angles 0 0 -7,0,-1"
		"OnCase06" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -273,0,-1"
		"OnCase06" "Garland_Laser_Maker,AddOutput,angles 0 0 7,0,-1"
		"OnCase07" "Garland_Laser_Maker,AddOutput,origin -13132 -56 -273,0,-1"
		"OnCase07" "Garland_Laser_Maker,AddOutput,angles 0 0 -7,0,-1"
	}
}