modify:
{
    match:
    {
        "targetname" "WheelDoor"
    }
    delete:
    {
        "OnFullyOpen" "YouShallNotPass,Kill,,3,1"
    }
    insert:
    {
        "OnFullyOpen" "YouShallNotPass,Kill,,10,1"
    }
}
filter:
{
    "classname" "trigger_soundscape"
}
filter:
{
    "classname" "env_soundscape_triggerable"
}

;Fix glitch tp at first door
modify:
{
	match:
	{
		"classname"			"trigger_teleport"
		"targetname"		"SpawnTeleport"
		"origin"			"-2688 -1740 -4996"
	}
	replace:
	{
		"origin"			"-2688 -1727 -4996"
	}
}

;fix tp safespot inside the house at the door

add:
{
	"classname" "trigger_teleport"
	"targetname" "ToRadioTeleport"
	"target" "RadioTeleport"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-2528 -768 -5024"
	"OnUser1" "!self,AddOutput,solid 2,0.5,1"
	"OnUser1" "!self,AddOutput,mins -1024 -64 -64,1,1"
	"OnUser1" "!self,AddOutput,maxs 1024 64 64,1,1"
}
modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "ToRadioTeleport,FireUser1,,0,-1"
	}
}

;fix cereal box safespot by adding props

add:
{
	"classname" "prop_dynamic_override"
	"angles" "0 86 0"
	"DisableBoneFollowers" "0"
	"disablereceiveshadows" "0"
	"disableshadows" "0"
	"ExplodeDamage" "0"
	"ExplodeRadius" "0"
	"fademaxdist" "0"
	"fademindist" "-1"
	"fadescale" "1"
	"health" "0"
	"MaxAnimTime" "10"
	"maxdxlevel" "0"
	"MinAnimTime" "5"
	"mindxlevel" "0"
	"model" "models/props/cs_office/sofa.mdl"
	"modelscale" "1.0"
	"PerformanceMode" "0"
	"pressuredelay" "0"
	"RandomAnimation" "0"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "10"
	"SetBodyGroup" "0"
	"skin" "0"
	"solid" "6"
	"spawnflags" "0"
	"targetname" "SofaToPreventSafeSpot"
	"origin" "-1037.7 7655.5 -4455.98"

}
add:
{
	"id" "559520"
	"classname" "prop_dynamic_override"
	"angles" "0 86 0"
	"DisableBoneFollowers" "0"
	"disablereceiveshadows" "0"
	"disableshadows" "0"
	"ExplodeDamage" "0"
	"ExplodeRadius" "0"
	"fademaxdist" "0"
	"fademindist" "-1"
	"fadescale" "1"
	"health" "0"
	"MaxAnimTime" "10"
	"maxdxlevel" "0"
	"MinAnimTime" "5"
	"mindxlevel" "0"
	"model" "models/props/cs_office/sofa.mdl"
	"modelscale" "1.0"
	"PerformanceMode" "0"
	"pressuredelay" "0"
	"RandomAnimation" "0"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "10"
	"SetBodyGroup" "0"
	"skin" "0"
	"solid" "6"
	"spawnflags" "0"
	"targetname" "SofaToPreventSafeSpot2"
	"origin" "-951.94 7649.37 -4455.98"
}

; STRIPPER BY ENCAP
 
;; fix afk teleport evading spots
 
add:
{
	"targetname" "ToRadioTeleport"
	"target" "RadioTeleport"
	"StartDisabled" "1"
	"spawnflags" "4097"
	"origin" "-2848 -1471 -4655"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1248 -833 -448,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1248 833 448,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "163488"
	}
	insert:
	{
		"OnMapSpawn" "ToRadioTeleport,FireUser1,,0,-1"
	}
}

