Joined: 01 Sep 2010
Location: The Netherlands
|Posted: Mon Aug 23, 2021 2:33 pm Post subject: Multiplayer friendly rain script.
Here's an (almost) dynamic rain script, that I cooked up quite a while ago.
rain_example.zip Figured it might be of use to someone!
All you need to do is copy the wad contents to your own wad and place the correct ambient sound on your map (not mandatory for it to work).
There are also a number of Cvars so you're able to personalize it to the best of your wishes.
sv_alwaysrain - enable rain (default: 0)
sv_raindrawdistance - rain draw distance in map units (default: 1000)
sv_raininterval - interval (rain density, 1 is fastest) (default: 5)
sv_rainfallspeed - the raindrop speed, how fast rain falls (default: 96)
There's two ways of activating the script, either by using the Cvar sv_alwaysrain or by making use of the global integer spawnRain (an example is present within the wad).
The dehacked work is based off Medis his work, the corresponding sprite work too! So credit him if you decide to use those (: