Make slow spacing variables CCVars (#19862)
This commit is contained in:
@@ -959,6 +959,28 @@ namespace Content.Shared.CCVar
|
||||
public static readonly CVarDef<bool> AtmosGridImpulse =
|
||||
CVarDef.Create("atmos.grid_impulse", false, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// What fraction of air from a spaced tile escapes every tick.
|
||||
/// 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);
|
||||
|
||||
/// <summary>
|
||||
/// Minimum amount of air allowed on a spaced tile before it is reset to 0 immediately in kPa
|
||||
/// Since the decay due to SpacingEscapeRatio follows a curve, it would never reach 0.0 exactly
|
||||
/// unless we truncate it somewhere.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<float> AtmosSpacingMinGas =
|
||||
CVarDef.Create("atmos.mmos_min_gas", 2.0f, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// How much wind can go through a single tile before that tile doesn't depressurize itself
|
||||
/// (I.e spacing is limited in large rooms heading into smaller spaces)
|
||||
/// </summary>
|
||||
public static readonly CVarDef<float> AtmosSpacingMaxWind =
|
||||
CVarDef.Create("atmos.mmos_max_wind", 500f, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Whether atmos superconduction is enabled.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user