Delta-v/Content.Server/Atmos
Pieter-Jan Briers db81438d30
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
2024-03-18 17:46:31 +01:00
..
Commands Un-revert IPlayerManager refactor (#21244) 2023-10-28 09:59:53 +11:00
Components Add events for TemperatureProtection and PressureProtection (#25165) 2024-02-13 23:44:47 -08:00
EntitySystems Fix barotrauma pressure protection (#26236) 2024-03-18 17:46:31 +01:00
Monitor Predict two-way levers (#25043) 2024-02-11 14:19:45 +11:00
Piping Obsolete `Logger` cleanup for `EntitySystem`s (#25941) 2024-03-10 01:15:13 +01:00
Portable Enforce Space Heater max/min temperatures server side (#25835) 2024-03-05 16:57:28 +01:00
Reactions Fix oxyburn energy not accounting for heatscale (#24023) 2024-01-13 12:12:14 -08:00
Rotting Use new ComponentPauseGenerator (#25183) 2024-02-26 14:36:19 +11: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 Add maximum atmos temperature limit (#22882) 2023-12-24 10:05:42 -05: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-15 14:02:21 -08: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