Shared-Entity: Outdoor Shadow & Lighting Controller.
QUAKED env_cascade_light (1 .5 0) (-8 -8 -8) (8 8 8)
OVERVIEW
Shadowmapped outdoor lighting entity.
Shadows cast by an env_cascade_light
KEYS
- "targetname" : Name
- "color" : Color of the sun light. Three space separated 0-255 based values.
- "maxshadowdistance" : Maximum shadow distance from the camera.
- "uselightenvangles" : When set to 1, the angles are taken from the light_environment in the map.
- "StartDisabled" : Entity will have to be enabled in order to work when set to 1.
INPUTS
- "SetAngles" : Sets the light angle.
- "LightColor" : Sets the light color. Three space separated 0-255 based values.
- "Enable" : Enable the entity.
- "Disable" : Disable the entity.
- "Toggle" : Toggles between enabled/disabled states.
TRIVIA
This entity was introduced in Counter-Strike: Global Offensive (2012).
|
| void | env_cascade_light (void) |
| |
| 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.
|
| |
| virtual void | OnRemoveEntity (void) |
| | Handles what happens before the entity gets removed from the client game.
|
| |
| virtual void | ReceiveEntity (float, float) |
| | Client: Handles network updates from the server for the associated entity.
|
| |
| virtual void | ReloadVideoResources (void) |
| | Client: Called when video resources need to be allocated or reloaded for the entity.
|
| |
| nonvirtual void | LightChanged (float) |
| |
| nonvirtual void | SetRedColor (float byteColor) |
| |
| nonvirtual void | SetGreenColor (float byteColor) |
| |
| nonvirtual void | SetBlueColor (float byteColor) |
| |
| nonvirtual void | SetShadowDistance (float shadowDistance) |
| |
| nonvirtual void | SetPitch (float eulerValue) |
| |
| nonvirtual void | SetYaw (float eulerValue) |
| |
| nonvirtual void | SetRoll (float eulerValue) |
| |