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

env_dusttrail

From Valve Developer Community
Jump to: navigation, search
Info.png
This entity is not in the FGD by default .
See below for instructions on making it available.

env_dusttrail is a point entity available in all Source Source games. It spawns dust clouds, but lacks any ability to be enabled or disabled. env_dustpuff is a good alternative. To make this an actual trail of dust, it must be parented to something.


In code, it is represented by theDustTrailclass, defined in thesmoke_trail.cppfile.

FGD Code

@PointClass base(Targetname, Parentname, Angles) size(-8 -8 -8, 8 8 8) = env_dusttrail : 
	"An entity that emits dust 'trails' upon spawning. Unfinished and lacks enabling/disabling functionality."
[
	opacity(float) : "Opacity" : 255 : "The opacity of the dust trails."
	spawnrate(float) : "Spawn Rate" : 10 : "Speed at which the dust trails spawn."
	lifetime(float) : "Lifetime" : 5 : "The time before the entity restarts, in seconds."
	minspeed(float) : "Min Speed" : 2 : "Minimum speed of the dust trails."
	maxspeed(float) : "Max Speed" : 4 : "Maximum speed of the dust trails."
	mindirectedspeed(float) : "Min Directed Speed" : 0 : "Minimum directed speed of the dust trails."
	maxdirectedspeed(float) : "Max Directed Speed" : 0 : "Maximum directed speed of the dust trails."
	startsize(float) : "Start Size" : 35 : "Minimum size of the dust trails."
	endsize(float) : "End Size" : 55 : "Maximum size of the dust trails."
	spawnradius(float) : "Spawn Radius" : 2 : "Spawn radius of dust trails."
]