add:
{
	"origin" "5325.2 -712.196 -4647"
	"targetname" "TheCurrentLevelPlugin"
	"min" "1"
	"max" "3"
	"startvalue" "1"
	"classname" "math_counter"
}

modify:
{
	match:
	{
		"targetname" "faciltriggeractivador"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "normaltriggeractivador"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,2,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "dificiltriggeractivador"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,3,0,1"
	}
}

;Helicopter not controllable anymore by players (stages 1 & 2 ending)

modify:
{
	match:
	{
		"classname"		"func_tracktrain"
		"targetname"	"hydra_track"
	}
	replace:
	{
		"spawnflags"	"515"
	}
}

;Disable all shadows. Fix crash maybe

modify:
{
	match:
	{
		"classname" "func_door"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_button"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_breakable"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_brush"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_tracktrain"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_illusionary"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_physbox_multiplayer"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_wall_toggle"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_tanktrain"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_rotating"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_movelinear"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_physbox"
	}
	replace:
	{
		 "disablereceiveshadows" "1"
         "disableshadows" "1"
	}
}



;; _

;; stage 3 - fix afk teleport glitch spot

add:
{
	"targetname" "tele_explosion"
	"target" "tele_agua"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "7784.5 -3520.5 932.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -387.5 -980.5 -211.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 387.5 980.5 211.5,0.1,1"
}
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "4561"
	}
	insert:
	{
		"OnMapSpawn" "tele_explosion,FireUser1,,0,-1"
	}
}

;; stage 3 - ending balance

modify:
{
	match:
	{
		"targetname" "tele_explosion"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"target" "tele_agua"
	}
}
modify:
{
	match:
	{
		"targetname" "boton_ascensor_extremo"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "tele_ascensor_tri_2,ClearParent,,13,1"
	}
}
modify:
{
	match:
	{
		"targetname" "ascensorfinal_3"
		"classname" "path_track"
	}
	delete:
	{
		"OnPass" "tele_ascensor_tri_2,ClearParent,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "ascensorfinal_4"
		"classname" "path_track"
	}
	delete:
	{
		"OnPass" "tele_ascensor_tri_2,Kill,,14,-1"
		"OnPass" "hover_salida,Trigger,,20,-1"
	}
	insert:
	{
		"OnPass" "hover_salida,Trigger,,15,1"
	}
}

;; stage 3 - fix hoverboat pathing

filter:
{
	"targetname" "/hover_((12)|(14)|(32)|(34)|(33)|(21)|(25)|(16)|(24)|(26)|(30))/"
	"classname" "path_track"
}

modify:
{
	match:
	{
		"targetname" "hover_20"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "9718 426 -2646"
		"target" "hover_15"
	}
	insert:
	{
		"OnPass" "hover_clip,FireUser1,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "hover_15"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "9387 151 -2642"
		"target" "hover_22"
	}
}
modify:
{
	match:
	{
		"targetname" "hover_22"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "9656 -269 -2642"
	}
}

;; stage 3 - increase boss hp

modify:
{
	match:
	{
		"targetname" "trigger_boss_activar"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "vidajefe,Add,80,0,-1"
	}
	insert:
	{
		"OnStartTouch" "vidajefe,Add,150,0,-1"
	}
}

;; stage 1,2 - prevent zombies from infecting humans from under hydra

