Barotrauma

Barotrauma

Not enough ratings
DockingAirlock
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
31.738 KB
9 Oct, 2022 @ 5:30am
22 Nov, 2022 @ 4:32pm
2 Change Notes ( view )

Subscribe to download
DockingAirlock

Description
A fairly simple docking hatch that can also serve as a regular airlock. toggle_docking should be passed to the docking port directly. Vanilla autoclosing and the hatch's state_out are passed through a relay that is turned off when docked - useful for disabling the standard airlock circuit to not hinder movement while docked.
6 Comments
JeffyTheBird-TTV 8 Aug @ 2:13pm 
couldnt work out how to follow your instructions on how to add the autoclose AND component but im not great at all this, set motion sensor to tiny range so ittl close right after you go through but its fixed every other issue i had doing docking exits aka they actually funtion correctly and i dont need an extra manual shutdown and reengage for docks to force undocking
xolophreny  [author] 21 Mar, 2023 @ 1:10am 
I shall try to - basically the same thing that the vanilla Dugong and, I think, Orca 2 have.
Get an AND component, set its False Output to nothing, and Output to 0. Connect the airlock doors'/hatches' state_out to the component inputs, and set_state to component output. With this airlock, the state_out is passed through a relay, so connect the respective relay output instead of the hatch state_out directly.
The way that works - when both "sides" of the airlock, the two AND component inputs, both have a door open - a state_out of 1 - it will close all doors by sending 0 to their set_state pins, after which you may open the desired door again
BlazingImp77151 20 Mar, 2023 @ 11:54pm 
I couldnt figure out how this is supposed to connect to the other door of the airlock. could you explain it?
Natal-galum 17 Dec, 2022 @ 6:22pm 
Thanks
xolophreny  [author] 17 Dec, 2022 @ 5:14pm 
The relay is turned off when docked, and from the start it disables vanilla autoclosing from the motion sensor, and also I often use a fairly standard airlock circuit where an AND component closes all doors if both inside and outside doors are open. If this hatch's state_out is passed through the relay into that AND component, then this airlock cycling won't trigger and won't be a nuisance when moving through when docked. Hope that makes sense!
Natal-galum 17 Dec, 2022 @ 12:39pm 
Its clear with energy and docking. But i STILL have a question what is relay for?