;=======================
; AUTHOR: CLOUD STRIFE
;=======================

;=======================
; FREEZER BUTTON FIX
;=======================
add:
{
	"classname" "filter_activator_name"
	"Negated" "0"
	"targetname" "freezer_filter"
	"filtername" "freezer_zm"
	"OnPass" "FreezerButton,Lock,,0,-1"
	"OnPass" "FreezerSound,PlaySound,,0,-1"
	"OnPass" "FreezerSpawner,ForceSpawn,,0,-1"
	"OnPass" "FreezerModel,TurnOff,,0,-1"
	"OnPass" "FreezerMarker,TurnOff,,0,-1"
	"OnPass" "FreezerButton,Unlock,,45,-1"
	"OnPass" "FreezerModel,TurnOn,,45,-1"
	"OnPass" "FreezerMarker,TurnOn,,45,-1"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "FreezerButton"
	}
	delete:
	{
		"OnPressed" "FreezerModel,TurnOn,,45,-1"
		"OnPressed" "FreezerSound,PlaySound,,0,-1"
		"OnPressed" "FreezerSpawner,ForceSpawn,,0,-1"
		"OnPressed" "!self,Lock,,0,-1"
		"OnPressed" "FreezerMarker,Color,0 0 0,0,-1"
		"OnPressed" "FreezerModel,TurnOff,,0,-1"
		"OnPressed" "FreezerMarker,TurnOff,,0,-1"
		"OnPressed" "FreezerMarker,Color,0 128 192,39.95,-1"
		"OnPressed" "!self,Unlock,,45,-1"
		"OnPressed" "FreezerMarker,TurnOn,,45,-1"
	}
	insert:
	{
		"OnPressed" "freezer_filter,TestActivator,,0,-1"
	}
}

modify:
{
	match:
	{
		"classname" "weapon_deagle"
		"targetname" "ItemFreezer"
	}
	insert:
	{
		"OnPlayerPickup" "!activator,AddOutput,targetname freezer_zm,0,-1"
	}
}

;=======================
; UPPER LASER FIX
;=======================
modify:
{
	match:
	{
		"classname" "trigger_hurt"
		"targetname" "lasercrouchhurt"
	}
	insert:
	{
		"origin" "-3658.5 7623.45 -2795.76"
	}
}
modify:
{
	match:
	{
		"classname" "func_movelinear"
		"targetname" "lasercrouch"
	}
	insert:
	{
		"origin" "-3652.4 7623.45 -2793.05"
	}
}

;=======================
; ZM SPAWN TIME FIX
;=======================
modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "console,Command,zr_infect_spawntime_min 10,0,1"
		"OnMapSpawn" "console,Command,zr_infect_spawntime_max 10,0,1"
	}
}

;=======================
; LAST TRIGGER FIX
;=======================
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"origin" "-3522.27 -10827 -1975.45"
	}
	delete:
	{
		"OnStartTouch" "!self,Kill,,0,1"
	}
	insert:
	{
		"wait" "-1"
	}
}

