;; _

;; music volume

modify:
{
	match:
	{
		"message" "my sounds/thriller ftw.wav"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#my sounds/thriller ftw.wav"
	}
}

;; just to be safe

modify:
{
	match:
	{
		"classname" "/prop_.*/"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "/func_.*/"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

;; optimizations

filter:
{
	"classname" "env_sprite"
}

modify:
{
	match:
	{
		"model" "models/zombie/classic.mdl"
		"classname" "prop_dynamic"
	}
	replace:
	{
		"solid" "0"
		"spawnflags" "256"
	}
	insert:
	{
		"DisableBoneFollowers" "1"
	}
}

;; no user control

modify:
{
	match:
	{
		"targetname" "Truck"
		"classname" "func_tanktrain"
	}
	replace:
	{
		"spawnflags" "531"
	}
}

;; unstuck players

add:
{
	"model" "*113"
	"targetname" "bookcase_unstuck"
	"parentname" "BT"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "6617.1 4124.98 130.18"
	"classname" "trigger_once"
	"OnStartTouch" "!activator,AddOutput,origin 6820 4056 105,0,-1"
}
add:
{
	"model" "*113"
	"targetname" "bookcase_unstuck"
	"parentname" "BT"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "6631.1 4124.98 130.18"
	"classname" "trigger_once"
	"OnStartTouch" "!activator,AddOutput,origin 6820 4056 105,0,-1"
}

modify:
{
	match:
	{
		"targetname" "BP1"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "bookcase_unstuck,Enable,,0,1"
		"OnPass" "bookcase_unstuck,Kill,,0.5,1"
	}
}

;; zm teleport

modify:
{
	match:
	{
		"model" "*111"
		"origin" "6498 4090 168"
		"StartDisabled" "0"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnStartTouch" "zm_tele,Enable,,90,1"
		"OnStartTouch" "zm_tele,Kill,,93,1"
	}
}
add:
{
	"model" "*111"
	"targetname" "zm_tele"
	"filtername" "Filter"
	"origin" "6498 4090 168"
	"spawnflags" "1"
	"wait" "1"
	"StartDisabled" "1"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,origin 6820 4056 105,0,-1"
}