light_spot

A light_spot lights the map in a cone when you compile the map. With a Name, you can switch it on and off while
the map runs, and a trigger_lightstyle or a
global_light_control can give it another pattern.
Attributes
The entity also has these common keys:
- Position: Pitch Yaw Roll
- Compiler keys of lights: ZHLT Fade and ZHLT Falloff
targetnameTriggering the entity switches the light on or off, and the map compiler gives a light with a name its own light style. See Common keys.
targetOnly for the map compiler, which aims the spot light at the target, such as an info_null.
_coneA key for the map compiler. It sets the angle in degrees from the center line of the spot light, and inside this angle the light is at full brightness.
30_cone2A key for the map compiler. It sets the angle in degrees from the center line, and outside this angle the spot light gives no light. Between Inner (bright) angle and this angle, the light fades out.
45pitchSets the up and down angle of the spot light in degrees, and the map compiler reads it. -90 points straight down, 90 straight up and 0 level along its yaw.
-90_skyA key for the map compiler that sets whether the spot light acts as sunlight.
- No (0) - A normal spot light
- Yes (1) - Sunlight, which shines from the sky faces in the direction of the spot, as from a
light_environment
No (0)_lightSets the color and the brightness of the light as R G B brightness, which the map compiler reads.
255 255 128 200styleSets a pattern for how the brightness of the light changes over time, and the map compiler bakes it into the map. A light with a Name ignores it, because that light gets its own pattern that you can switch: Custom Appearance, or steady light.The 12 choices
Normal (0)patternFor a light with a Name, sets its own pattern of brightness instead of Appearance. The pattern is letters from a for dark through m for normal up to z for double brightness, played at 10 letters a second.
If you leave this key empty, the light is steady.
zhlt_stylecoringA key for the map compiler, for a light with a Name or an Appearance. The compiler leaves the light of this style out of the map where it is dimmer than this value. ZHLT doesn't read it.
If you leave this key empty, the compiler uses its own default.
Flags
1Initially darkThe light starts off, and triggering it switches it on and off. It needs a Name to be switched
Notes
- If
trigger_changevalueortrigger_copyvaluechanges Custom Appearance while the light is on, the new pattern shows at once. Appearance (the style number) can't change while the map runs, because the light would then switch the lights of another style. See Changing keys
See also
light- a light that shines in every directionlight_environment- the sun- Light styles - how light patterns work
- light_spot on TWHL - the Half-Life entity