ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multiplayer friendly rain script.

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing
View previous topic :: View next topic  
Author Message
UberGewei
SuperAntler


Joined: 01 Sep 2010
Location: The Netherlands

PostPosted: Mon Aug 23, 2021 2:33 pm    Post subject: Multiplayer friendly rain script. Reply with quote

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 (:

Enjoy! Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group