Class BarotraumaComponent
Barotrauma: injury because of changes in air pressure.
Inheritance
System.Object
BarotraumaComponent
Assembly: Content.Server.dll
Syntax
public sealed class BarotraumaComponent : Component
Fields
|
Improve this Doc
View Source
Damage
Declaration
public DamageSpecifier Damage
Field Value
|
Improve this Doc
View Source
HasImmunity
Whether the entity is immuned to pressure (i.e possess the PressureImmunity component)
Declaration
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
|
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
Field Value
Type |
Description |
System.Boolean |
|