Nuclide
Software Development Kit for id Technology (BETA)

About this class

Server-Entity: Momentary Sliding Door.

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

Inheritance diagram for momentary_door:
ncMomentary

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

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

◆ MovementDone()

void momentary_door::MovementDone ( void  )
virtual

◆ MovementStateChanged()

void momentary_door::MovementStateChanged ( void  )
virtual

Called whenever the movement state changes.

Reimplemented from ncMomentary.

◆ 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 ncRenderableEntity.

◆ 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 ncIO.

Reimplemented from ncRenderableEntity.


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