Doors & Hatches: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Outdated)
(Linking to Installations instead of Category:Installations)
 
(34 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{Outdated|Needs to be up to date with the [[Version_history/Alpha|current steam version]].}}
{{Version|1.0.7.0}}
{{stub}}
{{Installations infobox
{{Installations infobox
| imagewidth = 50
| identifier = door
| description = Closes off section of the Submarine
| category = misc
| tags = structure, logic
| name = Door
| name = Door
| image = door.png
| image = door.png
| imagewidth = 30
| repair = mechanical
| repair = mechanical
| construction = 40
| mechanical engineering = 40
| repairitems = [[Welding Tool]]
| repairitems = {{Hyperlink|Welding Tool}} or {{Hyperlink|Wrench}}
}}
}}
{{Installations infobox
{{Installations infobox
| imagewidth = 90
| identifier = hatch
| description = Closes off section of the Submarine
| category = misc
| tags = structure, logic
| name = Hatch
| name = Hatch
| image = hatch.png
| image = hatch.png
| imagewidth2 = 90
| repair = mechanical
| repair = mechanical
| construction = 40
| mechanical engineering = 40
| repairitems = [[Welding Tool]]
| repairitems = {{Hyperlink|Welding Tool}} or {{Hyperlink|Wrench}}
}}
}}
'''Doors''' are [[:Category:Installations|installations]] allowing to close off sections of the [[Submarine|submarine]].
'''Doors''' and '''hatches''' are [[Installations|installations]] allowing to close off sections of the [[Submarine|submarine]].
=Usage=
Most doors and hatches are assigned a [[button]] allowing anyone to open or close them, but some require '''clearance''' to be opened, which is provided by possessing the appropriate [[ID Card]] in one's inventory. Typically, the [[Jobs#Captain|captain]]'s command room and armory are protected this way.


==Usage==
Both prevent passage when closed, and are thus used to contain [[Maintenance|flooding]] and [[Creatures|creatures]] in case of breach hulls, and to keep [[Traitor Mode|suspicious individuals]] out of sensitive areas.
Most doors are assigned a [[button]] allowing anyone to open or close them, but some require '''clearance''' to be opened, which is provided by possessing the appropriate [[ID Card]] in one's inventory. Typically, the [[Jobs#Captain|captain]]'s cabin and private quarters (when they exist) are protected this way.
Closed doors can be forced open with a crowbar or destroyed with a [[Plasma Cutter]] to allow passage in emergency situations.


Doors prevents passage when closed, and are thus used to contain [[Maintenance|flooding]] and [[:Category:Creatures|creatures]] in case of breach hulls, and to keep [[Traitor Mode|suspicious individuals]] out of sensitive areas.
Doors and hatches can also be welded shut with a [[Welding Tool]], in which case they can no longer be opened with external signals nor the [[Crowbar]], and must be unwelded with a Plasma Cutter first.
However, creatures damage welded doors at the same rate as non-welded doors.


Doors send out an input when closed and do not when open. This can be used to make failsafe and airlocks in turn giving more suitability to a ship.
==Doors & Hatches Connection Panel==
 
==I/O Interface==
{{Connection panel
{{Connection panel
| input1 = toggle
| panelfor = Door/Hatch
| input1tt = Closes/opens the door when any signal is received.
| input1 = toggle_state
| input1tt = Toggles Hatch/Door's state between open and closed on a non-zero signal
| input2 = set_state
| input2 = set_state
| input2tt = Closes the door when a signal "0" is received and opens it whenever any other signal is received.
| input2tt = Sets the Hatch/Door's open or closed depending on the signal value (0 = closed, non-zero = open).
| output1 = state_out
| output1 = state_out
| output1tt = Sends out "0" if the door is closed and "1" if it is open.
| output1tt = Sends a signal of 0 if the Hatch/Door is closed and 1 if the door is open.
| output2 = condition_out
| output2tt = Outputs the Hatch/Door's current condition. (0-100)
}}
}}


==Gallery==
 
<gallery widths="90" heights="150">
==Bot Logic==
 
[[File:Door AI Logic v2.png|right|thumb|alt=AI priority for door unlocking: linked, then wired, finally nearest controls.|AI bot door unlocking priority]]
 
