From ed7fd7dbc13115453e1b6047fe1843d237bb414e Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 11 Jul 2017 21:41:31 +0300 Subject: [PATCH] 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. --- Barotrauma/BarotraumaShared/Source/Characters/Character.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Characters/Character.cs b/Barotrauma/BarotraumaShared/Source/Characters/Character.cs index 569e35ac3..d4b80158c 100644 --- a/Barotrauma/BarotraumaShared/Source/Characters/Character.cs +++ b/Barotrauma/BarotraumaShared/Source/Characters/Character.cs @@ -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