Nuclide
Software Development Kit for id Tech
momentary_door Class Reference
Inheritance diagram for momentary_door:
NSMomentary

Public Member Functions

void momentary_door (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 SetMovementDirection (void)
 
virtual void MovementDone (void)
 
virtual void MovementStateChanged (void)
 Called whenever the movement state changes. More...
 
virtual float GetProgress (void)
 Returns the progress of the momentary, which is a value between 0.0 and 1.0. More...
 

Detailed Description

QUAKED momentary_door (0 .5 .8) ?

OVERVIEW

Dynamic door that will move back down if it's not being used.

KEYS

  • "targetname" : Name

TRIVIA

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

Constructor & Destructor Documentation

◆ momentary_door()

void momentary_door::momentary_door ( void  )

Member Function Documentation

◆ GetProgress()

float momentary_door::GetProgress ( void  )
virtual

Returns the progress of the momentary, which is a value between 0.0 and 1.0.

Reimplemented from NSMomentary.

◆ MovementDone()

void momentary_door::MovementDone ( void  )
virtual

◆ MovementStateChanged()

void momentary_door::MovementStateChanged ( void  )
virtual

Called whenever the movement state changes.

Reimplemented from NSMomentary.

◆ Respawn()

void momentary_door::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.

◆ SetMovementDirection()

void momentary_door::SetMovementDirection ( void  )
virtual

◆ SpawnKey()

void momentary_door::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.


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