;Fix dumb shortcut at spawn on stage 4
modify:
{
	match:
	{
		"classname"		"trigger_push"
		"hammerid"		"94435"
	}
	replace:
	{
		"pushdir"		"0 90 0"
	}
}

;Fix dumb teleport bug at spawn on stage 4
modify:
{
	match:
	{
		"classname"		"trigger_teleport"
		"hammerid"		"94364"
	}
	replace:
	{
		"spawnflags"	"1"
	}
}

;; fix s2 nuke not killing all zms

add:
{
	"model" "*293"
	"origin" "10349.7 8526.32 199.3"
	"classname" "game_zone_player"
	"targetname" "S2EndNuke"
	"OnPlayerOutZone" "!activator,SetHealth,0,0,-1"
}
modify:
{
	match:
	{
		"targetname" "s2_boss_h1"
		"hammerid" "39160"
		"classname" "func_breakable"
	}
	insert:
	{
		"OnBreak" "S2EndNuke,CountPlayersInZone,,10,-1"
	}
}

;
;		STRIPPER BY ENCAP
;

;; lobby - prevent players from falling under the map
 
add:
{
	"targetname" "lobby_floor"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "12965 1931.5 -8485"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1067 -1051.5 -8,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1067 1051.5 8,0.1,1"
}
 
;; stage 1 - afk teleport for the first zone
 
add:
{
	"targetname" "stage1_debut_afk"
	"target" "stage1debut"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-5436 2959 -13159"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2954 -3126 -537,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2954 3126 537,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "124972"
	}
	insert:
	{
		"OnTrigger" "stage1_debut_afk,Enable,,15,-1"
	}
}
 
;; stage 1 - don't loop gate sound
 
modify:
{
	match:
	{
		"targetname" "s1_chateau_door"
		"classname" "func_door"
	}
	replace:
	{
		"loopmovesound" "0"
	}
}
 
;; stage 1 - fix afk teleport origin
 
modify:
{
	match:
	{
		"targetname" "s1_afk1"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"origin" "7171 34.5 -9189"
	}
}
 
;; stage 1 - prevent players from bhopping over broken stairs hold
 
add:
{
	"targetname" "stage1_stairs_hold"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "6936 -3920 -9334.5"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -88 -96 -264.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 88 96 264.5,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "30950"
	}
	insert:
	{
		"OnTrigger" "stage1_stairs_hold,Disable,,20,-1"
	}
}
 
;; stage 2 - keep fall tp enabled
 
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "118211"
	}
	delete:
	{
		"OnTrigger" "stage1_antisaut,Disable,,7,-1"
	}
}
 
;; stage 4 - at start, prevent players getting to the end sequence
 
add:
{
	"targetname" "stage4_clip"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "10120 -10513 11612"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -5216 -96 -1650,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 5216 96 1650,0.1,1"
}
 
;; stage 4 - fix fall tp
 
modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"hammerid" "94364"
	}
	replace:
	{
		"spawnflags" "1"
	}
}
 
;; stage 4 - people will need to defend doors, to prevent zombies getting into boss arena
 
add:
{
	"model" "*219"
	"targetname" "s4_before_boss_push"
	"StartDisabled" "0"
	"speed" "400"
	"spawnflags" "1"
	"pushdir" "0 0 0"
	"origin" "-8775.5 -7630 3221.5"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
 
modify:
{
	match:
	{
		"targetname" "s4_door4"
		"classname" "func_door"
	}
	replace:
	{
		"dmg" "10000"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "99838"
	}
	insert:
	{
		"OnTrigger" "Console,Command,say ** Don't let zombies in! Defend for 15 seconds. **,30,-1"
		"OnTrigger" "s4_door4,Close,,45,-1"
		"OnTrigger" "s4_before_boss_push,Disable,,46,-1"
	}
}
 
modify:
{
	match:
	{
		"targetname" "escape_final"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "s4_door4,Open,,0,-1"
	}
}
 
;; stage 4 - teleport all humans to fish boss
 
add:
{
	"targetname" "stage4_fish_tp"
	"target" "poisson_teleport"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-10312 -7612 3080"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1274 -1216 -248,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1274 1216 248,0.1,1"
}
 
modify:
{
match:
	{
		"targetname" "s4_panneau_poisson2"
		"classname" "func_breakable"
	}
	insert:
	{
		"OnBreak" "stage4_fish_tp,Enable,,10,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "HPCounterIterator"
		"classname" "math_counter"
	}
	insert:
	{
		"OnHitMin" "stage4_fish_tp,Disable,,7,-1"
	}
}
 
;; zm - fix nuke origin
 
modify:
{
	match:
	{
		"targetname" "zmround_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"origin" "7248 -243.5 -8789"
	}
}
 
;; initialize all added volumes
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "24653"
	}
	insert:
	{
		"OnMapSpawn" "lobby_floor,FireUser1,,0,-1"
		"OnMapSpawn" "stage1_debut_afk,FireUser1,,0,-1"
		"OnMapSpawn" "stage1_stairs_hold,FireUser1,,0,-1"
		"OnMapSpawn" "stage1_stairs_hold,Enable,,1,-1"
		"OnMapSpawn" "stage4_clip,FireUser1,,0,-1"
		"OnMapSpawn" "stage4_fish_tp,FireUser1,,0,-1"
	}
}
 
;; make ammo item visible
 
modify:
{
	match:
	{
		"model" "models/props/de_prodigy/ammo_can_01.mdl"
		"classname" "prop_dynamic"
	}
	replace:
	{
		"StartDisabled" "0"
		"rendermode" "1"
		"renderamt" "80"
	}
}
 
;; stage 1 - fix push at the end of stage
 
modify:
{
	match:
	{
		"targetname" "s1_blocktos2"
		"classname" "trigger_push"
	}
	replace:
	{
		"spawnflags" "1"
		"speed" "2000"
	}
}
 
;; stage 2 - fix afk teleport
 
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "118211"
	}
	insert:
	{
		"OnTrigger" "s2_afk2,Enable,,15,-1"
	}
}
 
;; stage 4 - fix first afk teleport
 
modify:
{
	match:
	{
		"targetname" "s4_afk0"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"target" "s4_tp1"
	}
}
 
;; stage 4 - expand fall teleport zone
 
add:
{
	"targetname" "stage4_falltp0"
	"target" "s4_falltp"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "8327 -10070 8894.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -7303 -5390 -57.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 7303 5390 57.5,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "24653"
	}
	insert:
	{
		"OnMapSpawn" "stage4_falltp0,FireUser1,,0,-1"
	}
}
 
;; stage 4 - don't let humans to choose boss before door is closed
 
add:
{
	"model" "*225"
	"targetname" "stage4_chooser_clip"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-8836 -7750 3221.5"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "99838"
	}
	insert:
	{
		"OnTrigger" "stage4_chooser_clip,Disable,,46,-1"
	}
}
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "24653"
	}
	insert:
	{
		"OnMapSpawn" "stage4_chooser_clip,Enable,,1,-1"
	}
}
 
;; stage 4 - on fish death disable zm teleport to boss cage
 
modify:
{
	match:
	{
		"targetname" "HPCounterIterator"
		"classname" "math_counter"
	}
	insert:
	{
		"OnHitMin" "poisson_cagetp,Disable,,4,-1"
	}
}
 
;; stage 4 - fix horse boss teleport
 
modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"hammerid" "100356"
	}
	replace:
	{
		"spawnflags" "1"
		"StartDisabled" "1"
	}
}
 
;; stage 4 - fix final afk tp
 
modify:
{
	match:
	{
		"targetname" "escape_final"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "finaltpafk,Enable,,25,-1"
	}
	insert:
	{
		"OnTrigger" "finaltpafk,Enable,,45,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "finaltpafk"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"spawnflags" "1"
	}
	insert:
	{
		"target" "s4_escapetp"
	}
}
 
;; add spawn afk teleport
 
add:
{
	"model" "*144"
	"targetname" "spawn_tp"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "13618 2808 -8612"
	"classname" "trigger_teleport"
}
 
; stage 1
 
modify:
{
	match:
	{
		"targetname" "s1_tpp"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "spawn_tp,AddOutput,target s1_tp,0,1"
		"OnStartTouch" "spawn_tp,Enable,,30,1"
	}
}
 
; stage 2
 
modify:
{
	match:
	{
		"targetname" "s2_tpp"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "spawn_tp,AddOutput,target s2_tp,0,1"
		"OnStartTouch" "spawn_tp,Enable,,30,1"
	}
}
 
; stage 3
 
modify:
{
	match:
	{
		"targetname" "s3_tpp"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "spawn_tp,AddOutput,target s3_tp,0,1"
		"OnStartTouch" "spawn_tp,Enable,,30,1"
	}
}
 
; stage 4
 
modify:
{
	match:
	{
		"targetname" "s4_tpp"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "spawn_tp,AddOutput,target stage4_start,0,1"
		"OnStartTouch" "spawn_tp,Enable,,30,1"
	}
}
 
; stage 5
 
modify:
{
	match:
	{
		"targetname" "s5_tpp"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "spawn_tp,AddOutput,target stage1debut,0,1"
		"OnStartTouch" "spawn_tp,Enable,,30,1"
	}
}
 
;; stage 4 - prevent players from getting under the map
 
add:
{
	"targetname" "s4_clip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "9026 -10570 5425"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -297 -72 -239,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 297 72 239,0.1,1"
}
add:
{
	"targetname" "s4_clip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "9026 -12214 5425"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -297 -72 -239,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 297 72 239,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "24653"
	}
	insert:
	{
		"OnMapSpawn" "s4_clip1,FireUser1,,0,-1"
	}
}
 
;; zm - countdown messages
 
modify:
{
	match:
	{
		"targetname" "break_level5"
		"classname" "func_breakable"
	}
	insert:
	{
		"OnBreak" "Console,Command,say ** Survive for 180 seconds **,34,1"
		"OnBreak" "Console,Command,say ** Survive for 120 seconds **,94,1"
		"OnBreak" "Console,Command,say ** 60 seconds left **,154,1"
	}
}
 
;; stage 4 - scale boss hp
 
add:
{
	"model" "*225"
	"wait" "0"
	"targetname" "s4_boss_scale"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-8772 -7750 3221.5"
	"filtername" "Humanos"
	"classname" "trigger_multiple"
	"OnStartTouch" "HPCounterBackUp2,Add,5,0,-1"
	"OnStartTouch" "HPCounterBackUp,Add,5,0,-1"
}
 
modify:
{
	match:
	{
		"targetname" "s4_panneau_poisson2"
		"classname" "func_breakable"
	}
	insert:
	{
		"OnBreak" "s4_boss_scale,Disable,,15,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_panneau_cheval2"
		"classname" "func_breakable"
	}
	insert:
	{
		"OnBreak" "s4_boss_scale,Disable,,15,-1"
	}
}
 
;; stage 4 - prevent players from shooting horse before choosing bossfight
 
modify:
{
	match:
	{
		"targetname" "HPCounter2"
		"classname" "math_counter"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_cheval_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_panneau_cheval2"
		"classname" "func_breakable"
	}
	insert:
	{
		"OnBreak" "HPCounter2,Enable,,12,-1"
		"OnBreak" "s4_cheval_hurt,Enable,,12,-1"
	}
}
 
;; stage 4 - horse hitbox doesn't push players into walls
 
modify:
{
	match:
	{
		"targetname" "s4_cheval_break"
		"classname" "func_breakable"
	}
	replace:
	{
		"classname" "func_physbox_multiplayer"
	}
}

;; stage 2 - scale boss hp
 
add:
{
	"model" "*287"
	"wait" "0"
	"targetname" "s2_boss_scale"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "10400.5 8509.5 1100"
	"filtername" "Humanos"
	"classname" "trigger_multiple"
	"OnStartTouch" "s2_boss_h1,AddHealth,300,0,-1"
}
 
;; stage 3 - scale boss hp
 
add:
{
	"model" "*40"
	"wait" "0"
	"targetname" "s3_boss_scale"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-3450.5 -10241.5 -4673.5"
	"filtername" "Humanos"
	"classname" "trigger_multiple"
	"OnStartTouch" "s3_boss_h1,AddHealth,150,0,-1"
}
 
;; music fixes
 
modify:
{
	match:
	{
		"targetname" "s4_cheval_break"
		"classname" "func_breakable"
	}
	delete:
	{
		"OnBreak" "gerudo,FadeOut,,0,-1"
	}
	insert:
	{
		"OnBreak" "gerudo,FadeOut,1,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "escape_final"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "gerudo,FadeOut,,0,-1"
		"OnTrigger" "poisson,FadeOut,,0,-1"
	}
	insert:
	{
		"OnTrigger" "gerudo,FadeOut,1,0,-1"
		"OnTrigger" "poisson,FadeOut,1,0,-1"
	}
}
 
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "99838"
	}
	insert:
	{
		"OnTrigger" "musicstage4b,Volume,0,50,-1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "100382"
	}
	delete:
	{
		"OnTrigger" "musicstage4,StopSound,,0,-1"
	}
	insert:
	{
		"OnTrigger" "musicstage4,Volume,0,0,-1"
	}
}

;; additional playerclips
 
add:
{
	"targetname" "s1_clip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "7156 -1085 -8548"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -385 -122 -148,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 385 122 148,0.1,1"
}
add:
{
	"targetname" "s3_clip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-1707.5 -9836.5 -3956.5"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -41.5 -20.5 -764.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 41.5 20.5 764.5,0.1,1"
}
add:
{
	"targetname" "s4_clip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "4379.5 -8928 3077.5"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -43.5 -32 -173.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 43.5 32 173.5,0.1,1"
}
add:
{
	"targetname" "s4_clip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-8040 -7402 3449.5"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -32 -32 -318.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 32 32 318.5,0.1,1"
}
add:
{
	"targetname" "s4_clip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-12044 -7828 3324.5"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -17 -32 -252.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 17 32 252.5,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "24653"
	}
	insert:
	{
		"OnMapSpawn" "s1_clip1,FireUser1,,0,-1"
		"OnMapSpawn" "s3_clip1,FireUser1,,0,-1"
	}
}

;; stage 2 - players can't block boss

modify:
{
	match:
	{
		"targetname" "s2_boss_tank"
		"classname" "func_tanktrain"
	}
	replace:
	{
		"classname" "func_tracktrain"
	}
	insert:
	{
		"dmg" "1000"
	}
}

;; stage 2 - fix boss movement

modify:
{
	match:
	{
		"targetname" "CYTrRight"
		"classname" "trigger_multiple"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

;; don't set low hp to zombies at spawn

modify:
{
	match:
	{
		"origin" "13689 1859 -8446.5"
		"filtername" "Humanos"
		"classname" "trigger_multiple"
	}
	replace:
	{
		"model" "*131"
		"origin" "14134 1971 -8371"
	}
}

;; stage 2 - make bombs on boss more dangerous

modify:
{
	match:
	{
		"targetname" "s2_explosion"
		"classname" "env_explosion"
	}
	replace:
	{
		"iMagnitude" "100"
		"iRadiusOverride" "300"
	}
}

;; zm stage - prevent spawn camping

add:
{
	"model" "*5"
	"StartDisabled" "1"
	"targetname" "zm_anti_push"
	"speed" "400"
	"spawnflags" "1"
	"pushdir" "0 180 0"
	"origin" "9223 4 -9351"
	"angles" "0 180 0"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}

modify:
{
	match:
	{
		"targetname" "s5_tpp"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "zm_anti_push,Enable,,35,1"
	}
}

;; stage 2 - don't break zm cage if boss was killed in time

add:
{
	"origin" "10880 8576 483"
	"targetname" "stage2_break_cage"
	"StartDisabled" "0"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "s2zombiebreak,Break,,0,1"
}

modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "39408"
	}
	delete:
	{
		"OnTrigger" "s2zombiebreak,Break,,185,-1"
	}
	insert:
	{
		"OnTrigger" "stage2_break_cage,Trigger,,185,1"
	}
}
modify:
{
	match:
	{
		"model" "*264"
		"targetname" "s2_boss_h1"
		"classname" "func_breakable"
	}
	insert:
	{
		"OnBreak" "stage2_break_cage,Disable,,0,1"
	}
}

