;
;test123
; ++++++++++++++++++++++++EXTEND SPAWN TP TO PREVENT VENT SAFESPOT++++++++++++++++++++++++
;
add:
{
	"targetname" "spawn_hurt"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "2656 -420 88"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -208 -292 -72,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 208 292 72,0.1,1"
}
modify:
{
    match:
	{
		"classname" "logic_auto"
		"hammerid" "92596"
	}
	insert:
	{
		"OnMapSpawn" "spawn_hurt,FireUser1,,0,-1"
	}
}

;stripper by encap

;; fix afk teleport evading spots
 
add:
{
	"targetname" "spawn_hurt"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "1448 -62 248"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -294 -238.5 -72,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 294 238.5 72,0.1,1"
}
add:
{
	"model" "*19"
	"targetname" "elevator_hurt"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "1575 -1897 -166"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*11"
	"targetname" "elevator_hurt"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "1876 -1199 -41"
	"classname" "trigger_teleport"
}
 
;; door crush players (that closes before last vent hold)
 
modify:
{
	match:
	{
		"targetname" "glass_box_door_close"
		"classname" "func_door"
	}
	insert:
	{
		"dmg" "1000"
	}
}
 
;; fix (forgotten?) afk teleport
 
modify:
{
	match:
	{
		"targetname" "glass_box_lower"
		"classname" "func_door"
	}
	insert:
	{
		"OnFullyOpen" "afterele_hurt,Enable,,0,1"
	}
}
 
;; teleport zombies past vent hold
 
add:
{
	"origin" "4640 -651 90"
	"targetname" "tele_end2"
	"angles" "0 0 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "last_hurt"
	"target" "tele_end2"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "3411 -314 297"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1073.5 -602 -79,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1073.5 602 79,0.1,1"
}
add:
{
	"targetname" "last_hurt"
	"target" "tele_end2"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "4324 -659.5 136.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -208 -46.5 -77.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 208 46.5 77.5,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "92596"
	}
	insert:
	{
		"OnMapSpawn" "last_hurt,FireUser1,,0,-1"
	}
}
modify:
{
	match:
	{
		"origin" "5911 -381 105"
		"classname" "trigger_once"
		"hammerid" "711100"
	}
	insert:
	{
		"OnTrigger" "commands,Command,say >- Zombie spawn advancing in 10 seconds -<,10,1"
		"OnTrigger" "last_hurt,Enable,,20,1"
	}
}
modify:
{
	match:
	{
		"origin" "5337 -1219 105"
		"classname" "trigger_once"
		"hammerid" "1092981"
	}
	insert:
	{
		"OnTrigger" "commands,Command,say >- Zombie spawn advancing in 10 seconds -<,35,1"
		"OnTrigger" "last_hurt,Enable,,45,1"
	}
}

;; don't nuke zombies outside

filter:
{
	"origin" "6016.5 -536.5 216"
	"classname" "trigger_hurt"
	"hammerid" "1131394"
}

add:
{
	"origin" "6226 -758 96"
	"StartDisabled" "0"
	"spawnflags" "0"
	"solid" "6"
	"skin" "0"
	"SetBodyGroup" "0"
	"rendermode" "0"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"RandomAnimation" "0"
	"pressuredelay" "0"
	"PerformanceMode" "0"
	"model" "models/props/de_prodigy/prodcratesa.mdl"
	"mindxlevel" "0"
	"MinAnimTime" "5"
	"maxdxlevel" "0"
	"MaxAnimTime" "10"
	"fadescale" "1"
	"fademindist" "-1"
	"fademaxdist" "0"
	"ExplodeRadius" "0"
	"ExplodeDamage" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"angles" "0 0 0"
	"classname" "prop_dynamic"
}

modify:
{
	match:
	{
		"targetname" "end_nuke"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"origin" "1786.5 -517.5 188.5"
	}
}

;; players can't block doors

modify:
{
	match:
	{
		"targetname" "end_doors"
		"classname" "func_door_rotating"
	}
	replace:
	{
		"dmg" "1000"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "sawsounds/saw theme song [extended version]2.wav"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#sawsounds/saw theme song [extended version]2.wav"
	}
}

;; fix stuck spot

filter:
{
	"origin" "2807.3 -1492.72 -97.7203"
	"classname" "prop_dynamic_override"
	"hammerid" "321296"
}