;-------------------------------------------
;STRIPPER CFG BY KOEN (STEAM_1:1:114921174)
;-------------------------------------------
;FIX BROKEN SetRemoteDestination INPUT
;--------------------------------------
modify:
{
	match:
	{
		"targetname" "ord_act_03"
	}
	delete:
	{
		"OnTrigger" "Ord_main_tpt_lvl_allSetRemoteDestinationmeme0-1"
	}
	insert:
	{
		"OnTrigger" "Ord_main_tpt_lvl_allAddOutputtarget meme0-1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage_manager"
	}
	delete:
	{
		"OnCase01" "areatpstart_ctSetRemoteDestinationluff_teleport0.2-1"
		"OnCase01" "areatpstart_tSetRemoteDestinationluff_teleport0.2-1"
		"OnCase02" "areatpstart_tSetRemoteDestinationTurtleStartTele0.2-1"
		"OnCase02" "areatpstart_ctSetRemoteDestinationTurtleStartTele0.2-1"
		"OnCase03" "areatpstart_tSetRemoteDestinationqaz_TeleportPointForEnter0.2-1"
		"OnCase03" "areatpstart_ctSetRemoteDestinationqaz_TeleportPointForEnter0.2-1"
		"OnCase04" "areatpstart_tSetRemoteDestinationOrdiaxer_T0.2-1"
		"OnCase04" "areatpstart_ctSetRemoteDestinationOrdiaxer0.2-1"
		"OnCase05" "areatpstart_tSetRemoteDestinationhich_start0.2-1"
		"OnCase05" "areatpstart_ctSetRemoteDestinationhich_start0.2-1"
	}
	insert:
	{
		"OnCase01" "areatpstart_ctAddOutputtarget luff_teleport0.2-1"
		"OnCase01" "areatpstart_tAddOutputtarget luff_teleport0.2-1"
		"OnCase02" "areatpstart_tAddOutputtarget TurtleStartTele0.2-1"
		"OnCase02" "areatpstart_ctAddOutputtarget TurtleStartTele0.2-1"
		"OnCase03" "areatpstart_tAddOutputtarget qaz_TeleportPointForEnter0.2-1"
		"OnCase03" "areatpstart_ctAddOutputtarget qaz_TeleportPointForEnter0.2-1"
		"OnCase04" "areatpstart_tAddOutputtarget Ordiaxer_T0.2-1"
		"OnCase04" "areatpstart_ctAddOutputtarget Ordiaxer0.2-1"
		"OnCase05" "areatpstart_tAddOutputtarget hich_start0.2-1"
		"OnCase05" "areatpstart_ctAddOutputtarget hich_start0.2-1"
	}
}

;---------------------------------------------------------------------------FIX FROM HEAVY 3/16/2025---------------------------------------------------------------------------

;----------------------------
; Remove invalid spawn point
;----------------------------
filter:
{
	"origin" "8500.66 -6178 1005.54"
	"angles" "0 0 0"
	"classname" "info_player_terrorist"
	"hammerid" "2099101"
}

;----------------------------
; FIX BABY KILLING EVERYBODY AT CHEPEL DOOR SPOT
;----------------------------
add:
{
	"classname" "info_particle_system"
	"angles" "0 0 0"
	"effect_name" "custom_particle_010"
	"targetname" "NO_BABY"
	"origin" "-9600 -7680 1280"
}
modify:
{
	match:
	{
		"targetname" "ITEMX_hich_zmboost_button2"
		"classname" "func_rot_button"
		"hammerid" "1628693"
	}
	delete:
	{
		"vscripts" "luffaren/filter.nut luffaren/filter.nut"
		"OnUser1" "ITEMX_hich_zmboost_maker2ForceSpawn0.05-1"
	}
	insert:
	{
		"vscripts" "luffaren/filter.nut luffaren/filter.nut ze_diddle/babymaker.nut"
		"OnUser3" "serverCommandsay ===[ ZOMBIE BABY ABORTED - BAD/EXPLOIT SPOT ]===0.02-1"
		"OnUser3" "serverCommandsay ===[ ZOMBIE BABY ABORTED - BAD/EXPLOIT SPOT ]===0.01-1"
		"OnUser3" "serverCommandsay ===[ ZOMBIE BABY ABORTED - BAD/EXPLOIT SPOT ]===0-1"
		"OnUser1" "!selfCallScriptFunctionCheckBabyMaker0-1"
	}
}

