From 9d94332c7ac0cf6d72c7a1e08754005d6c653222 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidoS@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:04:59 -0500 Subject: [PATCH] ASTExtension: Remove OnStayEnd --- ASTExtension/Main.cs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/ASTExtension/Main.cs b/ASTExtension/Main.cs index c2df83d..5231cd9 100644 --- a/ASTExtension/Main.cs +++ b/ASTExtension/Main.cs @@ -368,7 +368,6 @@ public class ASTExtensionMod : MelonMod }); gesture.onStart.AddListener(OnScaleStart); gesture.onStay.AddListener(OnScaleStay); - gesture.onEnd.AddListener(OnScaleEnd); CVRGestureRecognizer.Instance.gestures.Add(gesture); gesture = new CVRGesture @@ -387,7 +386,6 @@ public class ASTExtensionMod : MelonMod }); gesture.onStart.AddListener(OnScaleStart); gesture.onStay.AddListener(OnScaleStay); - gesture.onEnd.AddListener(OnScaleEnd); CVRGestureRecognizer.Instance.gestures.Add(gesture); } @@ -402,9 +400,6 @@ public class ASTExtensionMod : MelonMod // Store initial modifier so we can get difference later _initialModifier = Mathf.Max(modifier, 0.01f); // no zero _initialTargetHeight = PlayerSetup.Instance.GetCurrentAvatarHeight(); - - if (EntryRequireTriggersDuringGesture.Value) - CVR_InteractableManager.enableInteractions = false; } private void OnScaleStay(float modifier, Transform transform1, Transform transform2) @@ -439,18 +434,6 @@ public class ASTExtensionMod : MelonMod targetHeight = Mathf.Clamp(targetHeight, _minHeight, _maxHeight); SetAvatarHeight(targetHeight); } - - private void OnScaleEnd(float modifier, Transform transform1, Transform transform2) - { - if (!_currentAvatarSupported) - return; - - if (!EntryUseScaleGesture.Value) - return; - - if (EntryRequireTriggersDuringGesture.Value) - CVR_InteractableManager.enableInteractions = true; - } private static bool AreBothTriggersDown() {