Vivecraft_116 icon indicating copy to clipboard operation
Vivecraft_116 copied to clipboard

Exiting a vehicle triggers sneak mode

Open matejdro opened this issue 3 years ago • 8 comments

  1. Enter minecart
  2. Press sneak button (simulating shift) on the VR controller
  3. 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?

matejdro avatar May 30 '21 11:05 matejdro

I'm pretty sure this is vanilla behavior.

Techjar avatar May 30 '21 11:05 Techjar

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.

matejdro avatar May 30 '21 11:05 matejdro

You can make it not a toggle if you like, that's just our default bindings.

Techjar avatar May 30 '21 11:05 Techjar

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.

matejdro avatar May 30 '21 11:05 matejdro

The toggle is handled outside of Vivecraft code so there's not really any way to fix it.

Techjar avatar May 30 '21 11:05 Techjar

Maybe you could do a workaround and bind to the exit vehicle event and turn off sneak mode after exiting a vehicle?

matejdro avatar May 30 '21 11:05 matejdro

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.

Techjar avatar May 30 '21 11:05 Techjar

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.

Techjar avatar May 30 '21 11:05 Techjar