Rain settings (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:


==Keyvalues==
==Keyvalues==
* Rain distance (m_flDistance) <integer>
{{KV|Rain distance (m_flDistance)|integer|}}
{{ModernTip|It is not necessary to change the radius - it is set quite optimally by default. Although if the map is "corridor" (lane), then it can be made smaller.}}
{{ModernTip|It is not necessary to change the radius - it is set quite optimally by default. Although if the map is "corridor" (lane), then it can be made smaller.}}


* Weather type (m_iMode) <choices>
{{KV|Weather type (m_iMode)|choices|Type of precipitation}}
::Type of precipitation
:{| class=standard-table
!| Value || Description
|-
| 0 || Rain
|-
| 1 || Snow
|}


[[Category:GoldSrc]]
[[Category:GoldSrc]]

Revision as of 05:01, 21 August 2023

Template:Entity Which sets the global rain parameters for this map. The entity should be positioned at the height where the drops will spawn. Template:ModernWarning

Keyvalues

Rain distance (m_flDistance) ([todo internal name (i)]) <integer>

Template:ModernTip


Weather type (m_iMode) ([todo internal name (i)]) <choices>
Type of precipitation
Value Description
0 Rain
1 Snow