;---------------------------------------------------------------
;Stripper by Lishang:http://steamcommunity.com/id/FFXIV_Lishang/ and xen:http://steamcommunity.com/id/_xen/
;---------------------------------------------------------------
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "290378"
	}
	delete:
	{
		"OnMapSpawn" "ffxiv_buyzone,Kill,,30,-1"
	}
	insert:
	{
		"OnMapSpawn" "Server,Command,say < Map fixed >,5,1"
		"OnMapSpawn" "TP_Spawn,AddOutput,landmark  ,20,1"
		"OnMapSpawn" "Server,Command,sv_enablebunnyhopping 1,0,1"
	}
}

;--------------------------------------------------------------------------------------------------------------------------
;Fix Game Text (GFLClan) (Level_Text Channel : 1) (Boss_Text Channel : 2) (Music_Text & Item_Text & FFXIV_Text Channel : 5)
;--------------------------------------------------------------------------------------------------------------------------
modify:
{
	match:
	{
		"targetname" "FFXIV_Boss_Text"
		"classname" "game_text"
	}
	replace:
	{
		"y" ".825"
		"channel" "3"
	}
}

modify:
{
	match:
	{
		"classname" "game_text"
		"x" ".015"
		"y" ".38"
		"channel" "5"
	}
	replace:
	{
		"y" ".4"
		"channel" "4"
	}
}

;----------------------------------------
;Modify castle and final bahamut hp
;Old values:
;
;Castle bahamut: 200
;Final bahamut: 80
;----------------------------------------

modify:
{
	match:
	{
		"classname" "logic_branch"
		"targetname" "Bahamut_HP_Add_Branch"
		"origin" "-8248 -10600 -1528"
		"hammerid" "3661446"
	}
	replace:
	{
		"OnFalse" "Castle_Bahamut_HP_Counter,Add,150,0,-1"
		"OnTrue" "Final_Bahamut_HP_Counter,Add,60,0,-1"
	}
}

;--------------------------------
;Modify final seymour and odin hp
;--------------------------------

modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"targetname" "Savage_Boss_HP_Add"
		"origin" "-4968 10080 1576"
		"model" "*125"
		"hammerid" "2408939"
	}
	delete:
	{
		"OnStartTouch" "Sanctuary_Keeper_HP_Counter,Add,190,0,-1"
		"OnStartTouch" "Odin_HP_Counter,Add,100,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Sanctuary_Keeper_HP_Counter,Add,180,0,-1"
		"OnStartTouch" "Odin_HP_Counter,Add,90,0,-1"
	}
}

;------------------------
;Modify ultima weapon's hp
;------------------------

modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"targetname" "Ultima_Weapon_HP_Add"
		"origin" "-2292 9664 1728"
		"model" "*271"
		"hammerid" "977195"
	}
	delete:
	{
		"OnStartTouch" "Ultima_Weapon_HP_Counter,Add,1000,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Ultima_Weapon_HP_Counter,Add,900,0,-1"
	}
}

;--------------------------
; *Hopefully* fix lalafell
;--------------------------

modify:
{
	match:
	{
		"classname" "weapon_knife"
		"targetname" "Item_LalaFell_Weapon"
		"origin" "6528 -9408 -5115"
		"hammerid" "3980440"
	}
	delete:
	{
		"OnUser2" "!self,Kill,,0.01,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"targetname" "Item_LalaFell_Trigger"
		"origin" "6524 -9408 -5116"
		"model" "*20"
		"hammerid" "3980771"
	}
	delete:
	{
		"OnTrigger" "!self,Disable,,0,1"
		"OnTrigger" "Item_LalaFell_Hurt,FireUser1,,0,1"
		"OnTrigger" "!self,Kill,,0.03,1"
	}
	insert:
	{
		"OnTrigger" "Item_LalaFell_Hurt,FireUser1,,0.01,1"
	}
}

;-----------------------------------------------------------------------
;Don't enable the wall in open area so zombies don't get stuck on savage
;-----------------------------------------------------------------------

modify:
{
	match:
	{
		"classname" "logic_case"
		"targetname" "Button1_Case"
		"origin" "3512 264 250"
		"hammerid" "1905110"
	}
	delete:
	{
		"OnCase03" "Star_5_Wall,FireUser1,,15,1"
	}
}

;-------------------------------------------------------------------
;Set the entwatch cooldown for heal, blizzard, thunder for the 4 stages
;-------------------------------------------------------------------

modify:
{
	match:
	{
		"classname" "point_template"
		"targetname" "Stage_Template_Normal"
		"origin" "-8248 -10520 -1528"
		"hammerid" "1829685"
	}
	insert:
	{
		"OnEntitySpawned" "server,Command,sm_setcooldown 2154090 50,0,1"
		"OnEntitySpawned" "server,Command,sm_setcooldown 2154149 50,0,1"
		"OnEntitySpawned" "server,Command,sm_setcooldown 1722238 50,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "point_template"
		"targetname" "Stage_Template_Hard"
		"origin" "-8264 -10520 -1528"
		"hammerid" "1829688"
	}
	insert:
	{
		"OnEntitySpawned" "server,Command,sm_setcooldown 1722238 55,0,1"
		"OnEntitySpawned" "server,Command,sm_setcooldown 2154149 55,0,1"
		"OnEntitySpawned" "server,Command,sm_setcooldown 2154090 55,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "point_template"
		"targetname" "Stage_Template_Savage"
		"origin" "-8280 -10520 -1528"
		"hammerid" "1829691"
	}
	insert:
	{
		"OnEntitySpawned" "server,Command,sm_setcooldown 1722238 60,0,1"
		"OnEntitySpawned" "server,Command,sm_setcooldown 2154149 60,0,1"
		"OnEntitySpawned" "server,Command,sm_setcooldown 2154090 60,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "point_template"
		"targetname" "Stage_Template_Ultimate"
		"origin" "-8296 -10520 -1528"
		"hammerid" "1829694"
	}
	insert:
	{
		"OnEntitySpawned" "server,Command,sm_setcooldown 1722238 65,0,1"
		"OnEntitySpawned" "server,Command,sm_setcooldown 2154149 70,0,1"
		"OnEntitySpawned" "server,Command,sm_setcooldown 2154090 70,0,1"
	}
}


