Submarine sometimes loads below crush depth despite map warning only near crush depth
What happened?
The yellow/red depth warnings on the map usually guide where players go, but the text of the red and yellow warnings implies that going through a yellow passageway may be difficult or impossible, but at least the start of the level will be safe. However, this is not the case sometimes, as either the submarine spawns below the start of the level, or the level is flipped, and so the "start" of the level is technically safe, but the "end" - which a submarine can start at if backtracking - may not be.
Here are two examples of this occurring -
https://github.com/FakeFishGames/Barotrauma/assets/37850646/bb3cb639-64d0-4451-9dc1-d3466ce51b4b
When transiting through a natural formation, the sub is placed below the start of the level, so while the start may be safe, where the sub spawns may not be.
https://github.com/FakeFishGames/Barotrauma/assets/37850646/11b51d35-e179-4167-842e-b1e399f8a4b9
Since levels angle downward, going backwards means that the sub loads in at a lower position than if it loaded in the forward direction. I'm assuming that the game only considers the forward direction when calculating whether to put a red or yellow warning.
Save files of the two situations (I don't remember which is which): Depthtesting1.zip Depthtesting.zip
I understand that there is a massive warning essentially saying "DO NOT GO HERE, YOU WILL DIE", but I've seen so many players ask in the discord how to fix their saves after getting softlocked by loading in below crush depth, and the answer is always just to enable cheats and godmode_mainsub or something similar. Thus the player's campaign is either softlocked, or they are forced to lose achievements forever. A lot of them may have softlocked themselves because they just can't read, but there may be bugs like this that cause softlocks that aren't as fair.
It would be good if there was some anti-softlock mechanism for loading in below crush depth, even if the player deliberately ignored the warning. Maybe give a long delay before the hulls start breaking?
Reproduction steps
- Start a singleplayer campaign, enable cheats and teleportcampaignteleport
- Find a level that has a yellow warning (and is fairly close to the crush depth), and start from the right node heading left. Observe that the submarine loads into crush depth.
- Find a level that has a yellow warning (and is fairly close to the crush depth) and is a natural formation. Enter the level and observe that the sub loads into crush depth.
Tested in v1.2.8.0 (ROS), but I assume it occurs in v1.2.8.0 (Stable) as well.