;--------------------------------------------------------------------
;STRIPPER CFG BY MOLTARD http://steamcommunity.com/id/0123456789ABC/
;--------------------------------------------------------------------
;FIX NUKE ISSUES
;----------------

modify:
{
	match:
	{
		"targetname" "activadoresFinales"
		"origin" "-2800 176 256"
		"classname" "trigger_once"
		"hammerid" "1940"
	}
	delete:
	{
		"OnStartTouch" "nuke,Disable,,12,-1"
	}
	insert:
	{
		"OnStartTouch" "TP_ZombieGlitchers,Enable,,0,-1"
	}
}


;----------
;RAM SPEED
;----------

modify:
{
	match:
	{
		"targetname" "ariete"
		"classname" "func_tracktrain"
		;"startspeed" "100"
	}
	replace:
	{
		"startspeed" "150"
	}
}

modify:
{
	match:
	{
		"targetname" "ariete_track2"
		"classname" "path_track"
	}
	replace:
	{
		"speed" "150"
	}
}


;------------------------
;FIX NO TP IN RADIO ROOM
;------------------------

add:
{
	"model" "*170"
	"targetname" "quesepierden"
	"target" "perdedores1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "272 4816 1184"
	"filtername" "humanos"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*170"
	"targetname" "quesepierden"
	"target" "perdedores1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "272 4816 928"
	"filtername" "humanos"
	"classname" "trigger_teleport"
}

;----------------------------------
;DONT LET ZOMBIES INSIDE SAFE AREA
;----------------------------------

add:
{
	"model" "*394"
	"wait" "1"
	"targetname" "TP_ZombieGlitchers"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-2800 176 256"
	"filtername" "zombies"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,origin -1662 280 217,0,-1"
}

modify:
{
	match:
	{
		"targetname" "activadoresFinales"
		"origin" "-1792 768 288"
		"classname" "trigger_once"
		"hammerid" "1295"
	}
	insert:
	{
		"OnStartTouch" "TP_ZombieGlitchers,Enable,,0,-1"
	}
}

;-------------------------------
;DONT ALLOW TRAPPED CT TO KNIFE
;-------------------------------

modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"origin" "-3974 436 34"
		"hammerid" "1647"
	}
	delete:
	{
		"OnStartTouch" "darCuchi,Use,,0.2,-1"
	}
}

;------------
;ANTI DELAY1
;------------

add:
{
	"model" "*314"
	"target" "afk"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-2246 -650 245"
	"classname" "trigger_teleport"
}

;------------
;ANTI DELAY2
;------------

add:
{
	"model" "*116"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "238 3190 980"
	"filtername" "humanos"
	"damagetype" "0"
	"damagemodel" "0"
	"damagecap" "20"
	"damage" "5"
	"classname" "trigger_hurt"
}
add:
{
	"model" "*116"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "274 3210 1090"
	"filtername" "humanos"
	"damagetype" "0"
	"damagemodel" "0"
	"damagecap" "20"
	"damage" "5"
	"classname" "trigger_hurt"
}
add:
{
	"model" "*116"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "308 3250 1090"
	"filtername" "humanos"
	"damagetype" "0"
	"damagemodel" "0"
	"damagecap" "20"
	"damage" "5"
	"classname" "trigger_hurt"
}
add:
{
	"model" "*116"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "340 3268 1166"
	"filtername" "humanos"
	"damagetype" "0"
	"damagemodel" "0"
	"damagecap" "20"
	"damage" "5"
	"classname" "trigger_hurt"
}
add:
{
	"model" "*116"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "372 3292 1244"
	"filtername" "humanos"
	"damagetype" "0"
	"damagemodel" "0"
	"damagecap" "20"
	"damage" "5"
	"classname" "trigger_hurt"
}



;============================
; UNLOZE EVENT JANUARY 2023
; Special Stuff
;============================

; For now this is hard coded changes, not changeable through MapAdmin


;**********************
; Increase Door Health
;**********************

; Door Health: Add 300 hp
;  50 => 350
;  115 => 415
;  100 => 400
;  150 => 450
;  200 => 500

; Door 1 (right)
modify:
{
	match:
	{
		"health" "50"
		"parentname" "puerta1"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "350"
	}
}
modify:
{
	match:
	{
		"health" "100"
		"parentname" "puerta1"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "400"
	}
}
modify:
{
	match:
	{
		"health" "115"
		"parentname" "puerta1"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "415"
	}
}
modify:
{
	match:
	{
		"health" "150"
		"parentname" "puerta1"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "450"
	}
}
modify:
{
	match:
	{
		"health" "200"
		"parentname" "puerta1"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "500"
	}
}

; Door 2 (left)

modify:
{
	match:
	{
		"health" "100"
		"parentname" "puerta2"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "400"
	}
}
modify:
{
	match:
	{
		"health" "150"
		"parentname" "puerta2"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "450"
	}
}

modify:
{
	match:
	{
		"health" "200"
		"parentname" "puerta2"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "500"
	}
}

;********************************************
; Keep the push enabled at the 'keep' longer
;********************************************

