Rain modify (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 8: Line 8:
{{KV|Drips per second (m_iDripsPerSecond)|integer|The number of drops that appear per second.}}
{{KV|Drips per second (m_iDripsPerSecond)|integer|The number of drops that appear per second.}}
{{ModernTip|Normal such rain - somewhere around 2000 drops.}}
{{ModernTip|Normal such rain - somewhere around 2000 drops.}}
{{KV|Wind X (m_flWindX)|integer|Wind deflection}}
{{KV|Wind X (m_flWindX)|integer|Wind deflection}}
{{KV|Wind Y (m_flWindY)|integer|Wind deflection}}
{{KV|Wind Y (m_flWindY)|integer|Wind deflection}}
{{ModernTip|100, 200 - already a decent "oblique" rain.}}
{{ModernTip|100, 200 - already a decent "oblique" rain.}}
{{KV|Rand X (m_flRandX)|integer|Wind deflection spread for each drop.}}
{{KV|Rand X (m_flRandX)|integer|Wind deflection spread for each drop.}}
{{KV|Rand (m_flRandY)|integer|Wind deflection spread for each drop.}}
{{KV|Rand (m_flRandY)|integer|Wind deflection spread for each drop.}}
{{ModernExample|if the wind is worth 200 and the spread is 40, then for each drop the deviation will vary from 160 to 240.}}
{{ModernExample|if the wind is worth 200 and the spread is 40, then for each drop the deviation will vary from 160 to 240.}}
[[Category:GoldSrc]]
[[Category:GoldSrc]]

Revision as of 05:10, 21 August 2023

Template:Entity Which is used to directly turn on and off the rain.

Icon-Important.pngImportant:It is possible to simply set constant rain on the map, without switching on and off - for this, do not specify the rain_modify name.


Keyvalues

Fading time (m_flTime) ([todo internal name (i)]) <integer>
The time it takes for rain to acquire the specified settings. Set in seconds. This is to smoothly turn the rain on and off.

Template:ModernTip

Drips per second (m_iDripsPerSecond) ([todo internal name (i)]) <integer>
The number of drops that appear per second.

Template:ModernTip


Wind X (m_flWindX) ([todo internal name (i)]) <integer>
Wind deflection
Wind Y (m_flWindY) ([todo internal name (i)]) <integer>
Wind deflection

Template:ModernTip


Rand X (m_flRandX) ([todo internal name (i)]) <integer>
Wind deflection spread for each drop.
Rand (m_flRandY) ([todo internal name (i)]) <integer>
Wind deflection spread for each drop.
PlacementTip.pngExample:if the wind is worth 200 and the spread is 40, then for each drop the deviation will vary from 160 to 240.