From a5140ade9187d09079c3a628ceea232dc919a2da Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidoS@users.noreply.github.com> Date: Mon, 1 Jul 2024 23:05:14 -0500 Subject: [PATCH] ASTExtension: Added IsGripping check for Knuckles --- ASTExtension/Main.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ASTExtension/Main.cs b/ASTExtension/Main.cs index 4f0d048..7c22de7 100644 --- a/ASTExtension/Main.cs +++ b/ASTExtension/Main.cs @@ -406,6 +406,9 @@ public class ASTExtensionMod : MelonMod if (!EntryUseScaleGesture.Value) return; + + if (!IsGripping()) // knuckles controllers dont need grip to do Fist gesture + return; modifier = Mathf.Max(modifier, 0.01f); // no zero @@ -432,6 +435,12 @@ public class ASTExtensionMod : MelonMod SetAvatarHeight(targetHeight); } + private static bool IsGripping() + { + return CVRInputManager.Instance.gripLeftValue > 0.50f || + CVRInputManager.Instance.gripRightValue > 0.50f; + } + private static bool AreBothTriggersDown() { // Maybe it should be one trigger? Imagine XSOverlay scaling but for player.