Env wind: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates. E's finished!?)
Line 19: Line 19:
{{KV|Gust Duration (gustduration)|integer|How long will the wind gust for.}}
{{KV|Gust Duration (gustduration)|integer|How long will the wind gust for.}}
{{KV|Max gust dir change (degrees) (gustdirchange)|integer|Maximum amount that the wind's direction changes due to a gust.}}
{{KV|Max gust dir change (degrees) (gustdirchange)|integer|Maximum amount that the wind's direction changes due to a gust.}}
{{KV|Radius (windradius)|float|since=l4d|Only in {{l4ds}}. The radius this entity applies wind effects to. -1 for global effect.}}
{{KV|Radius (windradius)|float|since=L4D|Only in {{l4ds}}. The radius this entity applies wind effects to. -1 for global effect.}}
{{KV BaseEntity}}
{{KV BaseEntity}}



Revision as of 09:35, 3 October 2018

English (en)Translate (Translate)

Template:Base point It creates wind throughout an entire map.

Icon-Important.pngImportant:This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Portal 2Counter-Strike: Global Offensive.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.
Note.pngNote:In Counter-Strike: Global Offensive Insurgency, 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 (minwind) ([todo internal name (i)]) <integer>
Minimum speed of the wind while idling.
Max normal speed (maxwind) ([todo internal name (i)]) <integer>
Maximum speed of the wind while idling.
Min gust speed (mingust) ([todo internal name (i)]) <integer>
Minimum speed of wind gusts.
Max gust speed (maxgust) ([todo internal name (i)]) <integer>
Maximum speed of wind gusts.
Min gust delay (mingustdelay) ([todo internal name (i)]) <integer>
Minimum time delay between random gusts.
Max gust delay (maxgustdelay) ([todo internal name (i)]) <integer>
Maximum time delay between random gusts.
Gust Duration (gustduration) ([todo internal name (i)]) <integer>
How long will the wind gust for.
Max gust dir change (degrees) (gustdirchange) ([todo internal name (i)]) <integer>
Maximum amount that the wind's direction changes due to a gust.
Radius (windradius) ([todo internal name (i)]) <float> (in all games since Left 4 Dead)
Only in Left 4 Dead seriesLeft 4 Dead series. The radius this entity applies wind effects to. -1 for global effect.


Inputs

Outputs

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


See Also