Env dustpuff: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(updates)
Line 1: Line 1:
[[File:SmokePuffs.jpg|thumb|260px|Several env_dustpuffs spawning puffs with the default settings]]
{{lang|Env dustpuff}}
 
[[File:SmokePuffs.jpg|thumb|260px|Several <code>env_dustpuff</code>s spawning puffs of dust with the default settings.]]
{{base point|env_dustpuff}}
{{base point|env_dustpuff}} It can emit dust puffs. The size and transparency of the puffs of dust cannot be controlled, but puff's dust color is adjustable.
 
==Entity description==
It can emit dust puffs from its [[origin]]. The size and transparency of the smoke cannot be controlled, but puff's color is adjustable. [[Input]]s are used to spawn the puffs; without inputs, the env_dustpuff does nothing.


{{code class|CEnvDustPuff|func_dust.cpp}}
{{code class|CEnvDustPuff|func_dust.cpp}}


== Keyvalues ==
==Keyvalues==
{{KV|Scale|float|Size of the dust puff.}}
{{KV|Scale (scale)|float|Size of the dust puff.}}
{{KV|Speed|float|Speed at which the dust particles should move.}}
{{KV|Speed (speed)|float|Speed at which the dust particles should move.}}
{{KV|Dust color|color255|Color of the dust particles.}}
{{KV|Dust color (color)|color255|Color of the dust particles.}}
{{KV Targetname}}
{{KV BaseEntity|css=1}}
{{KV Parentname}}
{{KV Angles}}


== Inputs ==
==Inputs==
{{IO|SpawnDust|Spawn a dust puff.}}
{{IO|SpawnDust|Spawn a dust puff.}}
{{I Targetname}}
{{I BaseEntity|prel4d=1}}
{{I Parentname}}


== Outputs ==
==Outputs==
{{O Targetname}}
{{O BaseEntity|l4d=1}}

Revision as of 16:50, 23 September 2018

English (en)中文 (zh)Translate (Translate)
Several env_dustpuffs spawning puffs of dust with the default settings.

Template:Base point It can emit dust puffs. The size and transparency of the puffs of dust cannot be controlled, but puff's dust color is adjustable.

C++ In code, it is represented by theCEnvDustPuffclass, defined in thefunc_dust.cppfile.

Keyvalues

Scale (scale) ([todo internal name (i)]) <float>
Size of the dust puff.
Speed (speed) ([todo internal name (i)]) <float>
Speed at which the dust particles should move.
Dust color (color) ([todo internal name (i)]) <color255>
Color of the dust particles.


Inputs

SpawnDust
Spawn a dust puff.


Outputs