;fix broken outputs
modify:
{
	match:
	{
		"targetname" "sphere_boss_hurt"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"OnHurt" "s3_boss_math_counter,Subtract,14,0,-1"
	}
	insert:
	{
		"OnHurtPlayer" "s3_boss_math_counter,Subtract,14,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_final_boss_return_hurt1"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"OnHurt" "s4_finalboss_return_counter,Subtract,15,0,-1"
	}
	insert:
	{
		"OnHurtPlayer" "s4_finalboss_return_counter,Subtract,15,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_final_boss_return_hurt2"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"OnHurt" "s4_finalboss_return_counter,Subtract,15,0,-1"
	}
	insert:
	{
		"OnHurtPlayer" "s4_finalboss_return_counter,Subtract,15,0,-1"
	}
}

;fix temporary tp avoidance spot (would advance with a later tp, but is at a kz trigger..)
add:
{
	"classname" "trigger_teleport"
	"id" "69214"
	"model" "*41"
	"targetname" "s1_trigger_teleport02"
	"UseLandmarkAngles" "1"
	"target" "s1_dest03"
	"StartDisabled" "1"
	"spawnflags" "1"
}

;fix broken zm tp
modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"targetname" "s4_falldown_zm_dest"
	}
	replace:
	{
		"spawnflags" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "dodge_template"
		"classname" "point_template"
	}
	delete:
	{
		"Template06" "dodge_light"
	}
}

;fix/rework human slow item
modify:
{
	match:
	{
		"targetname" "human_canon_slow_elites"
		"classname" "weapon_elite"
	}
	delete:
	{
		"OnPlayerPickup" "!activator,AddOutput,targetname player_human_canon_slow,0,1"
	}
	insert:
	{
		"OnPlayerPickup" "!activator,AddOutput,targetname player_human_canon_slow,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "human_canon_slow_filter"
		"classname" "filter_activator_name"
	}
	delete:
	{
		"OnPass" "human_canon_slow_button,Unlock,,25,-1"
		"OnPass" "human_canon_slow_eff,Start,,25,-1"
	}
	insert:
	{
		"OnPass" "human_canon_slow_button,Unlock,,4,-1"
		"OnPass" "human_canon_slow_eff,Start,,4,-1"
	}
}

;modify speed
modify:
{
	match:
	{
		"classname" "func_door"
		"targetname" "human_canon_slow_door"
	}
	replace:
	{
		"speed" "525"
		"lip" "1500"
	}
}

; ------------------------------------------------------------------------------------------------------------------------------------------------------
;                                                             *******************************

;                           -------------------------------------------> 18/08/2024 <-------------------------------------------

;                                                             *******************************
; ------------------------------------------------------------------------------------------------------------------------------------------------------

; Stage 2 boss more hp
modify:
{
	match:
	{
		"targetname" "s2_addhpboss"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s2_boss_counter,Add,450,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s2_boss_counter,Add,600,0,-1"
	}
}

; Stage 3 ending boss more hp
modify:
{
	match:
	{
		"targetname" "s3_addhp_to_boss"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "s3_boss_math_counter,Add,32,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s3_boss_math_counter,Add,45,0,-1"
	}
}

; Zombie freeze now similar to visualizer, the ball will not stop once it touch a human but will continue until its fully open and can now freeze multiple humans
modify:
{
	match:
	{
		"targetname" "zfreeze_hurt1"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "zfreeze_hurt1,Kill,,0,-1"
		"OnStartTouch" "zfreeze_particle_startmove,Kill,,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,Color,255 255 255,5,-1"
		"OnStartTouch" "!activator,Color,93 237 246,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "zfreeze_door"
		"classname" "func_door"
	}
	insert:
	{
		"OnFullyOpen" "zfreeze_hurt1,Kill,,0,-1"
		"OnFullyOpen" "zfreeze_particle_startmove,Kill,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "zfreeze_door"
		"classname" "func_door"
	}
	replace:
	{
		"speed" "325"
	}
}

