;----------
; Fix nuke
;-----------

modify:
{
	match:
	{
		"model" "*92"
		"origin" "7793 -13584.5 -628.93"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "endkill,AddOutput,damage 10000000,105,-1"
	}
}



;; _

;; afk teleport

add:
{
	"origin" "4588 -6578 -645"
	"targetname" "afktele_dest"
	"angles" "0 -90 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "afktele"
	"target" "afktele_dest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "1117 -560.5 44.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -7551 -5509.5 -794.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 7551 5509.5 794.5,0.1,1"
}

modify:
{
	match:
	{
		"origin" "7793 -13584.5 -628.93"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "endmessage,Command,say ***Teleporting AFK players to bridge area in 10 seconds***,15,1"
		"OnPressed" "afktele,Enable,,25,1"
	}
}
modify:
{
	match:
	{
		"origin" "-2188 -676 -618.55"
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "afktele,FireUser1,,0,-1"
	}
}

;; fix nuke origin

modify:
{
	match:
	{
		"targetname" "endkill_house"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"origin" "8141 -13734.5 -611"
	}
}