;----------------------------
; FIX EXTREME MODE SPAWN TP
;----------------------------
modify:
{
	match:
	{
		"targetname" "spawnsafety"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "managerCallScriptFunctionTeleportLate0-1"
	}
	insert:
	{
		"OnStartTouch" "managerRunScriptCodeTeleportLate();0-1"
	}
}

;--------------------------
; ADD +30% HP TO SHIELD
;--------------------------
modify:
{
	match:
	{
		"targetname" "ITEMX_qaz_item_shieldsss1"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnSpawn" "ITEMX_qaz_item_shields1RunScriptCodeAddHP(70);01"
	}
	insert:
	{
		"OnSpawn" "ITEMX_qaz_item_shields1RunScriptCodeAddHP(91);01"
	}
}
modify:
{
	match:
	{
		"targetname" "ITEMX_qaz_item_shieldsss2"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnSpawn" "ITEMX_qaz_item_shields2RunScriptCodeAddHP(100);01"
	}
	insert:
	{
		"OnSpawn" "ITEMX_qaz_item_shields2RunScriptCodeAddHP(130);01"
	}
}
modify:
{
	match:
	{
		"targetname" "ITEMX_qaz_item_shieldsss3"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnSpawn" "ITEMX_qaz_item_shields3RunScriptCodeAddHP(150);01"
	}
	insert:
	{
		"OnSpawn" "ITEMX_qaz_item_shields3RunScriptCodeAddHP(195);01"
	}
}

;--------------------------
; INSERT NEW MANAGER SCRIPT FOR INCRASING HP AND SETTING BLOOM TO A LOWER VALUE ON EXTREME
;--------------------------
modify:
{
	match:
	{
		"targetname" "func_brush"
		"hammerid" "272704"
	}
	delete:
	{
		"vscripts" "luffaren/manager_patched.nut"
	}
	insert:
	{
		"vscripts" "ze_diddle/manager_patched2.nut"
	}
}

;--------------------------
; ADD +50% HP TO ALL MOBS AND BOSSES
;--------------------------
modify:
{
	match:
	{
		"targetname" "X69XTurtleBossHP1"
		"classname" "func_breakable"
	}
	delete:
	{
		"OnBreak" "X69XTurtleBosshp2RunScriptCodeAddHP(2000,4500);0.51"
	}
	insert:
	{
		"OnBreak" "X69XTurtleBosshp2RunScriptCodeAddHP(3000,6750);0.51"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "585774"
	}
	delete:
	{
		"OnStartTouch" "X69XTurtleBossHP1RunScriptCodeAddHP(2000,4500);21.51"
	}
	insert:
	{
		"OnStartTouch" "X69XTurtleBossHP1RunScriptCodeAddHP(3000,6750);21.51"
	}
}
modify:
{
	match:
	{
		"targetname" "X69Xluff_npc_ents2"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnSpawn" "X69Xluff_npc_phys2ggRunScriptCodeAddHP(300,100);0.51"
	}
	insert:
	{
		"OnSpawn" "X69Xluff_npc_phys2ggRunScriptCodeAddHP(450,150);0.51"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "556626"
	}
	delete:
	{
		"OnStartTouch" "Ord_lvl_01_boss_breakRunScriptCodeAddHP(4000,4500);31.51"
	}
	insert:
	{
		"OnStartTouch" "Ord_lvl_01_boss_breakRunScriptCodeAddHP(6000,6750);31.51"
	}
}
modify:
{
	match:
	{
		"targetname" "Ord_main_boss_03"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "X69XOrd_main_large_diglett_breakRunScriptCodeAddHP(4000,5500);21"
	}
	insert:
	{
		"OnTrigger" "X69XOrd_main_large_diglett_breakRunScriptCodeAddHP(6000,8250);21"
	}
}
modify:
{
	match:
	{
		"targetname" "Ord_main_boss_02"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "X69XOrd_main_mid_diglett_breakRunScriptCodeAddHP(4000,2500);21"
	}
	insert:
	{
		"OnTrigger" "X69XOrd_main_mid_diglett_breakRunScriptCodeAddHP(6000,3750);21"
	}
}
modify:
{
	match:
	{
		"targetname" "Ord_lvl_02_boss_relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "Ord_lvl_02_boss_breakRunScriptCodeAddHP(2000,1200);01"
	}
	insert:
	{
		"OnTrigger" "Ord_lvl_02_boss_breakRunScriptCodeAddHP(3000,1800);01"
	}
}
modify:
{
	match:
	{
		"targetname" "seal"
		"classname" "func_breakable"
	}
	delete:
	{
		"OnUser1" "sealRunScriptCodeAddHP(100,50);61"
	}
	insert:
	{
		"OnUser1" "sealRunScriptCodeAddHP(150,75);61"
	}
}

