;-----------------------------------------------
;***********************************************
;********** STRIPPER BY KLIXUS *****************
;***********************************************
;-----------------------------------------------

;Extends AFK TP to cover boat on stage 4
add:
{
	"model" "*161"
	"wait" "1"
	"targetname" "AFK_teleport1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-4311.03 -4401.52 -331.52"
	"classname" "trigger_multiple"
	"hammerid" "631004"
	"OnStartTouch" "!activator,AddOutput,origin 8313 1010 7741,0,-1"
}

;Blocks jumpable prop for EX 1 lasers
add:
{
	"model" "*151"
	"targetname" "EX1_Prop_Block"
	"origin" "1585.4 8173.39 7542"
	"spawnobject" "0"
	"spawnflags" "1"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"propdata" "0"
	"pressuredelay" "0"
	"physdamagescale" "1.0"
	"PerformanceMode" "0"
	"nodamageforces" "0"
	"minhealthdmg" "0"
	"material" "2"
	"health" "0"
	"gibdir" "0 0 0"
	"explosion" "0"
	"ExplodeRadius" "0"
	"explodemagnitude" "0"
	"ExplodeDamage" "0"
	"disableshadows" "0"
	"disablereceiveshadows" "0"
	"classname" "func_breakable"
}

;Add wall to prevent boss glitch in stage 2/4
add:
{
	"model" "*171"
	"targetname" "boss_glitch_block"
	"classname" "func_wall_toggle"
	"spawnflags" "0"
	"origin" "-11190.3 -13827.4 5286.5"
}
modify:
{
	match:
	{
		"targetname" "Edge_Health"
		"classname" "math_counter"
		"hammerid" "5854419"
	}
	insert:
	{
		"OnHitMin" "boss_glitch_block,Kill,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "counter_triface_3"
		"classname" "math_counter"
		"hammerid" "4109273"
	}
	insert:
	{
		"OnHitMin" "boss_glitch_block,Kill,,0,1"
	}
}

;Moltards addition

;----------------------------------------
;STAGE2 EXTREME: FIX SEPHIROTH SAFE AREA
;----------------------------------------

modify:
{
    match:
    {
        "targetname" "button_ex"
        "classname" "func_button"
        "hammerid" "5736842"
    }
    insert:
    {
        "OnPressed" "Glitch_Sephi_Fix,Enable,,10,1"
    }
}

add:
{
    "model" "*158"
    "targetname" "Glitch_Sephi_Fix"
    "StartDisabled" "1"
    "spawnflags" "1"
    "origin" "-11187 -13994 5965"
    "filtername" "filter_ct"
    "nodmgforce" "0"
    "damagetype" "0"
    "damagemodel" "0"
    "damagecap" "20"
    "damage" "100000"
    "classname" "trigger_hurt"
}
add:
{
    "model" "*158"
    "targetname" "Glitch_Sephi_Fix"
    "StartDisabled" "1"
    "spawnflags" "1"
    "origin" "-9171 -14038 5325"
    "filtername" "filter_ct"
    "nodmgforce" "0"
    "damagetype" "0"
    "damagemodel" "0"
    "damagecap" "20"
    "damage" "100000"
    "classname" "trigger_hurt"
}
add:
{
    "model" "*158"
    "targetname" "Glitch_Sephi_Fix"
    "StartDisabled" "1"
    "spawnflags" "1"
    "origin" "-6963 -14038 5773"
    "filtername" "filter_ct"
    "nodmgforce" "0"
    "damagetype" "0"
    "damagemodel" "0"
    "damagecap" "20"
    "damage" "100000"
    "classname" "trigger_hurt"
}

;Enable bhop
modify:
{
	match:
	{
		"classname"		"logic_auto"
	}
	delete:
	{
		"OnNewGame"		"cmd,Command,sv_enablebunnyhopping 0,0,1"
	}
	insert:
	{
		"OnNewGame"		"cmd,Command,sv_enablebunnyhopping 1,0,1"
	}
}
