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

(updates) |
(-removed less relevant info) |
||
Line 5: | Line 5: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Lifetime | {{KV|Lifetime|intn=lifetime|float|How long the beam is shown.}} | ||
{{KV|Start Width | {{KV|Start Width|intn=startwidth|float|The width of the beam to the beginning.}} | ||
{{KV|End Width | {{KV|End Width|intn=endwidth|float|The width of the beam when it has full expanded.}} | ||
{{KV|Sprite Name | {{KV|Sprite Name|intn=spritename|string|The material to draw.}} | ||
{{KV|Animated | {{KV|Animated|intn=animate|nofgd=1|bool|{{todo|Untested. Tells the sprite to animate if it can. All the keyvalues, flags, and inputs from {{ent|env_sprite}} may be used.}}}} | ||
{{KV RenderFields}} | {{KV RenderFields}} | ||
{{KV | {{KV Targetname}} | ||
==Inputs== | ==Inputs== | ||
{{I RenderFields}} | {{I RenderFields}} | ||
Revision as of 13:00, 14 October 2022


Template:Base point It frequently emits a sprite, intended to create a trail effect when moving.
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
- Todo: Untested. Tells the sprite to animate if it can. All the keyvalues, flags, and inputs from env_sprite may be used.
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.