mirror of
https://github.com/Raicuparta/nomai-vr.git
synced 2025-12-11 20:15:08 +01:00
Disable tool belt while holding vision torch (#521)
This commit is contained in:
parent
1f361545a5
commit
c7dcba27fc
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user