![]() |
Nuclide
Software Development Kit for id Technology (BETA)
|
Server-Entity: Dynamic Brush Model.
QUAKED func_brush (0 .5 .8) ?
Combination of func_illusionary, func_wall, func_wall_toggle. When triggered, it'll become invisible and lose its collision.
The main thing func_brush is concerned with is appearance. When you trigger it on/off, it'll be made visible/invisible. Collision however depends on the setting of the "Solidity" key. If "Solidity" is toggle, the collision will ne enabled/disabled depending on whether or not the entity is visible/invisible. By default it's visible and has collision.
This entity was introduced in Half-Life 2 (2004).
Public Member Functions | |
| void | func_brush (void) |
| virtual void | Save (float) |
| Handles saving a copy of this entity to a given filehandle. | |
| virtual void | Restore (string, string) |
| Similar to ncIO::SpawnKey() but for save-game fields. | |
| 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. | |
| virtual void | Trigger (entity, triggermode_t) |
| Called whenever we're legacy triggered by another object or function. | |
| virtual void | SpawnKey (string, string) |
| This method handles entity key/value pairs on map load. | |
| void func_brush::func_brush | ( | 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.
|
virtual |
Similar to ncIO::SpawnKey() but for save-game fields.
Whatever you write into file handles within your ncIO::Save() method needs to be read back in here.
Reimplemented from ncRenderableEntity.
|
virtual |
Handles saving a copy of this entity to a given filehandle.
Within you want to use the ncIO::SaveFloat() etc. methods to write the internal member attributes to the specified file handle.
Reimplemented from ncRenderableEntity.
|
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.
|
virtual |
Called whenever we're legacy triggered by another object or function.
Reimplemented from ncTrigger.