;-------------------------------------------
;STRIPPER CFG BY MANY PEOPLE OVER THE YEARS
; george/tb, Moltard, Alcolo, Zacade, Vanya, koen 
;   and other people
;-------------------------------------------
;LAST UPDATE: 11 August 2024
;----------------------------

;-------------------------
; UNLOZE: STAGE DISPLAY
;-------------------------

add:
{
	"origin" "10240 3072 -13275"
	"targetname" "TheCurrentLevelPlugin"
	"min" "0"
	"max" "8"
	"startvalue" "0"
	"classname" "math_counter"
}
modify:
{
	match:
	{
		"targetname" "stagetrigger"
		"origin" "156 -188 11544"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,Add,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "stagetrigger"
		"origin" "92 -188 11544"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,Add,2,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "stagetrigger"
		"origin" "36 -188 11544"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,Add,3,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "stagetrigger"
		"origin" "-28 -188 11544"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,Add,4,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "stagetriggerwin"
		"origin" "64 -186 11656"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,Add,4,0,1"
	}
}


;============================
;First fixes from 2016 by tb
;============================

;-------------------------
; MAP: ADD MISSING BOSS MODEL
;-------------------------

; This "add:" was originally generated through the stripper python script (by the map porter)
add:
{
	"renderamt" "255"
	"StartDisabled" "1"
	"modelscale" "1.0"
	"model" "models/santa_css/luffaren/luff_santatrue.mdl"
	"origin" "10240 3072 -13280"
	"fademindist" "-1"
	"fadescale" "1"
	"MinAnimTime" "5"
	"parentname" "bosss_phys2"
	"MaxAnimTime" "10"
	"rendercolor" "255 255 255"
	"solid" "0"
	"DefaultAnim" "idlestart"
	"hammerid" "1250642"
	"angles" "0 270 0"
	"skin" "0"
	"targetname" "boss_t_model"
	"classname" "prop_dynamic"
}

; This "add:" was maybe added later in the stripper cfg but it seems to add the same boss model, at the same place, with the same name...
; We dont remove it, in case its important to have both existing but probably only the first one would be needed
add:
{
	"hammerid" "1250642"
	"classname" "prop_dynamic"
	"targetname" "boss_t_model"
	"parentname" "bosss_phys2"
	"origin" "10240 3072 -13280"
	"angles" "0 270 0"
	"model" "models/santa_css/luffaren/luff_santatrue.mdl"
	"defaultanim" "idlestart"
	"startdisabled" "1"
}

;-------------------------
; BOSS: ADJUST BOSSES HEALTHS
;-------------------------

modify:
{
	match:
	{
		"classname" "func_physbox_multiplayer"
		"targetname" "bosss_hpg2"
		"origin" "10240 3152 -12160"
		"model" "*56"
		"hammerid" "1736535"
	}
	replace:
	{
		"OnHealthChanged" "bosss_hp2,RemoveHealth,250,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"targetname" "bosss_start2"
		"origin" "10240 2048 -13129.1"
		"model" "*70"
		"hammerid" "1598476"
	}
	delete:
	{
		"OnStartTouch" "bosss_hp2,AddHealth,3000,0,-1"
	}
	insert:
	{
		"OnStartTouch" "bosss_hp2,AddHealth,4000,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"targetname" "bosss_start"
		"origin" "-961 -6912 1472"
		"model" "*82"
		"hammerid" "1524443"
	}
	delete:
	{
		"OnStartTouch" "bosss_hp,AddHealth,2000,0,-1"
	}
	insert:
	{
		"OnStartTouch" "bosss_hp,AddHealth,2200,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"targetname" "bosss_start1"
		"origin" "1568 -6656 9288"
		"model" "*92"
		"hammerid" "1597904"
	}
	delete:
	{
		"OnStartTouch" "bosss_hp1,AddHealth,2500,0,-1"
	}
	insert:
	{
		"OnStartTouch" "bosss_hp1,AddHealth,3500,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "eternaltruth_bossaddhp"
		"origin" "82.1593 131.722 11529"
		"hammerid" "2231849"
	}
	delete:
	{
		"OnTrigger" "bosss_hp1,AddHealth,1000,0,-1"
		"OnTrigger" "bosss_hp,AddHealth,1000,0,-1"
		"OnTrigger" "bosss_hp2,AddHealth,1000,0,-1"
	}
	insert:
	{
		"OnTrigger" "bosss_hp1,AddHealth,1200,0,-1"
		"OnTrigger" "bosss_hp,AddHealth,1200,0,-1"
		"OnTrigger" "bosss_hp2,AddHealth,1200,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "func_physbox_multiplayer"
		"targetname" "bosss_hpg"
		"origin" "-1000 -6912 1248"
		"model" "*501"
		"hammerid" "1767907"
	}
	replace:
	{
		"OnHealthChanged" "bosss_hp,RemoveHealth,250,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "func_physbox_multiplayer"
		"targetname" "bosss_hpg1"
		"origin" "1552 -6656 9568"
		"model" "*503"
		"hammerid" "1736347"
	}
	replace:
	{
		"OnHealthChanged" "bosss_hp1,RemoveHealth,250,0,-1"
	}
}