; Zombie fireball is now more powerfull, ignite fire longer time, will slow humans a bit and give more damage.
modify:
{
	match:
	{
		"targetname" "zfire_hurt1"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"OnStartTouch" "!activator,IgniteLifetime,4,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,IgniteLifetime,5,0,-1"
		"OnStartTouch" "speed,ModifySpeed,1.0,3,-1"
		"OnStartTouch" "speed,ModifySpeed,0.7,0,-1"
		"OnStartTouch" "!activator,Color,255 255 255,3,-1"
		"OnStartTouch" "!activator,Color,205 31 31,0,-1"
	}
	replace:
	{
		"damage" "65"
	}
}
modify:
{
	match:
	{
		"targetname" "zfire_door"
		"classname" "func_door"
	}
	replace:
	{
		"speed" "325"
	}
}

; Zombie slow can now be spammed from 20 secs refire to 4
modify:
{
	match:
	{
		"targetname" "zslow_filter"
		"classname" "filter_activator_name"
	}
	delete:
	{
		"OnPass" "zslow_button,Unlock,,20,-1"
		"OnPass" "zslow_eff,Start,,20,-1"
	}
	insert:
	{
		"OnPass" "zslow_button,Unlock,,4,-1"
		"OnPass" "zslow_eff,Start,,4,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "zslow_hurt1"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnStartTouch" "!activator,Color,255 255 255,3,-1"
		"OnStartTouch" "!activator,Color,229 199 107,0,-1"
	}
}

; Add 2 extra zm items on stage 1
add:
{
	"targetname" "stage1_zm_item_location03"
	"classname" "logic_relay"
	"spawnflags" "0"
	"id" "446543"
	"origin" "3584 14432 10248"
	"OnTrigger" "item_maker,ForceSpawnAtEntityOrigin,!caller,0,1"
	"OnTrigger" "!self,Kill,,6,-1"
}
add:
{
	"targetname" "stage1_zm_item_location04"
	"classname" "logic_relay"
	"spawnflags" "0"
	"id" "446554"
	"origin" "848 11536 10280"
	"OnTrigger" "item_maker,ForceSpawnAtEntityOrigin,!caller,0,1"
	"OnTrigger" "!self,Kill,,6,-1"
}
modify:
{
	match:
	{
		"targetname" "stage1_item_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "!self,FireUser2,,0.8,-1"
		"OnTrigger" "!self,FireUser2,,0.9,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage1_zm_location_case"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase03" "stage1_zm_item_location03,Trigger,,0,1"
		"OnCase04" "stage1_zm_item_location04,Trigger,,0,1"
	}
}

; Add 1 extra zm items on stage 2
add:
{
	"targetname" "stage2_zm_item_location04"
	"classname" "logic_relay"
	"spawnflags" "0"
	"id" "446568"
	"origin" "8512 10976 728"
	"OnTrigger" "item_maker,ForceSpawnAtEntityOrigin,!caller,0,1"
	"OnTrigger" "!self,Kill,,6,-1"
}
modify:
{
	match:
	{
		"targetname" "stage2_item_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "!self,FireUser2,,0.9,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage2_zm_location_case"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase04" "stage2_zm_item_location04,Trigger,,0,1"
	}
}

; Stage 4 door timer fix
modify:
{
	match:
	{
		"targetname" "s4_once02"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "cmd,Command,say | 5 |,25,1"
	}
}

; Stage 4 mini boss near start modify / refire / lip / hurt
modify:
{
	match:
	{
		"targetname" "mini_boss_timer"
		"classname" "logic_timer"
	}
	replace:
	{
		"LowerRandomBound" "0.4"
		"UpperRandomBound" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "mini_boss_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "110"
	}
}
modify:
{
	match:
	{
		"targetname" "miniboss_door"
		"classname" "func_door"
	}
	replace:
	{
		"speed" "400"
		"lip" "3500"
	}
}
modify:
{
	match:
	{
		"targetname" "miniboss_door_move"
		"classname" "func_door"
	}
	replace:
	{
		"origin" "12960 -312 -11424"
		"lip" "1765"
	}
}

