mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
init
This commit is contained in:
parent
2bfe904adb
commit
fcc83aa570
6 changed files with 188 additions and 0 deletions
25
FuckToes/FuckToes.cs
Normal file
25
FuckToes/FuckToes.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using ABI_RC.Core.Savior;
|
||||
using HarmonyLib;
|
||||
using RootMotion.FinalIK;
|
||||
|
||||
|
||||
namespace NAK.Melons.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 (FuckToesMod.m_entryEnabledVR.Value && MetaPort.Instance.isUsingVr)
|
||||
{
|
||||
if (!FuckToesMod.m_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