Delta-v/Content.Server/Atmos
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
..
Commands Un-revert IPlayerManager refactor (#21244) 2023-10-31 19:00:44 +01:00
Components Add events for TemperatureProtection and PressureProtection (#25165) 2024-02-18 23:11:15 +01:00
EntitySystems Fix barotrauma pressure protection (#26236) 2024-03-23 23:58:12 +01:00
Monitor Predict two-way levers (#25043) 2024-02-18 22:46:26 +01:00
Piping Obsolete `Logger` cleanup for `EntitySystem`s (#25941) 2024-03-17 14:46:35 +01:00
Portable Enforce Space Heater max/min temperatures server side (#25835) 2024-03-07 01:25:41 +01:00
Reactions Fix oxyburn energy not accounting for heatscale (#24023) 2024-01-26 22:35:48 +01:00
Rotting Use new ComponentPauseGenerator (#25183) 2024-03-07 00:57:05 +01:00
Serialization Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
ExcitedGroup.cs Cleanup the namespaces (#8132) 2022-05-13 17:59:03 +10:00
GasMixture.cs Hopefully fix atmos issues (#656) 2024-01-07 22:10:35 +00:00
GasMixtureStringRepresentation.cs Add cryopod logs (#16854) 2023-05-28 18:59:27 +10:00
Hotspot.cs Cleanup the namespaces (#8132) 2022-05-13 17:59:03 +10:00
IGasMixtureHolder.cs Cleanup the namespaces (#8132) 2022-05-13 17:59:03 +10:00
IGasReactionEffect.cs Atmos scaling cvar changes (#22501) 2023-12-16 20:31:51 +01:00
MonstermosInfo.cs Cleanup the namespaces (#8132) 2022-05-13 17:59:03 +10:00
PressureEvent.cs Rejig pressure protection (#7560) 2022-04-15 15:41:47 -07:00
TileAtmosphere.cs Remove redundant read-only VV from datafields (#12626) 2022-11-16 20:22:11 +01:00
TileFireEvent.cs Minor atmos optimisations (#6625) 2022-02-20 17:43:20 +11:00