Barotrauma

Barotrauma

Advanced Airlock
21 Comments
zuff  [author] 15 Apr, 2023 @ 12:43pm 
I've updated the airlock and uploaded a new version you can find here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2962801973

Feedback would be highly appreciated!
TheOneTader 23 Mar, 2023 @ 10:12am 
Mind if I use this in the subs I publish(credit to you of course)
Wolkendawn 12 Feb, 2023 @ 1:12am 
I am likewise having an issue with left-side exits... I can't get the water to drain before the door opens. It just opens and floods the airlock access room with water instead.
Icarus 31 Dec, 2022 @ 8:51pm 
Is there any way to flip which side is the detected as the inside and which side is detected as the outside? If I try using this for a left-side exit it breaks
Panoramix le Druide 13 Nov, 2022 @ 4:33pm 
+1 for an override command. been stuck with a broken exterior door and no way to open for fixing :[
Torroc 24 Sep, 2022 @ 12:25am 
Would love to see this with the button doors rather then the buttons on their own.
Toriatrix 13 Dec, 2021 @ 11:15am 
Not working for me, it's just opening the door straight away.
King133x 10 Nov, 2021 @ 1:19pm 
Is it possible to overide somehow? when there is a leak inside you can accidentally lock it/yourself out by cycling it
妖の夢[Yume] 3 Oct, 2021 @ 8:37am 
the lights flickering , it seems to be a bug of the WIFI component change caused by the update
Hermann 2 Oct, 2021 @ 8:40am 
Dope
Sankt Kaiser 21 May, 2021 @ 1:07am 
This is awesome, and almost exactly what I felt was missing from every other airlock the game provides and I tried to build. Thank you very much for this!
kwogger 8 May, 2021 @ 10:32pm 
Well done! This is probably the most robust airlock system I've used. I think the state system here is an excellent base for any complicated system.

A few notes on reducing item count; YMMV on how much less readable these might be:
- Drop state 3 & jump straight to 4
- Use regex instead of the combination of sgn and logic components
- Water detector can be wired directly w/o wifi since it's only used twice
- For the pump, if you use set_targetlevel instead of set_speed, you can also have it draining in state 1 to help with leaks
- Label for the memory is swapped, you're reading from wifi 1 and writing to wifi 0
- Simplifing button logic, three blocks with all buttons attached to each:
1) RegEx w/ "([14])" and use the capture group. Wire that and buttons to an adder - this advances the state on button press.
2) Sgn + And for 2, output 5
3) Sgn + And for 5, output 2

That should drop the component count to around 30ish, depending on how aggressively you combine wifi components.
Rkendall_1234 29 Apr, 2021 @ 7:06pm 
I love it but I'm too lazy to add it to like every fuckin ship I have downloaded. Because if I mess around I might use one sub then the next time another. I hate how this isn't in some subs because it's a great idea and thing that adds realisim.
zuff  [author] 23 Apr, 2021 @ 8:16am 
@Tyrian - Technically you are correct, but what it does is use duct vents to completely fill the chamber with water before opening the door, thus removing the ragdoll push in normal airlocks

@Rep1le - No, I'm not sane. If you have an easier way to do it then by all means do it! I'd love to see it.
Rept1le 13 Apr, 2021 @ 4:01pm 
Are you mentally sane right now? Also, why did you need that many components, I can think of other simpler ways to do it
Tyrian 8 Apr, 2021 @ 6:07am 
This doesn't seem to actually match pressure to the side it's opening to? Depending on which state the doors are in, it's just either pumping the chamber up completely and then opening the door, or just opens the door straight away.
Wchemik 8 Apr, 2021 @ 12:13am 
I can kill people with this Therefore I love it
Rubyko 7 Apr, 2021 @ 2:48am 
This is really neat, I've been looking for good Air Lock solutions since my friends always seem to fumble around them for some reason so maybe the stage lights will be helpful.
Soggerston 7 Apr, 2021 @ 12:04am 
good addon mod or whatewer you call it. good boi
FluffyZarkus 6 Apr, 2021 @ 1:01am 
i want and airlock thats just a gas chamber, would be kinda funny
Tuxlion 5 Apr, 2021 @ 7:29pm 
is there a way to override this during main gameplay so as to not stop the crew from entering and leaving the sub incase of an emergency?