Nuclide
Software Development Kit for id Tech
func_platrot Class Reference
Inheritance diagram for func_platrot:
func_plat func_trackchange func_trackautochange

Public Member Functions

void func_platrot (void)
 
virtual void Save (float)
 Handles saving a copy of this entity to a given filehandle. More...
 
virtual void Restore (string, string)
 Similar to ::SpawnKey but for save-game fields. More...
 
virtual void Trigger (entity, triggermode_t)
 Called whenever we're legacy triggered by another object or function. 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 SpawnKey (string, string)
 This method handles entity key/value pairs on map load. More...
 
virtual void PlatformReturn (void)
 

Detailed Description

QUAKED func_platrot (0 .5 .8) ? TOGGLE x x x x x AXIS_X AXIS_Y

OVERVIEW

A vertically moving platform that rotates.

KEYS

  • "targetname" : Name
  • "noise1" : Sound when moving
  • "noise2" : Sound when stopped
  • "speed" : Speed of rotation in u/s
  • "height" : Vertical travel distance
  • "rotation" : Rotation amount, in degrees

SPAWNFLAGS

  • TOGGLE (1) : Won't respond to touch.
  • AXIS_X (64) : Will rotate on the X-Axis. (Spirit of Half-Life addition)
  • AXIS_Y (128) : Will rotate on the Y-Axis. (Spirit of Half-Life addition)

NOTES

Spins.

TRIVIA

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

Constructor & Destructor Documentation

◆ func_platrot()

void func_platrot::func_platrot ( void  )

Member Function Documentation

◆ PlatformReturn()

void func_platrot::PlatformReturn ( void  )
virtual

Reimplemented from func_plat.

◆ Respawn()

void func_platrot::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 func_plat.

◆ Restore()

void func_platrot::Restore ( string  strKey,
string  strValue 
)
virtual

Similar to ::SpawnKey but for save-game fields.

Whatever you write into file handles within your ::Save() method needs to be read back in here.

Reimplemented from func_plat.

Reimplemented in func_trackchange.

◆ Save()

void func_platrot::Save ( float  handle)
virtual

Handles saving a copy of this entity to a given filehandle.

Within you want to use the ::SaveFloat() etc. methods to write the internal member attributes to the specified file handle.

Reimplemented from func_plat.

Reimplemented in func_trackchange.

◆ SpawnKey()

void func_platrot::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 func_plat.

Reimplemented in func_trackchange.

◆ Trigger()

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

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

Reimplemented from func_plat.


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