Reload in-place for fika

This commit is contained in:
Tyfon
2024-07-24 12:50:29 -07:00
parent 8fb4799576
commit a51d21a855
2 changed files with 20 additions and 0 deletions

View File

@@ -103,6 +103,12 @@ public static class ReloadInPlacePatches
{
protected override MethodBase GetTargetMethod()
{
if (Plugin.FikaPresent())
{
Type type = Type.GetType("Fika.Core.Coop.ClientClasses.CoopClientFirearmController, Fika.Core");
return AccessTools.Method(type, "ReloadMag");
}
return AccessTools.Method(typeof(Player.FirearmController), nameof(Player.FirearmController.ReloadMag));
}