mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
ASTExtension: Remove OnStayEnd
This commit is contained in:
parent
1fc70a07db
commit
9d94332c7a
1 changed files with 0 additions and 17 deletions
|
@ -368,7 +368,6 @@ public class ASTExtensionMod : MelonMod
|
||||||
});
|
});
|
||||||
gesture.onStart.AddListener(OnScaleStart);
|
gesture.onStart.AddListener(OnScaleStart);
|
||||||
gesture.onStay.AddListener(OnScaleStay);
|
gesture.onStay.AddListener(OnScaleStay);
|
||||||
gesture.onEnd.AddListener(OnScaleEnd);
|
|
||||||
CVRGestureRecognizer.Instance.gestures.Add(gesture);
|
CVRGestureRecognizer.Instance.gestures.Add(gesture);
|
||||||
|
|
||||||
gesture = new CVRGesture
|
gesture = new CVRGesture
|
||||||
|
@ -387,7 +386,6 @@ public class ASTExtensionMod : MelonMod
|
||||||
});
|
});
|
||||||
gesture.onStart.AddListener(OnScaleStart);
|
gesture.onStart.AddListener(OnScaleStart);
|
||||||
gesture.onStay.AddListener(OnScaleStay);
|
gesture.onStay.AddListener(OnScaleStay);
|
||||||
gesture.onEnd.AddListener(OnScaleEnd);
|
|
||||||
CVRGestureRecognizer.Instance.gestures.Add(gesture);
|
CVRGestureRecognizer.Instance.gestures.Add(gesture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -402,9 +400,6 @@ public class ASTExtensionMod : MelonMod
|
||||||
// Store initial modifier so we can get difference later
|
// Store initial modifier so we can get difference later
|
||||||
_initialModifier = Mathf.Max(modifier, 0.01f); // no zero
|
_initialModifier = Mathf.Max(modifier, 0.01f); // no zero
|
||||||
_initialTargetHeight = PlayerSetup.Instance.GetCurrentAvatarHeight();
|
_initialTargetHeight = PlayerSetup.Instance.GetCurrentAvatarHeight();
|
||||||
|
|
||||||
if (EntryRequireTriggersDuringGesture.Value)
|
|
||||||
CVR_InteractableManager.enableInteractions = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnScaleStay(float modifier, Transform transform1, Transform transform2)
|
private void OnScaleStay(float modifier, Transform transform1, Transform transform2)
|
||||||
|
@ -439,18 +434,6 @@ public class ASTExtensionMod : MelonMod
|
||||||
targetHeight = Mathf.Clamp(targetHeight, _minHeight, _maxHeight);
|
targetHeight = Mathf.Clamp(targetHeight, _minHeight, _maxHeight);
|
||||||
SetAvatarHeight(targetHeight);
|
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()
|
private static bool AreBothTriggersDown()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue