Env wind: Difference between revisions
Jump to navigation
Jump to search

Important:This is a preserved entity in 






.
If the game has round restart mechanics this entity may not behave as expected:
Note:In
, this entity is needed for prop materials that have $treeSway, so it can simulate wind blowing on them.
m (Added a note about this entity being needed for $treeSway materials.) |
(updates. E's finished!?) |
||
Line 1: | Line 1: | ||
{{base point|env_wind|sprite=1}} It | {{lang|Env wind}} | ||
{{note|In {{csgo}}{{insurgency}}, this entity is needed for prop materials that have | {{base point|env_wind|sprite=1}} It creates wind throughout an entire map. | ||
{{PreservedEnt}} | |||
{{note|In {{csgo}} {{insurgency}}, this entity is needed for prop materials that have {{ent|$treeSway}}, so it can simulate wind blowing on them.}} | |||
{{code class|CEnvWind|effects.cpp}} | {{code class|CEnvWind|effects.cpp}} | ||
{{clr}} | {{clr}} | ||
== Keyvalues == | ==Keyvalues== | ||
{{KV|Min normal speed|integer|Minimum speed of the wind while idling.}} | {{KV|Min normal speed (minwind)|integer|Minimum speed of the wind while idling.}} | ||
{{KV|Max normal speed|integer|Maximum speed of the wind while idling.}} | {{KV|Max normal speed (maxwind)|integer|Maximum speed of the wind while idling.}} | ||
{{KV|Min gust speed|integer|Minimum speed of wind gusts.}} | {{KV|Min gust speed (mingust)|integer|Minimum speed of wind gusts.}} | ||
{{KV|Max gust speed|integer|Maximum speed of wind gusts.}} | {{KV|Max gust speed (maxgust)|integer|Maximum speed of wind gusts.}} | ||
{{KV|Min gust delay|integer|Minimum time delay between random gusts.}} | {{KV|Min gust delay (mingustdelay)|integer|Minimum time delay between random gusts.}} | ||
{{KV|Max gust delay|integer|Maximum time delay between random gusts.}} | {{KV|Max gust delay (maxgustdelay)|integer|Maximum time delay between random gusts.}} | ||
{{KV|Gust Duration|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)|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 | {{KV|Radius (windradius)|float|since=l4d|Only in {{l4ds}}. The radius this entity applies wind effects to. -1 for global effect.}} | ||
{{KV | {{KV BaseEntity}} | ||
== Inputs == | ==Inputs== | ||
{{I | {{I BaseEntity}} | ||
== Outputs == | ==Outputs== | ||
{{IO|OnGustStart|Fired when a wind gust begins.}} | {{IO|OnGustStart|Fired when a wind gust begins.}} | ||
{{IO|OnGustEnd|Fired when a wind gust ends.}} | {{IO|OnGustEnd|Fired when a wind gust ends.}} | ||
{{O | {{O BaseEntity|l4d=1}} | ||
== See | ==See Also== | ||
* | *{{ent|trigger_wind}} | ||
* | *{{ent|trigger_push}} | ||
* | *{{ent|env_rotorwash}} |
Revision as of 01:55, 3 October 2018


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









If the game has round restart mechanics this entity may not behave as expected:
|



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 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.
- 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
)
- Only in
. 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.