Point spotlight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (ep1 add)
(Without the dynamic light, this will just be a sprite effect.)
Line 1: Line 1:
{{wrongtitle|title=point_spotlight}}
{{wrongtitle|title=point_spotlight}}
==Entity Description==
==Entity Description==
 
An entity to draw a spotlight primarily consisting of two glow sprites: A beam when the player views it side on, and a halo when it's facing towards the player. Unless the 'No Dynamic Light' spawnflag is checked, it will also create a dynamic light wherever the end of the spotlight rests.
An entity to draw a spotlight. Will draw a beam when the player views it side on, and a halo when it's facing towards the player. Unless the 'No Dynamic Light' spawnflag is checked, it will also create a dynamic light wherever the end of the spotlight rests.
{{note|Without the dynamic light this entity will just provide a sprite effect, and will not serve as an actual light source.}}


==Keyvalues==
==Keyvalues==

Revision as of 11:48, 9 September 2006

Template:Wrongtitle

Entity Description

An entity to draw a spotlight primarily consisting of two glow sprites: A beam when the player views it side on, and a halo when it's facing towards the player. Unless the 'No Dynamic Light' spawnflag is checked, it will also create a dynamic light wherever the end of the spotlight rests.

Note.pngNote:Without the dynamic light this entity will just provide a sprite effect, and will not serve as an actual light source.

Keyvalues

  • spotlightlength
<integer> Length of the spotlight beam.
  • spotlightwidth
<integer> Width of the spotlight beam.
  • rendercolor
#000000 The color of the spotlight cone.

Flags

  • 1 : Start On
Sets the point_spotlight to be turned on when it spawns.
  • 2 : No Dynamic Light
Prevents a dynamic light from being generated by the point_spotlight. Dynamic lights can be costly for performance, so this flag should be checked to improve framerate.

Inputs

  • LightOn
  • LightOff

Outputs

See Also