;--------------------------------------------------------
;FIX ZOMBIES USING ZTELE TO COME BACK TO SPAWN AT THE END
;--------------------------------------------------------

modify:
{
	match:
	{
		"classname"	"trigger_once"
		"targetname" "hold9Trigger"
	}
	insert:
	{
		"OnStartTouch" "ServerCommand,Command,zr_ztele_zombie 0,45,1"
	}
}

modify:
{
	match:
	{
		"classname"	"logic_case"
		"targetname" "LevelOutput"
	}
	insert:
	{
		"OnCase01" "ServerCommand,Command,zr_ztele_zombie 1,0,1"
		"OnCase02" "ServerCommand,Command,zr_ztele_zombie 1,0,1"
	}
}

;------------------
;FIX NUKE SAFESPOT
;------------------

add:
{
	"targetname" "NukeTrigger"
	"damage" "99999"
	"damagecap" "10000"
	"damagemodel" "0"
	"damagetype" "1"
	"nodmgforce" "0"
	"StartDisabled" "1"
	"origin" "704 1184 864"
	"spawnflags" "4097"
	"classname" "trigger_hurt"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -4544 -2208 -864,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 4544 2208 864,0.1,1"
}
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "491491"
	}
	insert:
	{
		"OnMapSpawn" "NukeTrigger,FireUser1,,0,-1"
	}
}

;stripper by encap

;; fix afk tp evading spot
 
add:
{
	"UseLandmarkAngles" "1"
	"targetname" "TeletoHold9"
	"target" "Hold9TeleDestination"
	"StartDisabled" "1"
	"spawnflags" "4097"
	"origin" "-512 3378 383"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1664 -526 -321,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1664 526 321,0.1,1"
}
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "491491"
	}
	insert:
	{
		"OnMapSpawn" "TeletoHold9,FireUser1,,0,-1"
	}
}
 
add:
{
	"classname" "prop_dynamic"
	"origin" "-2050 2936 153"
	"angles" "0 0 0"
	"model" "models/props_lab/blastdoor001c.mdl"
	"disablereceiveshadows" "1"
	"disableshadows" "1"
	"solid" "6"
	"rendermode" "10"
}
=================================================================
;; stripper by encap
 
;; fix human ztele glitch
 
modify:
{
	match:
	{
		"targetname" "Hold7Btn"
		"classname"	"func_button"
	}
	insert:
	{
		"OnPressed" "ServerCommand,Command,zr_ztele_human_after 0,0,1"
	}
}
 
modify:
{
	match:
	{
		"classname"	"logic_case"
		"targetname" "LevelOutput"
	}
	insert:
	{
		"OnCase01" "ServerCommand,Command,zr_ztele_human_after 1,0,1"
		"OnCase02" "ServerCommand,Command,zr_ztele_human_after 1,0,1"
	}
}
 
;; fix proximity mine item origin
 
modify:
{
	match:
	{
		"targetname" "ProxGun"
		"classname" "weapon_deagle"
	}
	replace:
	{
		"origin" "-325 -1529 123"
	}
}
modify:
{
	match:
	{
		"targetname" "ProxgunDetail"
		"classname" "func_door"
	}
	replace:
	{
		"origin" "-327 -1542 107.5"
	}
}
modify:
{
	match:
	{
		"targetname" "ProxGunButton"
		"classname" "func_button"
	}
	replace:
	{
		"origin" "-296.5 -1534 130"
	}
}
modify:
{
	match:
	{
		"targetname" "ProxSprite"
		"classname" "env_sprite"
	}
	replace:
	{
		"origin" "-296 -1534 130"
	}
}
modify:
{
	match:
	{
		"targetname" "ProxSpawner"
		"classname" "env_entity_maker"
	}
	replace:
	{
		"origin" "-284 -1535 155"
	}
}