; Stage 4 mini boss glitch fix and balls hurt modify
modify:
{
	match:
	{
		"targetname" "DONT_shoot_from_here2"
		"classname" "func_physbox_multiplayer"
	}
	replace:
	{
		"origin" "-4192 -6810 -10944"
	}
}
modify:
{
	match:
	{
		"targetname" "small_boss_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "120"
	}
}

; Stage 4 door fix before gravity
modify:
{
	match:
	{
		"targetname" "s4_door12"
		"classname" "func_door"
	}
	replace:
	{
		"origin" "-4176.02 -6688 -10016"
	}
}

; Stage 4 gravity fix
modify:
{
	match:
	{
		"targetname" "s4_push"
		"classname" "trigger_push"
	}
	replace:
	{
		"classname" "trigger_multiple"
		"targetname" "s4_push"
		"origin" "-1824 -6112 -9500"
		"spawnflags" "1"
		"StartDisabled" "0"
		"wait" "0.095"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,gravity 0.02,0,-1"
		"OnEndTouch" "!activator,AddOutput,gravity 1,0.05,-1"
		"OnEndTouch" "!activator,AddOutput,gravity 1,0,-1"
	}
}

; Stage 4 triggers after gravity are not only once
modify:
{
	match:
	{
		"targetname" "s4_once10"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_counter_longjumps,Add,1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_counter_longjumps,Add,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_once11"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_counter_longjumps,Add,1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_counter_longjumps,Add,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_once09"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_counter_longjumps,Add,1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_counter_longjumps,Add,1,0,1"
	}
}

; Stage 4, 4 triggers room not only once
modify:
{
	match:
	{
		"targetname" "s4_once14"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_4_triggers_counter,Add,1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_4_triggers_counter,Add,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_once15"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_4_triggers_counter,Add,1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_4_triggers_counter,Add,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_once16"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_4_triggers_counter,Add,1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_4_triggers_counter,Add,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_once17"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_4_triggers_counter,Add,1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_4_triggers_counter,Add,1,0,1"
	}
}

; Stage 4, 2 triggers before ending not only once
modify:
{
	match:
	{
		"targetname" "s4_once18"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_2_triggers_counter,Add,1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_2_triggers_counter,Add,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_once19"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_2_triggers_counter,Add,1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_2_triggers_counter,Add,1,0,1"
	}
}

; Stage 4 ending cube small extra hp; 40 to 45
modify:
{
	match:
	{
		"targetname" "s4_ending_addhp"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "s4_finalboss_counter,Add,40,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s4_finalboss_counter,Add,45,0,-1"
	}
}

; Stage 4 ending lasers faster and refire lower
modify:
{
	match:
	{
		"targetname" "s4_final_boss_return_doorlaser1"
		"classname" "func_door"
	}
	replace:
	{
		"speed" "1600"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_final_boss_return_doorlaser2"
		"classname" "func_door"
	}
	replace:
	{
		"speed" "1600"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_final_boss_return_timer"
		"classname" "logic_timer"
	}
	replace:
	{
		"RefireTime" "1.25"
	}
}

;Stage 4 ending fix?
modify:
{
	match:
	{
		"classname" "logic_timer"
		"targetname" "dodge_timer"
	}
	replace:
	{
		"RefireTime" "0.3"
	}
}

; Trying to kill as much useless entities as possible
modify:
{
	match:
	{
		"targetname" "s4_ending_dodge_once_trigger"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "env_lightglow*,Kill,,0,0"
		"OnStartTouch" "point_spotlight*,Kill,,0,0"
		"OnStartTouch" "func_button*,Kill,,0,0"
		"OnStartTouch" "laser_wall_target*,Kill,,0,0"
		"OnStartTouch" "zring_target*,Kill,,0,0"
		"OnStartTouch" "laser_wall_cube*,Kill,,0,0"
		"OnStartTouch" "push_push,Kill,,0,0"
		"OnStartTouch" "zgravity_push,Kill,,0,0"
	}
}

