Nuclide
Software Development Kit for id Tech
env_model Class Reference

Server-Entity: Decorative Model With Animation Features. More...

Inheritance diagram for env_model:
NSRenderableEntity

Public Member Functions

void env_model (void)
 
virtual void SpawnKey (string, string)
 This method handles entity key/value pairs on map load. 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 void Trigger (entity, triggermode_t)
 Called whenever we're legacy triggered by another object or function. More...
 

Detailed Description

Server-Entity: Decorative Model With Animation Features.

QUAKED env_model (1 .5 0) (-8 -8 -8) (8 8 8) START_OFF DROPTOFLOOR SOLID

OVERVIEW

Model that can switch framegroups when triggered.

KEYS

  • "targetname" : Name
  • "model" : Path to the model.
  • "rendercolor" : Render color
  • "renderamt" : Render amount
  • "m_iszSequence_On" : Sequence when 'ON'
  • "m_iszSequence_Off" : Sequence when 'OFF'

SPAWNFLAGS

  • START_OFF (1) : Start 'off'.
  • DROPTOFLOOR (2) : Drop down to floor below (or else, stay in the air).
  • SOLID (4) : Enable collision.

TRIVIA

This entity was introduced in Spirit of Half-Life (2000).

Constructor & Destructor Documentation

◆ env_model()

void env_model::env_model ( void  )

Member Function Documentation

◆ Respawn()

void env_model::Respawn ( void  )
virtual

Server: Called when the entity first spawns or when game-logic requests the entity to return to its original spawn state.

Reimplemented from NSRenderableEntity.

◆ SpawnKey()

void env_model::SpawnKey ( string  strKey,
string  strValue 
)
virtual

This method handles entity key/value pairs on map load.

You can easily convert the strValue parameter using the ReadFloat etc. methods that are part of NSIO.

Reimplemented from NSRenderableEntity.

◆ Trigger()

void env_model::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: