;----------------------
;Boss Nerf
;-----------------------
modify:
{
	match:
	{
		"targetname" "MainBoss_SelectCase"
	}
	delete:
	{
		"OnCase01" "MainBoss_Thruster_F,AddOutput,force 1500,0,1"
		"OnCase01" "MainBoss_Thruster_S,AddOutput,force 1500,0,1"
		"OnCase02" "MainBoss_Thruster_F,AddOutput,force 1200,0,1"
		"OnCase02" "MainBoss_Thruster_S,AddOutput,force 1200,0,1"
	}
	insert:
	{
		"OnCase01" "MainBoss_Thruster_F,AddOutput,force 1300,0,1"
		"OnCase01" "MainBoss_Thruster_S,AddOutput,force 1300,0,1"
		"OnCase02" "MainBoss_Thruster_F,AddOutput,force 1100,0,1"
		"OnCase02" "MainBoss_Thruster_S,AddOutput,force 1100,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "MainBoss_KnightCase"
	}
	delete:
	{
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,8.00,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,8.30,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,9.00,-1"
		"OnCase01" "MainBoss_Knight_Model_1,HideSprite,,9.00,-1"
		"OnCase01" "KnightMan_Model,ShowSprite,,9.00,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,21.00,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,21.30,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,22.00,-1"
		"OnCase01" "MainBoss_Knight_Model_1,HideSprite,,22.00,-1"
		"OnCase01" "KnightMan_Model,ShowSprite,,22.00,-1"
		"OnCase02" "MainBoss_EntityMaker,ForceSpawn,,1.00,-1"
		"OnCase02" "MainBoss_EntityMaker,ForceSpawn,,1.30,-1"
		"OnCase02" "MainBoss_EntityMaker,ForceSpawn,,2.00,-1"
		"OnCase02" "MainBoss_Knight_Model_1,HideSprite,,2.00,-1"
		"OnCase02" "KnightMan_Model,ShowSprite,,2.00,-1"
	}
	insert:
	{
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,8.15,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,9.00,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,9.45,-1"
		"OnCase01" "MainBoss_Knight_Model_1,HideSprite,,10.10,-1"
		"OnCase01" "KnightMan_Model,ShowSprite,,10.10,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,21.15,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,22.00,-1"
		"OnCase01" "MainBoss_EntityMaker,ForceSpawn,,22.45,-1"
		"OnCase01" "MainBoss_Knight_Model_1,HideSprite,,23.00,-1"
		"OnCase01" "KnightMan_Model,ShowSprite,,23.00,-1"
		"OnCase02" "MainBoss_EntityMaker,ForceSpawn,,1.15,-1"
		"OnCase02" "MainBoss_EntityMaker,ForceSpawn,,2.00,-1"
		"OnCase02" "MainBoss_EntityMaker,ForceSpawn,,2.45,-1"
		"OnCase02" "MainBoss_Knight_Model_1,HideSprite,,3.00,-1"
		"OnCase02" "KnightMan_Model,ShowSprite,,3.00,-1"
	}
}
;----------------------
;Npc Nerf
;-----------------------
modify:
{
	match:
	{
		"targetname" "MainNpc_Counter2"
	}
	delete:
	{
		"Maximum Legal Value" "30"
	}
	insert:
	{
		"Maximum Legal Value" "20"
}
modify:
{
	match:
	{
		"targetname" "MainNpc_Counter3"
	}
	delete:
	{
		"Maximum Legal Value" "30"
	}
	insert:
	{
		"Maximum Legal Value" "20"
}
modify:
{
	match:
	{
		"targetname" "MainNpc_SelectCase"
	}
	delete:
	{
		"OnCase01" "MainNpc_Hurt,AddOutput damage 120,0,1"
		"OnCase02" "MainNpc_Hurt,AddOutput damage 160,0,1"
	}
	insert:
	{
		"OnCase01" "MainNpc_Hurt,AddOutput damage 60,0,1"
		"OnCase02" "MainNpc_Hurt,AddOutput damage 80,0,1"
	{
}
;----------------------
;KnightMan RageFix
;-----------------------
modify:
{
	match:
	{
		"targetname" "BossRageCase"
	}
	insert:
	{
		"OnCase02" "BossRageCounter,AddOutput,OnHitMin Prison_Relay:FireUser1::0.00:1,0.8,1"
	}
}
;----------------------
;KnightMan Fast Tp Fix
;-----------------------
modify:
{
	match:
	{
		"targetname" "Event_Stage_Case"
	}
	delete:
	{
		"OnCase15" "Map_Command,Command,say>>>Zombies will TP Soon<<<,25,1"
		"OnCase15" "Tele_Des_01,AddOutput, angles 0 0 0,34.56,1"
		"OnCase15" "Tele_Des_01,AddOutput, origin -12606.6 6630.52 3332.18,34.58,1"
		"OnCase15" "Knight_Tele_01,Enable,,35.00,1"
		"OnCase16" "Event_Trigger,AddOutput,OnStartTouch Event_Case_Relay_Template:FireUser3:20.00:1,2.16,1"
	}
	insert:
	{
		"OnCase15" "Map_Command,Command,say>>>Zombies will TP Soon<<<,35,1"
		"OnCase15" "Tele_Des_01,AddOutput, angles 0 0 0,44.56,1"
		"OnCase15" "Tele_Des_01,AddOutput, origin -12606.6 6630.52 3332.18,44.58,1"
		"OnCase15" "Knight_Tele_01,Enable,,45.00,1"
		"OnCase16" "Event_Trigger,AddOutput,OnStartTouch Event_Case_Relay_Template:FireUser3::35.00:1,2.16,1"
	}
}
;----------------------
;Prison_Relay Edit
;-----------------------
modify:
{
	match:
	{
		"targetname" "Prison_Relay"
	}
	insert:
	{
		"OnUser1" "NpcKill,Enable,,0.30,-1"
		"OnUser1" "NpcKill,Disable,,0.40,-1"
		"OnUser1" "MainBoss_Special,CancelPending,,0.45,-1"
	}
}	
;----------------
;FIX BusterShot Sound
;----------------
modify:
{
	match:
	{
		"targetname" "BusterShot_Sound"
		"classname" "ambient_generic"
	}
	replace:
	{
		"spawnflags" "48"
	}
	insert:
	{
		"SourceEntityName" "BusterShot_Maker"
	}
}
;----------------
;Trip Wire Hurt Fix
;----------------
modify:
{
	match:
	{
		"targetname" "Missle_Lazy_Hurt_fix"
	}
	delete:
	{
		"OnStartTouch" "!self,Kill,,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!self,Kill,,1.0,-1"
	}
}	
;----------------
;Trip Wire angle Fix
;----------------
modify:
{
	match:
	{
		"targetname" "Missle_Lazy_Hurt_fix"
	}
	delete:
	{
		"parentname" "Missle_Trap"
	}
}	
;----------------
;RoundEnd Overlay Fix
;----------------
modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	delete:
	{
		"OnMapSpawn" "Map_Command,Command,zr_roundend_overlays_human megaman/overlays/zombieswin,0,1"
		"OnMapSpawn" "Map_Command,Command,zr_roundend_overlays_zombie megaman/overlays/humansswin,0,1"
	}
	insert:
	{
		"OnMapSpawn" "Map_Command,Command,zr_roundend_overlays_human megaman/overlays/humansswin,0,1"
		"OnMapSpawn" "Map_Command,Command,zr_roundend_overlays_zombie megaman/overlays/zombiesswin,0,1"
	}
}
;----------------------
;PirateMan River Fast Tp Fix
;-----------------------
modify:
{
	match:
	{
		"targetname" "Event_Stage_Case"
	}
	delete:
	{
		"OnCase11" "Event_Trigger,AddOutput,OnStartTouch Event_Case_Relay_Template:FireUser2:10.02:1,5.12,1"
	}
	insert:
	{
		"OnCase11" "Event_Trigger,AddOutput,OnStartTouch Event_Case_Relay_Template:FireUser2::17.00:1,5.12,1"
	}
}
;----------------------
;KnightCage Sound Fix
;-----------------------
modify:
{
	match:
	{
		"targetname" "KnightCage_Trigger"
	}
	delete:
	{
		"OnBreak" "Map_Sound_Ambient_2,AddOutput,message Am_3,0.04,1"
		"OnBreak" "Map_Sound_Ambient_2,PlaySound,,0.06,1"
	}
	insert:
	{
		"OnBreak" "KnightCage_Sound,PlaySound,,0.04,1"
	}
}
;----------------------
;zr Speed Tweak
;-----------------------
modify:
{
	match:
	{
		"targetname" "Map_clientcommand"
	}
	insert:
	{
		"OnUser1" "Map_Command,Command,zr_class_modify humans speed 310,0.02,1"
		"OnUser1" "Map_Command,Command,zr_class_modify zombies speed 350,0.04,1"
		"OnUser2" "Map_Command,Command,zr_class_modify humans speed 315,0.02,1"
		"OnUser2" "Map_Command,Command,zr_class_modify zombies speed 360,0.04,1"
	}
}
modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	delete:
	{
		"OnMultiNewMap" "Map_Command,Command,zr_class_modify humans speed 315,0.00,1"
		"OnMultiNewMap" "Map_Command,Command,zr_class_modify zombies speed 365,0.00,1"
	}
	insert:
	{
		"OnMultiNewMap" "Map_Command,Command,zr_class_modify humans speed 300,0.00,1"
		"OnMultiNewMap" "Map_Command,Command,zr_class_modify zombies speed 350,0.00,1"
	{
}