; Music related

; Add "#" so players can control the music volume
modify:
{
	match:
	{
		"classname" "s1_music01"
		"targetname" "ambient_generic"
	}
	delete:
	{
		"message" "ze_minimal/tondchee  enter forever.mp3"
	}
	insert:
	{
		"message" "#ze_minimal/tondchee  enter forever.mp3"
	}
}
modify:
{
	match:
	{
		"classname" "s1_music02"
		"targetname" "ambient_generic"
	}
	delete:
	{
		"message" "ze_minimal/almost vanished - altitude.mp3"
	}
	insert:
	{
		"message" "#ze_minimal/almost vanished - altitude.mp3"
	}
}
modify:
{
	match:
	{
		"classname" "s2_music01"
		"targetname" "ambient_generic"
	}
	delete:
	{
		"message" "ze_minimal/e-mantra - the darkest hours [mpgun.com].mp3"
	}
	insert:
	{
		"message" "#ze_minimal/e-mantra - the darkest hours [mpgun.com].mp3"
	}
}
modify:
{
	match:
	{
		"classname" "s3_music01"
		"targetname" "ambient_generic"
	}
	delete:
	{
		"message" "ze_minimal/sync24 - dance of the droids [music video] [mpgun.com].mp3"
	}
	insert:
	{
		"message" "#ze_minimal/sync24 - dance of the droids [music video] [mpgun.com].mp3"
	}
}
modify:
{
	match:
	{
		"classname" "s3_music02"
		"targetname" "ambient_generic"
	}
	delete:
	{
		"message" "ze_minimal/direct - abandon [mpgun.com].mp3"
	}
	insert:
	{
		"message" "#ze_minimal/direct - abandon [mpgun.com].mp3"
	}
}
modify:
{
	match:
	{
		"classname" "s4_music01"
		"targetname" "ambient_generic"
	}
	delete:
	{
		"message" "ze_minimal/spaceship [mpgun.com].mp3"
	}
	insert:
	{
		"message" "#ze_minimal/spaceship [mpgun.com].mp3"
	}
}
modify:
{
	match:
	{
		"classname" "s4_music02"
		"targetname" "ambient_generic"
	}
	delete:
	{
		"message" "ze_minimal/ennja - contact [mpgun.com].mp3"
	}
	insert:
	{
		"message" "#ze_minimal/ennja - contact [mpgun.com].mp3"
	}
}

