Barotrauma

Barotrauma

View Stats:
Vlados Nov 9, 2024 @ 12:25pm
Auto door lock if fire
So, guys, i've tried my best to make this mechanism, but failed. Can smb help me with it? I want to make an auto locking door, if there's a fire. So: there's fire, the door locks and after ~10 sec it opens. What can i do?
< >
Showing 1-6 of 6 comments
kratos Nov 9, 2024 @ 12:42pm 
I think you're looking for a smoke detector into a signal check component. If fire lock. If no fire do nothing. Signal check would be output 0 false blank, and target 1.
Just don't be on the wrong side of the door during a fire.

Edit: I would like to note that some fires don't seem to count as fires as of this comment. Flamers? That is a fire. Mutated Pomegrenade? That is a fire. An Incendium Grenade? No. That is not a fire.
Last edited by kratos; Nov 9, 2024 @ 12:55pm
Buggy Boy Nov 9, 2024 @ 2:00pm 
Hmm, sucks to be in that room when there's a fire then. Unless you include an emergency exit button, but that would kind of negate the whole idea of a fire door.
Vlados Nov 10, 2024 @ 4:16am 
Originally posted by kratos:
I think you're looking for a smoke detector into a signal check component. If fire lock. If no fire do nothing. Signal check would be output 0 false blank, and target 1.
Just don't be on the wrong side of the door during a fire.

Edit: I would like to note that some fires don't seem to count as fires as of this comment. Flamers? That is a fire. Mutated Pomegrenade? That is a fire. An Incendium Grenade? No. That is not a fire.

Thank you for idea! I tried this and it worked well, but the door automatically opened and all water was split. I wanted to make sure, that all water went to the canals, so i made this system with water detector. Thank you agan!)
sintri Nov 12, 2024 @ 10:53pm 
edit: might've missed a component, plus circuit box exists now

Crux of the issue isn't making sure something locks when an event occur, it's still allowing entry while maintaining the closed state.
Think the most simplified version of this takes the door and 4 components.

Door
"SET_STATE" takes Signal SIGNAL_OUT
"STATE_OUT" goes to Delay SIGNAL_IN

Delay Component (toggle reset when different signal received, delay is how long you want to wait to close 2-3 second is ideal)
"SIGNAL_IN" takes Door STATE_OUT
"SIGNAL_OUT" goes to Signal SIGNAL_IN

Not Component
"SIGNAL_IN" takes ***SEE-BLOW*** SIGNAL_OUT
"SIGNAL_OUT" goes to Signal SET_TARGETSIGNAL

Signal Component (Technically all variables will be set by incoming signals, but I have mine set to Output 1 and Target Signal 0)
"SIGNAL_IN" takes Delay SIGNAL_OUT
"SET_OUTPUT" takes ***SEE-BLOW*** SIGNAL_OUT
"SET_TARGETSIGNAL" takes Not SIGNAL_OUT
"SIGNAL_OUT" goes to Door SET_STATE

***SEE-BELOW***
Last Component
Can be whatever, just needs to be able to send a continuous 0 at all times except when you need it closed. Simplest case would be a Not Component set to Continous Output, whenever something needs to close the door, send a 1 and nothing otherwise, this can be smoke detector, motion sensors, water detectors, whatever.

This more or less allows you to seal a door as needed but still allow both players and bots to travel through and reseal. The same mechanism can also prevent motion detectors from automatically trying to open doors.
Last edited by sintri; Nov 16, 2024 @ 12:26pm
sintri Nov 12, 2024 @ 10:55pm 
It's also more or less the same concept as the built-in autodoor design, just reworked a little.
Whispdragoon62 Nov 13, 2024 @ 12:16pm 
Remind me not to be an engineer on your sub trapped in the fire room.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Nov 9, 2024 @ 12:25pm
Posts: 6