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

modify:
{
	match:
	{
		"origin" "1040 674 807"
		"targetname" "w_10"
		"classname" "path_track"
		"hammerid" "80902"
	}
	insert:
	{
		"OnPass" "end2,AddOutput,damage 100000,12,1"
	}
}

;----------------
;FIX HIDING SPOT
;----------------

add:
{
	"spawnflags" "0"
	"targetname" "glitcher"
	"classname" "player_speedmod"
}

add:
{
	"model" "*77"
	"targetname" "no_glitch"	
	"StartDisabled" "0"
	"target" "ae_2"
	"origin" "-1372 586 721"
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"hammerid" "16507"
	"OnStartTouch" "glitcher,ModifySpeed,0.5,0,-1"
}


;------------------------------------------------
;INCREASE FIRST DOOR DELAY TO PREVENT EARLY TRIM
;AUTO-PRESS THE BUTTON TO PREVENT SOFTLOCK 
; IF CT DONT KNOW WHAT TO DO
;------------------------------------------------

modify:
{
	match:
	{
		"targetname" "push_02"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "hall,PlaySound,,0,1"
		"OnStartTouch" "p_6,Close,,15,1"
		"OnStartTouch" "p_7,Close,,15,1"
		"OnStartTouch" "b_1,Unlock,,17,1"
		"OnStartTouch" "t_2,Enable,,17,1"
		"OnStartTouch" "t_2,Kill,,19,1"
	}
	insert:
	{
		"OnStartTouch" "hall,PlaySound,,0,1"
		"OnStartTouch" "p_6,Close,,30,1"
		"OnStartTouch" "p_7,Close,,30,1"
		"OnStartTouch" "b_1,Unlock,,32,1"
		"OnStartTouch" "t_2,Enable,,32,1"
		"OnStartTouch" "t_2,Kill,,34,1"
		"OnStartTouch" "b_1,Press,,45,1"
	}
}


;--------------------------------------
;INCREASE ROUND TIME BECAUSE 9 MINUTES 
; IS NOT ENOUGH WITH THE LONGER HOLD
;--------------------------------------

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "15728"
	}
	delete:
	{
		"OnMapSpawn" "server_console,Command,mp_roundtime 9,0,-1"
	}
	insert:
	{
		"OnMapSpawn" "server_console,Command,mp_roundtime 10,0,-1"
	}
}

;--------------------------------------------------
;DELETE THE ENV_SPLASH TIMER AND LOGIC CASE
; AFTER THE ENV_SPLASH THEMSELVES HAVE BEEN KILLED
;--------------------------------------------------

modify:
{
	match:
	{
		"targetname" "b_20"
		"classname" "func_button"
		"hammerid" "71267"
		;; "OnPressed" "splash1,Kill,,0,1"
		;; "OnPressed" "splash2,Kill,,0,1"
		;; "OnPressed" "splash3,Kill,,0,1"
		;; "OnPressed" "splash4,Kill,,0,1"
	}
	insert:
	{
		"OnPressed" "adorno,Kill,,0,1"
		"OnPressed" "splashx,Kill,,0,1"
	}
}


;----------------------
;STRIPPER CFG BY encap
;----------------------

;; fix boosting issue at the backalley part
 
modify:
{
	match:
	{
		"origin" "1075.5 1460 105.68"
		"classname" "func_button"
		"spawnflags" "1024"
	}
	insert:
	{
		"targetname" "valvebutton"
	}
	replace:
	{
		"spawnflags" "3072"
	}
}
modify:
{
	match:
	{
		"targetname" "b_2"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "valvebutton,Unlock,,5,1"
		"OnPressed" "p_10,Open,,5,1"
	}
}

;; possibly fix rocket launcher playercrash

modify:
{
	match:
	{
		"targetname" "misil_fuego"
		"classname" "func_movelinear"
	}
	insert:
	{
		"disableshadows" "1"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "misil_g"
		"classname" "func_physbox_multiplayer"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "misilx1"
		"classname" "prop_physics_override"
	}
	insert:
	{
		"disablereceiveshadows" "1"
	}
	replace:
	{
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "lanzaMisiles"
		"classname" "prop_dynamic"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}

;; keep rocket launcher constrained

modify:
{
	match:
	{
		"targetname" "lanzaMisilesX"
		"classname" "weapon_hegrenade"
	}
	replace:
	{
		"spawnflags" "1"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "biohazard2/02 - annette's recollection.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#biohazard2/02 - annette's recollection.mp3"
	}
}
modify:
{
	match:
	{
		"message" "biohazard2/08 - the front hall.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#biohazard2/08 - the front hall.mp3"
	}
}
modify:
{
	match:
	{
		"message" "biohazard2/bio_02.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#biohazard2/bio_02.mp3"
	}
}
modify:
{
	match:
	{
		"message" "biohazard2/bio7.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#biohazard2/bio7.mp3"
	}
}
modify:
{
	match:
	{
		"message" "biohazard2/biostart.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#biohazard2/biostart.mp3"
	}
}
modify:
{
	match:
	{
		"message" "biohazard2/music1.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#biohazard2/music1.mp3"
	}
}

;; simple "edging issue" fix

add:
{
	"model" "*40"
	"wait" "4"
	"unlocked_sentence" "0"
	"targetname" "p_10_2"
	"speed" "75"
	"spawnpos" "0"
	"spawnflags" "34"
	"solidbsp" "0"
	"rendermode" "1"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "1326 1283.5 116"
	"loopmovesound" "0"
	"locked_sentence" "0"
	"lip" "0"
	"ignoredebris" "0"
	"health" "0"
	"forceclosed" "1"
	"dmg" "0"
	"distance" "90"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"angles" "0 0 0"
	"classname" "func_door_rotating"
}

modify:
{
	match:
	{
		"targetname" "p_10"
		"classname" "func_door_rotating"
	}
	replace:
	{
		"spawnflags" "32"
		"origin" "1322.9 1220.9 122"
		"spawnpos" "0"
		"dmg" "3"
		"rendermode" "1"
	}
	insert:
	{
		"OnFullyClosed" "p_10_2,AddOutput,origin 1323.9 1220.9 122,0,1"
		"OnFullyClosed" "p_10,Kill,,0.05,1"
	}
}
modify:
{
	match:
	{
		"origin" "1075.5 1460 105.68"
		"classname" "func_button"
		"hammerid" "15751"
	}
	delete:
	{
		"OnPressed" "p_10,Open,,17,1"
	}
	insert:
	{
		"OnPressed" "p_10_2,Open,,17,1"
	}
}