When an AI waypoint is on a door it changes to a different icon, indicating the AI will try to unlock a door if it cannot pass that spot. To unlock the door (if needed) the bot will using any controls (buttons, switches, levers, etc) nearby
# Controls that are linked with the door itself (the connection will turn green in the sub editor)
# Controls that are wired to the '''set_state''' or '''toggle_state''' of the door
# Nearest controls
# (unverified) it will click a "door with buttons", with unknown priority (The door might count as the "nearest controls")
 
Properly setting down waypoints so they change into a "door waypoint", and linking the relevant controls can help the bot navigate complex wiring and airlocks.
 
 
=Docking Hatch & Port=
{{Main|Docking Hatch}}
The '''Docking Hatch''' and '''Docking Port''' are an [[Installations|Installation]] used to dock two submarines together, or a submarine to an outpost.
 
 
 
=Media=
<gallery widths=200 heights=280>
windowedclosed.png|A windowed door.
windowedclosed.png|A windowed door.
doorclosed.png|A standard door.
door.png|A standard door.
doorwelded.png|A standard door welded shut.
doorwelded.png|A standard door welded shut.
brokendoor.png|A broken standard door.
brokenwindowdoor.png|A broken windowed door.
</gallery>
<gallery widths=280 heights=200>
hatch.png|A hatch.
hatch.png|A hatch.
hatchwelded.png|A hatch welded shut.
hatchwelded.png|A hatch welded shut.
hatchbroken.png|A broken hatch.
</gallery>
</gallery>
{{Installations nav}}
{{Installations nav}}
[[Category:Installations]]
[[Category:Installations]]

Latest revision as of 11:20, 29 December 2023

Data is up-to-date
Last updated for version 1.0.7.0
The current game version is 1.4.5.0
Door

Closes off section of the Submarine
Technical
Identifier door
Categories misc
Tags structure, logic
Hatch

Closes off section of the Submarine
Technical
Identifier hatch
Categories misc
Tags structure, logic

Doors and hatches are installations allowing to close off sections of the submarine.

Usage

Most doors and hatches are assigned a button allowing anyone to open or close them, but some require clearance to be opened, which is provided by possessing the appropriate ID Card in one's inventory. Typically, the captain's command room and armory are protected this way.

Both prevent passage when closed, and are thus used to contain flooding and creatures in case of breach hulls, and to keep suspicious individuals out of sensitive areas. Closed doors can be forced open with a crowbar or destroyed with a Plasma Cutter to allow passage in emergency situations.

Doors and hatches can also be welded shut with a Welding Tool, in which case they can no longer be opened with external signals nor the Crowbar, and must be unwelded with a Plasma Cutter first. However, creatures damage welded doors at the same rate as non-welded doors.

Doors & Hatches Connection Panel

Connection Panel for Doors & Hatches
Hover over pins to see their descriptions.
toggle_state
set_state
Toggles Hatch/Door's state between open and closed on a non-zero signal
Sets the Hatch/Door's open or closed depending on the signal value (0 = closed, non-zero = open).
state_out
condition_out
Sends a signal of 0 if the Hatch/Door is closed and 1 if the door is open.
Outputs the Hatch/Door's current condition. (0-100)
Requires: Screwdriver


Bot Logic

AI priority for door unlocking: linked, then wired, finally nearest controls.
AI bot door unlocking priority

When an AI waypoint is on a door it changes to a different icon, indicating the AI will try to unlock a door if it cannot pass that spot. To unlock the door (if needed) the bot will using any controls (buttons, switches, levers, etc) nearby

  1. Controls that are linked with the door itself (the connection will turn green in the sub editor)
  2. Controls that are wired to the set_state or toggle_state of the door
  3. Nearest controls
  4. (unverified) it will click a "door with buttons", with unknown priority (The door might count as the "nearest controls")

Properly setting down waypoints so they change into a "door waypoint", and linking the relevant controls can help the bot navigate complex wiring and airlocks.


Docking Hatch & Port

Main article: Docking Hatch


The Docking Hatch and Docking Port are an Installation used to dock two submarines together, or a submarine to an outpost.


Media

v·d·e·h
Installations
Submarine Weapons
Small Turrets
Large Turrets
Loaders
Other
Navigation
Machines
Electrical
Structure
Other
Alien