;===============
;Fixes by Vanya
;===============

;Moves Santa Claus' trigger slightly to the side so that players cannot glitch HP during bossfight

modify:
{
	match:
	{
		"targetname" "bosss_start"
		"classname" "trigger_multiple"
		"hammerid" "1524443"
	}
	replace:
	{
		"origin" "-961 -6880 1472"
	}
}

;Makes it so that Santa Claus' hurt trigger keeps damaging players so they can't stack anymore

modify:
{
	match:
	{
		"targetname" "bosss_hurt"
		"classname" "trigger_hurt"
		"hammerid" "1596659"
	}
	delete:
	{
		"OnHurtPlayer" "filter_triggerhurt_no,FireUser1,,0,-1"
	}
}

;Makes it so that Big Santa's hurt trigger keeps damaging players so they can't stack anymore

modify:
{
	match:
	{
		"targetname" "bosss_hurt1"
		"classname" "trigger_hurt"
		"hammerid" "1597898"
	}
	delete:
	{
		"OnHurtPlayer" "filter_triggerhurt_no,FireUser1,,0,-1"
	}
}

;Makes it so that Socrates' hurt triggers keep damaging players so they can't stack anymore

modify:
{
	match:
	{
		"targetname" "bosss_hurt2"
		"classname" "trigger_hurt"
		"hammerid" "1598470"
	}
	delete:
	{
		"OnHurtPlayer" "filter_triggerhurt_no,FireUser1,,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "bosss_hurt22"
		"classname" "trigger_hurt"
		"hammerid" "1695186"
	}
	delete:
	{
		"OnHurtPlayer" "filter_triggerhurt_no,FireUser1,,0,-1"
	}
}

;Creates a trigger around Big Santa's room so that players cannot glitch HP before bossfight

add:
{
	"model" "*536"
	"UseLandmarkAngles" "0"
	"targetname" "bosss_start1_new"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "1536 -6656 9246"
	"classname" "trigger_multiple"
	"filter" "filter_ct"
	
	"OnStartTouch" "bosss_hp1,AddHealth,3500,0,-1"
	"OnUser2" "!self,Enable,,0.2,-1"
	"OnUser2" "!self,Disable,,0.5,-1"
	"OnUser2" "bosss_hp1,SetHealth,5000,0,-1"
	"OnUser1" "!self,FireUser2,,15,-1"
	"OnUser2" "bosss_targeter1,Enable,,0,-1"
	"OnUser2" "bosss_phys1,EnableMotion,,0,-1"
	"OnUser2" "bosss_hurt1,Enable,,0,-1"
	"OnUser1" "boss_sb_modelfirst,SetDefaultAnimation,idle,7.05,-1"
	"OnUser1" "santa_s_laugh2,PlaySound,,7,-1"
	"OnUser1" "s_santapoof_maker,ForceSpawnAtEntityOrigin,bosss_start1,5,-1"
	"OnUser1" "boss_sb_modelfirst,Enable,,5,-1"
	"OnUser1" "bosss_hurt1,Enable,,10,-1"
	"OnUser1" "santa_s_laugh,PlaySound,,12,-1"
	"OnUser1" "boss_sb_modelfirst,SetAnimation,idle,9,-1"
	"OnUser1" "boss_sb_modelfirst,SetAnimation,laugh,7,-1"
	"OnUser1" "boss_sb_modelfirst,Disable,,10,-1"
	"OnUser1" "s_santapoof_maker,ForceSpawnAtEntityOrigin,bosss_start1,10,-1"
	"OnUser1" "boss_sb_model,Enable,,10,-1"
	"OnUser1" "boss_sb_model,SetAnimation,idle,12,-1"
	"OnUser1" "boss_sb_model,SetDefaultAnimation,idle,12.02,-1"
	"OnUser1" "boss_sb_model,SetAnimation,roll,15,-1"
	"OnUser1" "boss_sb_model,SetDefaultAnimation,roll,15.02,-1"
	"OnUser1" "boss_sb_wallbreak,Break,,30,-1"
	"OnUser1" "boss_sb_bouncetimer,Enable,,15,-1"
	"OnUser1" "music_fs_boss2,PlaySound,,0,-1"
	"OnUser1" "music_fs_final1,FireUser4,,0.02,1"
	"OnUser1" "music_fs_final2,FireUser4,,0.02,1"
	"OnUser1" "music_fs_final2,Volume,0,0,1"
	"OnUser1" "music_fs_final1,Volume,0,0,1"
	"OnUser2" "server,Command,say *** - BIG SANTA - ***,0,1"
	"OnUser2" "bosss_measure1,Enable,,0,-1"
	"OnUser2" "bosss_hpg1,SetParentAttachment,primary,0,-1"
	"OnStartTouch" "eternaltruth_bossaddhp,Trigger,,0,-1"
	"OnUser1" "boss_hurter_timer,FireUser1,,10,-1"
	"OnUser1" "boss_truthbender_timer,FireUser1,,10,-1"
	"OnUser1" "boss_truthbender_spawner,AddOutput,origin 915 -6625 10855,10,-1"
}

;Replaces old trigger in Big Santa's room with the new one

modify:
{
	match:
	{
		"targetname" "fs_finalgate"
		"classname" "func_door"
		"hammerid" "1388249"
	}
	delete:
	{
		"OnFullyClosed" "bosss_start1,FireUser1,,5,1"
	}
	insert:
	{
		"OnFullyClosed" "bosss_start1_new,FireUser1,,5,1"
	}
}

;Adds a new failsafe trigger so that music plays when you get to Socrates

add:
{
	"model" "*36"
	"wait" "0.1"
	"targetname" "bosss_start2_music"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "9984 -2928 -13328"
	"classname" "trigger_once"
	"OnTrigger" "music_truesanta,PlaySound,,0,-1"
	"OnTrigger" "!self,Kill,,0,1"
}

;Deletes music from the old trigger when you reach Socrates

modify:
{
	match:
	{
		"targetname" "bosss_start2"
		"classname" "trigger_multiple"
		"hammerid" "1598476"
	}
	delete:
	{
		"OnUser1" "music_truesanta,PlaySound,,0,-1"
	}
}

;Fixes music when you kill Socrates

modify:
{
	match:
	{
		"targetname" "bosss_hp2"
		"classname" "func_physbox_multiplayer"
		"hammerid" "1598473"
	}
	delete:
	{
		"OnBreak" "music_truth_win,PlaySound,,0,-1"
	}
	insert:
	{
		"OnBreak" "music_truth_win,FireUser1,,0.02,-1"
	}
}

;Adds Luffaren's stripper cix for Extreme Act 1

