Nuclide
Software Development Kit for id Tech
|
Server-Entity: Momentary Rotating Door/Lever/Valve. More...
Public Member Functions | |
void | momentary_rot_button (void) |
virtual void | Save (float) |
Handles saving a copy of this entity to a given filehandle. More... | |
virtual void | Restore (string, string) |
Similar to NSIO::SpawnKey but for save-game fields. More... | |
virtual void | OnPlayerUse (void) |
virtual void | OnPlayerUnUse (void) |
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 | SpawnKey (string, string) |
This method handles entity key/value pairs on map load. More... | |
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... | |
Server-Entity: Momentary Rotating Door/Lever/Valve.
QUAKED momentary_rot_button (0 .5 .8) ? MRBFL_DOORHACK MRBFL_NOTUSE x x MRBFL_AUTORETURN x MRBFL_XAXIS MRBFL_YAXIS
Dyanmic button/wheel/lever that moves back into its original position when not in use. It affects momentary_door.
This entity was introduced in Half-Life (1998).
Returns the progress of the momentary, which is a value between 0.0 and 1.0.
Reimplemented from NSMomentary.
Called whenever the movement state changes.
Reimplemented from NSMomentary.
Server: Called when the entity first spawns or when game-logic requests the entity to return to its original spawn state.
Reimplemented from NSRenderableEntity.
Similar to NSIO::SpawnKey
but for save-game fields.
Whatever you write into file handles within your NSIO::Save()
method needs to be read back in here.
Reimplemented from NSMomentary.
Handles saving a copy of this entity to a given filehandle.
Within you want to use the NSIO::SaveFloat() etc. methods to write the internal member attributes to the specified file handle.
Reimplemented from NSMomentary.
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.