-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Attempting fix for #2565 #2586
Attempting fix for #2565 #2586
Conversation
Uh oh, something went wrong with the build. Need to check on that |
Can confirm the original bug (at least the crouch-swimming, loading a save seemed OK to me) and that this fixes it, but yeah it doesn't seem like this would be the way to do it :-) As written this will conflict with #2515 (pinging @coty91!) which overhauls swimming and may be a better architecture to base this fix on top of. It makes me think about movement modes in general and how switching to swimming should probably just reset crouching, yet doing by triggering a button event seems wrong somehow. Also, interestingly, probably swimming should affect the player's shape anyway - at least for a human a regular swimming stance (while actively moving) is more like a prone stance than standing or crouching, while treading water would be more like standing. Yet a swimming prone would leave the player's eye height the same as treading water, while a landed prone would indeed lower the eye height dramatically. Ahh challenges! :-) Gets even more fun if you consider other creatures. A crocodile would be prone by nature and that stays unchanged on entering water, whether just floating or actively swimming. And Chessandgo is working on a centaur ... So maybe crouching and prone should be a subtly different system anyway, yet still reset/change when entering water. Lots of possibilities, but none that are super quick to approach. In any case I think we need to bake in more flexibility in changing the player's shape during movement, buttons being clicked or not. |
@Cervator Yup, this even breaks a test as you can see. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate your effort to try to fix this, but simulating a button press is simply the wrong method.
Do you plan to work on this further or can we close this PR?
Let's close this PR for now. I'd get back to this soon :) |
Contains
Potential fix for #2565
How to test
Look at issue for details on how to reproduce.
This doesn't really work out well, and is probably not a good way to solve this problem. Could use some help on how to fix.
Another thing that can be done is that CROUCHING can be remembered, so that after swimming, the character returns in crouched position (However this will change player's height in water which is undesirable). But this will also solve the second part of #2565