modify:
{
	match:
	{
		"classname" "func_physbox_multiplayer"
		"targetname" "npc_phys2gg3"
	}
	insert:
	{
		"OnBreak" "g_npc_death,Trigger,,0.00,-1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	delete:
	{
		"OnMapSpawn" "server,Command,mp_roundtime 10000,0,-1"
	}
	insert:
	{
		"OnMapSpawn" "server,Command,mp_roundtime 60,0,-1"
	}
}


;================
;Fixes by Zacade
;================

;---------------------------------------------
; Change filter_multi to allow for 7 filters
; cs:s only allows 5
;---------------------------------------------

add:
{
	"origin" "-188 156 11568"
	"classname" "filter_multi"
	"targetname" "filter_npc_5plus"
	"filtertype" "1"
	"Filter01" "filter_tiname_mini"
	"Filter02" "filter_tiname_rocket"
	"Filter03" "filter_tiname_speeder"
}
modify:
{
	match:
	{
		"classname" "filter_multi"
		"targetname" "filter_npc"
		"hammerid" "4764"
	}
	delete:
	{
		"Filter05" "filter_tiname_mini"
		"Filter06" "filter_tiname_rocket"
		"Filter07" "filter_tiname_speeder"
	}
	insert:
	{
		"Filter05" "filter_npc_5plus"
	}
}


;---------------------------------------------
; Change filter_multi to allow for 6 filters
; cs:s only allows 5
;---------------------------------------------

add:
{
	"origin" "-11840 -11920 10280"
	"classname" "filter_multi"
	"targetname" "filter_itemholder_5plus"
	"filtertype" "1"
	"Filter01" "filter_iname_rocket"
	"Filter02" "filter_iname_speeder"
}
modify:
{
	match:
	{
		"classname" "filter_multi"
		"targetname" "filter_itemholder"
		"hammerid" "2306964"
	}
	delete:
	{
		"Filter05" "filter_iname_rocket"
		"Filter06" "filter_iname_speeder"
	}
	insert:
	{
		"Filter05" "filter_itemholder_5plus"
	}
}

;---------------------------------------------
; Change filter_multi to allow for 7 filters
; cs:s only allows 5
;---------------------------------------------

add:
{
	"origin" "-11856 -11920 10280"
	"classname" "filter_multi"
	"targetname" "filter_targeted_5plus"
	"filtertype" "1"
	"Filter01" "filter_tiname_mini"
	"Filter02" "filter_tiname_rocket"
	"Filter03" "filter_tiname_speeder" ;filter_iname_speeder?
}
modify:
{
	match:
	{
		"classname" "filter_multi"
		"targetname" "filter_targeted"
		"hammerid" "2307335"
	}
	delete:
	{
		"Filter05" "filter_tiname_mini"
		"Filter06" "filter_tiname_rocket"
		"Filter07" "filter_iname_speeder"
	}
	insert:
	{
		"Filter05" "filter_targeted_5plus"
	}
}


;=================
;Fixes by Moltard
;=================

;-------------------------
; MAP: STAGE 2 > KNIFE BOOST BRIDGE
;-------------------------

add:
{
	"origin" "3584 2080 2784"
	"targetname" "FIXING_STUPID_MISTAKE"
	"target" "teleport_destination"
	"StartDisabled" "1"
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,mins -11776 -1504 -1312,0,1"
	"OnUser1" "!self,AddOutput,maxs 11776 1504 1312,0,1"
	"OnUser1" "!self,AddOutput,solid 2,0.1,1"
	"OnUser1" "!self,Enable,,0.15,1"
}
modify:
{
	match:
	{
		"targetname" "sf_event_triggers"
		"origin" "-15007.7 -2205.74 1116"
		"classname" "func_button"
		"hammerid" "754287"
	}
	insert:
	{
		"OnPressed" "FIXING_STUPID_MISTAKE,Kill,,5,1"
	}
}
modify:
{
	match:
	{
		"targetname" "sf_event_triggers"
		"origin" "-8376 192 304"
		"classname" "trigger_multiple"
		"hammerid" "690813"
	}
	insert:
	{
		"OnTrigger" "FIXING_STUPID_MISTAKE,FireUser1,,0,1"
	}
}

;-----------------------
; ANTI BOOSTS FIXES
;-----------------------

add:
{
	"classname" "logic_relay"
	"targetname" "StripperGlobalFixBoostRelay"
	"spawnflags" "2"
	"StartDisabled" "1"
	"origin" "0 0 0"
	"OnTrigger" "!activator,AddOutput,absvelocity 0 0 0,0,-1"
	"OnUser1" "!self,Enable,,0,-1"
	"OnUser1" "!self,Disable,,0.1,-1"
}

;+++++++++++++++++++++++++
; FIX 1 SPOT FOR BOOST
; Stage 1 - Start Area
;+++++++++++++++++++++++++

modify:
{
	match:
	{
		"targetname" "teleport_s2_1"
		"origin" "-10112 13184 7040"
		"classname" "trigger_teleport"
		"hammerid" "167747"
		; its enabled by itself with "OnUser1" "!self,Enable,,0.1,1"
	}
	insert:
	{
		"OnEndTouch" "StripperGlobalFixBoostRelay,Trigger,,0,-1"
		"OnUser1" "StripperGlobalFixBoostRelay,FireUser1,,0.05,1"
	}
}

;-------------------------
; 2024-08-11
; FIX TRUTH LEVEL EXPLOIT 
; BHOP TO ELEVATOR
;-------------------------

; We add 2 two triggers teleport of the model *509 (the trigger for "THE TRUE ELEVATOR IS LEAVING IN 30 SECONDS")
; Cause it has a good enough shape
; We name the 2 triggers the same as teleport_s4_9, so they are part of the existing template (tem_stage_4)
; We enable the triggers per default (whereas the original teleport_s4_9 is a afk tp trigger disabled per default)
; When the tram arrive, it FireUser1 on the teleport_s4_9, which move the destination and enables that trigger 
; => We use that to our advantage, and OnUser1 we kill these 2 anti glitch trigger, 
;    so there is no risk of someone touching the triggers by mistake later
add:
{
	"model" "*509"
	"UseLandmarkAngles" "1"
	"targetname" "teleport_s4_9"
	"target" "teleport_destination"
	"StartDisabled" "0"
	"spawnflags" "4097"
	"origin" "13280 -11392 -12512"
	"CheckDestIfClearForPlayer" "0"
	"classname" "trigger_teleport"
	"OnUser1" "!self,Kill,,0.1,1"
}
add:
{
	"model" "*509"
	"UseLandmarkAngles" "1"
	"targetname" "teleport_s4_9"
	"target" "teleport_destination"
	"StartDisabled" "0"
	"spawnflags" "4097"
	"origin" "12640 -11392 -12512"
	"CheckDestIfClearForPlayer" "0"
	"classname" "trigger_teleport"
	"OnUser1" "!self,Kill,,0.1,1"
}


;========================================
;Fixes by Alcolo, koen and other people
;========================================

;-------------------------
; MAP: STAGE 1 > END DOOR DOES NOT APPLY DAMAGE
; Prevent players from getting stuck 
; in elevator door and failing the round
;-------------------------

modify:
{
	match:
	{
		"targetname" "bb_mazegate_10"
		"classname" "func_door"
		"hammerid" "228071"
	}
	replace:
	{
		"ignoredebris" "0"
	}
}

;-------------------------
; MAP: STAGE 3 > PLAYERS CANT BLOCK ELEVATOR GATE
;-------------------------

modify:
{
	match:
	{
		"targetname" "fs_rightelevator_door"
		"classname" "func_door"
	}
	replace:
	{
		"dmg" "10000"
	}
}

;-------------------------
; MAP: STAGE 3 > LEFT PATH ZOMBIE SKIP
;-------------------------

modify:
{
	match:
	{
		"model" "*80"
		"hammerid" "1617596"
		"classname" "func_button"
	}
	delete:
	{
		"OnPressed" "fs_tele_firstouter,AddOutput,angles 0 0 0,0,1"
		"OnPressed" "fs_tele_firstouter,AddOutput,origin -2215 -4365 -4025,0,1"
	}
	insert:
	{
		"OnPressed" "fs_tele_firstouter,AddOutput,angles 0 0 0,20,1"
		"OnPressed" "fs_tele_firstouter,AddOutput,origin -2215 -4365 -4025,20,1"
	}
}

;-------------------------
; MAP: STAGE 3 > LOWER PATH ELEVATOR
;-------------------------

add:
{
	"model" "*454"
	"classname" "trigger_once"
	"targetname" "stripper_fix_stage_3_elevator"
	"origin" "2336 -7712 -2576"
	"spawnflags" "1"
	"startdisabled" "1"
	"wait" "0"
	"OnStartTouch" "!activator,AddOutput,origin 2336 -7712 -2544,0,-1"
}
modify:
{
	match:
	{
		"model" "*544"
		"hammerid" "1321160"
		"classname" "func_door"
	}
	insert:
	{
		"OnFullyOpen" "stripper_fix_stage_3_elevator,Enable,,0,1"
		"OnFullyOpen" "stripper_fix_stage_3_elevator,Kill,,1,1"
	}
}

;-------------------------
; MAP: STAGE 3 > JUMP SKIP AROUND MIDDLE GATE
;-------------------------

add:
{
	"model" "*455"
	"classname" "trigger_multiple"
	"targetname" "stripper_fix_stage_3_gate_1"
	"origin" "-3076 -9106 156"
	"angles" "0 90 0"
	"spawnflags" "1"
	"wait" "0"
	"OnStartTouch" "!activator,AddOutput,origin -3200 -9216 104,0,-1"
}
add:
{
	"model" "*455"
	"classname" "trigger_multiple"
	"targetname" "stripper_fix_stage_3_gate_2"
	"origin" "-3428 -9134 156"
	"angles" "0 90 0"
	"spawnflags" "1"
	"wait" "0"
	"OnStartTouch" "!activator,AddOutput,origin -3200 -9216 104,0,-1"
}
modify:
{
	match:
	{
		"model" "*493"
		"hammerid" "1901988"
		"classname" "func_door"
	}
	insert:
	{
		"OnUser1" "stripper_fix_stage_3_gate_1,Kill,,30,1"
		"OnUser1" "stripper_fix_stage_3_gate_2,Kill,,30,1"
	}
}

;-------------------------
; ITEM: FIX MISSING CZ75A SOUND
;-------------------------

filter:
{
	"hammerid" "183637"
	"classname" "ambient_generic"
	"targetname" "item_s_3"
}
filter:
{
	"hammerid" "183555"
	"classname" "ambient_generic"
	"targetname" "item_s_3"
}
modify:
{
	match:
	{
		"hammerid" "183640"
		"classname" "ambient_generic"
		"targetname" "item_s_3"
	}
	replace:
	{
		"health" "5"
	}
}

;-------------------------
; ITEM: PARENT BUTTONS TO WEAPONS
;-------------------------

modify:
{
	match:
	{
		"model" "*432"
		"hammerid" "183115"
		"classname" "func_button"
	}
	replace:
	{
		"parentname" "item_holder_1"
	}
}
modify:
{
	match:
	{
		"model" "*434"
		"hammerid" "183392"
		"classname" "func_button"
	}
	replace:
	{
		"parentname" "item_holder_2"
	}
}
modify:
{
	match:
	{
		"model" "*440"
		"hammerid" "183625"
		"classname" "func_button"
	}
	replace:
	{
		"parentname" "item_holder_3"
	}
}
modify:
{
	match:
	{
		"model" "*9"
		"hammerid" "1847050"
		"classname" "func_button"
	}
	replace:
	{
		"parentname" "item_holder_4"
	}
}
modify:
{
	match:
	{
		"model" "*11"
		"hammerid" "1983646"
		"classname" "func_button"
	}
	replace:
	{
		"parentname" "item_holder_5"
	}
}
modify:
{
	match:
	{
		"model" "*6"
		"hammerid" "2078724"
		"classname" "func_button"
	}
	replace:
	{
		"parentname" "item_holder_6"
	}
}

;-------------------------
; BOSS: FIX PARENT OUTPUT
;-------------------------

modify:
{
	match:
	{
		"classname" "func_physbox_multiplayer"
		"targetname" "bosss_hpg1"
		"origin" "1552 -6656 9568"
		"model" "*503"
		"hammerid" "1736347"
	}
	delete:
	{
		"OnUser2" "bosss_hpg1,SetParent,boss_sb_model,0,-1"
	}
	insert:
	{
		"OnUser2" "bosss_hpg1,SetParentAttachment,primary,0,-1"
	}
}

;-------------------------
; MAP: STAGE 4 (TRUTH) > FIX AFK TP NOT ENABLED
;-------------------------

modify:
{
	match:
	{
		"hammerid" "1726094"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnBreak" "teleport_s4_8,FireUser1,,20,1"
	}
	insert:
	{
		"OnTrigger" "teleport_s4_8,FireUser1,,20,1"
	}
}

;-------------------------
; MAP: ITEMS > GIVE ITEMS MORE AMMO
;-------------------------

modify:
{
	match:
	{
		"classname" "weapon_glock"
	}
	insert:
	{
		"ammo" "1337"
	}
}


;========================================
;Item filtering propper fix
;Using filter_activator_context which only 
; exists through the "cssfixes" extension
;========================================

filter:
{
	"classname" "filter_multi"
	"hammerid" "4764"
}
filter:
{
	"classname" "filter_multi"
	"hammerid" "2306964"
}
filter:
{
	"classname" "filter_multi"
	"hammerid" "2307335"
}
filter:
{
	"classname" "filter_activator_name"
	"hammerid" "2306958"
}
filter:
{
	"classname" "filter_activator_name"
	"hammerid" "2307031"
}
filter:
{
	"classname" "filter_activator_name"
	"hammerid" "2307033"
}
filter:
{
	"classname" "filter_activator_name"
	"hammerid" "2307035"
}
filter:
{
	"classname" "filter_activator_name"
	"hammerid" "2307037"
}
filter:
{
	"classname" "filter_activator_name"
	"hammerid" "2307039"
}

modify:
{
	match:
	{
		"targetname" "item_filter_1"
		"classname" "filter_multi"
	}
	replace:
	{
		"classname" "filter_activator_name"
	}
	insert:
	{
		"filtername" "item_rocket"
	}
}

modify:
{
	match:
	{
		"targetname" "item_filter_2"
		"classname" "filter_multi"
	}
	replace:
	{
		"classname" "filter_activator_name"
	}
	insert:
	{
		"filtername" "item_laser"
	}
}

modify:
{
	match:
	{
		"targetname" "item_filter_3"
		"classname" "filter_multi"
	}
	replace:
	{
		"classname" "filter_activator_name"
	}
	insert:
	{
		"filtername" "item_minigun"
	}
}

modify:
{
	match:
	{
		"targetname" "item_filter_4"
		"classname" "filter_multi"
	}
	replace:
	{
		"classname" "filter_activator_name"
	}
	insert:
	{
		"filtername" "item_herder"
	}
}

modify:
{
	match:
	{
		"targetname" "item_filter_5"
		"classname" "filter_multi"
	}
	replace:
	{
		"classname" "filter_activator_name"
	}
	insert:
	{
		"filtername" "item_medkit"
	}
}

modify:
{
	match:
	{
		"targetname" "item_filter_6"
		"classname" "filter_multi"
	}
	replace:
	{
		"classname" "filter_activator_name"
	}
	insert:
	{
		"filtername" "item_speeder"
	}
}

add:
{
	"classname" "filter_activator_context"
	"ResponseContext" "npc_target"
	"Negated" "0"
	"targetname" "filter_npc"
}

modify:
{
	match:
	{
		"targetname" "bosss_targeter2"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "filter_targeted,TestActivator,,0,-1"
	}
	insert:
	{
		"OnTrigger" "!activator,AddContext,npc_target:1,0,-1"
		"OnTrigger" "!activator,RemoveContext,npc_target,6.9,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "bosss_targeter"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "filter_targeted,TestActivator,,0,-1"
	}
	insert:
	{
		"OnTrigger" "!activator,AddContext,npc_target:1,0,-1"
		"OnTrigger" "!activator,RemoveContext,npc_target,6.9,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "bosss_targeter1"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "filter_targeted,TestActivator,,0,-1"
	}
	insert:
	{
		"OnTrigger" "!activator,AddContext,npc_target:1,0,-1"
		"OnTrigger" "!activator,RemoveContext,npc_target,6.9,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "npc_ents5"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "filter_targeted,TestActivator,,0,-1"
	}
	insert:
	{
		"OnTrigger" "!activator,AddContext,npc_target:1,0,-1"
		"OnTrigger" "!activator,RemoveContext,npc_target,6.9,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "i_mm_targettrigger"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "filter_targeted,TestActivator,,0,-1"
	}
	insert:
	{
		"OnTrigger" "!activator,AddContext,npc_target:1,0,-1"
		"OnTrigger" "!activator,RemoveContext,npc_target,6.9,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "npc_ents2"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "filter_targeted,TestActivator,,0,-1"
	}
	insert:
	{
		"OnTrigger" "!activator,AddContext,npc_target:1,0,-1"
		"OnTrigger" "!activator,RemoveContext,npc_target,6.9,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "npc_ents3"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "filter_targeted,TestActivator,,0,-1"
	}
	insert:
	{
		"OnTrigger" "!activator,AddContext,npc_target:1,0,-1"
		"OnTrigger" "!activator,RemoveContext,npc_target,6.9,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "npc_ents4"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "filter_targeted,TestActivator,,0,-1"
	}
	insert:
	{
		"OnTrigger" "!activator,AddContext,npc_target:1,0,-1"
		"OnTrigger" "!activator,RemoveContext,npc_target,6.9,-1"
	}
}
