Posted: Mon Aug 23, 2021 2:33 pm Post subject: Multiplayer friendly rain script.
Hey there!
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.
Code:
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 (:
Unlike acs_rainscript this doesn't require repeated client-side script execution. Instead, the clients are being updated only when server variables have been changed.
To change the variables use 'pukename' in console and puke the following script: "Snow_ChangeVars" (int speed, int drdistance, int minheight)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum