Nuclide
Software Development Kit for id Tech
|
Server-Entity: Food Pickup. More...
Public Member Functions | |
void | item_food (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 | 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... | |
nonvirtual void | Setup (void) |
virtual void | Touch (entity) |
Called whenever we're touching another entity. More... | |
Server-Entity: Food Pickup.
QUAKED item_food (1 0 0) (-8 -8 -8) (8 8 8)
This is a food item that will give the user 1 health when touched.
This entity was introduced in Half-Life (1998). It's also known as item_sodacan.
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 NSRenderableEntity.
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 NSRenderableEntity.
|
virtual |
Called whenever we're touching another entity.
Reimplemented from NSTrigger.