;--------------------------------------------------------
;Fix Item Knife (Weapon Name & Weapon Strip & Item Clear)
;--------------------------------------------------------
;Weapon Name
;-----------
modify:
{
	match:
	{
		"targetname" "Knife_Alteci_Weapon"
		"classname" "weapon_knife"
	}
	delete:
	{
		"OnUser1" "Knife_Alteci_Strip,Kill,,0,1"
	}
	insert:
	{
		"OnPlayerPickup" "!self,AddOutput,targetname Knife_Alteci_Knife,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Garuda_Weapon"
		"classname" "weapon_knife"
	}
	delete:
	{
		"OnUser1" "Knife_Garuda_Strip,Kill,,0,1"
	}
	insert:
	{
		"OnPlayerPickup" "!self,AddOutput,targetname Knife_Garuda_Knife,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Gravity_Weapon"
		"classname" "weapon_knife"
	}
	delete:
	{
		"OnUser1" "Knife_Gravity_Strip,Kill,,0,1"
	}
	insert:
	{
		"OnPlayerPickup" "!self,AddOutput,targetname Knife_Gravity_Weapon,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Heal_Weapon"
		"classname" "weapon_knife"
	}
	delete:
	{
		"OnUser1" "Knife_Heal_Strip,Kill,,0,1"
	}
	insert:
	{
		"OnPlayerPickup" "!self,AddOutput,targetname Knife_Heal_Weapon,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Ice_Weapon"
		"classname" "weapon_knife"
	}
	delete:
	{
		"OnUser1" "Knife_Ice_Strip,Kill,,0,1"
	}
	insert:
	{
		"OnPlayerPickup" "!self,AddOutput,targetname Knife_Ice_Weapon,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Malefic_Weapon"
		"classname" "weapon_knife"
	}
	delete:
	{
		"OnUser1" "Knife_Malefic_Strip,Kill,,0,1"
	}
	insert:
	{
		"OnPlayerPickup" "!self,AddOutput,targetname Knife_Malefic_Weapon,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Vyraal_Weapon"
		"classname" "weapon_knife"
	}
	delete:
	{
		"OnUser1" "Knife_Vyraal_Strip,Kill,,0,1"
	}
	insert:
	{
		"OnPlayerPickup" "!self,AddOutput,targetname Knife_Vyraal_Knife,0,1"
	}
}

;----------
;Item Clear
;----------
modify:
{
	match:
	{
		"targetname" "Knife_Alteci_Filter_Clear"
		"classname" "filter_activator_name"
	}
	delete:
	{
		"OnPass" "Knife_Alteci_UI,Kill,,0.01,1"
		"OnPass" "Knife_Alteci_Relay_*,Kill,,0.01,1"
		"OnPass" "!self,Kill,,0.02,1"
	}
	insert:
	{
		"OnPass" "Knife_Alteci_Knife,FireUser2,,0.01,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Garuda_Filter_Clear"
		"classname" "filter_activator_name"
	}
	delete:
	{
		"OnPass" "Knife_Garuda_UI,Kill,,0.01,1"
		"OnPass" "Knife_Garuda_Relay_*,Kill,,0.01,1"
		"OnPass" "!self,Kill,,0.02,1"
	}
	insert:
	{
		"OnPass" "Knife_Garuda_Knife,FireUser2,,0.01,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Gravity_Filter_Clear"
		"classname" "filter_activator_name"
	}
	insert:
	{
		"OnPass" "Knife_Gravity_Weapon,Kill,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Heal_Filter_Clear"
		"classname" "filter_activator_name"
	}
	insert:
	{
		"OnPass" "Knife_Heal_Weapon,Kill,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Ice_Filter_Clear"
		"classname" "filter_activator_name"
	}
	insert:
	{
		"OnPass" "Knife_Ice_Weapon,Kill,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Malefic_Filter_Clear"
		"classname" "filter_activator_name"
	}
	insert:
	{
		"OnPass" "Knife_Malefic_Weapon,Kill,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Knife_Vyraal_Filter_Clear"
		"classname" "filter_activator_name"
	}
	delete:
	{
		"OnPass" "Knife_Vyraal_Text,Kill,,0,1"
		"OnPass" "Knife_Vyraal_Attack_Animation_Case,Kill,,0,1"
		"OnPass" "Knife_Vyraal_Counter,Kill,,0,1"
		"OnPass" "Knife_Vyraal_Text_Case,Kill,,0,1"
		"OnPass" "Knife_Vyraal_Attack_Case,Kill,,0,1"
		"OnPass" "Knife_Vyraal_Filter*,Kill,,0.01,1"
	}
	insert:
	{
		"OnPass" "Knife_Vyraal_Knife,FireUser2,,0,1"
	}
}


;----------
;GFL setting
;----------

;-------------------------------------------------
;Disable bhop at the final stretch on ultimate...
;-------------------------------------------------

modify:
{
	match:
	{
		"targetname" "Ultimate_Trigger_Last"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "server,Command,sv_enablebunnyhopping 0,35,1"
	}
}