modify:
{
	match:
	{
		"targetname" "2nivel"
		"origin" "-1833.53 4068.56 1263.61"
		"classname" "func_breakable"
		"hammerid" "1643"
	}
	delete:
	{
		"OnBreak" "protecEspecial,Disable,,12,-1"
	}
	insert:
	{
		"OnBreak" "protecEspecial,Disable,,18,-1"
	}
}


;*****************************
; Final room hold way shorter
;*****************************

modify:
{
	match:
	{
		"targetname" "trigger_final"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "consola,Command,say **Resist 30s!**,0,-1"
		"OnStartTouch" "helmsdeepMusica,Volume,0,25,1"
		"OnStartTouch" "puerta_final,Close,,30,-1"
		"OnStartTouch" "sin_zombis,Enable,,30,-1"
		"OnStartTouch" "controlador,Enable,,30,-1"
	}
	insert:
	{
		"OnStartTouch" "consola,Command,say **Resist 12s!**,0,-1"
		"OnStartTouch" "helmsdeepMusica,Volume,0,7,1"
		"OnStartTouch" "puerta_final,Close,,12,-1"
		"OnStartTouch" "sin_zombis,Enable,,12,-1"
		"OnStartTouch" "controlador,Enable,,12,-1"
	}
}


;************************************
; Everyone start at a the same spawn
;************************************

; A dummy dest between the 2 main spawns (just a placeholder for the trigger teleports)
add:
{
	"origin" "-3136 -9408 256"
	"targetname" "4EchoEvent_DummyDest"
	"angles" "0 0 0"
	"classname" "info_teleport_destination"
}


; A dest at the water spawn
add:
{
	"origin" "-5520 -10064 176"
	"targetname" "4EchoEvent_SpawnWaterDest"
	"angles" "0 0 0"
	"classname" "info_teleport_destination"
}

; A dest at the rock spawn
add:
{
	"origin" "64 -10112 160"
	"targetname" "4EchoEvent_SpawnRockDest"
	"angles" "0 180 0"
	"classname" "info_teleport_destination"
}

; A dest at the cave spawn
add:
{
	"origin" "848 -8160 320"
	"targetname" "4EchoEvent_SpawnCaveDest"
	"angles" "0 90 0"
	"classname" "info_teleport_destination"
}


; Teleport around the water spawn
add:
{
	"model" "*318"
	"targetname" "4EchoEvent_SpawnWaterTP"
	"target" "4EchoEvent_DummyDest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-5326 -10002 576.7"
	"classname" "trigger_teleport"
}

; Teleport around the rock spawn
add:
{
	"model" "*318"
	"targetname" "4EchoEvent_SpawnRockTP"
	"target" "4EchoEvent_DummyDest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "78 -10094 576.7"
	"classname" "trigger_teleport"
}

; Teleport around the cave spawn
add:
{
	"model" "*318"
	"targetname" "4EchoEvent_SpawnCaveTP"
	"target" "4EchoEvent_DummyDest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "822 -7982 531.3"
	"classname" "trigger_teleport"
}

; Im adding my own logic auto cause there are already 5 in the map so why not

add:
{
	"origin" "-3136 -9408 256"
	"targetname" "4EchoEvent_RelayInit"
	"StartDisabled" "0"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnSpawn" "4EchoEvent_SpawnRandomStart,PickRandom,,0.02,1"
}

; Adding the logic case for randomness

; OnCase01: Start at Water spawn
; OnCase02: Start at Rock spawn
; OnCase03: Start at Cave spawn

add:
{
	"origin" "-3136 -9408 256"
	"targetname" "4EchoEvent_SpawnRandomStart"
	"classname" "logic_case"

	"OnCase01" "4EchoEvent_SpawnWaterTP,Kill,,0.00,1"
	"OnCase01" "4EchoEvent_SpawnCaveTP,AddOutput,target 4EchoEvent_SpawnWaterDest,0.00,1"
	"OnCase01" "4EchoEvent_SpawnCaveTP,Enable,,0.05,1"
	"OnCase01" "4EchoEvent_SpawnRockTP,AddOutput,target 4EchoEvent_SpawnWaterDest,0.00,1"
	"OnCase01" "4EchoEvent_SpawnRockTP,Enable,,0.05,1"

	"OnCase02" "4EchoEvent_SpawnRockTP,Kill,,0.00,1"
	"OnCase02" "4EchoEvent_SpawnCaveTP,AddOutput,target 4EchoEvent_SpawnRockDest,0.00,1"
	"OnCase02" "4EchoEvent_SpawnCaveTP,Enable,,0.05,1"
	"OnCase02" "4EchoEvent_SpawnWaterTP,AddOutput,target 4EchoEvent_SpawnRockDest,0.00,1"
	"OnCase02" "4EchoEvent_SpawnWaterTP,Enable,,0.05,1"

	"OnCase03" "4EchoEvent_SpawnCaveTP,Kill,,0.00,1"
	"OnCase03" "4EchoEvent_SpawnRockTP,AddOutput,target 4EchoEvent_SpawnCaveDest,0.00,1"
	"OnCase03" "4EchoEvent_SpawnRockTP,Enable,,0.05,1"
	"OnCase03" "4EchoEvent_SpawnWaterTP,AddOutput,target 4EchoEvent_SpawnCaveDest,0.00,1"
	"OnCase03" "4EchoEvent_SpawnWaterTP,Enable,,0.05,1"
}