add faked root angle fix from DesktopVRIK

This commit is contained in:
NotAKidoS 2023-04-10 03:01:26 -05:00
parent dc7b9c4860
commit d1abb3b4ef
2 changed files with 37 additions and 5 deletions

View file

@ -4,6 +4,16 @@ namespace NAK.Melons.IKFixes;
public class IKFixesMod : MelonMod
{
internal static MelonLogger.Instance Logger;
public const string SettingsCategory = "IKFixes";
public static readonly MelonPreferences_Category CategoryIKFixes = MelonPreferences.CreateCategory(SettingsCategory);
public static readonly MelonPreferences_Entry<bool> EntryUseFakeRootAngle =
CategoryIKFixes.CreateEntry("Use Fake Root Angle", false, description: "Emulates maxRootAngle. This fixes feet pointing in direction of head when looking around.");
public static readonly MelonPreferences_Entry<float> EntryFakeRootAngleLimit =
CategoryIKFixes.CreateEntry("Fake Root Angle Limit", 25f, description: "Specifies the maximum angle the lower body can have relative to the head when rotating.");
public override void OnInitializeMelon()
{
ApplyPatches(typeof(HarmonyPatches.VRIKPatches));