Delta-v/Content.Server/Atmos/EntitySystems
Pieter-Jan Briers 45c8c4f0b5
Fix barotrauma pressure protection (#26236)
Oops

In #26217 I re-organized the logic for the calculation. Part of that was moving the logic for GetFeltLowPressure and GetFeltHighPressure to be done before we actually check the hazard thresholds. What I didn't realize is that, with how our pressure protection is set up, these functions can return values so extreme they rebound into the other category.

For example, according to the math, when you're wearing a hardsuit in a low-pressure environment you have "felt" pressure of 1000 kPa. Yeah that's not right.

Now these functions clamp their result to OneAtmosphere, in the appropriate direction (101.3 kPa).

Fixes #26234

(cherry picked from commit db81438d30f83a542abe6c81c2ce4a5040aa3ddb)
2024-03-23 23:58:12 +01:00
..
AirFilterSystem.cs Convert atmos device events to ref events (#22843) 2023-12-22 23:25:05 +01:00
AirtightSystem.cs Remove 700 usages of Component.Owner (#21100) 2023-10-20 15:31:13 +02:00
AtmosDebugOverlaySystem.cs Improve atmos debug overlay (#22520) 2023-12-16 20:31:51 +01:00
AtmosExposedSystem.cs Fix a bunch of compiler warnings (#10518) 2022-08-13 22:28:34 -07:00
AtmosObstructionEnumerator.cs Content changes for mapgrid kill (#12567) 2022-11-22 13:12:04 +11:00
AtmosPlaqueSystem.cs Remove usages of obsolete MetaDataComponent setters (#19582) 2023-08-28 19:20:31 +10:00
AtmosphereSystem.API.cs Adds a new `AtmosphereSystem.GetTileMixture()` override (#21804) 2023-12-02 20:26:02 +01:00
AtmosphereSystem.BreathTool.cs Remove 700 usages of Component.Owner (#21100) 2023-10-20 15:31:13 +02:00
AtmosphereSystem.CVars.cs Random spontaneous cleanup PR (#25131) 2024-02-18 23:02:29 +01:00
AtmosphereSystem.Commands.cs Remove 700 usages of Component.Owner (#21100) 2023-10-20 15:31:13 +02:00
AtmosphereSystem.ExcitedGroup.cs Refactors the AtmosphereSystem public-facing API to allow for multiple atmos backends. (#8134) 2022-07-04 09:51:34 -05:00
AtmosphereSystem.Gases.cs Hopefully fix atmos issues (#656) 2024-01-07 22:10:35 +00:00
AtmosphereSystem.GridAtmosphere.cs Fix index out of range exception in atmosphere system (#22770) 2023-12-22 23:04:49 +01:00
AtmosphereSystem.HighPressureDelta.cs Remove obsolete transform call (#24217) 2024-02-08 12:23:11 +01:00
AtmosphereSystem.Hotspot.cs Remove obsolete transform call (#24217) 2024-02-08 12:23:11 +01:00
AtmosphereSystem.LINDA.cs Gas tile overlay state handling changes (#12691) 2022-12-19 06:25:27 +11:00
AtmosphereSystem.Map.cs Draw MapAtmosphere gasses (#17688) 2023-06-28 21:22:03 +10:00
AtmosphereSystem.Monstermos.cs Obsolete `Logger` cleanup for `EntitySystem`s part 2 (#26159) 2024-03-17 15:11:33 +01:00
AtmosphereSystem.Processing.cs Convert atmos device events to ref events (#22843) 2023-12-22 23:25:05 +01:00
AtmosphereSystem.Superconductivity.cs Refactors the AtmosphereSystem public-facing API to allow for multiple atmos backends. (#8134) 2022-07-04 09:51:34 -05:00
AtmosphereSystem.Utils.cs Tile prying removes decals (#13363) 2023-01-07 02:24:50 -08:00
AtmosphereSystem.cs Remove obsolete transform call (#24217) 2024-02-08 12:23:11 +01:00
AutomaticAtmosSystem.cs Obsolete `Logger` cleanup for `EntitySystem`s (#25941) 2024-03-17 14:46:35 +01:00
BarotraumaSystem.cs Fix barotrauma pressure protection (#26236) 2024-03-23 23:58:12 +01:00
FirestarterSystem.cs Firestarter fixes (#24647) 2024-02-08 12:04:52 +01:00
FlammableSystem.cs Diona Nymphs & Splitting (#24630) 2024-02-18 23:34:45 +01:00
GasAnalyzerSystem.cs Improve gas analyzer interface (#22779) 2023-12-22 23:04:49 +01:00
GasTankSystem.cs Lock Anomaly generator to research access (#24464) 2024-02-08 12:11:07 +01:00
GasTileOverlaySystem.cs Random spontaneous cleanup PR (#25131) 2024-02-18 23:02:29 +01:00
HeatExchangerSystem.cs Random spontaneous cleanup PR (#25131) 2024-02-18 23:02:29 +01:00