;NOTIFY
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "2327255"
	}
	insert:
	{
		 "OnMapSpawn" "Global_Server,Command,say <<< MAP MODIFIED >>>,4,-1"
		 "OnMapSpawn" "player,FireUser2,1,-1"
	}
}
;REMOVE SPAWNPOINT
filter:
{
	"classname" "info_player_terrorist"
	"origin" "-5568 224 -7024"
	"hammerid" "5123049"
}
;EASY
modify:
{
	match:
	{
		"targetname" "Easy"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:2:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:2:0.00:0,5,-1"
	}
	insert:
	{
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:4:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:4:0.00:0,5,-1"
	}
}
;NORMAL
modify:
{
	match:
	{
		"targetname" "Normal"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.05:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.05:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.05:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 315,0.1,-1"

		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:4:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:4:0.00:0,5,-1"
	}
	insert:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.02:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.02:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.02:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 306,0.1,-1"

		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:8:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:8:0.00:0,5,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "Zombie_Train_Trigger_Normal"
		"parentname" "Zombie_Train_Destination"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "global_speedmod,ModifySpeed,1.05,0,-1"
	}
	insert:
	{
		"OnStartTouch" "global_speedmod,ModifySpeed,1.02,0,-1"
	}
}
;HARD
modify:
{
	match:
	{
		"targetname" "Hard"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.10:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.10:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.10:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 330,0.1,-1"

		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:6:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:6:0.00:0,5,-1"
	}
	insert:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.03:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.03:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.03:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 309,0.1,-1"

		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:12:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:12:0.00:0,5,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "Zombie_Train_Trigger_Hard"
		"parentname" "Zombie_Train_Destination"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "global_speedmod,ModifySpeed,1.10,0,-1"
	}
	insert:
	{
		"OnStartTouch" "global_speedmod,ModifySpeed,1.03,0,-1"
	}
}
;EXTREME
modify:
{
	match:
	{
		"targetname" "Extreme"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.15:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.15:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.15:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 345,0.1,-1"

		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:8:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:8:0.00:0,5,-1"
	}
	insert:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.04:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.04:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.04:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 312,0.1,-1"

		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:16:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:16:0.00:0,5,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "Zombie_Train_Trigger_Extreme"
		"parentname" "Zombie_Train_Destination"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "global_speedmod,ModifySpeed,1.15,0,-1"
	}
	insert:
	{
		"OnStartTouch" "global_speedmod,ModifySpeed,1.04,0,-1"
	}
}
;INSANE
modify:
{
	match:
	{
		"targetname" "Insane"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.20:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.20:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.20:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 360,0.1,-1"

		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:10:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:10:0.00:0,5,-1"
	}
	insert:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.05:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.05:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.05:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 315,0.1,-1"

		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounter:Add:20:0.00:0,5,-1"
		"OnUser1" "Boss_HPCounter_Trigger,AddOutput,OnStartTouch HPCounterBackUp:Add:20:0.00:0,5,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "Zombie_Train_Trigger_Insane"
		"parentname" "Zombie_Train_Destination"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "global_speedmod,ModifySpeed,1.20,0,-1"
	}
	insert:
	{
		"OnStartTouch" "global_speedmod,ModifySpeed,1.05,0,-1"
	}
}
;ZOMBIEMODE
modify:
{
	match:
	{
		"targetname" "ZMMode"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.10:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.10:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.10:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 330,0.1,-1"
	}
	insert:
	{
		"OnUser1" "filter_frozen_gravity,AddOutput,OnPass global_speedmod:ModifySpeed:1.00:0.00:0,7,-1"
		"OnUser1" "filter_frozen_bio,AddOutput,OnPass global_speedmod:ModifySpeed:1.00:0.00:0,7,-1"
		"OnUser1" "filter_frozen_ice,AddOutput,OnPass global_speedmod:ModifySpeed:1.00:0.00:0,7,-1"
		"OnUser1" "Global_Server,Command,zr_class_modify zombies speed 312,0.1,-1"
	}
}
;CRASHFIX
modify:
{
	match:
	{
		"targetname" "extra_bio_trigger_1"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "filter_frozen_bio,TestActivator,,8,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,OnUser2 filter_frozen_bio:TestActivator::0:1,7.9,-1"
		"OnStartTouch" "!activator,FireUser2,,8,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "extra_bio_trigger_2"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "filter_frozen_bio,TestActivator,,10,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,OnUser2 filter_frozen_bio:TestActivator::0:1,9.9,-1"
		"OnStartTouch" "!activator,FireUser2,,10,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "extra_bio_trigger_3"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "filter_frozen_bio,TestActivator,,12,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,OnUser2 filter_frozen_bio:TestActivator::0:1,11.9,-1"
		"OnStartTouch" "!activator,FireUser2,,12,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "extra_gravity_trigger_1A"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "filter_frozen_gravity,TestActivator,,7,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,OnUser2 filter_frozen_gravity:TestActivator::0:1,6.9,-1"
		"OnStartTouch" "!activator,FireUser2,,7,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "extra_gravity_trigger_2A"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "filter_frozen_gravity,TestActivator,,7,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,OnUser2 filter_frozen_gravity:TestActivator::0:1,6.9,-1"
		"OnStartTouch" "!activator,FireUser2,,7,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "extra_gravity_trigger_3A"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "filter_frozen_gravity,TestActivator,,7,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,OnUser2 filter_frozen_gravity:TestActivator::0:1,6.9,-1"
		"OnStartTouch" "!activator,FireUser2,,7,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "extra_ice_trigger_1a"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,OnUser2 filter_frozen_ice:TestActivator::0:1,4.9,-1"
		"OnStartTouch" "!activator,FireUser2,,5,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "extra_ice_trigger_2a"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,OnUser2 filter_frozen_ice:TestActivator::0:1,5.9,-1"
		"OnStartTouch" "!activator,FireUser2,,6,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "extra_ice_trigger_3a"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,OnUser2 filter_frozen_ice:TestActivator::0:1,6.9,-1"
		"OnStartTouch" "!activator,FireUser2,,7,-1"
	}
}

