first commit

This commit is contained in:
2025-07-06 00:23:46 +02:00
commit 38f50c8819
1788 changed files with 112878 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using System.Reflection;
using NitroxModel.Helper;
namespace NitroxPatcher.Patches.Dynamic;
public sealed partial class ArmsController_Update_Patch : NitroxPatch, IDynamicPatch
{
public static readonly MethodInfo TARGET_METHOD = Reflect.Method((ArmsController t) => t.Update());
public static bool Prefix(ArmsController __instance)
{
if (__instance.smoothSpeedAboveWater == 0)
{
if (__instance.reconfigureWorldTarget)
{
__instance.Reconfigure(null);
__instance.reconfigureWorldTarget = false;
}
__instance.leftAim.Update(__instance.ikToggleTime);
__instance.rightAim.Update(__instance.ikToggleTime);
__instance.UpdateHandIKWeights();
return false;
}
return true;
}
}