Env wind: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=env_wind}}
[[File:env_wind.png|left|link=]]
{{base_point}}


== Entity description ==
{{base point|env_wind}} It is used to control wind in the map and is partially functional.{{clr}}
[[Image:{{PAGENAME}}.png|left]]An entity to control wind in the map. It is partially functional.{{clr}}
 
* See also : [[trigger_wind]], [[trigger_push]] and [[env_rotorwash]].


In code it is represented by class CEnvWind, defined in effects.cpp.
In code it is represented by class CEnvWind, defined in effects.cpp.


== Keyvalues ==
== Keyvalues ==
*{{KV Targetname}}
{{KV|Min normal speed|integer|Minimum speed of the wind while idling.}}
*{{KV Angles}}
{{KV|Max normal speed|integer|Maximum speed of the wind while idling.}}
*'''gustsound'''
{{KV|Min gust speed|integer|Minimum speed of wind gusts.}}
:<sound> Sound to be played to simulate the gusting wind. {{EP1 add|Deprecated}}
{{KV|Max gust speed|integer|Maximum speed of wind gusts.}}
*'''minwind'''
{{KV|Min gust delay|integer|Minimum time delay between random gusts.}}
:<integer> Minimum speed of the wind while idling.
{{KV|Max gust delay|integer|Maximum time delay between random gusts.}}
*'''maxwind'''
{{KV|Gust Duration|integer|How long will the wind gust for.}}
:<integer> Maximum speed of the wind while idling.
{{KV|Max gust dir change (degrees)|integer|Maximum amount that the wind's direction changes due to a gust.}}
*'''mingust'''
{{KV Targetname}}
:<integer> Minimum speed of wind gusts.
{{KV Angles}}
*'''maxgust'''
:<integer> Maximum speed of wind gusts.
*'''mingustdelay'''
:<float> Minimum time delay between random gusts.
*'''maxgustdelay'''
:<float> Maximum time delay between random gusts.
*'''gustdirchange'''
:<integer> Maximum amount that the wind's direction changes due to a gust, in degrees.
* '''{{EP1 add|gustduration}}'''
: <integer> How long will the wind gust for.


== Inputs ==
== Inputs ==
*{{I Targetname}}
{{I Targetname}}


== Outputs ==
== Outputs ==
*{{O Targetname}}
{{IO|OnGustStart|Fired when a wind gust begins.}}
* '''{{EP1 add|OnGustStart}}'''
{{IO|OnGustEnd|Fired when a wind gust ends.}}
: Fired when a wind gust begins.
{{O Targetname}}
* '''{{EP1 add|OnGustEnd}}'''
 
: Fired when a wind gust ends.
== See also ==
* [[trigger_wind]]
* [[trigger_push]]
* [[env_rotorwash]]

Revision as of 07:11, 24 July 2011

Env wind.png

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

In code it is represented by class CEnvWind, defined in effects.cpp.

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