;--------------------------------------------------------------------
;STRIPPER CFG BY MOLTARD http://steamcommunity.com/id/0123456789ABC/
;--------------------------------------------------------------------
;FILTER
;-------

add:
{
	"origin" "2060 90 -255"
	"targetname" "Filter_CT"
	"filterteam" "3"
	"Negated" "0"
	"classname" "filter_activator_team"
}
add:
{
	"origin" "2060 90 -255"
	"targetname" "Filter_T"
	"filterteam" "2"
	"Negated" "0"
	"classname" "filter_activator_team"
}


;---------
;FIX NUKE
;---------

modify:
{
	match:
	{
		"targetname" "nuke_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "9999999"
	}
}

modify:
{
	match:
	{
		"model" "*540"
		"origin" "7665.09 317.5 -370.5"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "nuke_hurt,Disable,,10,1"
	}
}
modify:
{
	match:
	{
		"model" "*539"
		"origin" "-1951.5 -313.6 82.5"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "nuke_hurt,Disable,,10,1"
	}
}
modify:
{
	match:
	{
		"model" "*176"
		"origin" "352 1212 452"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "nuke_hurt,Disable,,10,1"
	}
}

modify:
{
	match:
	{
		"model" "*538"
		"targetname" "Boathurt"
		"origin" "-3136 -4036 -375.5"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "nuke_hurt,Disable,,10,1"
	}
}

;---------------------
; Truck chemical hurt
;---------------------

filter:
{
	"model" "*500"
	"origin" "-1616 -312 2.5"
	"classname" "trigger_hurt"
}

add:
{
	"targetname" "MyEndingTruckHurt"
	"origin" "-1616 -312 -73.5"
	"spawnflags" "1"
	"nodmgforce" "0"
	"damagemodel" "0"
	"damagetype" "1048576"
	"damagecap" "20"
	"damage" "20000"
	"StartDisabled" "0"
	"classname" "trigger_hurt"
}

;-------------------------
;ANTI CAMP SEWER ENTRANCE
;-------------------------

add:
{
	"origin" "2400 -1952 14"
	"targetname" "MySewerDest1"
	"angles" "0 0 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "MySewerEntrance"
	"target" "MySewerDest1"
	"filtername" "Filter_T"
	"origin" "2720 -1952 96"
	"spawnflags" "1"
	"StartDisabled" "1"
	"classname" "trigger_teleport"
}

add:
{
	"origin" "624 -1952 14"
	"targetname" "MySewerDest2"
	"angles" "0 180 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "MySewerEntrance"
	"target" "MySewerDest2"
	"filtername" "Filter_T"
	"origin" "304 -1952 96"
	"spawnflags" "1"
	"StartDisabled" "1"
	"classname" "trigger_teleport"
}

add:
{
	"origin" "2400 -368 14"
	"targetname" "MySewerDest3"
	"angles" "0 0 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "MySewerEntrance"
	"target" "MySewerDest3"
	"filtername" "Filter_T"
	"origin" "2720 -368 96"
	"spawnflags" "1"
	"StartDisabled" "1"
	"classname" "trigger_teleport"
}

add:
{
	"origin" "624 -368 14"
	"targetname" "MySewerDest4"
	"angles" "0 180 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "MySewerEntrance"
	"target" "MySewerDest4"
	"filtername" "Filter_T"
	"origin" "304 -368 96"
	"spawnflags" "1"
	"StartDisabled" "1"
	"classname" "trigger_teleport"
}

modify:
{
	match:
	{
		"origin" "345 125 10"
		"targetname" "Boat"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "MySewerEntrance,Enable,,19.98,1"
		"OnTrigger" "servercommand,Command,say ** SEWER ENTRANCES OPEN!!! ** ,20,1"
		"OnTrigger" "servercommand,Command,say ** ZOMBIES ARE BLOCKED FOR 10 SECONDS ** ,21,1"
		"OnTrigger" "MySewerEntrance,Kill,,30,1"
	}
}



;-------------------------
;ANTI CAMP TRAIN ENTRANCE
;-------------------------

add:
{
	"origin" "3368 -328 14"
	"targetname" "MyTrainDest1"
	"angles" "0 90 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "MyTrainEntrance1"
	"target" "MyTrainDest1"
	"filtername" "Filter_T"
	"origin" "3388 -137 -138.5"
	"spawnflags" "1"
	"StartDisabled" "1"
	"classname" "trigger_teleport"
}

