Vivecraft_116
Vivecraft_116 copied to clipboard
Exiting a vehicle triggers sneak mode
- Enter minecart
- Press sneak button (simulating shift) on the VR controller
- You will exit the minecart BUT you will also start sneaking
I guess sneak mode should only start when player is not in a vehicle while pressing sneak button?
I'm pretty sure this is vanilla behavior.
Not really. With vanilla, you have to HOLD down the key to sneak, so if you sneak for half a second while exiting a vehicle, it does not cause any problems.
But with Vivecraft, sneaking is a toggle, which is way more annoying. If you just want to exit minecarts.
You can make it not a toggle if you like, that's just our default bindings.
I understand. But toggle is not a problem for me in general. What is a problem for me is "Toggle while in a vehicle", hence this issue report.
The toggle is handled outside of Vivecraft code so there's not really any way to fix it.
Maybe you could do a workaround and bind to the exit vehicle event and turn off sneak mode after exiting a vehicle?
I don't want to change the vanilla behavior for a stupid toggle. I'm more inclined to just remove the toggle instead. Players might be used to and expect to be sneaking after they exit a vehicle, I dunno.
What I could possibly do is remove the toggle from the SteamVR bindings and make it an in-game option instead, so that it can apply only to actually sneaking, and not exiting vehicles, without completely changing the sneak-on-exit-vehicle behavior.