Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Items can be placed in non-interactable areas

Open thebuttsatisfier opened this issue 4 years ago • 2 comments

  • [*] I have searched the issue tracker to check if the issue has already been reported.

Description A portable pump can be placed in areas of the submarine where they cannot be interacted with after placement.

Steps To Reproduce

  • Put a portable pump in your inventory
  • Place it near an area where it appears that the pump can clip through solid walls or floors
  • Attempt to interact with the pump with your mouse

Version v0.15.22.1 Windows 10 64-bit

Additional information I found this bug by accidentally placing a portable pump in the very bottom floor of the Humpback's "lower mid" section. After I placed it partially clipped through the sub I couldn't interact with it to pick it back up.

Screenshot 2021-12-23 212717

thebuttsatisfier avatar Dec 24 '21 05:12 thebuttsatisfier

Changed the title, since this applies to all items that can be attached to walls, not just portable pumps

Regalis11 avatar Jan 05 '22 10:01 Regalis11

Addressed in https://github.com/Regalis11/Barotrauma-development/commit/4f425de8b1e9e24a56c575f3fc6461dd9b25249d

Regalis11 avatar Sep 29 '22 13:09 Regalis11

Tested against dev commit https://github.com/Regalis11/Barotrauma-development/commit/3f874d71a8cdc82d1d16314abdd6ae91f7e42098

Appears to work well in most areas such as flat walls, doors, areas you cannot reach and anything outside of wrench range. however on a Humpback submarine I noticed I could place it into a spot I could not retrieve with a wrench indicating some further work could be done (Likely due to sloped/curved structure pieces)?

Note I placed a relay in the rough area marked in the image below and could no longer select it.

image

NilanthAnimosus avatar Oct 10 '22 12:10 NilanthAnimosus

Fixed in https://github.com/Regalis11/Barotrauma-development/commit/71b39c123d73612a052cf9a1585a3d28890cb9c0

Fixed items still being attachable inside walls in some cases (sloped walls in particular). Happened because we first did the raycast to find a position outside the wall and then rounded the position to the grid, which in some cases placed it inside a wall.

Regalis11 avatar Oct 10 '22 14:10 Regalis11

Tested against release commit https://github.com/Regalis11/Barotrauma-development/commit/56ddb502c58d91fea177e4f4c9b9c57bb12e7c8c, no issues found, closing.

Notes: Anywhere an attachable item could be placed that intersects a wall partially, can easily be removed by wrench. I could not find in any situation/shape where the item was no longer reachable via a wrench.

NilanthAnimosus avatar Oct 14 '22 10:10 NilanthAnimosus