Gas Mask: Difference between revisions
More actions
Add Gas Mask item page |
Add Logic section with logic slots and parameters |
||
| Line 39: | Line 39: | ||
| Filter 1;GasFilter | | Filter 1;GasFilter | ||
| Filter 2;GasFilter | | Filter 2;GasFilter | ||
}} | |||
= Logic = | |||
=== Slots === | |||
All slot [[logic]] parameters are read-only. | |||
{| class="wikitable" | |||
|- | |||
! Parameter !! Slot Indices | |||
|- | |||
| Occupied || 0, 1 | |||
|- | |||
| OccupantHash || 0, 1 | |||
|- | |||
| Quantity || 0, 1 | |||
|- | |||
| MaxQuantity || 0, 1 | |||
|- | |||
| Damage || 0, 1 | |||
|- | |||
| Class || 0, 1 | |||
|- | |||
| ReferenceId || 0, 1 | |||
|- | |||
| FilterType || 0, 1 | |||
|} | |||
{{Data Parameters| | |||
{{Data Parameters/row|Combustion|Boolean|w=0|Whether combustion is occurring in the Gas Mask's atmosphere.|0 or 1}} | |||
{{Data Parameters/row|Flush|Boolean|r=0|Write 1 to flush the Gas Mask's internal atmosphere.}} | |||
{{Data Parameters/row|Pressure|Float|w=0|The current pressure of the Gas Mask's atmosphere.|kPa}} | |||
{{Data Parameters/row|RatioCarbonDioxide|Float|w=0|The ratio of [[Carbon Dioxide]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioHelium|Float|w=0|The ratio of [[Helium]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioHydrazine|Float|w=0|The ratio of [[Hydrazine]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioHydrochloricAcid|Float|w=0|The ratio of [[Hydrochloric Acid]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioHydrogen|Float|w=0|The ratio of [[Hydrogen]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidAlcohol|Float|w=0|The ratio of [[Liquid Alcohol]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidCarbonDioxide|Float|w=0|The ratio of [[Liquid Carbon Dioxide]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidHydrazine|Float|w=0|The ratio of [[Liquid Hydrazine]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidHydrochloricAcid|Float|w=0|The ratio of [[Liquid Hydrochloric Acid]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidHydrogen|Float|w=0|The ratio of [[Liquid Hydrogen]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidMethane|Float|w=0|The ratio of [[Liquid Methane]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidNitrogen|Float|w=0|The ratio of [[Liquid Nitrogen]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidNitrousOxide|Float|w=0|The ratio of [[Liquid Nitrous Oxide]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidOxygen|Float|w=0|The ratio of [[Liquid Oxygen]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidOzone|Float|w=0|The ratio of [[Liquid Ozone]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidPollutant|Float|w=0|The ratio of [[Liquid Pollutant]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidSilanol|Float|w=0|The ratio of [[Liquid Silanol]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioLiquidSodiumChloride|Float|w=0|The ratio of [[Liquid Sodium Chloride]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioMethane|Float|w=0|The ratio of [[Methane]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioNitrogen|Float|w=0|The ratio of [[Nitrogen]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioNitrousOxide|Float|w=0|The ratio of [[Nitrous Oxide]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioOxygen|Float|w=0|The ratio of [[Oxygen]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioOzone|Float|w=0|The ratio of [[Ozone]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioPollutant|Float|w=0|The ratio of [[Pollutant]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioPollutedWater|Float|w=0|The ratio of [[Polluted Water]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioSilanol|Float|w=0|The ratio of [[Silanol]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioSteam|Float|w=0|The ratio of [[Steam]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|RatioWater|Float|w=0|The ratio of [[Water]] in the Gas Mask's atmosphere.|0.0 to 1.0}} | |||
{{Data Parameters/row|ReferenceId|Integer|w=0|Unique Reference Identifier for this object.}} | |||
{{Data Parameters/row|SoundAlert|Integer|Index of the active sound alert.|≥ 0}} | |||
{{Data Parameters/row|Temperature|Float|w=0|The current temperature of the Gas Mask's atmosphere.|Kelvin}} | |||
{{Data Parameters/row|TotalMoles|Float|w=0|Total moles of gas in the Gas Mask's atmosphere.|mol}} | |||
{{Data Parameters/row|Volume|Integer|Speaker volume for sound alerts.|0 to 100}} | |||
}} | }} | ||
Revision as of 05:00, 9 April 2026
![]() | |
| Properties | |
|---|---|
| Paintable | yes |
| Recipes | |
| Tool Manufactory | 2g Steel, 1g Silicon |
| Logic | |
| Item Hash | 1716878560 |
| Item Name | ItemGasMask |
| Logic Classes |
SlotClass.Helmet SortingClass.Clothing |
Description
The Gas Mask is a helmet-slot item that allows the wearer to breathe in toxic atmospheres by filtering out specific gases before they reach the lungs. Unlike a Space Helmet, it draws air directly from the surrounding environment rather than a dedicated air tank, making it well suited to environments that have breathable air contaminated with specific hazardous gases.
Despite not being a pressurized helmet, it shares the same suit requirement and flush behavior as one.
Usage
Filtering
Insert up to two Gas Filters into the mask's slots to specify which gases to remove. Each tick the mask equalizes the surrounding world atmosphere into its internal pocket, then strips out any gases matching the installed filters. The filtered gases are expelled back into the surrounding atmosphere rather than stored.
Filters degrade only when they actually remove gas.
Suit requirement
The mask only delivers filtered air to the wearer's lungs when a suit is also equipped. Without a suit, the wearer breathes unfiltered world atmosphere directly, as if the mask were not present.
Flush
The Flush interaction purges the mask's internal atmosphere, the suit's internal atmosphere, and the wearer's lung atmosphere simultaneously, expelling all contents into the surrounding environment. This is useful after a suit breach or after removing and reequipping the suit, as the lung atmosphere may still contain contaminants absorbed while unprotected.
Notes
Slots
| Slot Name | Type | Index |
|---|---|---|
| Filter 1 | GasFilter | 0 |
| Filter 2 | GasFilter | 1 |
Logic
Slots
All slot logic parameters are read-only.
| Parameter | Slot Indices |
|---|---|
| Occupied | 0, 1 |
| OccupantHash | 0, 1 |
| Quantity | 0, 1 |
| MaxQuantity | 0, 1 |
| Damage | 0, 1 |
| Class | 0, 1 |
| ReferenceId | 0, 1 |
| FilterType | 0, 1 |
Data Parameters
These are all parameters that can be written with a Logic Writer, Batch Writer, or Integrated Circuit (IC10), and can be read with a Logic Reader, Batch Reader, or Integrated Circuit (IC10).
| Parameter Name | Data Type | Access | Value | Description | |
|---|---|---|---|---|---|
| Combustion | Boolean | Read
|
0 or 1 | ||
| Flush | Boolean | Write
|
|||
| Pressure | Float | Read
|
kPa | ||
| RatioCarbonDioxide | Float | Read
|
0.0 to 1.0 | ||
| RatioHelium | Float | Read
|
0.0 to 1.0 | ||
| RatioHydrazine | Float | Read
|
0.0 to 1.0 | ||
| RatioHydrochloricAcid | Float | Read
|
0.0 to 1.0 | ||
| RatioHydrogen | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidAlcohol | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidCarbonDioxide | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidHydrazine | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidHydrochloricAcid | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidHydrogen | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidMethane | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidNitrogen | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidNitrousOxide | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidOxygen | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidOzone | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidPollutant | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidSilanol | Float | Read
|
0.0 to 1.0 | ||
| RatioLiquidSodiumChloride | Float | Read
|
0.0 to 1.0 | ||
| RatioMethane | Float | Read
|
0.0 to 1.0 | ||
| RatioNitrogen | Float | Read
|
0.0 to 1.0 | ||
| RatioNitrousOxide | Float | Read
|
0.0 to 1.0 | ||
| RatioOxygen | Float | Read
|
0.0 to 1.0 | ||
| RatioOzone | Float | Read
|
0.0 to 1.0 | ||
| RatioPollutant | Float | Read
|
0.0 to 1.0 | ||
| RatioPollutedWater | Float | Read
|
0.0 to 1.0 | ||
| RatioSilanol | Float | Read
|
0.0 to 1.0 | ||
| RatioSteam | Float | Read
|
0.0 to 1.0 | ||
| RatioWater | Float | Read
|
0.0 to 1.0 | ||
| ReferenceId | Integer | Read
|
|||
| SoundAlert | Integer | Read Write
|
≥ 0 | ||
| Temperature | Float | Read
|
Kelvin | ||
| TotalMoles | Float | Read
|
mol | ||
| Volume | Integer | Read Write
|
0 to 100 | ||
