Nuclide
Software Development Kit for id Technology
env_render Class Reference

About this class

Server-Entity: Controls Entity Rendering Modes.

QUAKED env_render (1 .5 0) (-8 -8 -8) (8 8 8) SF_NORENDERFX SF_NORENDERAMT SF_NORENDERMODE SF_NORENDERCOLOR

OVERVIEW

Changes the visual appearance of a target.

KEYS

  • "targetname" : Name
  • "target" : Target when triggered.
  • "killtarget" : Target to kill when triggered.
  • "rendermode" : Render-Mode the target changes to.
  • "renderamt" : Render-Amount the target changes to.
  • "rendercolor" : Render-Color the target changes to.
  • "renderfx" : Render-FX the target changes to.

SPAWNFLAGS

  • SF_NORENDERFX (1) : Don't set the Render-FX attribute on the target.
  • SF_NORENDERAMT (2) : Don't set the Render-Amount attribute on the target.
  • SF_NORENDERMODE (4) : Don't set the Render-Mode attribute on the target.
  • SF_NORENDERCOLOR (8) : Don't set the Render-Color attribute on the target.

NOTES

The Render-FX values are currently unimplemented, except for the hologram setting.

Supported Render-Mode ("rendermode") values:

  • 0 : Normal; Default.
  • 1 : Color; Tints the entity after whatever "rendercolor" is set to.
  • 2 : Texture; ???
  • 3 : Glow; object scales against the camera depending on distance like a flare.
  • 4 : Solid; Make transparent by respecting transparent pixels (GoldSrc)
  • 5 : Additive; Blend the object additively against the world.
  • 6 : Fullbright; Render the object without lighting.

Supported Render-FX ("renderfx") values:

  • 0 : Normal
  • 1 : Slow pulse
  • 2 : Fast pulse
  • 3 : Slow, wide, pulse
  • 4 : Fast, wide, pulse
  • 5 : Slow fade away
  • 6 : Fast fade away
  • 7 : Slow become solid
  • 8 : Fast become solid
  • 9 : Slow strobe
  • 10 : Fast strobe
  • 11 : Faster strobe
  • 12 : Slow flicker
  • 13 : Fast flicker
  • 14 : Constant glow
  • 15 : Distort
  • 16 : Hologram

TRIVIA

This entity was introduced in Half-Life (1998).

Inheritance diagram for env_render:
NSRenderableEntity

Public Member Functions

void env_render (void)
 
virtual void Trigger (entity, triggermode_t)
 Called whenever we're legacy triggered by another object or function. More...
 

Constructor & Destructor Documentation

◆ env_render()

void env_render::env_render ( void  )

Member Function Documentation

◆ Trigger()

void env_render::Trigger ( entity  act,
triggermode_t  state 
)
virtual

Called whenever we're legacy triggered by another object or function.

Reimplemented from NSTrigger.


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