Drongo’s Dynamic Weather
tl;dr Easy random weather in SP/MP
OVERVIEW
DDW enables randomly changing weather in SP/MP with easy module-based setup. It has several weather presets:
sunny
cloudy
overcast
rainy
foggy
stormy
windy
monsoon
snow storm
dust storm
tornado
Each cycle, there is a chance that the weather will change. Possible presets, cycle length, change chance and change time can be set in the module.
The "weight" value next to each preset is how likely it is to be chosen.
0=never chosen
1=same chance as others
2=twice as likely as other presets (with a value of 1)
9=nine times as likely as other presets (with a value of 1)
Note that the monsoon, snow storm and dust storm can take some time to take effect. Make sure the cycle is long enough to accomodate this.
You can check the current weather present by interrogating the following string global variable on any client:
ddwWeatherCurrent
You can force a weather change by running this code on any client:
[]remoteExec["DDW_fnc_ChangeWeather",2];
Note that doing so may cause conflicts if snow storm, sand storm or monsoon is currently active.
You can find the module in Eden under Modules > Drongo’s Dynamic Weather
LICENSE
Arma and Dayz Public License Share Alike (ADPL-SA)
https://www.bohemia.net/community/licenses/arma-and-dayz-public-license-share-alike-adpl-sa
If you need an exception to this license, contact me.
The following applies to the monsoon, snow storm and dust storm elements of this mod:
DO NOT INCORPORATE THIS SCRIPT OR PORTIONS OF IT IN MONETIZED PRODUCTS OR SERVERS WITHOUT ASKING FOR PERMISSION AND OBTAINING APPROVAL FROM ALIAS.
CREDITS
Drongo: Concept and coding
Alias: Monsoon, snow storm, dust storm and tornado scripts
Special thanks to VedKay for all his work behind the scenes
Source: https://drive.google.com/file/d/17huERaUIgNA9TQN9VmWKOV22y3C5Zyzq/view?usp=share_link
v0.15
Added: Option to delay start
Added: Control over max fog
Added: Control over max wind
Revisions:
Old revisions of this mod are available below. Click the link to download.