[RelativeSync] Account for official fix for BBCC

This commit is contained in:
NotAKidoS 2024-05-29 16:01:32 -05:00
parent b786ecd51c
commit 974fefd896
2 changed files with 4 additions and 2 deletions

View file

@ -95,17 +95,19 @@ internal static class BetterBetterCharacterControllerPatches
{
_noInterpolation = value;
if (_rigidbody == null) return;
_rigidbody.interpolation = value ? RigidbodyInterpolation.None : RigidbodyInterpolation.Interpolate;
_rigidbody.interpolation = value ? RigidbodyInterpolation.None : _initialInterpolation;
}
}
private static Rigidbody _rigidbody;
private static RigidbodyInterpolation _initialInterpolation;
[HarmonyPostfix]
[HarmonyPatch(typeof(BetterBetterCharacterController), nameof(BetterBetterCharacterController.Start))]
private static void Postfix_BetterBetterCharacterController_Update(ref BetterBetterCharacterController __instance)
{
_rigidbody = __instance.GetComponent<Rigidbody>();
_initialInterpolation = _rigidbody.interpolation;
NoInterpolation = _noInterpolation; // get initial value as patch runs later than settings init
}
}

View file

@ -18,6 +18,6 @@
],
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r28/RelativeSync.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/RelativeSync/",
"changelog": "- Fixed RelativeSyncMarker not generating correct path hash for local player movement parents.\n- Added Network Debug settings.\n- Added experimental options that fix **local** jitter on movement parents.",
"changelog": "- Fixed RelativeSyncMarker not generating correct path hash for local player\n - This fixes relative sync on local avatar movement parents\n- Added Network Debug settings\n- Added experimental settings to fix **local** jitter on movement parents\n - These options are disabled by default as they have not been heavily tested",
"embedcolor": "#507e64"
}