]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Tune spacing speed to fix under-pressure lockout (#28370)
authorKevin Zheng <kevinz5000@gmail.com>
Wed, 29 May 2024 05:21:48 +0000 (21:21 -0800)
committerGitHub <noreply@github.com>
Wed, 29 May 2024 05:21:48 +0000 (23:21 -0600)
Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs
Content.Shared/CCVar/CCVars.cs

index 74d945a0b6079bae6ef86c3070e255aac6eeb098..32cf1cac6f850a6e014045dfe2cec41b0703bf73 100644 (file)
@@ -40,7 +40,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components
         /// </summary>
         [ViewVariables(VVAccess.ReadWrite)]
         [DataField("underPressureLockoutThreshold")]
-        public float UnderPressureLockoutThreshold = 2;
+        public float UnderPressureLockoutThreshold = 60; // this must be tuned in conjunction with atmos.mmos_spacing_speed
 
         /// <summary>
         ///     Pressure locked vents still leak a little (leading to eventual pressurization of sealed sections)
index e5d08ad6f36243af6e0627aa99ac64ea16bb7d2e..5ca34945d88a6af08d85bc91e4e2169384d21892 100644 (file)
@@ -1047,7 +1047,7 @@ namespace Content.Shared.CCVar
         ///     1.0 for instant spacing, 0.2 means 20% of remaining air lost each time
         /// </summary>
         public static readonly CVarDef<float> AtmosSpacingEscapeRatio =
-            CVarDef.Create("atmos.mmos_spacing_speed", 0.05f, CVar.SERVERONLY);
+            CVarDef.Create("atmos.mmos_spacing_speed", 0.15f, CVar.SERVERONLY);
 
         /// <summary>
         ///     Minimum amount of air allowed on a spaced tile before it is reset to 0 immediately in kPa