env_rainmodify
Sets the initial parameters for rain. By placing multiple env_rainmodify enitites in a map, you can start and stop rain, and change its settings.
Spawnflag
SF_RAIN_CONSTANT |
1 (it rains constantly and always the same way; other env_rainmodify entities cannot affect this rain) |
Options
m_iDripsPerSecond |
Number of drops per second. The recommended values are 4000–8000 for rain and 500–800 for snow. |
m_flWindX |
Wind strength on the X axis. |
m_flWindY |
Wind strength on the Y axis. |
m_flRandX |
Randomisation on the X axis. |
m_flRandY |
Randomisation on the Y axis. |
m_flTime |
How many seconds it takes to apply the settings (0 means immediately). |
Usage Details
- To make rain that can be started and stopped, you need two env_rainmodify entities: one with the “it's raining” parameters and the other with the number of drops set to 0. In both of them, you should apply parameters over time for smooth transitions.
- Similar entities can be added for wind strength control, rain intensity and randomisation.
- Activation occurs through the trigger_auto entity or by other means; this is up to the mapper.