Files
tbd-station-14/Content.Server/Atmos/Components/AirIntakeComponent.cs
deltanedas f0f54b5872 mech nitrogen filtering 2 (#19868)
* target oxygen logic

* filter out nitrogen when low on oxygen

* vvrw and datafield for everything

* :trollface:

* bruh does work

* tagless chicken

* move into atmos, make it not depend on mech

* update mech prototype

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-11-05 20:15:13 -07:00

30 lines
970 B
C#
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Content.Server.Atmos.EntitySystems;
using Content.Shared.Atmos;
namespace Content.Server.Atmos.Components;
/// <summary>
/// This is basically a siphon vent for <see cref="GetFilterAirEvent"/>.
/// </summary>
[RegisterComponent, Access(typeof(AirFilterSystem))]
public sealed partial class AirIntakeComponent : Component
{
/// <summary>
/// Target pressure change for a single atmos tick
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float TargetPressureChange = 5f;
/// <summary>
/// How strong the intake pump is, it will be able to replenish air from lower pressure areas.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float PumpPower = 2f;
/// <summary>
/// Pressure to intake gases up to, maintains pressure of the air volume.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float Pressure = Atmospherics.OneAtmosphere;
}