From b80bfe6e20da25aa4cab842d80c4e5f758bc0940 Mon Sep 17 00:00:00 2001 From: DaXcess Date: Mon, 5 Aug 2024 18:27:02 +0200 Subject: [PATCH] Small hand override tweak --- CHANGELOG.md | 2 ++ Source/Networking/VRNetPlayer.cs | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33d58cde..c5bc85cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,7 @@ Some bindings are blacklisted from being used, mostly the "touched" bindings on - Added VR support for the Weed Killer item - Added haptic feedback to the muffle interaction - Added haptic feedback to the monitor buttons in the ship +- Added new option: `SpectatorLightRemovesVolumetrics`, which disables fog when using the spectator light (if enabled) **Bug Fixes**: @@ -66,6 +67,7 @@ Some bindings are blacklisted from being used, mostly the "touched" bindings on - Fixed bug where the controllers sometimes kept vibrating after the player already died - (Accidentally) fixed a bug where the keyboard on the terminal would be unusable if the ship was in motion - Fixed issue where players in an animation wouldn't sync their offset to their room center with other players +- Fixed a vanilla bug where sometimes you could "ghost interact" with battery powered items by using grip buttons **Changes**: diff --git a/Source/Networking/VRNetPlayer.cs b/Source/Networking/VRNetPlayer.cs index 3525b362..93502c16 100644 --- a/Source/Networking/VRNetPlayer.cs +++ b/Source/Networking/VRNetPlayer.cs @@ -254,6 +254,14 @@ private void LateUpdate() return; } + + // Break snap if distance is too great + if (Vector3.Distance(leftOverride.transform.position, leftHandVRTarget.position) > 2) + { + leftHandTargetOverride = null; + + return; + } Bones.LeftArmRigTarget.position = leftOverride.transform.TransformPoint(leftOverride.positionOffset); Bones.LeftArmRigTarget.rotation = @@ -274,6 +282,14 @@ private void LateUpdate() return; } + + // Break snap if distance is too great + if (Vector3.Distance(rightOverride.transform.position, rightHandVRTarget.position) > 2) + { + rightHandTargetOverride = null; + + return; + } Bones.RightArmRigTarget.position = rightOverride.transform.TransformPoint(rightOverride.positionOffset); Bones.RightArmRigTarget.rotation =