Disable tool belt while holding vision torch (#521)

This commit is contained in:
artum 2022-09-03 22:53:02 +02:00 committed by GitHub
parent 1f361545a5
commit c7dcba27fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -104,8 +104,9 @@ namespace NomaiVR.Tools
{ {
var isCharacterMode = OWInput.IsInputMode(InputMode.Character); var isCharacterMode = OWInput.IsInputMode(InputMode.Character);
var isInDream = Locator.GetDreamWorldController() != null && Locator.GetDreamWorldController().IsInDream(); var isInDream = Locator.GetDreamWorldController() != null && Locator.GetDreamWorldController().IsInDream();
var isHoldingVisionTorch = Locator.GetToolModeSwapper()?.GetItemCarryTool()?.GetHeldItemType() == ItemType.VisionTorch;
var isHandClose = !ModSettings.AutoHideToolbelt || IsHandNear(HandsController.Behaviour.RightHand) || IsHandNear(HandsController.Behaviour.LeftHand); var isHandClose = !ModSettings.AutoHideToolbelt || IsHandNear(HandsController.Behaviour.RightHand) || IsHandNear(HandsController.Behaviour.LeftHand);
var shouldBeVisible = !ToolHelper.IsUsingAnyTool() && isCharacterMode && !isInDream && isHandClose; var shouldBeVisible = !ToolHelper.IsUsingAnyTool() && isCharacterMode && !isInDream && !isHoldingVisionTorch && isHandClose;
if (!visible && shouldBeVisible) if (!visible && shouldBeVisible)
{ {

View File

@ -8,7 +8,7 @@
"title": "Before playing NomaiVR, some information:", "title": "Before playing NomaiVR, some information:",
"body": "- Click the NomaiVR readme button in the Mod Manager for information about troubleshooting, requirements, performance, how to uninstall, etc.\n\n- Some VR controllers will have missing icons. Message us if you want to help us add icons for these devices.\n\n- If you have the game on Steam:\n--- Right-click Outer Wilds on your Steam library\n--- Select 'Properties...'\n--- Disable 'Use Desktop Game Theatre.'" "body": "- Click the NomaiVR readme button in the Mod Manager for information about troubleshooting, requirements, performance, how to uninstall, etc.\n\n- Some VR controllers will have missing icons. Message us if you want to help us add icons for these devices.\n\n- If you have the game on Steam:\n--- Right-click Outer Wilds on your Steam library\n--- Select 'Properties...'\n--- Disable 'Use Desktop Game Theatre.'"
}, },
"version": "2.7.0", "version": "2.7.1",
"owmlVersion": "2.3.0", "owmlVersion": "2.3.0",
"requireVR": true "requireVR": true
} }