This article's documentation is for the "GoldSrc" engine. Click here for more information.

Rain modify (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{entity|rain_modify|<!--sprite=1-->|type=point|engine=gldsrc|game=Paranoia}} Which is used to directly turn on and off the rain.
{{this is a|point entity|<!--sprite=1-->|name=rain_modify|engine=GoldSrc|game=Paranoia|game1=Cry of Fear}} Which is used to directly turn on and off the rain.
{{ModernImportant|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.}}
{{ModernImportant|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==
==Keyvalues==
* Fading time (m_flTime) <integer>
{{KV|Fading time|intn=m_flTime|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.}}
::The time it takes for rain to acquire the specified settings. Set in seconds. This is to smoothly turn the rain on and off.
{{tip|A minute or two is fine (anyway, in action games always develop faster than in real life, because the genre obliges)}}
:::{{ModernTip|A minute or two is fine (anyway, in action games always develop faster than in real life, because the genre obliges)}}


* Drips per second (m_iDripsPerSecond) <integer>
{{KV|Drips per second|intn=m_iDripsPerSecond|integer|The number of drops that appear per second.}}
::The number of drops that appear per second.
{{tip|Normal such rain - somewhere around 2000 drops.}}
{{ModernTip|Normal such rain - somewhere around 2000 drops.}}


* Wind X (m_flWindX) <integer>
{{KV|Wind X|intn=m_flWindX|integer|Wind deflection}}
* Wind Y (m_flWindY) <integer>
{{KV|Wind Y|intn=m_flWindY|integer|Wind deflection}}
::Wind deflection.
{{tip|100, 200 - already a decent "oblique" rain.}}
{{ModernTip|100, 200 - already a decent "oblique" rain.}}


* Rand X (m_flRandX) <integer>
{{KV|Rand X|intn=m_flRandX|integer|Wind deflection spread for each drop.}}
* Rand (m_flRandY) <integer>
{{KV|Rand Y|intn=m_flRandY|integer|Wind deflection spread for each drop.}}
:: 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]]
[[Category:Paranoia Entities]]

Latest revision as of 20:28, 17 May 2024

rain_modify is a point entity available in Paranoia Paranoia and Cry of Fear Cry of Fear. 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) <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.
Tip.pngTip:A minute or two is fine (anyway, in action games always develop faster than in real life, because the genre obliges)


Drips per second (m_iDripsPerSecond) <integer>
The number of drops that appear per second.
Tip.pngTip:Normal such rain - somewhere around 2000 drops.


Wind X (m_flWindX) <integer>
Wind deflection
Wind Y (m_flWindY) <integer>
Wind deflection
Tip.pngTip:100, 200 - already a decent "oblique" rain.


Rand X (m_flRandX) <integer>
Wind deflection spread for each drop.
Rand Y (m_flRandY) <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.