;----------------------------
; Fixes the gravity trigger on spawn
;----------------------------
modify:
{
    match:
    {
        "classname" "logic_auto"
        "hammerid" "92257"
    }  
    delete:
    {
        "OnMapSpawn" "Spawn_Gravity,Disable,,1,-1"
    }
    insert:
    {
        "OnMapSpawn" "player,AddOutput,gravity 1,0.5,-1"
    }
}

;----------------------------
; Fixes the trigger on Bhop02 Level
;----------------------------
modify:
{
    match:
    {
        "classname" "trigger_teleport"
        "hammerid" "195266"
    }  
	delete:
	{
		"filtername" "filter_t"
	}
}

modify:
{
    match:
    {
        "classname" "trigger_teleport"
        "hammerid" "195252"
    }  
	delete:
	{
		"filtername" "filter_t"
	}
}
;----------------------------
; Fixes the trigger on Bhop01 Level
;----------------------------
modify:
{
    match:
    {
        "classname" "trigger_teleport"
        "hammerid" "195232"
    }  
	delete:
	{
		"filtername" "filter_t"
	}
}
;----------------------------
; Fixes the trigger on Bhop03 Level
;----------------------------
modify:
{
    match:
    {
        "classname" "trigger_teleport"
        "hammerid" "221498"
    }  
	delete:
	{
		"filtername" "filter_t"
	}
}

;----------------------------
; Kills the trigger on Bhop03 Level
;----------------------------
modify:
{
    match:
    {
        "classname" "trigger_hurt"
        "hammerid" "221493"
    }  
	replace:
	{
		"StartDisabled" "1"
	}
}
;----------------------------
; Kills the trigger on Bhop01 Level
;----------------------------
modify:
{
    match:
    {
        "classname" "trigger_hurt"
        "hammerid" "195222"
    }  
	replace:
	{
		"StartDisabled" "1"
	}
}

;----------------------------
; Kills the trigger on Bhop02 Level
;----------------------------
modify:
{
    match:
    {
        "classname" "trigger_hurt"
        "hammerid" "195269"
    }  
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
    match:
    {
        "classname" "trigger_hurt"
        "hammerid" "195255"
    }  
	replace:
	{
		"StartDisabled" "1"
	}
}

;----------------------------
; Fixes the gravity on Bhop02 Level
;----------------------------
modify:
{
    match:
    {
        "classname" "trigger_gravity"
        "hammerid" "210519"
    }  
	replace:
	{
		"gravity" "0.4"
	}
}

;----------------------------
; Closes the doors to surf01 faster
;----------------------------
modify:
{
    match:
    {
        "classname" "func_door"
        "targetname" "2Surf01_Door01"
    }  
	delete:
	{
		"OnFullyClosed" "AFK_Tele_01,Enable,,0,-1"
		"OnFullyOpen" "!self,Close,,30,-1"
	}
	insert:
	{
	        "OnFullyClosed" "AFK_Tele_01,Enable,,0,-1"
		"OnFullyOpen" "!self,Close,,5,-1"
	}
}
modify:
{
    match:
    {
        "classname" "func_door"
        "targetname" "2Surf01_Door02"
    }  
	delete:
	{
		"OnFullyOpen" "!self,Close,,30,-1"
	}
	insert:
	{
	        "OnFullyOpen" "!self,Close,,5,-1"
	}
}

;----------------------------
; Increases the delay for the zm to teleport on surf02
;----------------------------
modify:
{
    match:
    {
        "classname" "trigger_push"
        "hammerid" "170084"
    }  
	delete:
	{
	"OnStartTouch" "2Surf02_Trigger_ZM,Enable,,80,1"
	"OnStartTouch" "cmd,Command,say ** Zombies are coming! **,80,1"
	}
	insert:
	{
	        "OnStartTouch" "2Surf02_Trigger_ZM,Enable,,95,1"
		"OnStartTouch" "cmd,Command,say ** Zombies are coming! **,95,1"
	}
}


;----------------------------
; Decreases spider boss hp
;----------------------------
modify:
{
    match:
    {
        "classname" "trigger_hurt"
        targetname" "Spider_Hurt"
    }  
	replace:
	{
		"damage" "100"
		"damagecap" "100"
	}
}

;----------------------------
; Decreases timer on last door after spider boss fight
;----------------------------
modify:
{
    match:
    {
        "classname" "func_door"
        "targetname" "Shpinx_Gate_Ending01"
	"hammerid" "391843"
    }  
	delete:
	{
		"OnFullyOpen" "Sphinx_Ending_Tele2Laser,Enable,,60,-1"
		"OnFullyOpen" "cmd,Command,say ** Teleporter getting activated in 60(s) **,0,-1"
		"OnFullyOpen" "Tele_Particle,Start,,60,-1"
		"OnFullyOpen" "cmd,Command,say ** GO! GO! GO! **,60,-1"
		"OnFullyOpen" "Ending_Music_Sphinx01,StopSound,,50,-1"
		"OnFullyOpen" "Sphinx_Ending_Giant_Rotor,SetSpeed,20,58,-1"
		"OnFullyOpen" "Sphinx_Ending_Giant_Rotor,Start,,59,-1"
		"OnFullyOpen" "Sound_Teleporter,PlaySound,,60,-1"
		"OnFullyOpen" "Ending_Music_Sphinx02,PlaySound,,40,-1"
		"OnFullyOpen" "AFK_Tele03_Sphinx_Ending,Enable,,75,-1"
	}
	insert:
	{
	        "OnFullyOpen" "Sphinx_Ending_Tele2Laser,Enable,,35,-1"
		"OnFullyOpen" "cmd,Command,say ** Teleporter getting activated in 35(s) **,0,-1"
		"OnFullyOpen" "Tele_Particle,Start,,35,-1"
		"OnFullyOpen" "cmd,Command,say ** GO! GO! GO! **,35,-1"
		"OnFullyOpen" "Ending_Music_Sphinx01,StopSound,,25,-1"
		"OnFullyOpen" "Sphinx_Ending_Giant_Rotor,SetSpeed,20,33,-1"
		"OnFullyOpen" "Sphinx_Ending_Giant_Rotor,Start,,34,-1"
		"OnFullyOpen" "Sound_Teleporter,PlaySound,,35,-1"
		"OnFullyOpen" "Ending_Music_Sphinx02,PlaySound,,25,-1"
		"OnFullyOpen" "AFK_Tele03_Sphinx_Ending,Enable,,45,-1"
	}
}

;----------------------------
; Decreases timer of door after lasers
;----------------------------
modify:
{
    match:
    {
        "classname" "func_door"
        "targetname" "Shpinx_Gate_Ending_Final"
	"hammerid" "438331"
    }  
	delete:
	{
		"OnFullyOpen" "cmd,Command,say ** Sphinx Door is closing in 25(s) **,5,-1"
		"OnFullyOpen" "cmd,Command,say ** 10(s) Remaining**,20,-1"
		"OnFullyOpen" "!self,Close,,30,-1"
		
	}
	insert:
	{
	      	"OnFullyOpen" "cmd,Command,say ** Sphinx Door is closing in 15(s) **,0,-1"
		"OnFullyOpen" "cmd,Command,say ** 5(s) Remaining**,10,-1"
		"OnFullyOpen" "!self,Close,,15,-1"

	}
}


