Delta-v/Content.Server/Atmos
Pieter-Jan Briers b5138b245e Fix barotrauma calculations
The math for our pressure damage (barotrauma) system is directly taken from TG. The constants are the same and the math is almost the same. However there are two errors.

1. Pressure damage started being applied within the WARNING bounds, rather than the HAZARD bounds. This means you started taking low pressure damage at 50 kPa instead of the intended 20 kPa, and also the HUD icon didn't show "danger" like it should even if you were already taking damage.

2. The calculations for high pressure damage were wrong. These are supposed to be linearly scaled, but the function was wrong so the scaling didn't actually work properly (especially when considering the fixed bounds above). This appears to be the case because the function was taken from an incorrect comment in the original source, rather than the real math.

Both of these issues are now fixed to match the TG behavior. Note that this somewhat nerfs pressure damage in non-extreme circumstances. e.g. a room at 40 kPa now gives NO pressure damage, whereas previously it would do full space damage.

The description of the pressure alerts is wrong for "low" severity, but I can't be arsed to fix that right now. Alerts don't have a way to change the description depending on severity...
2024-03-17 22:37:28 +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 calculations 2024-03-17 22:37:28 +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