;; _

;; afk teleport

add:
{
	"targetname" "afktele1"
	"target" "afktele1_dest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "9744.5 -10828 -479"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2639.5 -2100 -233,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2639.5 2100 233,0.1,1"
}
add:
{
	"origin" "7504 -8571 -700"
	"targetname" "afktele1_dest"
	"angles" "0 90 0"
	"classname" "info_teleport_destination"
}

add:
{
	"targetname" "afktele2"
	"target" "afktele2_dest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "3561.5 -4366.5 -262"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -4329.5 -4360.5 -1002,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 4329.5 4360.5 1002,0.1,1"
}
add:
{
	"origin" "256 129 100"
	"targetname" "afktele2_dest"
	"angles" "0 90 0"
	"classname" "info_teleport_destination"
}

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "171159"
	}
	insert:
	{
		"OnMapSpawn" "afktele1,FireUser1,,0,-1"
		"OnMapSpawn" "afktele2,FireUser1,,0,-1"
	}
}

modify:
{
	match:
	{
		"origin" "7355.96 -8668 -688"
		"classname" "func_button"
		"hammerid" "267983"
	}
	insert:
	{
		"OnPressed" "servercommand,Command,say Teleporting AFK players in 10 seconds.,40,1"
		"OnPressed" "afktele1,Enable,,50,1"
	}
}
modify:
{
	match:
	{
		"origin" "256 484 100"
		"classname" "func_button"
		"hammerid" "282"
	}
	insert:
	{
		"OnPressed" "servercommand,Command,say Teleporting AFK players in 10 seconds.,20,1"
		"OnPressed" "afktele2,Enable,,30,1"
	}
}

;; fix nuke

modify:
{
	match:
	{
		"targetname" "hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damagetype" "0"
		"damage" "100000"
	}
}

;; music volume

filter:
{
	"hammerid" "302481"
}
{
	"hammerid" "302484"
}
{
	"hammerid" "302487"
}
{
	"hammerid" "302490"
}
{
	"hammerid" "57379"
}
{
	"hammerid" "167900"
}
{
	"hammerid" "181118"
}
{
	"hammerid" "181121"
}

modify:
{
	match:
	{
		"message" "lightningzlaser/portal2-07-the_part_where_he_kills_you.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#lightningzlaser/portal2-07-the_part_where_he_kills_you.mp3"
	}
}
modify:
{
	match:
	{
		"message" "lightningzlaser/timor_battle.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#lightningzlaser/timor_battle.mp3"
	}
}
