func_rainvolume

A func_rainvolume makes it rain only inside its brush, and with Allow indoor, under a roof too. The rain is the
same as the rain of env_rain, and each player's game draws it while the brush is in view.
With an env_rain or an env_snow in the map, both are drawn, and volumes that overlap add up. Each
player's weather option, the client setting cl_weather, sets the amount
of rain, for the volumes too, and only the OpenGL renderer draws it.
Attributes
targetnameTriggering the entity switches the rain on or off, as the use type says, and every player sees the change at once. Without a name, the rain is always on. See Common keys.
intensitySets how many raindrops each update makes, spread over the whole brush, so a bigger brush needs more for the same rain, up to 1000, and anything above 1000 works like 1000.
150update_periodSets how many seconds pass between two batches of raindrops, down to 0.05.
0.3raindrop_widthSets the width of a raindrop, in units.
2raindrop_heightSets the length of a raindrop, in units.
80raindrop_min_speedSets the slowest speed a raindrop falls at, in units per second, and each raindrop falls at a random speed between this and Raindrop max falling speed.
500raindrop_max_speedSets the fastest speed a raindrop falls at, in units per second.
1800raindrop_lifeSets how many seconds a raindrop that hasn't hit anything lasts.
1.0Sets a fixed wind, which is the sideways speed of every raindrop along the map's X axis, in units per second, so a negative value blows the other way. If you set Wind X or Wind Y, this rain blows with that fixed wind instead of the random wind, which changes its direction every 15 to 30 seconds, and every raindrop slants the same way.
- If you leave Wind X and Wind Y empty, the rain uses the random wind
Sets the sideways speed of every raindrop along the map's Y axis, in units per second, in the same way as Wind X.
Gives each raindrop a random extra sideways speed along X, from minus this value up to this value, in units per second, on top of the fixed or the random wind.
If you leave this key empty, it is 0 and there is no spread.
Flags
1Start ActiveA volume with a Name is on when the map starts. A volume without a name is always on
2Allow indoorRaindrops also fall where there is no sky above. Without this flag, a raindrop needs sky above it, as with env_rain
4Raindrops not affected by windThe raindrops fall straight down, with no wind and no spread, and only the puffs of dust still blow with the wind
32No wind puffsNo puffs of dust blow across the ground
64No rain splashesRaindrops make no splashes where they hit the ground
128No ripples on waterRaindrops make no ripples where they hit water
256Raindrops go through brush entitiesRaindrops fall through brush entities and only stop at the world
512Don't stop at the water surfaceRaindrops fall on through water instead of stopping at its surface
Notes
- The rain makes no sound
- If you set a key to 0 or below, the volume uses the default for that key, except for the wind and spread keys, where 0 is no wind or no spread
- The wind keys work like the keys Wind X, Wind Y, Rand X and Rand Y of Spirit of Half-Life's
rain_modify, and SBO also accepts their key namesm_flWindX,m_flWindY,m_flRandXandm_flRandY - You can change every key and flag while the map runs with a
trigger_changevalueor atrigger_copyvalue, and every player sees the change at once. Setting Start Active this way switches a volume with a Name on, and clearing it switches the volume off - The volume doesn't move with other entities, but if you change its
originwith atrigger_changevalue, the rain jumps to the new place
See also
func_snowvolume- snow inside a brushenv_rain- rain over the whole map- Weather and fog - fog, rain and snow
- Changing keys - how
trigger_changevalueandtrigger_copyvaluework
Changes since 1.38
func_rainvolumeis new in SBO 2.0.0- Since SBO 2.1.0,
func_rainvolumehas the wind keys Wind X, Wind Y, Wind spread X and Wind spread Y, and its keys can change while the map runs


