Show / Hide Table of Contents

Class BarotraumaComponent

Barotrauma: injury because of changes in air pressure.

Inheritance
System.Object
BarotraumaComponent
Namespace: Content.Server.Atmos.Components
Assembly: Content.Server.dll
Syntax
public sealed class BarotraumaComponent : Component

Fields

| Improve this Doc View Source

Damage

Declaration
public DamageSpecifier Damage
Field Value
Type Description
DamageSpecifier
| Improve this Doc View Source

HasImmunity

Whether the entity is immuned to pressure (i.e possess the PressureImmunity component)

Declaration
public bool HasImmunity
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

HighPressureModifier

Declaration
public float HighPressureModifier
Field Value
Type Description
System.Single
| Improve this Doc View Source

HighPressureMultiplier

Cached pressure protection values

Declaration
public float HighPressureMultiplier
Field Value
Type Description
System.Single
| Improve this Doc View Source

LowPressureModifier

Declaration
public float LowPressureModifier
Field Value
Type Description
System.Single
| Improve this Doc View Source

LowPressureMultiplier

Declaration
public float LowPressureMultiplier
Field Value
Type Description
System.Single
| Improve this Doc View Source

MaxDamage

Declaration
public FixedPoint2 MaxDamage
Field Value
Type Description
FixedPoint2
| Improve this Doc View Source

ProtectionSlots

These are the inventory slots that are checked for pressure protection. If a slot is missing protection, no protection is applied.

Declaration
public List<string> ProtectionSlots
Field Value
Type Description
List<System.String>
| Improve this Doc View Source

TakingDamage

Used to keep track of when damage starts/stops. Useful for logs.

Declaration
public bool TakingDamage
Field Value
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