;----------
;Let server do the roundtime
;-----------

modify:
{
	match:
	{
		"targetname" "start"
		"classname" "logic_timer"
		"hammerid" "71588"
	}
	delete:
	{
		"OnTimer" "server,Command,mp_roundtime 9,0,-1"
	}
}



;; _

;; afk teleport

add:
{
	"targetname" "afktele1"
	"target" "e1_tele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "6168 -257 1440"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -4584 -1716.5 -1440,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 4584 1716.5 1440,0.1,1"
}
add:
{
	"targetname" "afktele2"
	"target" "e1_tele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-4088.4 -472.43 4056"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -5663 -2591 -4120,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 5663 2591 4120,0.1,1"
}
add:
{
	"origin" "936 -463 -123"
	"spawnflags" "1"
	"classname" "logic_auto"
	"OnMapSpawn" "afktele*,FireUser1,,0.1,1"
}

modify:
{
	match:
	{
		"targetname" "e2_button"
		"classname" "func_button"
		"hammerid" "44362"
	}
	insert:
	{
		"OnPressed" "e1_tele,AddOutput,origin 1341 275 36,34.9,1"
		"OnPressed" "server,Command,say ***TELEPORTING AFK PLAYERS***,35,1"
		"OnPressed" "afktele1,Enable,,35,1"
	}
}
modify:
{
	match:
	{
		"targetname" "e6_p_3"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "e1_tele,AddOutput,origin -1434 -2308 -1244,29.9,1"
		"OnPass" "server,Command,say ***TELEPORTING AFK PLAYERS***,30,1"
		"OnPass" "afktele2,Enable,,30,1"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "luff_halo/04 - enough dead heroes.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#luff_halo/04 - enough dead heroes.mp3"
	}
}
modify:
{
	match:
	{
		"message" "luff_halo/08 - the gun pointed at the head of the universe.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#luff_halo/08 - the gun pointed at the head of the universe.mp3"
	}
}
modify:
{
	match:
	{
		"message" "luff_halo/14 - covenant dance.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#luff_halo/14 - covenant dance.mp3"
	}
}
modify:
{
	match:
	{
		"message" "luff_halo/16 - rock anthem for saving the world.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#luff_halo/16 - rock anthem for saving the world.mp3"
	}
}
modify:
{
	match:
	{
		"message" "luff_halo/20 - perchance to dream.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#luff_halo/20 - perchance to dream.mp3"
	}
}

