Env spritetrail: Difference between revisions
Jump to navigation
Jump to search

(Amend animate note since it does nothing) |
m (Note for cleanup) |
||
Line 5: | Line 5: | ||
{{code class|CSpriteTrail|SpriteTrail.cpp}} | {{code class|CSpriteTrail|SpriteTrail.cpp}} | ||
{{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== | ==Keyvalues== | ||
Line 11: | Line 14: | ||
{{KV|End Width|intn=endwidth|float|The width of the beam when it has full expanded.}} | {{KV|End Width|intn=endwidth|float|The width of the beam when it has full expanded.}} | ||
{{KV|Sprite Name|intn=spritename|string|The material to draw.}} | {{KV|Sprite Name|intn=spritename|string|The material to draw.}} | ||
{{KV|Animated|intn=animate|nofgd=1|bool|{{confirm|Supposed to tell the sprite to animate if it can, however only ''framerate'' appears to control this | {{KV|Animated|intn=animate|nofgd=1|bool|{{confirm|Supposed to tell the sprite to animate if it can, however only ''framerate'' appears to control this.}}}} | ||
{{KV RenderFields}} | {{KV RenderFields}} | ||
{{KV Targetname}} | {{KV Targetname}} |
Revision as of 10:42, 19 November 2024


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
- 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>
- Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
- Render Color (R G B) (rendercolor) <color255>
- Color tint.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
RenderFields:
- Alpha <integer 0–255>
- Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its
rendermode
set to a number other than0
.
- Color <color255 >
- Sets an RGB color for the entity.