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

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 ?]
(added missing inputs) |
m (english is my passion) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{LanguageBar}} | {{LanguageBar}} | ||
{{CD|CSpriteTrail|file1=1}} | |||
{{this is a|point entity|name=env_spritetrail}} | {{this is a|point entity|name=env_spritetrail}} | ||
It frequently emits a [[sprite]], intended to create a trail effect when moving. | 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.}} | {{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.}} | ||
{{bug| Potential silent crash to desktop when looked at if the sprite material referenced is missing, misspelled, or has no .vmt extension in hammer.}} | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | |||
{{KV|Lifetime|intn=lifetime|float|How long the beam is shown.}} | {{KV|Lifetime|intn=lifetime|float|How long the beam is shown.}} | ||
{{KV|Start Width|intn=startwidth|float|The width of the beam to the beginning.}} | {{KV|Start Width|intn=startwidth|float|The width of the beam to the beginning.}} | ||
Line 16: | Line 16: | ||
{{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}} | ||
==Inputs== | ==Inputs== |
Latest revision as of 23:20, 29 March 2025


![]() |
---|
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>[ 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
- 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.
Inputs
- HideSprite !FGD
- Makes the sprite invisible.
- ShowSprite !FGD
- Makes sprite visible.
- ToggleSprite !FGD
- Make sprite invisible or visible depending on the current state.
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.