; Boost music volume
add:
{
	"targetname" "s1_music01"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#ze_minimal/tondchee  enter forever.mp3"
	"lfotype" "0"
	"lforate" "0"
	"lfomodvol" "0"
	"lfomodpitch" "0"
	"health" "10"
	"fadeoutsecs" "0"
	"fadeinsecs" "0"
	"cspinup" "0"
	"volstart" "0"
	"spinup" "0"
	"spindown" "0"
	"radius" "10000"
	"preset" "0"
	"pitchstart" "100"
	"pitch" "100"
}
add:
{
	"targetname" "s1_music02"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#ze_minimal/almost vanished - altitude.mp3"
	"lfotype" "0"
	"lforate" "0"
	"lfomodvol" "0"
	"lfomodpitch" "0"
	"health" "10"
	"fadeoutsecs" "0"
	"fadeinsecs" "0"
	"cspinup" "0"
	"volstart" "0"
	"spinup" "0"
	"spindown" "0"
	"radius" "10000"
	"preset" "0"
	"pitchstart" "100"
	"pitch" "100"
}
add:
{
	"targetname" "s2_music01"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#ze_minimal/e-mantra - the darkest hours [mpgun.com].mp3"
	"lfotype" "0"
	"lforate" "0"
	"lfomodvol" "0"
	"lfomodpitch" "0"
	"health" "10"
	"fadeoutsecs" "0"
	"fadeinsecs" "0"
	"cspinup" "0"
	"volstart" "0"
	"spinup" "0"
	"spindown" "0"
	"radius" "10000"
	"preset" "0"
	"pitchstart" "100"
	"pitch" "100"
}
add:
{
	"targetname" "s2_music02"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#ze_minimal/cyberia complex.mp3"
	"lfotype" "0"
	"lforate" "0"
	"lfomodvol" "0"
	"lfomodpitch" "0"
	"health" "10"
	"fadeoutsecs" "0"
	"fadeinsecs" "0"
	"cspinup" "0"
	"volstart" "0"
	"spinup" "0"
	"spindown" "0"
	"radius" "10000"
	"preset" "0"
	"pitchstart" "100"
	"pitch" "100"
}
add:
{
	"targetname" "s3_music01"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#ze_minimal/sync24 - dance of the droids [music video] [mpgun.com].mp3"
	"lfotype" "0"
	"lforate" "0"
	"lfomodvol" "0"
	"lfomodpitch" "0"
	"health" "10"
	"fadeoutsecs" "0"
	"fadeinsecs" "0"
	"cspinup" "0"
	"volstart" "0"
	"spinup" "0"
	"spindown" "0"
	"radius" "10000"
	"preset" "0"
	"pitchstart" "100"
	"pitch" "100"
}
add:
{
	"targetname" "s3_music02"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#ze_minimal/direct - abandon [mpgun.com].mp3"
	"lfotype" "0"
	"lforate" "0"
	"lfomodvol" "0"
	"lfomodpitch" "0"
	"health" "10"
	"fadeoutsecs" "0"
	"fadeinsecs" "0"
	"cspinup" "0"
	"volstart" "0"
	"spinup" "0"
	"spindown" "0"
	"radius" "10000"
	"preset" "0"
	"pitchstart" "100"
	"pitch" "100"
}
add:
{
	"targetname" "s3_endmusic"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#ze_minimal/skeler - tel aviv [mpgun.com].mp3"
	"lfotype" "0"
	"lforate" "0"
	"lfomodvol" "0"
	"lfomodpitch" "0"
	"health" "10"
	"fadeoutsecs" "0"
	"fadeinsecs" "0"
	"cspinup" "0"
	"volstart" "0"
	"spinup" "0"
	"spindown" "0"
	"radius" "10000"
	"preset" "0"
	"pitchstart" "100"
	"pitch" "100"
}
add:
{
	"targetname" "s4_music01"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#ze_minimal/spaceship [mpgun.com].mp3"
	"lfotype" "0"
	"lforate" "0"
	"lfomodvol" "0"
	"lfomodpitch" "0"
	"health" "10"
	"fadeoutsecs" "0"
	"fadeinsecs" "0"
	"cspinup" "0"
	"volstart" "0"
	"spinup" "0"
	"spindown" "0"
	"radius" "10000"
	"preset" "0"
	"pitchstart" "100"
	"pitch" "100"
}
add:
{
	"targetname" "s4_music02"
	"classname" "ambient_generic"
	"spawnflags" "49"
	"message" "#ze_minimal/ennja - contact [mpgun.com].mp3"
	"lfotype" "0"
	"lforate" "0"
	"lfomodvol" "0"
	"lfomodpitch" "0"
	"health" "10"
	"fadeoutsecs" "0"
	"fadeinsecs" "0"
	"cspinup" "0"
	"volstart" "0"
	"spinup" "0"
	"spindown" "0"
	"radius" "10000"
	"preset" "0"
	"pitchstart" "100"
	"pitch" "100"
}

; ------------------------------------------------------------------------------------------------------------------------------------------------------
;                                                             *******************************

;                           -------------------------------------------> 20/08/2024 <-------------------------------------------

;                                                             *******************************
; ------------------------------------------------------------------------------------------------------------------------------------------------------

; Stage 1 teleport fix where you can avoid nuke
modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"targetname" "s1_trigger_teleport04"
	}
	replace:
	{
		"origin" "-96 10560 10812.8"
	}
}

