env_spritetrail
Jump to navigation
Jump to search

Note: Killing this entity will also remove the trail even if the trail isn't fully disappeared.
Bug: Potential silent crash to desktop when looked at if the sprite material referenced is missing, misspelled, or has no .vmt extension in hammer. [todo tested in ?]
| CSpriteTrail |
env_spritetrail is a point entity available in all
Source games.
It frequently emits a sprite, intended to create a trail effect when moving.
Todo: Add applicable properties from env_sprite. Not all work, such as scale, and the alpha input appears to be a boolean, rendering it invisible for values less than 1.
Keyvalues
- Name (targetname) <string>
-
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Lifetime (lifetime) <float>
- How long the beam is shown.
- Start Width (startwidth) <float>
- The width of the beam to the beginning.
- End Width (endwidth) <float>
- The width of the beam when it has full expanded.
- Sprite Name (spritename) <string>
- The material to draw.
- Animated (animate) <boolean> !FGD
-
Confirm:Supposed to tell the sprite to animate if it can, however only framerate appears to control this.
RenderFields:
- Render Mode (rendermode) <byte choices>
-
Set a non-standard rendering mode on this entity.
Render Modes
- Render FX (renderfx) <byte choices>
- Various somewhat legacy alpha effects. See render effects.
- Render Amount / Transparency (renderamt) <byte>
-
Default Value: 255
Translucency amount, requires a Render Mode other than Normal or Solid. 0 is invisible, 255 is fully visible.
- Render Color (R G B) (rendercolor) <color255>
-
Default Value: 255 255 255
Color tint.
Inputs
- SetScale <float> !FGD
- Set the sprites Scale (0 - 8.0).
- HideSprite !FGD
- Makes the sprite invisible.
- ShowSprite !FGD
- Makes sprite visible.
- ToggleSprite !FGD
- Make sprite invisible or visible depending on the current state.
- ColorRedValue <float> !FGD
- Change the intensity of the red channel (0-255).
- ColorGreenValue <float> !FGD
- Change the intensity of the green channel (0-255).
- ColorBlueValue <float> !FGD
- Change the intensity of the blue channel (0-255).
RenderFields: