Nuclide
Software Development Kit for id Tech
point_spotlight Class Reference
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)
 
nonvirtual float FlareViewDelta (float, vector)
 

Public Attributes

vector m_vecBeamEnd
 
float m_flBeamTrace
 
float m_flBeamHalfwidth
 

Detailed Description

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

Constructor & Destructor Documentation

◆ point_spotlight()

void point_spotlight::point_spotlight ( void  )

Member Function Documentation

◆ BeamViewDelta()

float point_spotlight::BeamViewDelta ( vector  cameraAngle)

◆ FlareViewDelta()

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

◆ predraw()

float point_spotlight::predraw ( void  )
virtual

◆ ReceiveEntity()

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

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

Reimplemented from NSEntity.

◆ UpdateBeamLength()

void point_spotlight::UpdateBeamLength ( void  )

Member Data Documentation

◆ 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: