Function[edit | edit source]
The pump's primary function is to filter water in its given area. By pressing E on the pump, a small menu will appear in which the player is able to modify both the direction the water is being pumped into and the speed at which it is being pumped. For instance, setting the pump to a positive number will cause water to flood into the area, and a negative number will pump water out of the area. A higher positive number or lower negative number causes the pump to go faster in the desired direction.
The pump's direction can also be modified with the input
set_targetlevel. This input allows the player to modify the current level of water in the pump's area. The input can be a decimal value between 0.0 (meaning the water level will be 0) or 100 (meaning the water level is at the highest it can be). When an input is set, the pumps direction is automatically set and it will begin gradually lowering or raising the water level to the desired target. This change is not instantaneously though, as it will take the pump some time to reach the designated target level.
In addition to the obvious use for the pumps, to pump out water when a flood occurs, it can also be used to pump water into the submarine to make it heavier, allowing the ship to dive into deeper parts of the ocean.
GUI[edit | edit source]
I/O Interface[edit | edit source]
|Connection panel for Pump|
Trivia[edit | edit source]
- Pumps are often used in real life to filter water in and out of submarines. This is done to make the ship heavier or lighter based on whether the ship is diving or raising. Rooms dedicated to this purpose are called ballasts.
- This system is reflected in the official submarines included with Barotrauma, where the ships will automatically pump water into and out of the ballast based on which direction of the Y-axis the submarine is heading.