diff --git a/RelativeSync/Patches.cs b/RelativeSync/Patches.cs index 59449a5..71d4ec8 100644 --- a/RelativeSync/Patches.cs +++ b/RelativeSync/Patches.cs @@ -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(); + _initialInterpolation = _rigidbody.interpolation; NoInterpolation = _noInterpolation; // get initial value as patch runs later than settings init } } \ No newline at end of file diff --git a/RelativeSync/format.json b/RelativeSync/format.json index 4f73ac9..49f89ec 100644 --- a/RelativeSync/format.json +++ b/RelativeSync/format.json @@ -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" } \ No newline at end of file