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

(→Keyvalues: fixed the TODO on Render Mode and added a link) |
(updates) |
||
Line 1: | Line 1: | ||
{{ | {{lang|Env spritetrail}} | ||
{{base point|env_spritetrail}} It frequently emits a [[sprite]], intended to create a trail effect when moving. | |||
{{code class|CSpriteTrail|SpriteTrail.cpp}} | |||
{{ | |||
== Keyvalues == | ==Keyvalues== | ||
{{KV|Lifetime|float|How long the beam is shown.}} | {{KV|Lifetime (lifetime)|float|How long the beam is shown.}} | ||
{{KV|Start Width|float|The width of the beam to the beginning.}} | {{KV|Start Width (startwidth)|float|The width of the beam to the beginning.}} | ||
{{KV|End Width|float|The width of the beam when it has full expanded.}} | {{KV|End Width (endwidth)|float|The width of the beam when it has full expanded.}} | ||
{{KV|Sprite Name|string|The material to draw.}} | {{KV|Sprite Name (spritename)|string|The material to draw.}} | ||
{{KV| | {{KV|Animated (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 BaseEntity}} | |||
{{KV | |||
{{KV | |||
== Inputs == | ==Inputs== | ||
{{I | {{I RenderFields}} | ||
{{I | {{I BaseEntity}} | ||
== Outputs == | ==Outputs== | ||
{{O | {{O BaseEntity|l4d=1}} |
Revision as of 15:57, 2 October 2018


Template:Base point It frequently emits a sprite, intended to create a trail effect when moving.
Keyvalues
- End Width (endwidth) ([todo internal name (i)]) <float>
- The width of the beam when it has full expanded.
- Animated (animate) ([todo internal name (i)]) <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.
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.