add:
{
	"model" "*49"
	"StartDisabled" "1"
	"targetname" "hydra_push"
	"parentname" "hydra_track"
	"filtername" "Zombie"
	"speed" "3000"
	"spawnflags" "1"
	"pushdir" "90 0 0"
	"origin" "4801 5865.5 2020"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
add:
{
	"model" "*49"
	"StartDisabled" "1"
	"targetname" "hydra_push"
	"parentname" "hydra_track"
	"filtername" "Zombie"
	"speed" "500"
	"spawnflags" "1"
	"pushdir" "0 -180 0"
	"origin" "4801 5865.5 2020"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}

modify:
{
	match:
	{
		"targetname" "hydra_normal4"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "hydra_push,Enable,,0,1"
		"OnPass" "hydra_push,Disable,,17,1"
	}
}
modify:
{
	match:
	{
		"targetname" "hydra_15"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "hydra_push,Enable,,0,1"
		"OnPass" "hydra_push,Disable,,17,1"
	}
}
modify:
{
	match:
	{
		"targetname" "hydra_dificil4"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "hydra_push,Enable,,0,1"
		"OnPass" "hydra_push,Disable,,17,1"
	}
}

;; stage 1,2 - smooth hydra's movement

modify:
{
	match:
	{
		"targetname" "/hydra_dificil[7,8]/"
		"classname" "path_track"
	}
	replace:
	{
		"angles" "0 -90 0"
	}
}
modify:
{
	match:
	{
		"targetname" "/hydra_((40)|(34)|(32))/"
		"classname" "path_track"
	}
	replace:
	{
		"angles" "0 -90 0"
	}
}

modify:
{
	match:
	{
		"targetname" "hydra_29"
		"classname" "path_track"
	}
	replace:
	{
		"target" "hydra_34"
	}
}
modify:
{
	match:
	{
		"targetname" "hydra_36"
		"classname" "path_track"
	}
	replace:
	{
		"target" "hydra_40"
	}
}
modify:
{
	match:
	{
		"targetname" "hydra_26"
		"classname" "path_track"
	}
	replace:
	{
		"target" "hydra_32"
	}
}

modify:
{
	match:
	{
		"classname" "path_track"
		"OnPass" "commander,Command,say ***HYDRA LEAVING!!!***,15,-1"
	}
	insert:
	{
		"OnPass" "hydra_track,AddOutput,orientationtype 2,0,1"
		"OnPass" "hydra_track,SetSpeedReal,150,15.1,1"
		"OnPass" "hydra_track,SetSpeedReal,250,24,1"
	}
}

;; stage 3 - extra prop before bossfight

add:
{
	"origin" "5346 -2085 728"
	"StartDisabled" "0"
	"spawnflags" "0"
	"solid" "6"
	"skin" "0"
	"SetBodyGroup" "0"
	"rendermode" "0"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"RandomAnimation" "0"
	"pressuredelay" "0"
	"PerformanceMode" "0"
	"model" "models/props/de_nuke/crate_extrasmall.mdl"
	"mindxlevel" "0"
	"MinAnimTime" "5"
	"maxdxlevel" "0"
	"MaxAnimTime" "10"
	"fadescale" "1"
	"fademindist" "-1"
	"fademaxdist" "0"
	"ExplodeRadius" "0"
	"ExplodeDamage" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"DisableBoneFollowers" "0"
	"angles" "0 90 0"
	"classname" "prop_dynamic"
}
add:
{
	"model" "*137"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "5366 -2123 679"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
}

;; stage 3 - hovercraft balancing

add:
{
	"origin" "8857 2423 -2679"
	"targetname" "hover_clip"
	"StartDisabled" "0"
	"spawnflags" "0"
	"solid" "6"
	"skin" "0"
	"SetBodyGroup" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"RandomAnimation" "0"
	"pressuredelay" "0"
	"PerformanceMode" "0"
	"model" "models/props_lab/blastdoor001c.mdl"
	"mindxlevel" "0"
	"MinAnimTime" "5"
	"maxdxlevel" "0"
	"MaxAnimTime" "10"
	"fadescale" "1"
	"fademindist" "-1"
	"fademaxdist" "0"
	"ExplodeRadius" "0"
	"ExplodeDamage" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"DisableBoneFollowers" "1"
	"angles" "0 90 0"
	"classname" "prop_dynamic"
}
add:
{
	"origin" "8688 2423 -2679"
	"targetname" "hover_clip"
	"StartDisabled" "0"
	"spawnflags" "0"
	"solid" "6"
	"skin" "0"
	"SetBodyGroup" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"RandomAnimation" "0"
	"pressuredelay" "0"
	"PerformanceMode" "0"
	"model" "models/props_lab/blastdoor001c.mdl"
	"mindxlevel" "0"
	"MinAnimTime" "5"
	"maxdxlevel" "0"
	"MaxAnimTime" "10"
	"fadescale" "1"
	"fademindist" "-1"
	"fademaxdist" "0"
	"ExplodeRadius" "0"
	"ExplodeDamage" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"DisableBoneFollowers" "1"
	"angles" "0 90 0"
	"classname" "prop_dynamic"
	"OnUser1" "!self,Kill,,0,1"
}
add:
{
	"origin" "9008 2423 -2679"
	"targetname" "hover_clip"
	"StartDisabled" "0"
	"spawnflags" "0"
	"solid" "6"
	"skin" "0"
	"SetBodyGroup" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"RandomAnimation" "0"
	"pressuredelay" "0"
	"PerformanceMode" "0"
	"model" "models/props_lab/blastdoor001c.mdl"
	"mindxlevel" "0"
	"MinAnimTime" "5"
	"maxdxlevel" "0"
	"MaxAnimTime" "10"
	"fadescale" "1"
	"fademindist" "-1"
	"fademaxdist" "0"
	"ExplodeRadius" "0"
	"ExplodeDamage" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"DisableBoneFollowers" "1"
	"angles" "0 90 0"
	"classname" "prop_dynamic"
}
add:
{
	"origin" "9228 2423 -2694"
	"targetname" "hover_clip"
	"StartDisabled" "0"
	"spawnflags" "0"
	"solid" "6"
	"skin" "0"
	"SetBodyGroup" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"RandomAnimation" "0"
	"pressuredelay" "0"
	"PerformanceMode" "0"
	"model" "models/props_lab/blastdoor001c.mdl"
	"mindxlevel" "0"
	"MinAnimTime" "5"
	"maxdxlevel" "0"
	"MaxAnimTime" "10"
	"fadescale" "1"
	"fademindist" "-1"
	"fademaxdist" "0"
	"ExplodeRadius" "0"
	"ExplodeDamage" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"DisableBoneFollowers" "1"
	"angles" "0 90 0"
	"classname" "prop_dynamic"
}
add:
{
	"origin" "9298 2423 -2694"
	"targetname" "hover_clip"
	"StartDisabled" "0"
	"spawnflags" "0"
	"solid" "6"
	"skin" "0"
	"SetBodyGroup" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"RandomAnimation" "0"
	"pressuredelay" "0"
	"PerformanceMode" "0"
	"model" "models/props_lab/blastdoor001c.mdl"
	"mindxlevel" "0"
	"MinAnimTime" "5"
	"maxdxlevel" "0"
	"MaxAnimTime" "10"
	"fadescale" "1"
	"fademindist" "-1"
	"fademaxdist" "0"
	"ExplodeRadius" "0"
	"ExplodeDamage" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"DisableBoneFollowers" "1"
	"angles" "0 90 0"
	"classname" "prop_dynamic"
}
add:
{
	"origin" "9495 2423 -2696"
	"targetname" "hover_clip"
	"StartDisabled" "0"
	"spawnflags" "0"
	"solid" "6"
	"skin" "0"
	"SetBodyGroup" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"RandomAnimation" "0"
	"pressuredelay" "0"
	"PerformanceMode" "0"
	"model" "models/props_lab/blastdoor001c.mdl"
	"mindxlevel" "0"
	"MinAnimTime" "5"
	"maxdxlevel" "0"
	"MaxAnimTime" "10"
	"fadescale" "1"
	"fademindist" "-1"
	"fademaxdist" "0"
	"ExplodeRadius" "0"
	"ExplodeDamage" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"DisableBoneFollowers" "1"
	"angles" "0 90 0"
	"classname" "prop_dynamic"
}

modify:
{
	match:
	{
		"targetname" "hover_modelo"
		"classname" "prop_dynamic"
	}
	replace:
	{
		"origin" "9209.12 2730.67 -2693.2"
	}
}
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "4561"
	}
	insert:
	{
		"OnMapSpawn" "hover_clip,SetParent,hover_track,5,-1"
	}
}