; Stage 1 ending door open 5 sec too early
modify:
{
	match:
	{
		"classname" "trigger_once"
		"targetname" "s1_once08"
	}
	delete:
	{
		"OnStartTouch" "s1_door09,Open,,25,1"
	}
	insert:
	{
		"OnStartTouch" "s1_door09,Open,,30,1"
	}
}

; Modify zombie slow item lip and speed
modify:
{
	match:
	{
		"targetname" "zslow_door"
		"classname" "func_door"
	}
	replace:
	{
		"lip" "1500"
		"speed" "380"
	}
}

; Change zombie freezeball cooldown from 50 to 25
modify:
{
	match:
	{
		"classname" "filter_activator_name"
		"targetname" "zfreeze_filter"
	}
	delete:
	{
		"OnPass" "zfreeze_eff,Start,,50,-1"
		"OnPass" "zfreeze_button,Unlock,,50,-1"
	}
	insert:
	{
		"OnPass" "zfreeze_eff,Start,,25,-1"
		"OnPass" "zfreeze_button,Unlock,,25,-1"
	}
}

; Change zombie fireball cooldown from 35 to 25
modify:
{
	match:
	{
		"classname" "filter_activator_name"
		"targetname" "zfire_filter"
	}
	delete:
	{
		"OnPass" "zfire_eff,Start,,35,-1"
		"OnPass" "zfire_button,Unlock,,35,-1"
	}
	insert:
	{
		"OnPass" "zfire_eff,Start,,25,-1"
		"OnPass" "zfire_button,Unlock,,25,-1"
	}
}

; Increase sv_airaccelerate from 10 to 16
modify:
{
	match:
	{
		"origin" "2960 3816 10392"
		"classname" "logic_auto"
	}
	delete:
	{
		"OnMapSpawn" "cmd,Command,sv_airaccelerate 10,0,-1"
	}
	insert:
	{
		"OnMapSpawn" "cmd,Command,sv_airaccelerate 16,0,-1"
	}
}

; Stage 2 add extra hp to the 4 cubes to break before boss fight
modify:
{
	match:
	{
		"classname" "trigger_once"
		"targetname" "s2_once_add_cube_hp"
	}
	delete:
	{
		"OnStartTouch" "s2_breakable_before_boss01,AddHealth,80,0,-1"
		"OnStartTouch" "s2_breakable_before_boss02,AddHealth,80,0,-1"
		"OnStartTouch" "s2_breakable_before_boss03,AddHealth,80,0,-1"
		"OnStartTouch" "s2_breakable_before_boss04,AddHealth,80,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s2_breakable_before_boss01,AddHealth,120,0,-1"
		"OnStartTouch" "s2_breakable_before_boss02,AddHealth,120,0,-1"
		"OnStartTouch" "s2_breakable_before_boss03,AddHealth,120,0,-1"
		"OnStartTouch" "s2_breakable_before_boss04,AddHealth,120,0,-1"
	}
}

; Stage 2 delete filter on tp after bossfight (humans avoid tp)
modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"targetname" "s2_end_boss_teleport_lasthold_zombies"
	}
	delete:
	{
		"filtername" "filter_zombies"
	}
}

; ------------------------------------------------------------------------------------------------------------------------------------------------------
;                                                             *******************************

;                           -------------------------------------------> 07/02/2025 <-------------------------------------------

;                                                             *******************************
; ------------------------------------------------------------------------------------------------------------------------------------------------------

; Stage 2 TP exploit fix
add:
{
	"model" "*73"
	"wait" "1"
	"targetname" "s2_trigger_teleport04"
	"origin" "6925.89 12402.8 2174.99"
	"StartDisabled" "1"
	"spawnflags" "1"
	"classname" "trigger_multiple"
	"hammerid" "69230"
	"OnStartTouch" "s2_random_teleport_case01,PickRandom,,0,-1"
}