Light thru opening door by Travis "talmand" Almand

Posted to The QuakeLab - http://www.in2nett.com/stevefu/QuakeLab

You can use whatever textures you wish to fit the theme of level.

Entities used:
	6 trigger-relays
	2 buttons
	3 lights
	2 doors

Load the map and step back to hit the button, watch the door open
at the end of the hall. It'll open and the hallway will light up.
After about four seconds the door will close and the hallway will
darken as it shuts.

Ok, here we go.
First setup a hallway with a door at the end. The other side of the 
door should be a bright room. Place three lights in a row in 
front of the door. Place a button on the wall facing the door and
one on the other side of the door so you can get out. Target the 
buttons for the door. Place 6 trigger_relays somewhere on the map,
place them in pairs to keep them organized, name them the same as
the door. Now, target both trigger_relays from each pair to each of 
the lights (trigger1 to light1 and so on). Now you should have
2 trigger_relays for each light. These relays will be triggered by
the same button that opens the door. Now for the tricky part (and
hard to explain in words). Set the delay for one of the relays for
the first light in line to turn on just after the door opens. Then 
the next light should come on just after the first light. Finally 
the third light should come on last, preferably when the door
finishes opening. Now set the leftover relays for each light to 
turn them off, in opposite order from before. The third light should
cut off as the door begins to close and the first light should
cut off as the door shuts. Got that?

Here's how the example map is set up.

Button (targets triggers and door)
Door opens
Relay1 turns on light1 (brightness of 150) after delay of .2
Relay2 turns on light2 (brightness of 200) after delay of .4
Relay3 turns on light3 (brightness of 150) after delay of .6
Door closes after delay of 4
Relay4 turns off light3 after delay of 4.6
Relay5 turns off light2 after delay of 4.8
Relay6 turns off light1 after delay of 5
Door is shut

The effect should be that when the door opens the three lights turn
on in sequence and when the door shuts the lights turn off in reverse
sequence. It gives the appearance of light pouring through the door
as it opens. It'll do until there is dynamic lighting that reacts to
entities.

You'll notice I didn't list the lights in the bright room in the 
entity list above, this can be done anyway that is desired. Just be
careful not to place lights too close to the door since light will 
show through on the dark side of the door. Unless of course this
is an intended effect, it looks like light seeping through cracks
between the walls and the door.

Ok, suggestion time. This would be better as a door that opens only once.
It is difficult to make all the lights involved near the door to operate
in the desired way, there is always something wrong on one side of the 
door (take a good hard look at the example to see what I mean).
Another thing that ruins the effect is when the sequence with the lights
and the door is interrupted, such as someone getting hit by the closing
door or hitting the other button before the door closes. Try it and see.
If one is not worried that much about appearances then the example
works good, especially from a distance. I just made it closable so it
could be seen several times without having to reload the map each time.

Also, the more lights used in the lighting sequence then the better it 
should look. That's a theory though, no promises. Experiment with the 
placement of the lights, their brightness levels and delays to get the 
effect wanted. I suggest the lights be placed near the floor since light
coming in through a door would light the floor more than the ceiling.
Try it at home with a closet door or something.