;; stage 3 - disable boss attacks on death

modify:
{
	match:
	{
		"model" "*95"
		"targetname" "s3_boss_h1"
		"classname" "func_breakable"
	}
	insert:
	{
		"OnBreak" "zant_model,Kill,,5,1"
	}
}

;; stage 4 - increase energy balls hp

modify:
{
	match:
	{
		"targetname" "/s4_ball1_break\d?/"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "1000"
	}
}

;; increase roundtime

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "24653"
	}
	insert:
	{
		"OnMapSpawn" "Console,Command,mp_roundtime 15,0,-1"
	}
}


modify:
{
	match:
	{
		"targetname" "s4_panneau_poisson2"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "2000"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_panneau_cheval2"
		"classname" "func_breakable"
	}
	replace:
	{
		"health" "2000"
	}
}

;; stage 4 - make fish boss more active

modify:
{
	match:
	{
		"targetname" "s4_fish_mover"
		"classname" "func_physbox"
		"origin" "10486 12585.8 -14208.3"
	}
	replace:
	{
		"origin" "10486 12585.8 -14268.3"
	}
}
modify:
{
	match:
	{
		"targetname" "s4_fish_up"
		"classname" "phys_thruster"
		"origin" "10482 12577.8 -14232.3"
	}
	replace:
	{
		"origin" "10482 12577.8 -14292.3"
	}
}
modify:
{
	match:
	{
		"origin" "10482 12585.8 -14224.3"
		"targetname" "s4_fish_forward"
		"classname" "phys_thruster"
	}
	replace:
	{
		"origin" "10482 12585.8 -14284.3"
	}
}
modify:
{
	match:
	{
		"origin" "10442 12605.8 -14220.3"
		"targetname" "s4_fish_turnLeftSharp"
		"classname" "phys_thruster"
	}
	replace:
	{
		"origin" "10442 12605.8 -14280.3"
	}
}
modify:
{
	match:
	{
		"origin" "10446 12601.8 -14220.3"
		"targetname" "s4_fish_turnLeft"
		"classname" "phys_thruster"
	}
	replace:
	{
		"origin" "10446 12601.8 -14280.3"
	}
}
modify:
{
	match:
	{
		"origin" "10446 12569.8 -14220.3"
		"targetname" "s4_fish_turnRight"
		"classname" "phys_thruster"
	}
	replace:
	{
		"origin" "10446 12569.8 -14280.3"
	}
}
modify:
{
	match:
	{
		"origin" "10442 12565.8 -14220.3"
		"targetname" "s4_fish_turnRightSharp"
		"classname" "phys_thruster"
	}
	replace:
	{
		"origin" "10442 12565.8 -14280.3"
	}
}
modify:
{
	match:
	{
		"origin" "10494 12577.8 -14184.3"
		"targetname" "s4_fish_keepupright"
		"classname" "phys_keepupright"
	}
	replace:
	{
		"origin" "10494 12577.8 -14244.3"
	}
}

;; fix playerequip

modify:
{
	match:
	{
		"targetname" "spawn_weapon"
		"classname" "game_player_equip"
		"hammerid" "109959"
	}
	replace:
	{
		"spawnflags" "1"
	}
}


