mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
major cleanup
This commit is contained in:
parent
b33e15377f
commit
e5242f76c7
85 changed files with 584 additions and 571 deletions
25
FuckToes/HarmonyPatches.cs
Normal file
25
FuckToes/HarmonyPatches.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using ABI_RC.Core.Savior;
|
||||
using HarmonyLib;
|
||||
using RootMotion.FinalIK;
|
||||
|
||||
|
||||
namespace NAK.FuckToes.HarmonyPatches;
|
||||
|
||||
//yes im patching VRIK directly, cvr does not force calibration or mess with references, and leaves it to vrik to handle
|
||||
class VRIKPatches
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(VRIK), "AutoDetectReferences")]
|
||||
private static void Postfix_VRIK_AutoDetectReferences(ref VRIK __instance)
|
||||
{
|
||||
//only run for PlayerLocal VRIK
|
||||
if (__instance.gameObject.layer != 8) return;
|
||||
|
||||
if (FuckToes.EntryEnabledVR.Value && MetaPort.Instance.isUsingVr)
|
||||
{
|
||||
if (!FuckToes.EntryEnabledFBT.Value && MetaPort.Instance.isUsingFullbody) return;
|
||||
__instance.references.leftToes = null;
|
||||
__instance.references.rightToes = null;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue