MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SetRainState

Function SetRainState

Descent3/weather.cpp:284–291  ·  view source on GitHub ↗

Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1)

Source from the content-addressed store, hash-verified

282
283// Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1)
284void SetRainState(int on, float intensity) {
285 if (on) {
286 Weather.flags |= WEATHER_FLAGS_RAIN;
287 Weather.rain_intensity_scalar = intensity;
288 } else {
289 Weather.flags &= ~WEATHER_FLAGS_RAIN;
290 }
291}
292
293// Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1)
294void SetSnowState(int on, float intensity) {

Callers 1

msafe_CallFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected