-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player exits crouching when opening Inventory or interaction GUI #283
Comments
Thanks for flagging this. Looking into this a bit more, it seems this has nothing to do with the interaction. If you are crouched when interacting -> opening a gui like the keypad, the player character stands up and thus the interactable object is no longer being hit by the interaction_raycast due to the position change. That being said, I'd expect the behavior to be that the player character simply stays crouched when opening a GUI (like the keypad, readable etc.), so I'm looking into fixing that as part of the |
I'll probably have to undo some of the changes I applied to |
Renaming this issue to better describe whats going on. |
Figured the cause and and a quick fix for this: Cause is this line (554) not being able to run For a quick fix can remove But not sure what other issues that might cause since the player code is a bit complicated. May want to refactor the player into a state machine at some point, especially since there's even more behaviours to add in future. |
@niefia thanks so much for finding this. Yeah, like you said, I knew there had to be just a single line or two that caused this, but wasn't able to find it. Thanks so much for finding the needle in the haystack.
Agree, this would definitely be something to do at some point. |
Closing issue. |
Cogito and Godot Engine Version:
Godot version: 4.2.2
Cogito version: beta 202409.03
Description:
Interacting with a keypad while crouching locks you into the keypad UI (you can still exit it by pressing Esc)
Reproduction steps:
Expected behavior:
The interact button works the same while not crouching, as a toggle that can enter and exit the keypad UI
The text was updated successfully, but these errors were encountered: