Half-Life Re-imagined competition results on their way...
Check out Skewing textures in Hammer, our newest tutorial!
Welcome, HARVLAW_ORENGI, our newest member!

# Poll

## Feeling Blue

What's your favourite shade of blue?

Azure

10

Cobalt

23

Turquoise

6

Cyan

8

Royal

5

Teal

3

41 mins

Dimbeak

43 mins

Kachito

56 mins

OmniscientShrub

1 hours

Jessie

1 hours

NineTnine

1 hours

GMK_5

1 hours

Penguinboy

# 3 Door Logic

## Map Vault > Example Maps

(1 votes)

[More Screenshots]

By Tetsu0 (See more)
16th November, 2014

140.22KB - RMF
659 views
174 downloads
3 comments

Last edited: 16th November, 2014

This map provides a solution to the problem described here: http://twhl.info/journals.php?id=8465

Synopsis:

Three doors; A, B, and C are set to be usable, and togglable.
Door C can only be used if Door A is open and door B is closed.
Doors A and B can only be used if Door C is closed.

Solution:

By default, when the map loads, all outputs are off.
There is a trigger_auto that triggers a multisource that toggles the output states of relays.

Door A targets Door_C_Master
Door B targets Door_B_Inverter
Door_B_Inverter targets Door_C_Master
When door b is open(on), door b inverter forwards an "off" signal
Door C targets Door_C_inverter
Door_C_Inverter targets A_B_Master
When door c is open(on), door c inverter forwards an "off" signal

SO:

When door c is on, the A&B master is DISABLED so doors a and b cannot be used
when door A is open and B is closed, both signals going to the master are "on" (because the b signal is inverted)
In all other combinations of doors A and B, Door_C_Master is disabled, preventing it from opening.

# Comments

Captain Terror says: 16th November 2014, 20:50 PM
Really, awesome work on this, it's something I would never have been able to figure out using relays/multisource. Thanks also for the nice explanation and diagram inclued with the download ;)
Instant Mix says: 19th November 2014, 16:38 PM
Isn't this just computation & logic? Could it be expressed as a FSM and then translated to multisource from there?
Tetsu0 says: 19th November 2014, 17:44 PM
FSM?
It boiled down to figuring out how to invert logic. I've never done it before.
You must be logged in to comment.