Shared-Entity: Fog Controller.
QUAKED env_fog_controller (1 .5 0) (-8 -8 -8) (8 8 8) EVFOGCTL_MASTER
OVERVIEW
Controls fog that affects the entire map.
KEYS
- "targetname" : Name
- "target" : Name of an entity in the map that light will point at.
- "fogenable" : Will make the fog start active if not 0.
- "fogstart" : Distance from the camera of where the fog starts.
- "fogend" : Distance from the camera of where the fog ends.
- "fogmaxdensity" : Maximum fog density. Value between 0.00 and 1.00.
- "farz" : Clip anything after the specified distance.
- "fogcolor" : Primary color of the fog in RGB255. E.g. '255 0 0' for red.
- "fogcolor2" : Secondary color of the fog in RGB255. Only used when 'fogblend' is 1.
- "fogblend" : Whether or not to blend between fogcolor and fogcolor2.
- "fogdir" : The fog directon for the secondary color. Only used when 'fogblend' is 1.
- "use_angles" : If we should use the 'angles' key instead of 'fogdir'. Only used when 'fogblend' is 1.
INPUTS
- "TurnOff" : Turns the entity off.
- "TurnOn" : Turns the entity on.
- "Toggle" : Toggles the entity to an on/off state.
- "SetStartDist" : Sets fogstart.
- "SetEndDist" : Sets fogend.
- "SetColor" : Sets fogcolor.
- "SetColorSecondary" : Sets fogcolor2.
- "SetFarZ" : Sets farz.
SPAWNFLAGS
- EVFOGCTL_MASTER (1) : If specified, this one will always take priority over any other active fog controllers... currently unused.
TRIVIA
This entity was introduced in Half-Life 2 (2004).
|
| void | env_fog_controller (void) |
| |
| virtual float | StartToBias (void) |
| |
| virtual float | FogRender (void) |
| |
| virtual void | FogUpdate (void) |
| |
| virtual void | ReloadVideoResources (void) |
| | Client: Called when video resources need to be allocated or reloaded for the entity.
|
| |
| virtual void | ReceiveEntity (float, float) |
| | Client: Handles network updates from the server for the associated entity.
|
| |
| virtual float | SendEntity (entity, float) |
| | Called by the engine whenever we need to send a client an update about this entity.
|
| |
| virtual void | EvaluateEntity (void) |
| | Run each tic after physics are run to determine if we need to send updates over the network.
|
| |
| virtual void | Trigger (entity, triggermode_t) |
| | Called whenever we're legacy triggered by another object or function.
|
| |
| 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 | 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 | SpawnKey (string, string) |
| | This method handles entity key/value pairs on map load.
|
| |
| virtual void | Input (entity, string, string) |
| | Called when we are being prompted by another object/function with an input message.
|
| |