mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
[RelativeSync] Account for official fix for BBCC
This commit is contained in:
parent
b786ecd51c
commit
974fefd896
2 changed files with 4 additions and 2 deletions
|
@ -95,17 +95,19 @@ internal static class BetterBetterCharacterControllerPatches
|
||||||
{
|
{
|
||||||
_noInterpolation = value;
|
_noInterpolation = value;
|
||||||
if (_rigidbody == null) return;
|
if (_rigidbody == null) return;
|
||||||
_rigidbody.interpolation = value ? RigidbodyInterpolation.None : RigidbodyInterpolation.Interpolate;
|
_rigidbody.interpolation = value ? RigidbodyInterpolation.None : _initialInterpolation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Rigidbody _rigidbody;
|
private static Rigidbody _rigidbody;
|
||||||
|
private static RigidbodyInterpolation _initialInterpolation;
|
||||||
|
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(typeof(BetterBetterCharacterController), nameof(BetterBetterCharacterController.Start))]
|
[HarmonyPatch(typeof(BetterBetterCharacterController), nameof(BetterBetterCharacterController.Start))]
|
||||||
private static void Postfix_BetterBetterCharacterController_Update(ref BetterBetterCharacterController __instance)
|
private static void Postfix_BetterBetterCharacterController_Update(ref BetterBetterCharacterController __instance)
|
||||||
{
|
{
|
||||||
_rigidbody = __instance.GetComponent<Rigidbody>();
|
_rigidbody = __instance.GetComponent<Rigidbody>();
|
||||||
|
_initialInterpolation = _rigidbody.interpolation;
|
||||||
NoInterpolation = _noInterpolation; // get initial value as patch runs later than settings init
|
NoInterpolation = _noInterpolation; // get initial value as patch runs later than settings init
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -18,6 +18,6 @@
|
||||||
],
|
],
|
||||||
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r28/RelativeSync.dll",
|
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r28/RelativeSync.dll",
|
||||||
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/RelativeSync/",
|
"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"
|
"embedcolor": "#507e64"
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue