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:Wind direction is determined by
Note:In most games that have $treeSway, this entity is required in order for the materials to simulate wind blowing on them. 
only) is used.
Deprecated (talk | contribs) (Added SetWindDir from GMOD) |
Deprecated (talk | contribs) m (Added more information about $treesway note, misc fix) |
||
Line 1: | Line 1: | ||
{{lang|Env wind}} | {{lang|Env wind}} | ||
{{base point|env_wind|sprite=1}} It creates wind throughout an entire map. | {{base point|env_wind|sprite=1}} It creates wind throughout an entire map. | ||
{{PreservedEnt}} | {{PreservedEnt}} | ||
{{note|Wind direction is determined by <code>env_wind</code>'s yaw value.}} | {{note|Wind direction is determined by <code>env_wind</code>'s yaw value.}} | ||
{{note|In most games that have {{ent|$treeSway}}, this entity is required in order for the materials to simulate wind blowing on them.}} | {{note|In most games that have {{ent|$treeSway}}, this entity is required in order for the materials to simulate wind blowing on them. <code>$treesway</code> does not require <code>env_wind</code> if <code>$treeswaystatic</code> ({{tf2}}{{GMOD}} only) is used.}} | ||
{{code class|CEnvWind|effects.cpp}} | {{code class|CEnvWind|effects.cpp}} | ||
Line 20: | 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| | {{KV|Radius (windradius)|float|only=L4ds|The radius this entity applies wind effects to. -1 for global effect.}} | ||
{{KV BaseEntity}} | {{KV BaseEntity}} | ||
Revision as of 18:19, 17 November 2019


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









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

env_wind
's yaw value.
$treesway
does not require env_wind
if $treeswaystatic
(

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> (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.