modify:
{
	match:
	{
		"targetname" "TurtleLogic2"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase01" "X69XTurtleBossHP1RunScriptCodeAddExtraHP(500);0-1"
		"OnCase01" "X69XTurtleBossHP2RunScriptCodeAddExtraHP(500);0-1"
	}
	insert:
	{
		"OnCase01" "X69XTurtleBossHP1RunScriptCodeAddExtraHP(750);0-1"
		"OnCase01" "X69XTurtleBossHP2RunScriptCodeAddExtraHP(750);0-1"
	}
}

;incrase fetus to +100%
modify:
{
	match:
	{
		"classname" "logic_case"
		"hammerid" "253721"
	}
	delete:
	{
		"OnCase01" "npc_base_1RunScriptCodeSetHealth(1000,4000);0-1"
	}
	insert:
	{
		"OnCase01" "npc_base_1RunScriptCodeSetHealth(2000,8000);0-1"
	}
}

;--------------------------
; SET BLOOM TO A LOWER VALUE
;--------------------------
modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	delete:
	{
		"OnMapSpawn" "tonemapRunScriptCodeSetBloom(0.6);0-1"
	}
	insert:
	{
		"OnMapSpawn" "tonemapRunScriptCodeSetBloom(0.4);0-1"
	}
}

;--------------------------
; FIX CRASH SPOT AFTER PUSH
;--------------------------
modify:
{
	match:
	{
		"hammerid" "286319"
		"classname" "trigger_teleport"
	}
	delete:
	{
		"origin" "-6480 -8624 3104"
	}
	insert:
	{
		"origin" "-6480 -8624 3040"
	}
}
add:
{
	"classname" "func_wall_toggle"
	"origin" "-6480 -8624 3104"
	"model" "*625"
	"rendermode" "10"
}
modify:
{
	match:
	{
		"hammerid" "354592"
		"classname" "trigger_teleport"
	}
	delete:
	{
		"origin" "-14592 -15808 4032"
	}
	insert:
	{
		"origin" "-14592 -15812 3904"
	}
}
add:
{
	"classname" "func_wall_toggle"
	"origin" "-14592 -15808 4032"
	"model" "*592"
	"rendermode" "10"
}

; Reduce shadows - lead to client crash
modify:
{
	match:
	{
		"classname" "/prop_.*/"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "/func_.*/"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "shadow_control"
	}
	replace:
	{
		"disableallshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "point_spotlight"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

;----------------------------
; Fix chapel room zm can jump on the window then hide in the prop and kill everybody
;----------------------------
add:
{
	"classname" "func_wall_toggle"
	"origin" "-9462 -7667 1796"
	"model" "*586"
	"rendermode" "10"
}

;--------------------------
; FIX COUNTING EXTREME MODE PLAYER
;--------------------------
filter:
{
	"targetname" "extreme_mode_vote_shootbrush"
	"classname" "func_breakable"
	"hammerid" "9297"
}
add:
{
	"classname" "func_physbox_multiplayer"
	"disablereceiveshadows" "1"
	"disableshadows" "1"
	"origin" "2048 1024 2000"
	"material" "10"
	"health" "999000"
	"spawnflags" "58368"
	"PerformanceMode" "1"
	"rendermode" "10"
	"model" "*756"
	"targetname" "extreme_mode_vote_shootbrush"
	"OnDamaged" "managerRunScriptCodeExtremeModeVote();0-1"
}