Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

NPCs don't know how to deal with water pressure.

Open knightez12 opened this issue 2 years ago • 4 comments

Disclaimers

  • [X] I have searched the issue tracker to check if the issue has already been reported.
  • [ ] My issue happened while using mods.

What happened?

when submarines are flooded npcs wil just swimming around and die from water pressure even though there are several room that are safe and not flooded.

Reproduction steps

1.get hull breach 2.get flooded 3.npcs equip diving mask 4.npcs swim in circle 5.die

Bug prevalence

Happens every now and then

Single player or multiplayer?

Single player

-

No response

Version

v1.2.7.0 (Winter Update hotfix)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

knightez12 avatar Dec 23 '23 14:12 knightez12

Thank you for the report!

Which submarine did this happen in? Did you notice it happening in some specific room? If this was in some custom submarine, it could possibly be that the waypoints haven't been properly set up or updated in the sub.

Regalis11 avatar Dec 26 '23 15:12 Regalis11

All tier 1 subs or maybe other tier too but I don't take any passenger after reaching Europa ridge

Also they will prioritize safe spot instead of diving suit too.

ในวันที่ อ. 26 ธ.ค. 2023 22:51 Joonas Rikkonen @.***> เขียนว่า:

Thank you for the report!

Which submarine did this happen in? Did you notice it happening in some specific room? If this was in some custom submarine, it could possibly be that the waypoints haven't been properly set up or updated in the sub.

— Reply to this email directly, view it on GitHub https://github.com/Regalis11/Barotrauma/issues/13223#issuecomment-1869628377, or unsubscribe https://github.com/notifications/unsubscribe-auth/BE4EXOKO6IHINQ6NX5KCBZLYLLW6TAVCNFSM6AAAAABBA2ZLG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZGYZDQMZXG4 . You are receiving this because you authored the thread.Message ID: @.***>

knightez12 avatar Dec 26 '23 16:12 knightez12

The same thing happened to me yesterday in a single player game with mods (dynamic europa, etc.). Orca uboat. When the uboat was flooded, the NPCs swam wearing oxygen masks until they died, although there were free diving suits nearby, they ignore it and did not put suits on.

pavel4win avatar Dec 27 '23 00:12 pavel4win

Observed in: https://github.com/FakeFishGames/Barotrauma-development/commit/b103a4354afb0432f395d782523ba7b53a9ebea5

There is something weird going in pathfinding. Managed to get mechanic failing to exit ballast in humpback on video:

https://github.com/FakeFishGames/Barotrauma/assets/8488224/f2d88f7e-0cbd-4613-b40a-ace9f216972e

In other instance idle medic was swimming only in diving mask in fully flooded hull, also in humpback, feels like they don't properly evaluate the danger within the room they are idling in.

Edit. Addendum In barsuk saw this happening when ballast was filling, but pump managed to keep up with the leak:

https://github.com/FakeFishGames/Barotrauma/assets/8488224/7e7432e1-26f1-4f9b-a974-72491bc9e27c

Jasontti avatar Jan 30 '24 11:01 Jasontti

@Jasontti, if you are on single player, please type "debugai" before recording or taking a screenshot.

itchyOwl avatar Apr 29 '24 08:04 itchyOwl

Doesn't seem to be that easy to repro, but I think I managed to find at least one issue when I teleported a character in the ballast of Humpback:

image

Steps:

  1. Equip a diving mask
  2. Go in the ballast.
  3. Use "water" command to fill it in water
  4. Go to free cam
  5. If the bot manages to path out from the ballast, teleport it back

itchyOwl avatar Jun 05 '24 12:06 itchyOwl