3 Door Logic

Half-Life HL
3 Door Logic by Tetsu0
Posted 10 years ago2014-11-16 17:29:17 UTC • Examples • Half-Life
Loading...
Screenshot Thumbnail
Screenshot Thumbnail
Name
3 Door Logic
By
Tetsu0 Tetsu0
Type
Map
Engine
Goldsource
Game
Half-Life
Category
Examples
Included
RMF/VMF
Created
10 years ago2014-11-16 17:29:17 UTC
Updated
10 years ago2014-11-16 17:30:18 UTC
Views
2074
Downloads
577
Comments
3
Rating
5.00 (1)
full star full star full star full star full star Download

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.

3 Comments

Commented 10 years ago2014-11-16 20:50:36 UTC Comment #20734
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 ;)
Commented 10 years ago2014-11-19 16:38:45 UTC Comment #20749
Isn't this just computation & logic? Could it be expressed as a FSM and then translated to multisource from there?
Commented 10 years ago2014-11-19 17:44:22 UTC Comment #20750
FSM?
It boiled down to figuring out how to invert logic. I've never done it before.

You must log in to post a comment. You can login or register a new account.