first commit
This commit is contained in:
28
NitroxPatcher/Patches/Dynamic/ArmsController_Update_Patch.cs
Normal file
28
NitroxPatcher/Patches/Dynamic/ArmsController_Update_Patch.cs
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user