Env wind

From Valve Developer Community
Revision as of 15:18, 10 January 2017 by Kidnation (talk | contribs) (Added a note about this entity being needed for $treeSway materials.)
Jump to navigation Jump to search

Template:Base point It is used to control wind in the map and is partially functional.

Note.pngNote:In Counter-Strike: Global OffensiveInsurgency, this entity is needed for prop materials that have $treeSway, so it can simulate wind blowing on them.
C++ In code, it is represented by theCEnvWindclass, defined in theeffects.cppfile.

Keyvalues

Min normal speed ([todo internal name (i)]) <integer>
Minimum speed of the wind while idling.
Max normal speed ([todo internal name (i)]) <integer>
Maximum speed of the wind while idling.
Min gust speed ([todo internal name (i)]) <integer>
Minimum speed of wind gusts.
Max gust speed ([todo internal name (i)]) <integer>
Maximum speed of wind gusts.
Min gust delay ([todo internal name (i)]) <integer>
Minimum time delay between random gusts.
Max gust delay ([todo internal name (i)]) <integer>
Maximum time delay between random gusts.
Gust Duration ([todo internal name (i)]) <integer>
How long will the wind gust for.
Max gust dir change (degrees) ([todo internal name (i)]) <integer>
Maximum amount that the wind's direction changes due to a gust.
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

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
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.

Inputs

Outputs

OnGustStart
Fired when a wind gust begins.
OnGustEnd
Fired when a wind gust ends.


See also