Creating indicator lights: Difference between revisions
TomEdwards (talk | contribs) (cleanup) |
|||
Line 1: | Line 1: | ||
This tutorial will show you how to make those indicator strips on the ground and walls that change color when the trigger is activated. It assumes you have moderate knowledge on the [[Hammer Overlay Tool]]. | |||
This tutorial will show you how to make those indicator strips on the ground and walls that change color when the trigger is activated. | |||
==Overlays== | |||
[[Image:Indicatorlights1.jpg|right|thumb|info_overlays all laid out.]] | [[Image:Indicatorlights1.jpg|right|thumb|info_overlays all laid out.]] | ||
The bulk of the lights are comprised of [[info_overlay]]s. The four textures used are: | The bulk of the lights are comprised of [[info_overlay]]s. The four textures used are: | ||
* | |||
* | *<code>signage/indicator_lights/indicator_lights_floor</code> | ||
* | *<code>signage/indicator_lights/indicator_lights_wall</code> | ||
* | *<code>signage/indicator_lights/indicator_lights_corner_wall</code> | ||
*<code>signage/indicator_lights/indicator_lights_corner_floor</code> | |||
1. Create a path using the above [[info_overlay]]s from your trigger to whatever they should activate. Give them all the same name; in this example we will use '''button_lights'''. | 1. Create a path using the above [[info_overlay]]s from your trigger to whatever they should activate. Give them all the same name; in this example we will use '''button_lights'''. | ||
{{note|The overlays should be 10 units wide. Set the ''U End'' to '''length / 32'''.}} | {{note|The overlays should be 10 units wide. Set the ''U End'' to '''length / 32'''.}} | ||
=Checkmark Box= | ==Checkmark Box== | ||
[[Image:Indicatorlights2.jpg|right|thumb|Where to put the frame.]] | [[Image:Indicatorlights2.jpg|right|thumb|Where to put the frame.]] | ||
1. Create a [[prop_static]] with the following properties: | 1. Create a [[prop_static]] with the following properties: | ||
::{| | ::{| | ||
Line 29: | Line 32: | ||
{{clr}} | {{clr}} | ||
=Making it Work= | ==Making it Work== | ||
[[Image:Indicatorlights4.jpg|right|thumb|Final product]] | [[Image:Indicatorlights4.jpg|right|thumb|Final product]] | ||
1. Create a [[env_texturetoggle]] entity somewhere near your overlays. Give it the following properties: | 1. Create a [[env_texturetoggle]] entity somewhere near your overlays. Give it the following properties: | ||
Line 51: | Line 55: | ||
You now have helpful indicator lights to put around your map! You can download the tutorial map [http://www.remmiz.com/portal/maps/indicatorlightstutorial.zip here]. | You now have helpful indicator lights to put around your map! You can download the tutorial map [http://www.remmiz.com/portal/maps/indicatorlightstutorial.zip here]. | ||
==See also== | |||
*[[Portal Level Creation]] | |||
[[Category:Level Design Tutorials]] | |||
[[Category:Portal]] |
Revision as of 13:48, 21 November 2007
This tutorial will show you how to make those indicator strips on the ground and walls that change color when the trigger is activated. It assumes you have moderate knowledge on the Hammer Overlay Tool.
Overlays
The bulk of the lights are comprised of info_overlays. The four textures used are:
signage/indicator_lights/indicator_lights_floor
signage/indicator_lights/indicator_lights_wall
signage/indicator_lights/indicator_lights_corner_wall
signage/indicator_lights/indicator_lights_corner_floor
1. Create a path using the above info_overlays from your trigger to whatever they should activate. Give them all the same name; in this example we will use button_lights.

Checkmark Box
1. Create a prop_static with the following properties:
Property Name Value World Model models/props/sign_frame01/sign_frame01.mdl
Align it so it will be at the end of your light path.
2. Create a 32Wx4Lx32H block brush textured with tools/toolsnodraw. Texture the edges with signage/signage_border and the front with signage/signage_doorstate. Align this brush so it fits inside the prop_static sign frame.
3. Tie the brush to a func_brush entity and give it the same name as your info_overlays.
Making it Work
1. Create a env_texturetoggle entity somewhere near your overlays. Give it the following properties:
Property Name Value Name button_lights_toggle Target Brush(es) button_lights (or whatever you named the overlays/func_brush)
2. Now just add the following output to the trigger for your button/switch/etc:
You now have helpful indicator lights to put around your map! You can download the tutorial map here.