modify:
{
	match:
	{
		"origin" "8008 -776 265"
		"targetname" "Levels_Case"
		"classname" "logic_case"
		"hammerid" "2752503"
	}
	delete:
	{
		"OnCase01" "worldspawn,AddOutput,OnUser1 Levels_Counter:SetValue:2:0:1,45,-1"
		"OnCase01" "worldspawn,FireUser1,,29.95,-1"
	}
	insert:
	{
		"OnCase01" "worldspawn,AddOutput,OnUser1 Levels_Counter:SetValue:2:0:1,1,-1"
	}
}

modify:
{
	match:
	{
		"classname" "point_servercommand"
	}
	delete:
	{
		"OnUser1" "!self,Command,sv_enablebunnyhopping 0,0,1"
	}
	insert:
	{
		"OnUser1" "!self,Command,sv_enablebunnyhopping 1,0,1"
	}
}

; Disable Bhop Before Lazers Rage Mode
modify:
{
    match:
    {
        "targetname" "Shinra_Nade_Equip"
        "classname" "trigger_push"
    }
    insert:
    {
        "OnStartTouch" "cmd,Command,sv_enablebunnyhopping 0,0,1"
    }
}

; Enable Bhop At Lazers Rage Mode
modify:
{
    match:
    {
        "targetname" "Genesis_HP_Push"
        "classname" "trigger_push"
    }
    insert:
    {
        "OnStartTouch" "cmd,Command,sv_enablebunnyhopping 1,0,1"
    }
}

; Add beams to show a trigger's bounds in cave descent

add:
{
	"origin" "-4720 -1401 1336"
	"TouchType" "0"
	"TextureScroll" "35"
	"texture" "sprites/laserbeam.spr"
	"targetname" "Gi_Cave_TP_beam1"
	"StrikeTime" "1"
	"spawnflags" "1"
	"renderfx" "0"
	"rendercolor" "0 192 0"
	"renderamt" "200"
	"Radius" "256"
	"NoiseAmplitude" "0"
	"LightningStart" "Gi_Cave_TP_beam1"
	"LightningEnd" "Gi_Cave_TP_beam2"
	"life" "0"
	"HDRColorScale" "1.0"
	"framestart" "0"
	"framerate" "0"
	"decalname" "Bigshot"
	"damage" "0"
	"BoltWidth" "2"
	"classname" "env_beam"
}
add:
{
	"origin" "-4720 -1057 1336"
	"TouchType" "0"
	"TextureScroll" "35"
	"texture" "sprites/laserbeam.spr"
	"targetname" "Gi_Cave_TP_beam2"
	"StrikeTime" "1"
	"spawnflags" "1"
	"renderfx" "0"
	"rendercolor" "0 192 0"
	"renderamt" "200"
	"Radius" "256"
	"NoiseAmplitude" "0"
	"LightningStart" "Gi_Cave_TP_beam2"
	"LightningEnd" "Gi_Cave_TP_beam3"
	"life" "0"
	"HDRColorScale" "1.0"
	"framestart" "0"
	"framerate" "0"
	"decalname" "Bigshot"
	"damage" "0"
	"BoltWidth" "2"
	"classname" "env_beam"
}
add:
{
	"origin" "-4786 -1057 1336"
	"TouchType" "0"
	"TextureScroll" "35"
	"texture" "sprites/laserbeam.spr"
	"targetname" "Gi_Cave_TP_beam3"
	"StrikeTime" "1"
	"spawnflags" "1"
	"renderfx" "0"
	"rendercolor" "0 192 0"
	"renderamt" "200"
	"Radius" "256"
	"NoiseAmplitude" "0"
	"LightningStart" "Gi_Cave_TP_beam3"
	"LightningEnd" "Gi_Cave_TP_beam4"
	"life" "0"
	"HDRColorScale" "1.0"
	"framestart" "0"
	"framerate" "0"
	"decalname" "Bigshot"
	"damage" "0"
	"BoltWidth" "2"
	"classname" "env_beam"
}
add:
{
	"origin" "-4786 -804 1336"
	"targetname" "Gi_Cave_TP_beam4"
	"spawnflags" "0"
	"angles" "0 0 0"
	"classname" "info_teleport_destination"
}

; Disable Bhop Before Last Boss Hard & Extreme Modes
modify:
{
	match:
	{
		"targetname" "lvl2_Gi_Nattak_Push"
		"classname" "trigger_push"
	}
	insert:
	{
		"OnStartTouch" "cmd,Command,sv_enablebunnyhopping 0,0,1"
	}
}


;----------------------------------------------------------------------------
; Makes a trigger_teleport so people cannot glitch through wall displacement
;----------------------------------------------------------------------------
add:
{
    "model" "*80"
    "targetname" "displacement_fix_1"
    "target" "Admin_Room_Back_TD"
    "StartDisabled" "0"
    "spawnflags" "1"
    "origin" "2491.8 -756 192.24"
    "classname" "trigger_teleport"
}
;-----------------------------------------------
; Fixes unreachable spot on zm mode / all modes
;-----------------------------------------------
modify:
{
    match:
    {
        "classname" "func_rotating"
        "origin" "2186.96 -1721.24 419.45"
    }
    replace:
    {
        "spawnflags" "69"
    }
}

