Nuclide
Software Development Kit for id Technology
point_spotlight Class Reference

About this class

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).

Inheritance diagram for point_spotlight:
NSPointTrigger

Public Member Functions

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)
 
nonvirtual void SetBeamWidth (float)
 
nonvirtual void SetBeamLength (float)
 

Public Attributes

vector m_vecBeamEnd
 
float m_flBeamTrace
 
float m_flBeamHalfwidth
 
string m_flareMaterial
 
string m_coneMaterial
 

Constructor & Destructor Documentation

◆ point_spotlight()

void point_spotlight::point_spotlight ( void  )

Member Function Documentation

◆ BeamViewDelta()

float point_spotlight::BeamViewDelta ( vector  vecPlayer,
vector  cameraAngle 
)

◆ FlareViewDelta()

float point_spotlight::FlareViewDelta ( float  beamDelta,
vector  cameraAngle 
)

◆ predraw()

float point_spotlight::predraw ( void  )
virtual

Reimplemented from NSEntity.

◆ ReceiveEntity()

void point_spotlight::ReceiveEntity ( float  flNew,
float  flChanged 
)
virtual

Client: Handles network updates from the server for the associated entity.

Reimplemented from NSEntity.

◆ SetBeamLength()

void point_spotlight::SetBeamLength ( float  beamLength)

◆ SetBeamMaterial()

void point_spotlight::SetBeamMaterial ( string  beamMaterial)

◆ SetBeamWidth()

void point_spotlight::SetBeamWidth ( float  newWidth)

◆ SetGlowMaterial()

void point_spotlight::SetGlowMaterial ( string  glowMaterial)

◆ SetLightStyle()

void point_spotlight::SetLightStyle ( float  newStyle)

◆ SetRenderColor()

void point_spotlight::SetRenderColor ( vector  renderColor)

◆ UpdateBeamLength()

void point_spotlight::UpdateBeamLength ( void  )

Member Data Documentation

◆ m_coneMaterial

string point_spotlight::m_coneMaterial

◆ m_flareMaterial

string point_spotlight::m_flareMaterial

◆ m_flBeamHalfwidth

float point_spotlight::m_flBeamHalfwidth

◆ m_flBeamTrace

float point_spotlight::m_flBeamTrace

◆ m_vecBeamEnd

vector point_spotlight::m_vecBeamEnd

The documentation for this class was generated from the following file: