So I was wondering how to add snow to the dynamic weather like everyone else, and then realised that snow was dynamic on Namalsk. So I looked at how it was done, and seen that Namalsk uses a custom dynamic weather script with snow as a logic function. Thought I was crazy for trying but I managed to get it working on my Epoch server.
Hit "RAW" next to download, to copy and paste.
Second script: fn_dzn_snowfall.sqf
(This script even takes into account if you are inside a building, so it doesn't snow inside)
http://pastebin.com/nmmFrJyZ
Then you need to open up your init.sqf (on Epoch) or custom compiles and point the dynamic weather location to your script instead.
Like so:
When the script wants it to snow, it calls the snow function, which runs the script. We need to add the snow function.
Open your Description.ext
Under the class RscPicture block of code, add this.
In the DynamicWeather I have Debug turned on. Turn it off if you don't want it logging the current weather to your .RPT.
Enjoy everyone!

All credits go to Sumrak (http://www.nightstalkers.cz/) for putting so much work into Namalsk.
All this code is his, I simply figured out how to port it from Namalsk to any map.
First create a folder in your mission.pbo called Weather, and put these two scripts in there:
Hit "RAW" next to download, to copy and paste.
First script: DynamicWeatherEffects.sqf
(You can modify the settings at the top, but it only snows if it's over .75 overcast)
Hit "RAW" next to download, to copy and paste.
Second script: fn_dzn_snowfall.sqf
(This script even takes into account if you are inside a building, so it doesn't snow inside)
http://pastebin.com/nmmFrJyZ
Then you need to open up your init.sqf (on Epoch) or custom compiles and point the dynamic weather location to your script instead.
Like so:
Code:
//Start Dynamic Weather
execVM "Weather\DynamicWeatherEffects.sqf";
When the script wants it to snow, it calls the snow function, which runs the script. We need to add the snow function.
Open your Description.ext
Under the class RscPicture block of code, add this.
Code:
class CfgFunctions {
class DZN {
class Functions {
class snowfall {
description = "Simple snowfall script";
file = "Weather\fn_dzn_snowfall.sqf";
};
};
};
};
In the DynamicWeather I have Debug turned on. Turn it off if you don't want it logging the current weather to your .RPT.
Enjoy everyone!