Oxygen
Spacesuit
A Space Engineer's suit can store Oxygen to keep them self alive when they're in a vacuum. While the player wears his helmet, the suits oxygen tank provides O2 to the player. The remaining oxygen capacity is displayed in the left status panel of the players HUD in [%]. As is the current status of the helmet (if worn or not). If their suit's Oxygen level is ever depleted, their character will slowly asphyxiate, resulting in death if the Oxygen is not replenished immediately.
Oxygen can be replenished at a Medical Room attached to a Conveyor system, and will also be filled while sitting in a Cockpit or Fighter Cockpit attached to a Conveyor system. The Conveyor system must be connected to an Oxygen Tank containing Oxygen in order for the filling to work.
If there is an Oxygen Bottle in a player's inventory, some of it will be consumed to refill their suit when the suit's Oxygen level becomes too low.
Game version 01.078.009
Internal suit oxygen tank capacity | 60 O2 |
Player oxygen consumption rate | 0.0378 O2 / s (estimated) |
When the player is in a pressurized room of a station or a large ship, the suit will not replenish it's O2 reserves, as it cannot transfer uncompressed room air into its internal pressure tank. The player can even suffocate in it's suit while standing in a pressurized room, if he does not take off his helmet before the suits internal O2 tank is depleted.
Atmosphere
A player can remove their helmet to breathe Oxygen inside a Large Ship or Station, which can be filled with Oxygen via Air Vent, removing the vacuum status from within. A Graph traversal / flood-fill algorithm is used to fill an enclosed space with Oxygen. The algorithm traverses through the volumetric grid, and checks if there’s an closed or open area, and whether if the oxygen can expand indefinitely or stay contained. When the player puts their helmet back on, their suit will be at full capacity provided that the room wasn't a vacuum.