;; _

;; remove invalid spawnpoints

filter:
{
	"origin" "268 -432 64"
	"classname" "info_player_terrorist"
	"hammerid" "120421"
}
{
	"origin" "4434.91 -978.062 2605"
	"classname" "info_player_terrorist"
	"hammerid" "382234"
}
{
	"origin" "-156 -352 64"
	"classname" "info_player_counterterrorist"
	"hammerid" "120399"
}
{
	"origin" "-212 -280 64"
	"classname" "info_player_counterterrorist"
	"hammerid" "120407"
}
{
	"origin" "-276 -208 64"
	"classname" "info_player_counterterrorist"
	"hammerid" "155219"
}
{
	"origin" "-348 -152 64"
	"classname" "info_player_counterterrorist"
	"hammerid" "155245"
}

;; fix teleport boosting

filter:
{
	"origin" "6752 7056 2656"
	"classname" "trigger_teleport"
	"hammerid" "375699"
}
{
	"origin" "6368 7056 2656"
	"classname" "trigger_teleport"
	"hammerid" "155088"
}
{
	"origin" "-930.5 -4142 2877"
	"classname" "trigger_teleport"
	"hammerid" "331133"
}

add:
{
	"model" "*250"
	"wait" "1"
	"targetname" "tele_stop1"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "6752 7056 2656"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,origin 4434 -1172 2625,0,-1"
	"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0,-1"
	"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0.01,-1"
	"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0.05,-1"
}
add:
{
	"model" "*250"
	"wait" "1"
	"targetname" "tele_stop2"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "6368 7056 2656"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,origin 8197 5698 2631,0,-1"
	"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0,-1"
	"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0.01,-1"
	"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0.05,-1"
}
add:
{
	"model" "*194"
	"wait" "1"
	"targetname" "nukezonetele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"filtername" "ct_filter"
	"origin" "-931 -4142 2876"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,origin 8197 5698 2631,0,-1"
	"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0,-1"
	"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0.01,-1"
	"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0.05,-1"
}

modify:
{
	match:
	{
		"targetname" "Nukezone"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 90 0"
	}
}

;; fix doors

modify:
{
	match:
	{
		"targetname" "Teamwork1"
		"classname" "func_door"
	}
	replace:
	{
		"ignoredebris" "0"
		"forceclosed" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "/FinalDoors[1-3]/"
		"classname" "func_door"
	}
	replace:
	{
		"dmg" "10000"
		"forceclosed" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "Gate1"
		"classname" "func_door"
	}
	replace:
	{
		"dmg" "10000"
		"forceclosed" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "Outpostdoor"
		"classname" "func_door"
	}
	replace:
	{
		"ignoredebris" "0"
		"forceclosed" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "Trashsmash1"
		"classname" "func_door"
	}
	replace:
	{
		"ignoredebris" "0"
	}
}

;; afk teleport

filter:
{
	"targetname" "Spawntele"
	"classname" "trigger_teleport"
	"hammerid" "211734"
}
{
	"targetname" "Spawntele3"
	"classname" "trigger_teleport"
	"hammerid" "211782"
}

add:
{
	"targetname" "afk_spawn"
	"target" "WaterIslandTele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "226 2576 406"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1442 -3120 -882,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1442 3120 882,0.1,1"
}
add:
{
	"model" "*154"
	"targetname" "afk_wasteland"
	"target" "Teleport_1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "2296 4160 2296"
	"classname" "trigger_teleport"
}
modify:
{
	match:
	{
		"origin" "2063 4305 2219.29"
		"classname" "func_button"
		"hammerid" "146398"
	}
	insert:
	{
		"OnPressed" "afk_spawn,Enable,,40,1"
		"OnPressed" "afk_wasteland,Enable,,60,1"
	}
}
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "65116"
	}
	insert:
	{
		"OnMapSpawn" "afk_spawn,FireUser1,,0,-1"
	}
}

