Check out Half-Life Re-imagined competition results!
Check out Skewing textures in Hammer, our newest tutorial!
Say hello to Hadi, our newest member!

logo

Site Stuff

Reference

Maps

Community

ShoutBOX

Poll

Feeling Blue

What's your favourite shade of blue?

Azure

12

Cobalt

25

Turquoise

7

Cyan

9

Royal

5

Teal

3

Onliners

3 mins

Instant Mix

3 mins

Qwertyus

6 mins

JeffMOD

13 mins

SourceSkyBoxer

15 mins

Themaster12234

23 mins

ZikShadow

29 mins

Kachito

Affiliates

A gaming and technology blog by TWHL admins Penguinboy and Ant. A music blog by TWHL users Ant and Hugh.

3 Door Logic

Map Vault > Example Maps

map screenshot

star star star star star
(1 votes)

[More Screenshots]

Avatar

By Tetsu0 (See more)
16th November, 2014

Half-Life
140.22KB - RMF
714 views
180 downloads
3 comments

Last edited: 16th November, 2014

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.

Comments

avatar Captain Terror says: star star star star star 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 ;)
avatar 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?
avatar 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.