;=======================
; DUPLICATE MESSAGES FIX
;=======================
modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "6816.4 -2419.94 1215.5"
	}
	delete:
	{
		"OnStartTouch" "console,Command,say <<TELEPORT ENABLES IN 30 SEC>>,1,1"
		"OnStartTouch" "console,Command,say <<TELEPORT ENABLES IN 30 SEC>>,2,1"
		"OnStartTouch" "console,Command,say <<TELEPORT ENABLES IN 30 SEC>>,3,1"
	}
}
modify:
{
	match:
	{
		"classname" "math_counter"
		"targetname" "bosshpscale"
	}
	delete:
	{
		"OnHitMin" "console,Command,say <<GOPNIK IS DEAD >>,1,1"
		"OnHitMin" "console,Command,say <<GOPNIK IS DEAD >>,2,1"
		"OnHitMin" "console,Command,say <<GOPNIK IS DEAD >>,3,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "5544.37 459.3 1143.23"
	}
	delete:
	{
		"OnStartTouch" "console,Command,say <<FIND A WAY TO GET DOWN>>,1,1"
		"OnStartTouch" "console,Command,say <<FIND A WAY TO GET DOWN>>,2,1"
		"OnStartTouch" "console,Command,say <<FIND A WAY TO GET DOWN>>,3,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"origin" "613.35 -10991.6 -1495.21"
	}
	delete:
	{
		"OnStartTouch" "console,Command,say << HUH? WE ESCAPED CANCER ROOM AND TUNNELS? >>,1,1"
		"OnStartTouch" "console,Command,say <<ZOMBIES TELEPORT IN 20 SECONDS>> ,3,1"
		"OnStartTouch" "console,Command,say <<ZOMBIES TELEPORT IN 20 SECONDS>> ,4,1"
		"OnStartTouch" "console,Command,say <<ZOMBIES TELEPORT IN 20 SECONDS>> ,5,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "2437.83 -3364.83 17.16"
	}
	delete:
	{
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 30 SECONDS>>,1,1"
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 30 SECONDS>>,2,1"
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 30 SECONDS>>,3,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 1 SECONDS>>,40,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 2 SECONDS>>,39,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 3 SECONDS>>,38,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 4 SECONDS>>,37,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 5 SECONDS>>,36,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 6 SECONDS>>,35,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 7 SECONDS>>,34,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 8 SECONDS>>,33,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 9 SECONDS>>,32,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "2219.89 -3335.65 33.83"
	}
	delete:
	{
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 15 SECONDS>>,1,1"
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 15 SECONDS>>,2,1"
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 15 SECONDS>>,3,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "613.35 -10991.6 -1762.77"
	}
	delete:
	{
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 30 SEC>>,1,1"
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 30 SEC>>,2,1"
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 30 SEC>>,3,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "598.11 -346.43 -440.81"
	}
	delete:
	{
		"OnTrigger" "console,Command,say <<DEFEND PLATFORMS FOR 20 SECONDS>>,1,1"
		"OnTrigger" "console,Command,say <<DEFEND PLATFORMS FOR 20 SECONDS>>,2,1"
		"OnTrigger" "console,Command,say <<DEFEND PLATFORMS FOR 20 SECONDS>>,3,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "6221.3 -1589.18 1399.89"
	}
	delete:
	{
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 30 SECONDS>>,1,1"
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 30 SECONDS>>,2,1"
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 30 SECONDS>>,3,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 1 SECONDS>>,40,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 2 SECONDS>>,39,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 3 SECONDS>>,38,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 4 SECONDS>>,37,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 5 SECONDS>>,36,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 6 SECONDS>>,35,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 7 SECONDS>>,34,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 8 SECONDS>>,33,1"
		"OnTrigger" "console,Command,say <<ZOMBIES TELEPORT IN 9 SECONDS>>,32,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "3648.42 408.42 235.83"
	}
	delete:
	{
		"OnTrigger" "console,Command,say  <<WALL BREAKS IN 20 SECONDS>,1,1"
		"OnTrigger" "console,Command,say  <<WALL BREAKS IN 20 SECONDS>,2,1"
		"OnTrigger" "console,Command,say  <<WALL BREAKS IN 20 SECONDS>,3,1"
	}
}

;=======================
; FIX "O" LETTER
;=======================
modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "3235.41 -162.28 769.66"
	}
	delete:
	{
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 4O SECONDS>>,0,1"
	}
	insert:
	{
		"OnTrigger" "console,Command,say <<TELEPORT ENABLES IN 40 SECONDS>>,0,1"
	}
}

;=======================
; TREE FADESCALE FIX
;=======================
match:
{
	match:
	{
		"classname" "prop_static"
		"hammerid" "16267"
	}
	insert:
	{
		"fadescale" "0"
	}
}