add:
{
	"model" "*136"
	"targetname" "afk_facility"
	"target" "Fantele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "4448 448 1840"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*140"
	"targetname" "afk_facility"
	"target" "Fantele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "4928 -2436 2520"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*141"
	"targetname" "afk_facility"
	"target" "Fantele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "5160 -2884 2520"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*142"
	"targetname" "afk_facility"
	"target" "Fantele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "5248 -2336 2400"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*143"
	"targetname" "afk_facility"
	"target" "Fantele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "5876 -2024 2316"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*153"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "5480 -1904 2984"
	"classname" "trigger_once"
	"OnStartTouch" "afk_facility,Disable,,0,1"
}
modify:
{
	match:
	{
		"origin" "6084 -3912 2112"
		"classname" "func_button"
		"hammerid" "180806"
	}
	insert:
	{
		"OnPressed" "afk_facility,Enable,,10,1"
		"OnPressed" "afk_wasteland,AddOutput,target Fantele,10,1"
	}
}

add:
{
	"model" "*88"
	"targetname" "GTFO"
	"target" "Nukezone"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "6096 -2936 1960"
	"classname" "trigger_teleport"
}

;; fix roundtime

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "65116"
	}
	delete:
	{
		"OnMapSpawn" "1,Command,mp_roundtime 7,1,-1"
	}
	insert:
	{
		"OnMapSpawn" "1,Command,mp_roundtime 9,1,-1"
	}
}

;; downtown - ct fall trigger

add:
{
	"model" "*231"
	"targetname" "ct_fall"
	"target" "zombietelespot"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-931 -4142 662"
	"filtername" "ct_filter"
	"classname" "trigger_teleport"
}
modify:
{
	match:
	{
		"targetname" "Counter"
		"classname" "math_counter"
	}
	insert:
	{
		"OnHitMax" "ct_fall,Disable,,12,1"
	}
}

;modify:
;{
;	match:
;	{
;		"origin" "-883 -4134 575"
;		"classname" "func_button"
;		"hammerid" "359802"
;	}
;	replace:
;	{
;		"spawnflags" "3073"
;	}
;	insert:
;	{
;		"targetname" "ct_push_button"
;	}
;}
;modify:
;{
;	match:
;	{
;		"origin" "-1007 -4496 640"
;		"classname" "func_button"
;		"hammerid" "331072"
;	}
;	insert:
;	{
;		"OnPressed" "ct_push_button,Unlock,,1,1"
;	}
;}

;; outpost zm push

add:
{
	"model" "*44"
	"StartDisabled" "1"
	"targetname" "outpost_push"
	"speed" "500"
	"spawnflags" "1"
	"pushdir" "0 180 0"
	"origin" "1883 3886 2394"
	"angles" "0 180 0"
	"alternateticksfix" "0"
	"filtername" "zombie_filter"
	"classname" "trigger_push"
}
modify:
{
	match:
	{
		"origin" "2063 4305 2219.29"
		"classname" "func_button"
		"hammerid" "146398"
	}
	insert:
	{
		"OnPressed" "outpost_push,Enable,,30,1"
		"OnPressed" "outpost_push,Disable,,40,1"
	}
}

;; directions

modify:
{
	match:
	{
		"targetname" "Paths"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase01" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Downtown<<:1:1,0,1"
		"OnCase01" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Downtown<<:3:1,0,1"
		"OnCase01" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Downtown<<:5:1,0,1"
		"OnCase03" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Downtown<<:1:1,0,1"
		"OnCase03" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Downtown<<:3:1,0,1"
		"OnCase03" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Downtown<<:5:1,0,1"
		"OnCase02" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Teleportation Facility<<:1:1,0,1"
		"OnCase02" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Teleportation Facility<<:3:1,0,1"
		"OnCase02" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Teleportation Facility<<:5:1,0,1"
		"OnCase04" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Teleportation Facility<<:1:1,0,1"
		"OnCase04" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Teleportation Facility<<:3:1,0,1"
		"OnCase04" "Outpostteleport,AddOutput,OnStartTouch 1:Command:say >>Head to Teleportation Facility<<:5:1,0,1"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "hl2music/hl2_song12_long.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#hl2music/hl2_song12_long.mp3"
	}
}
modify:
{
	match:
	{
		"message" "hl2music/hl2_song31.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#hl2music/hl2_song31.mp3"
	}
}

