Guides
Rain and water
How rain thins and washes blood, how water lines wash wading legs, and how mud, sand and drying blood behave.
Settings and calls#
| Name | Default | Meaning |
|---|---|---|
SetGlobalRain(Intensity) / GetGlobalRain() |
0 | Static: rain 0..1 for every component that uses global rain. Same as console SkinMark.Rain. |
SetLocalRain(Intensity) |
This character's own rain 0..1 (turns global rain off for it). 0 = under a roof. | |
bUseGlobalRain / RainIntensity |
true / 0 | Off = use this character's own RainIntensity. |
RainWashSeconds |
240 | Seconds of full rain that wash a blood or mud mark away. |
SetWaterSurface(bEnabled, SurfaceZ) |
Water-height wash on at world Z, or off. | |
bDetectWaterVolumes |
true | Also wash inside Physics Volumes marked "Water Volume" (surface = top of the volume). |
WaterWashSeconds |
4 | Seconds under water that wash a mark away. |
WetDrySeconds |
60 | Seconds a wet mark takes to dry after rain or water. |
WashUpdateInterval |
0.25 | Seconds between wash updates. |
GetEffectiveRain(), GetWaterSurface(OutSurfaceZ) |
What applies to this character now. |
What you see#
Rain thins blood into pink-red streaks that run down, then washes it away. Everything below a water surface washes, which
leaves a clean line on wading legs. DA_Hit_Mud and DA_Hit_Sand leave mud and sand that wash off in water. Fresh blood
dries from glossy red to matte brown over time, and rain wets it again. For a river or lake from the Water plugin, call
SetWaterSurface when the water height changes. Rain and water run on each machine in multiplayer, so drive them from
replicated weather.
