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

Env dustpuff: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(raw; needs cleanup)
 
(-added class hierarchy)
 
(56 intermediate revisions by 30 users not shown)
Line 1: Line 1:
{{cleanup}}
{{LanguageBar}}
env_dustpuff
[[File:Env_dustpuff.gif|thumb|270px|9 default <code>env_dustpuff</code> spawning puffs of dust.]]
{{CD|CEnvDustPuff|file1=func_dust.cpp}}
{{this is a|point entity|name=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.


An entity that can emit dust puffs.


KEYS
==Keyvalues==
{{KV Targetname}}
{{KV|Scale|intn=scale|float|Size of the dust puff.}}
{{KV|Speed|intn=speed|float|Speed at which the dust particles should move.}}
{{KV|Dust color|intn=color|color255|Color of the dust particles.}}


Name targetname <target_source> The name that other entities refer to this entity by.
==Inputs==
 
{{I|SpawnDust|Spawn a dust puff.}}
Parent parentname <target_destination> The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
 
Pitch Yaw Roll (Y Z X) angles <angle> This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
 
Scale scale <float> Size of the dust puff.
 
Speed speed <float> Speed at which the dust particles should move.
 
Dust color color <color255>
 
 
INPUTS
 
Kill Removes this entity from the world.
 
KillHierarchy Removes this entity and all its children from the world.
 
AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
 
FireUser1 Causes this entity's OnUser1 output to be fired.
 
FireUser2 Causes this entity's OnUser2 output to be fired.
 
FireUser3 Causes this entity's OnUser3 output to be fired.
 
FireUser4 Causes this entity's OnUser4 output to be fired.
 
SetParent <string> Changes the entity's parent in the movement hierarchy.
 
SetParentAttachment <string> Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
 
ClearParent Removes this entity from the the movement hierarchy, leaving it free to move independently.
 
SpawnDust Spawn a dust puff.
 
 
OUTPUTS
 
OnUser1 Fired in response to FireUser1 input.
 
OnUser2 Fired in response to FireUser2 input.
 
OnUser3 Fired in response to FireUser3 input.
 
OnUser4 Fired in response to FireUser4 input.

Latest revision as of 05:48, 19 May 2025

English (en)中文 (zh)Translate (Translate)
9 default env_dustpuff spawning puffs of dust.
C++ Class hierarchy
CEnvDustPuff
CPointEntity
CBaseEntity
C++ func_dust.cpp

env_dustpuff is a point entity available in all Source Source games. It can emit dust puffs. The size and transparency of the puffs of dust cannot be controlled, but puff's dust color is adjustable.


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

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

Inputs

SpawnDust
Spawn a dust puff.