;Modify Sephiroth HP
modify:
{
	match:
	{
		"targetname" "Sephiroth_Final_HP_Counter"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Sephiroth_Final_Breakable,AddHealth,75,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Sephiroth_Final_Breakable,AddHealth,215,0,-1"
	}
}

;------------------
;FIX PIPE SHORTCUT
;------------------

add:
{
	"model" "*244"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "2"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-3920 968 -5952"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
}

;------------------------
;FIX CORE BARRIER TIMING
;------------------------

modify:
{
    match:
    {
        "hammerid" "2821489"
        "classname" "logic_relay"
        "targetname" "Bomb_Relay_2"
    }
    delete:
    {
        "OnUser1" "Core_Barrido_Trigger,Enable,,17.5,-1"
        "OnUser1" "Core_Barrido_Movelinear,Open,,17.5,-1"
    }
    insert:
    {
        "OnUser1" "Core_Barrido_Trigger,Enable,,18.33,-1"
        "OnUser1" "Core_Barrido_Movelinear,Open,,18.33,-1"
    }
}

;------------------------
;DYNAMIC ENTWATCH CONFIG
;------------------------
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_bio_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2906432 Bio (Lvl 1),0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2906432 Bio (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2906432 Bio (Lvl 3),0,-1"
    }
}
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_barrier_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2906517 Barrier (Lvl 1),0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2906517 Barrier (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2906517 Barrier (Lvl 3),0,-1"
    }
}
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_wind_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2906834 Wind (Lvl 1),0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2906834 Wind (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2906834 Wind (Lvl 3),0,-1"
    }
}
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_heal_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2907132 Heal (Lvl 1),0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2907132 Heal (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2907132 Heal (Lvl 3),0,-1"
    }
}
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_ice_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2907354 Ice (Lvl 1),0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2907354 Ice (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2907354 Ice (Lvl 3),0,-1"
    }
}
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_water_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2907705 Aqua (Lvl 1),0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2907705 Aqua (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2907705 Aqua (Lvl 3),0,-1"
    }
}
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_fire_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2907860 Fire (Lvl 1),0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2907860 Fire (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2907860 Fire (Lvl 3),0,-1"
    }
}
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_electro_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_setmaxuses 2908013 1,0,-1"
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2908013 Electro (Lvl 1),0,-1"
		"OnCase03" "Global_Server,Command,sm_setmaxuses 2908013 2,0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2908013 Electro (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_setmaxuses 2908013 3,0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2908013 Electro (Lvl 3),0,-1"
    }
}
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_earth_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2908100 Earth (Lvl 1),0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2908100 Earth (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2908100 Earth (Lvl 3),0,-1"
    }
}
modify:
{
    match:
    {
        "classname" "logic_case"
        "targetname" "item_gravity_case"
    }
    insert:
    {
		"OnCase02" "Global_Server,Command,sm_ewsetshortname 2908185 Gravity (Lvl 1),0,-1"
        	"OnCase03" "Global_Server,Command,sm_ewsetshortname 2908185 Gravity (Lvl 2),0,-1"
		"OnCase04" "Global_Server,Command,sm_ewsetshortname 2908185 Gravity (Lvl 3),0,-1"
    }
}

;--------------------------------------------------------
; Fixes 2 new exploits near boss bridge on the pipes
;--------------------------------------------------------
add:
{
    "model" "*380"
    "targetname" "Core_Teleport"
    "target" "Zombie_Train_Destination"
    "StartDisabled" "1"
    "spawnflags" "1"
    "origin" "-2880 -1344 -6720"
    "classname" "trigger_teleport"
}
modify:
{
    match:
    {
        "classname" "math_counter"
        "targetname" "HPCounterIterator"
    }
    insert:
    {
        "OnHitMin" "pipe_crawl_fix,Kill,,0.02,-1"
    }
}
add:
{
    "model" "*52"
    "targetname" "pipe_crawl_fix"
    "target" "Zombie_Train_Destination"
    "StartDisabled" "0"
    "spawnflags" "1"
    "origin" "-2624 -64 -6942.76"
    "classname" "trigger_teleport"
}
