Clients don't stop updating the controls/HUD/etc of their character when water pressure reaches lethal levels until the server implodes the character. Requested by nilanthanimosus; doesn't change much in the vanilla game, but modded servers can now disable pressure deaths without characters becoming immobilized in high pressure.

This commit is contained in:
Joonas Rikkonen
2017-07-11 21:41:31 +03:00
parent af1a681da0
commit ed7fd7dbc1

View File

@@ -1365,8 +1365,11 @@ namespace Barotrauma
if (PressureTimer >= 100.0f)
{
if (controlled == this) cam.Zoom = 5.0f;
Implode();
return;
if (GameMain.Client == null)
{
Implode();
return;
}
}
}
else