Shared-Entity: Spotlight With Beam.
QUAKED point_spotlight (1 .5 0) (-8 -8 -8) (8 8 8) PNTSPTLGHT_STARTON PNTSPTLGHT_NOLIGHT
OVERVIEW
An entity that draws a spotlight, with beam. Will also spawn a dynamic light, unless specifically disabled via the spawnflags field.
KEYS
- "targetname" : Name
- "target" : Name of an entity in the map that light will point at.
- "spotlightlength" : Beam length
- "spotlightwidth" : Beam width
- "rendercolor" : Beam color
- "HDRColorScale" : Multiplier that's active when running in HDR (unused)
INPUTS
- "LightOff" : Turns the entity off.
- "LightOn" : Turns the entity on.
SPAWNFLAGS
- PNTSPTLGHT_STARTON (1) : Start enabled.
- PNTSPTLGHT_NOLIGHT (2) : No dynamic light
TRIVIA
This entity was introduced in Half-Life 2 (2004).
|
void | point_spotlight (void) |
|
virtual void | ReceiveEntity (float, float) |
| Client: Handles network updates from the server for the associated entity. More...
|
|
virtual float | predraw (void) |
|
nonvirtual void | UpdateBeamLength (void) |
|
nonvirtual float | BeamViewDelta (vector, vector) |
|
nonvirtual float | FlareViewDelta (float, vector) |
|
nonvirtual void | SetBeamMaterial (string) |
|
nonvirtual void | SetGlowMaterial (string) |
|
nonvirtual void | SetRenderColor (vector) |
|
nonvirtual void | SetLightStyle (float) |
|
virtual void | RendererRestarted (void) |
| Client: Called when video resources need to be allocated or reloaded for the entity. More...
|
|
virtual void | Trigger (entity, triggermode_t) |
| Called whenever we're legacy triggered by another object or function. More...
|
|
virtual void | Respawn (void) |
| Server: Called when the entity first spawns or when game-logic requests the entity to return to its original spawn state. More...
|
|
virtual float | SendEntity (entity, float) |
| Called by the engine whenever we need to send a client an update about this entity. More...
|
|
virtual void | SpawnKey (string, string) |
| This method handles entity key/value pairs on map load. More...
|
|
virtual void | EvaluateEntity (void) |
| Run each tic after physics are run to determine if we need to send updates over the network. More...
|
|
virtual void | Input (entity, string, string) |
| Called when we are being prompted by another object/function with an input message. More...
|
|
nonvirtual void | SetBeamWidth (float) |
|
nonvirtual void | SetBeamLength (float) |
|