Barotrauma

Barotrauma

Not enough ratings
Smart Door 2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
61.879 KB
18 Jul, 2022 @ 8:49pm
21 Apr @ 10:50pm
6 Change Notes ( view )

Subscribe to download
Smart Door 2

Description
Will automatically close/open the door when water enters/leaves, without blocking input.
If there's more than 10% water combined from the adjacent rooms, and the door is open, close it.
If there's less than 1% water combined from the adjacent rooms, and the door is closed, open it.
It will only toggle the door once, once it detect this. It won't trigger again. That way, you can still open/close the door yourself, if you wish to override it.
6 Comments
FaceInCake  [author] 21 Apr @ 10:52pm 
Updated the door to work in the current version.
I believe you have to delete and re-place the assembly in your sub/outpost/etc.
FaceInCake  [author] 6 Mar, 2023 @ 4:29pm 
Dang, can you show me it not working? Or describing the situation?

I've tested it best I can but I can't test for everything so any feedback is much appreciated!
Alamaos 6 Mar, 2023 @ 4:09am 
doesn't work
johnsir 19 Oct, 2022 @ 2:53pm 
Definitely helped a bit, but I'd have to load it up and look to fully understand with this info. But wow I did not think of using the timeframe setting on an AND component of all things! :steamthumbsup:
FaceInCake  [author] 19 Oct, 2022 @ 9:05am 
I used to use a delay component to do edge detection, but I found it to be unreliable if the server got laggy. I ended up using that `timeframe` property. That AND gate has both the less-than and greater-than hooked up as inputs, with the timeframe set to 0.02, so the only way that AND gate gets triggered, is during a transition phase from less->greater or greater->less, because although they cant both be true on the same frame, they can be true in close proximity of each other. I then do some comparing to the door state and water state. Hope that helped. :btd6thumbsup:
johnsir 19 Oct, 2022 @ 2:51am 
Ok hold up I'm REAL curious how you managed to make it not hold the door open indefinitely. Could you tell me how you managed to do that without even having a single delay component??