add:
{
	"model" "*172"
	"targetname" "hover_fail"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "12011 -219 -2396.5"
	"nodmgforce" "0"
	"damagetype" "0"
	"damagemodel" "0"
	"damagecap" "10"
	"damage" "50"
	"filtername" "CT"
	"classname" "trigger_hurt"
}
modify:
{
	match:
	{
		"targetname" "pusher_extremo"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnStartTouch" "hover_fail,Enable,,15,1"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "dj-kagalera/alien vs. predator game soundtrack 2010 [ epic battle theme_ predator vs. predalien ].mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#dj-kagalera/alien vs. predator game soundtrack 2010 [ epic battle theme_ predator vs. predalien ].mp3"
	}
}
modify:
{
	match:
	{
		"message" "dj-kagalera/quake ii edit kagalera.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#dj-kagalera/quake ii edit kagalera.mp3"
	}
}

;; stage 1,2 - fix invalid human victory

modify:
{
	match:
	{
		"targetname" "pusher"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "ganarfacil,Disable,,0,-1"
		"OnStartTouch" "ganarnormal,Disable,,0,-1"
	}
	insert:
	{
		"OnStartTouch" "ganarfacil,Kill,,0,1"
		"OnStartTouch" "ganarnormal,Kill,,0,1"
	}
}

;; stage 2 - possible valve fix

modify:
{
	match:
	{
		"classname" "momentary_rot_button"
	}
	replace:
	{
		"distance" "135"
	}
}
