mech air overhaul (#19140)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
28
Content.Server/Mech/Components/MechAirIntakeComponent.cs
Normal file
28
Content.Server/Mech/Components/MechAirIntakeComponent.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Content.Shared.Atmos;
|
||||
|
||||
namespace Content.Server.Mech.Components;
|
||||
|
||||
/// <summary>
|
||||
/// This is basically a siphon vent for mech but not using pump vent component because MechAir bad
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class MechAirIntakeComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Target pressure change for a single atmos tick
|
||||
/// </summary>
|
||||
[DataField("targetPressureChange")]
|
||||
public float TargetPressureChange = 5f;
|
||||
|
||||
/// <summary>
|
||||
/// How strong the intake pump is, it will be able to replenish air from lower pressure areas.
|
||||
/// </summary>
|
||||
[DataField("pumpPower")]
|
||||
public float PumpPower = 2f;
|
||||
|
||||
/// <summary>
|
||||
/// Pressure to intake gases up to, maintains MechAir pressure.
|
||||
/// </summary>
|
||||
[DataField("pressure")]
|
||||
public float Pressure = Atmospherics.OneAtmosphere;
|
||||
}
|
||||
Reference in New Issue
Block a user