This article's documentation is for anything that uses the Source engine. Click here for more information.

Env smoketrail: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(9 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{screenshot}}
{{LanguageBar}}
{{lang|Env smoketrail}}
[[File:env_smoketrail.jpeg|thumb|right|330px|<code>env_smoketrail</code> with default settings in action]]
{{base point|env_smoketrail}} It creates a smoke trail.  
{{CD|SmokeTrail|file1=smoke_trail.cpp}}
{{This is a|point entity|name=env_smoketrail}} It creates a smoke trail.  


{{code class|SmokeTrail|smoke_trail.cpp}}


==Keyvalues==
==Keyvalues==
{{KV|Sprite Opacity (opacity)|float|Opacity of the sprites (range from 0 - 1).}}
{{KV Targetname}}
{{KV|Spawn Rate (spawnrate)|float|Number of particles to emit each second.}}
{{KV|Sprite Opacity|intn=opacity|float|Opacity of the sprites (range from 0 - 1).}}
{{KV|Particle Life Time (lifetime)|float|Number of seconds until each particle dies.}}
{{KV|Spawn Rate|intn=spawnrate|float|Number of particles to emit each second.}}
{{KV|Start Color (startcolor)|color255|Starting color of the emitted particles.}}
{{KV|Particle Life Time|intn=lifetime|float|Number of seconds until each particle dies.}}
{{KV|End Color (endcolor)|color255|Ending color of the emitted particles.}}
{{KV|Start Color|intn=startcolor|color255|Starting color of the emitted particles.}}
{{KV|Emitter Life Time (emittime)|float|Number of seconds until the <code>env_smoketrail</code> stops emitting particles. 0 means never stop emitting particles.}}
{{KV|End Color|intn=endcolor|color255|Ending color of the emitted particles.}}
{{KV|Minimum Random Speed (minspeed)|float|Minimum randomly-directed speed to use for emitted particles.}}
{{KV|Emitter Life Time|intn=emittime|float|Number of seconds until the <code>env_smoketrail</code> stops emitting particles. 0 means never stop emitting particles.}}
{{KV|Maximum Random Speed (maxspeed)|float|Maximum randomly-directed speed to use for emitted particles.}}
:{{bug|A value of 0 means it will never emit particles in {{css}}. Only if the KV is deleted will it emit indefinitely.}}
{{KV|Minimum Directed Speed (mindirectedspeed)|float|Minimum speed along the <code>env_smoketrail</code>'s forward direction (x axis) to use for emitted particles.}}
{{KV|Minimum Random Speed|intn=minspeed|float|Minimum randomly-directed speed to use for emitted particles.}}
{{KV|Maximum Directed Speed (maxdirectedspeed)|float|Maximum speed along the <code>env_smoketrail</code>'s forward direction (x axis) to use for emitted particles.}}
{{KV|Maximum Random Speed|intn=maxspeed|float|Maximum randomly-directed speed to use for emitted particles.}}
{{KV|Starting particle size (startsize)|float|Starting particle size.}}
{{KV|Minimum Directed Speed|intn=mindirectedspeed|float|Minimum speed along the <code>env_smoketrail</code>'s forward direction (x axis) to use for emitted particles.}}
{{KV|Ending particle size (endsize)|float|Ending particle size.}}
{{KV|Maximum Directed Speed|intn=maxdirectedspeed|float|Maximum speed along the <code>env_smoketrail</code>'s forward direction (x axis) to use for emitted particles.}}
{{KV|Spawn radius (spawnradius)|float|Distance from <code>env_smoketrail</code> at which particles are emitted.}}
{{KV|Starting particle size|intn=startsize|float|Starting particle size.}}
{{KV|Fire Sprite (firesprite)|sprite|deprecated=1|Not present in code. Sprite to use for fire particles.}}
{{KV|Ending particle size|intn=endsize|float|Ending particle size.}}
{{KV|Smoke Puff (smokesprite)|sprite|deprecated=1|Not present in code. Sprite to use for smoke puffs.}}
{{KV|Spawn radius|intn=spawnradius|float|Distance from <code>env_smoketrail</code> at which particles are emitted.}}
{{KV BaseEntity|css=1}}
{{KV|Fire Sprite|intn=firesprite|sprite|deprecated=1|Not present in code. Sprite to use for fire particles.}}
 
{{KV|Smoke Puff|intn=smokesprite|sprite|deprecated=1|Not present in code. Sprite to use for smoke puffs.}}
==Inputs==
{{I BaseEntity}}
 
==Outputs==
{{O BaseEntity|l4d=1}}

Latest revision as of 15:37, 19 November 2024

English (en)中文 (zh)Translate (Translate)
env_smoketrail with default settings in action
C++ Class hierarchy
SmokeTrail
CBaseParticleEntity
CBaseEntity
C++ smoke_trail.cpp

env_smoketrail is a point entity available in all Source Source games. It creates a smoke trail.


Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Sprite Opacity (opacity) <float>
Opacity of the sprites (range from 0 - 1).
Spawn Rate (spawnrate) <float>
Number of particles to emit each second.
Particle Life Time (lifetime) <float>
Number of seconds until each particle dies.
Start Color (startcolor) <color255>
Starting color of the emitted particles.
End Color (endcolor) <color255>
Ending color of the emitted particles.
Emitter Life Time (emittime) <float>
Number of seconds until the env_smoketrail stops emitting particles. 0 means never stop emitting particles.
Icon-Bug.pngBug:A value of 0 means it will never emit particles in Counter-Strike: Source. Only if the KV is deleted will it emit indefinitely.  [todo tested in ?]
Minimum Random Speed (minspeed) <float>
Minimum randomly-directed speed to use for emitted particles.
Maximum Random Speed (maxspeed) <float>
Maximum randomly-directed speed to use for emitted particles.
Minimum Directed Speed (mindirectedspeed) <float>
Minimum speed along the env_smoketrail's forward direction (x axis) to use for emitted particles.
Maximum Directed Speed (maxdirectedspeed) <float>
Maximum speed along the env_smoketrail's forward direction (x axis) to use for emitted particles.
Starting particle size (startsize) <float>
Starting particle size.
Ending particle size (endsize) <float>
Ending particle size.
Spawn radius (spawnradius) <float>
Distance from env_smoketrail at which particles are emitted.
Fire Sprite (firesprite) <sprite> Obsolete
Deprecated.
Not present in code. Sprite to use for fire particles.
Smoke Puff (smokesprite) <sprite> Obsolete
Deprecated.
Not present in code. Sprite to use for smoke puffs.