add:
{
	"origin" "-736 -370 14"
	"targetname" "MyTrainDest2"
	"angles" "0 90 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "MyTrainEntrance2"
	"target" "MyTrainDest2"
	"filtername" "Filter_T"
	"origin" "-618.5 -137 -139.5"
	"spawnflags" "1"
	"StartDisabled" "1"
	"classname" "trigger_teleport"
}
add:
{
	"targetname" "MyTrainEntrance2"
	"target" "MyTrainDest2"
	"filtername" "Filter_T"
	"origin" "-330 -147 -226"
	"spawnflags" "1"
	"StartDisabled" "1"
	"classname" "trigger_teleport"
}

modify:
{
	match:
	{
		"origin" "327.576 124.966 10"
		"targetname" "trainstart"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "MyTrainEntrance*,Enable,,9.98,1"
		"OnTrigger" "servercommand,Command,say ** STATION DOORS OPEN!!! ** ,10,1"
		"OnTrigger" "servercommand,Command,say ** ZOMBIES ARE BLOCKED FOR 10 SECONDS ** ,11,1"
		"OnTrigger" "MyTrainEntrance*,Kill,,20,1"
	}
}

;--------------
;INIT TRIGGERS
;--------------

modify:
{
	match:
	{
		"origin" "1887 -338 10"
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "MyTrainEntrance1,AddOutput,solid 2,0.5,1"
		"OnMapSpawn" "MyTrainEntrance2,AddOutput,solid 2,0.5,1"
		"OnMapSpawn" "MyEndingTruckHurt,AddOutput,solid 2,0.5,1"
		"OnMapSpawn" "MySewerEntrance,AddOutput,solid 2,0.5,1"
		
		"OnMapSpawn" "MySewerEntrance,AddOutput,mins -128 -128 -96,1.1,1"
		"OnMapSpawn" "MySewerEntrance,AddOutput,maxs 128 128 96,1.1,1"
		
		"OnMapSpawn" "MyEndingTruckHurt,AddOutput,mins -648 -312 -86.5,1.1,1"
		"OnMapSpawn" "MyEndingTruckHurt,AddOutput,maxs 648 312 86.5,1.1,1"
		
		"OnMapSpawn" "MyTrainEntrance1,AddOutput,mins -209 -82 -135.5,1.1,1"
		"OnMapSpawn" "MyTrainEntrance1,AddOutput,maxs 209 82 135.5,1.1,1"
		
		"OnMapSpawn" "MyTrainEntrance2,AddOutput,mins -213.5 -82 -135.5,1.1,1"
		"OnMapSpawn" "MyTrainEntrance2,AddOutput,maxs 213.5 82 135.5,1.1,1"

	}
}


;; _

;; truck - only zombies can destroy the truck

modify:
{
	match:
	{
		"parentname" "atix_truck"
		"classname" "func_breakable"
	}
	insert:
	{
		"damagefilter" "Filter_T"
	}
}

;; truck - kill humans/zombies on top of a truck

add:
{
	"targetname" "truck_hurt"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-950.5 -334 463.5"
	"nodmgforce" "0"
	"damagetype" "0"
	"damagemodel" "0"
	"damagecap" "20"
	"damage" "100000"
	"classname" "trigger_hurt"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -17.5 -302 -223.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 17.5 302 223.5,0.1,1"
}
modify:
{
	match:
	{
		"classname" "logic_auto"
		"origin" "1887 -338 10"
	}
	insert:
	{
		"OnMapSpawn" "truck_hurt,FireUser1,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "path23"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "servercommand,Command,say ** STAY INSIDE THE TRUCK!!! **,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "path30"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "-1824 -324 23"
	}
}

;; fix nuke glitch spot

add:
{
	"model" "*77"
	"origin" "2035 305 75"
	"targetname" "nuke_hurt"
	"spawnflags" "67"
	"damagemodel" "0"
	"damagetype" "8"
	"damagecap" "20"
	"damage" "9999999"
	"StartDisabled" "1"
	"classname" "trigger_hurt"
}

;; fix flamethrower

modify:
{
	match:
	{
		"origin" "3098 36 526"
		"targetname" "m249"
	}
	insert:
	{
		"spawnflags" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "flame"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "fire_large"
		"spawnflags" "16"
	}
	insert:
	{
		"SourceEntityName" "m249"
	}
}
modify:
{
	match:
	{
		"origin" "3131.5 35.5 541.5"
		"classname" "func_button"
	}
	replace:
	{
		"wait" "15"
	}
	insert:
	{
		"OnPressed" "flame,StopSound,,7,-1"
	}
}

;; train/sewers - block zombies more effectively

add:
{
	"wait" "1"
	"targetname" "zm_tele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "1460 -1142.5 335.5"
	"filtername" "Filter_T"
	"classname" "trigger_multiple"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2420 -2006.5 -335.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2420 2006.5 335.5,0.1,1"
	"OnStartTouch" "!activator,AddOutput,origin -4158 -152 1159,0,-1"
}
add:
{
	"model" "*618"
	"wait" "1"
	"targetname" "zm_tele_back"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-4172 -112 1277"
	"classname" "trigger_multiple"
	"OnStartTouch" "zm_tele_back_case,PickRandomShuffle,,0,-1"
}
add:
{
	"origin" "-7680 -1536 2999"
	"targetname" "zm_tele_back_case"
	"classname" "logic_case"
	"OnCase01" "!activator,AddOutput,origin 1528 -1953 14,0,-1"
	"OnCase02" "!activator,AddOutput,origin 2688 -1224 14,0,-1"
	"OnCase03" "!activator,AddOutput,origin 1484 -309 14,0,-1"
	"OnCase04" "!activator,AddOutput,origin 371 -1295 14,0,-1"
}
modify:
{
	match:
	{
		"origin" "1887 -338 10"
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "zm_tele,FireUser1,,0.1,1"
	}
}

modify:
{
	match:
	{
		"targetname" "trainstart"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "zm_tele,Enable,,10,1"
		"OnTrigger" "servercommand,Command,say ** GET TO THE STATION!!! **,12,1"
		"OnTrigger" "servercommand,Command,say ** GET TO THE STATION!!! **,14,1"
		"OnTrigger" "servercommand,Command,say ** GET TO THE STATION!!! **,16,1"
		"OnTrigger" "servercommand,Command,say ** GET TO THE STATION!!! **,18,1"
		"OnTrigger" "zm_tele,Disable,,19.9,1"
		"OnTrigger" "zm_tele_back,Enable,,20,1"
	}
}
modify:
{
	match:
	{
		"targetname" "Boat"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "zm_tele,Enable,,20,1"
		"OnTrigger" "servercommand,Command,say ** GET TO THE SEWERS!!! **,22,1"
		"OnTrigger" "servercommand,Command,say ** GET TO THE SEWERS!!! **,24,1"
		"OnTrigger" "servercommand,Command,say ** GET TO THE SEWERS!!! **,26,1"
		"OnTrigger" "servercommand,Command,say ** GET TO THE SEWERS!!! **,28,1"
		"OnTrigger" "zm_tele,Disable,,29.9,1"
		"OnTrigger" "zm_tele_back,Enable,,30,1"
	}
}

;; extra mode messages

modify:
{
	match:
	{
		"targetname" "lolwut"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase01" "servercommand,Command,say ** HELICOPTER EVACUATION - GET TO THE ROOFTOPS **,5,-1"
		"OnCase01" "servercommand,Command,say ** HELICOPTER EVACUATION - GET TO THE ROOFTOPS **,10,-1"
		"OnCase02" "servercommand,Command,say ** HELICOPTER EVACUATION - GET TO THE ROOFTOPS **,5,-1"
		"OnCase02" "servercommand,Command,say ** HELICOPTER EVACUATION - GET TO THE ROOFTOPS **,10,-1"
		"OnCase03" "servercommand,Command,say ** TRUCK EVACUATION - GET TO THE MIDDLE AREAS **,5,-1"
		"OnCase03" "servercommand,Command,say ** TRUCK EVACUATION - GET TO THE MIDDLE AREAS **,10,-1"
		"OnCase04" "servercommand,Command,say ** TRAIN EVACUATION - GET TO THE STATION **,5,-1"
		"OnCase04" "servercommand,Command,say ** TRAIN EVACUATION - GET TO THE STATION **,10,-1"
		"OnCase05" "servercommand,Command,say ** BOAT EVACUATION - GET TO THE SEWERS ** ,5,-1"
		"OnCase05" "servercommand,Command,say ** BOAT EVACUATION - GET TO THE SEWERS ** ,10,-1"
	}
}


