modify:
{
	match:
	{
		"classname" "func_tracktrain"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "func_rotating"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

add:
{
	"classname" "info_teleport_destination"
	"angles" "0 90 0"
	"targetname" "afktd1"
	"origin" "-8352 -10784 -240"
}

add:
{
	"classname" "info_teleport_destination"
	"angles" "0 0 0"
	"targetname" "afktd2"
	"origin" "5760 10816 -2048"
}

add:
{
	"classname" "trigger_teleport"
	"spawnflags" "1"
	"origin" "2048 -13120 -1536"
	"startdisabled" "1"
	"target" "afktd1"
	"targetname" "afktp1"
}

add:
{
	"classname" "trigger_teleport"
	"spawnflags" "1"
	"origin" "-3840 2752 -1536"
	"startdisabled" "1"
	"target" "afktd2"
	"targetname" "afktp2"
}

add:
{
	"classname" "trigger_teleport"
	"spawnflags" "1"
	"origin" "10496 -1344 -1536"
	"startdisabled" "1"
	"target" "afktd2"
	"targetname" "afktp3"
}

add:
{
	"classname" "trigger_hurt"
	"damage" "999999"
	"damagecap" "20"
	"damagemodel" "0"
	"damagetype" "0"
	"nodmgforce" "0"
	"origin" "2048 512 -4096"
	"spawnflags" "1"
	"StartDisabled" "1"
	"targetname" "nukefix"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"origin" "-8240 -10854 -188"
	}
	insert:
	{
		"OnPressed" "afktp*,AddOutput,solid 2,1,1"
		"OnPressed" "nukefix,AddOutput,solid 2,1,1"
		"OnPressed" "afktp1,AddOutput,maxs 14336 2240 4608,1.1,1"
		"OnPressed" "afktp1,AddOutput,mins -14336 -2240 -4608,1.1,1"
		"OnPressed" "afktp2,AddOutput,maxs 8448 13632 4608,1.1,1"
		"OnPressed" "afktp2,AddOutput,mins -8448 -13632 -4608,1.1,1"
		"OnPressed" "afktp3,AddOutput,maxs 5888 9536 4608,1.1,1"
		"OnPressed" "afktp3,AddOutput,mins -5888 -9536 -4608,1.1,1"
		"OnPressed" "nukefix,AddOutput,maxs 14336 15872 2048,1.1,1"
		"OnPressed" "nukefix,AddOutput,mins -14336 -15872 -2048,1.1,1"
		"OnPressed" "notification,Command,say ***AFK teleport in 5 seconds***,35,1"
		"OnPressed" "afktp1,Enable,,40,1"
	}
}

modify:
{
	match:
	{
		"classname" "func_button"
		"origin" "9464 11042 -2161"
	}
	insert:
	{
		"OnPressed" "notification,Command,say ***AFK teleport in 5 seconds***,25,1"
		"OnPressed" "afktp2,Enable,,30,1"
		"OnPressed" "afktp3,Enable,,30,1"
		"OnPressed" "nukefix,Enable,,110,1"
	}
}



;; _

;; possible crash fix

modify:
{
	match:
	{
		"classname" "func_illusionary"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "train"
		"classname" "func_door"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"parentname" "train"
		"classname" "func_breakable"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"parentname" "train"
		"classname" "prop_dynamic"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
	insert:
	{
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"parentname" "train"
		"classname" "func_button"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
	insert:
	{
		"disableshadows" "1"
	}
}

;; fix roundtime

modify:
{
	match:
	{
		"origin" "-68 -13812 -695.75"
		"classname" "trigger_multiple"
		"hammerid" "81427"
	}
	delete:
	{
		"OnStartTouch" "notification,Command,mp_roundtime 999,0,1"
	}
	insert:
	{
		"OnStartTouch" "notification,Command,mp_roundtime 9,0,1"
	}
}

;; playerclips

add:
{
	"origin" "1821 -7873 -788"
	"spawnflags" "1"
	"classname" "logic_auto"
	"OnMapSpawn" "playerclip,FireUser1,,0.1,1"
}
add:
{
	"targetname" "playerclip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "3136 -6816 -818"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1280 -1248 -390,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1280 1248 390,0.1,1"
}

;; add ladder for train

add:
{
	"origin" "1014 -7702 -1300"
	"solid" "0"
	"model" "models/props_c17/metalladder002.mdl"
	"angles" "0 270 0"
	"targetname" "lad"
	"parentname" "train"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "prop_dynamic"
}


