env_dusttrail

From Valve Developer Community
Jump to: navigation, search


env_dusttrail is a point entity available in all 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 class DustTrail, defined in smoke_trail.cpp.

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."
]