Jump to content
Sign in to follow this  
engima

Dynamic Weather Effects Script Release

Recommended Posts

y4ml9LfXZ9abbJgOU_wTxtv3_i8LBOr57tRIyzfM

Dynamic Weather Effects Script v2.00

by Engima

(Download it at Armaholic)

Description

As a mission designer I have always had problems with the weather. It has not been dynamic the way I want it to be, and I've always thought that it synchronizes terribly in multiplayer as soon I start experimenting with it (especially rain).

This is a simple script that makes the weather dynamic, and it works in single player, multiplayer (hosted and dedicated) and for JIPs. The weather is constantly changing over time intervals of the mission designer's choice. Weather is unpredictible, and above all it's always synchronized among all players in a multiplayer game!

Script handles fog, overcast, rain and wind.

 

Installation / Usage:

1. Copy the folder "Scripts" to your mission folder, or just make sure that the following file (and path) exists in your mission folder:

Scripts\DRN\DynamicWeatherEffects\DynamicWeatherEffects.sqf

2. If the init file not already exists, create the init file (init.sqf) in the root of your mission folder.

3. In init.sqf, start the weather script by adding the the following line:

execVM "Scripts\DRN\DynamicWeatherEffects\DynamicWeatherEffects.sqf";
 

More information is in ReadMe.txt in package.

 

Change log:

v2.0

- Added section for mission makers to customize and tweak weather behaviour and details.

- Dependency to CommonLib.sqf deleted.

- Improved rain behaviour.

- Initial weather is passed as arguments.

- Slightly better performance.

v1.0

- First version

 

Requirements

Only tested on ArmA2 Operation Arrowhead Combined Operations.

Share this post


Link to post
Share on other sites

Thanks, I was just thinking yesterday that I will need to create a dynamic weather script for my mission. This will save time. :)

Share this post


Link to post
Share on other sites

Thanks for this. I like it and it's really clever :)

I just did a little test mission with this, the breath script and JTD Fire and Smoke enabled: Awesome!

I'll have a play around with the parameters and get back to you with some meaningful feedback.

Share this post


Link to post
Share on other sites
Gnat;2098102']Cool!

Is the changed weather in "zones" or is it the same weather for the whole map/terrain?

I chose to make it quite simple, so weather is the same for the whole map. At least for now.

Share this post


Link to post
Share on other sites

But just as a side note it would be great to see weather patterns move across different areas of a map, sounds great as I always enjoy any environment type scripts, look forward to trying it... Thanks!

Share this post


Link to post
Share on other sites

Awesome. I always hated that BIS didn+t sync weather among MP players. We were always like:

A: "Damn, its raining hard man"

B: "What rain?"

c: "Man, are you on drugs?"

:)

Thanks for the script. Is it hard on CPU? Anyone tested fps with/without script yet?

Share this post


Link to post
Share on other sites

Thanks Engima, But a small example mission would be useful for people they don´t know this ;)

Share this post


Link to post
Share on other sites
Awesome. I always hated that BIS didn+t sync weather among MP players. We were always like:

A: "Damn, its raining hard man"

B: "What rain?"

c: "Man, are you on drugs?"

:)

Thanks for the script. Is it hard on CPU? Anyone tested fps with/without script yet?

I haven't done such a test, but regarding performance I can tell you how the script basically works.

On server side for most part it just sleeps. Every 20th minute (if that is your choice of weather change interval) it randomly chooses a new weather and synchronizes all clients (publicVariable). A synchronization is also performed every time a JIP connects and when rain starts and stops. (In other words, not much processing).

Each client run a "rain loop", which sets the rain every second. For what I know, that is the only way to handle the main rain problem, since rain is kind of living its own life individually on all clients when left to itself.

An FPS test is probably a little tricky to perform, since weather itself probably affects FPS much more than the script does. So best way to test FPS is probably to do it with a new script that simply sets the rain every second, my guess is that everything else is insignificant. How the internal weather commands (setOvercast, setFog) perform I don't know.

Edited by Engima
Updated with new facts since release of 2.00.

Share this post


Link to post
Share on other sites
Guest
;2099328']Is it possible to deactivate for example fog totally?

Or setting a max value for fog (for example "0.2")?

I'm also interested in this. Is it possible? Great script btw. Tested it with a few people yesterday and it all syncs great!

Share this post


Link to post
Share on other sites
;2099328']Is it possible to deactivate for example fog totally?

Or setting a max value for fog (for example "0.2")?

Ok, I understand that would be useful. I'm working on it. Give me a couple of days. Thanks for feedback!

Share this post


Link to post
Share on other sites

Is there a version of this script that auto-executes? i.e. I can put the pbo in a mod folder and any mission that I run will benefit from this?

Share this post


Link to post
Share on other sites

Fantastic little script Enigma, won't be playing without it from now on.

Share this post


Link to post
Share on other sites
Iam intrested how this script works with the ACE2 Wind system. Does it change something?

Sorry, I don't know very much about ACE2 at all. However, if you want this script to handle everything but wind you can disable wind changes by setting variable _windChangeProbability to 0.

---------- Post added at 12:03 PM ---------- Previous post was at 11:56 AM ----------

Is there a version of this script that auto-executes? i.e. I can put the pbo in a mod folder and any mission that I run will benefit from this?

No. Would that be possible?

Edited by Engima

Share this post


Link to post
Share on other sites

Hey Engima,

This script is great, it's dynamic in a non Hollywood "cue thunderstorms" kind off way, feels very believable.

What do you think of an option to add sand wind/storm options for the desert maps? Or maybe it already does that? I've only used on Chernarus.

Share this post


Link to post
Share on other sites

I am a layman in the subject and want to leave the open sky, not cloudy. Where this dumb?

---------- Post added at 17:18 ---------- Previous post was at 17:16 ----------

I am a layman in the subject and want to leave the open sky, not cloudy. Where this dumb?

http://i49.photobucket.com/albums/f264/xdannil/DynamicWeather.jpg

Dynamic Weather Effects Script v2.00

by Engima of Östgöta Ops

(Download it at Armaholic)

Description

As a mission designer I have always had problems with the weather. It has not been dynamic the way I want it to be, and I've always thought that it synchronizes terribly in multiplayer as soon I start experimenting with it (especially rain).

This is a simple script that makes the weather dynamic, and it works in single player, multiplayer (hosted and dedicated) and for JIPs. The weather is constantly changing over time intervals of the mission designer's choice. Weather is unpredictible, and above all it's always synchronized among all players in a multiplayer game!

Script handles fog, overcast, rain and wind.

Installation / Usage:

1. Copy the folder "Scripts" to your mission folder, or just make sure that the following file (and path) exists in your mission folder:

Scripts\DRN\DynamicWeatherEffects\DynamicWeatherEffects.sqf

2. If the init file not already exists, create the init file (init.sqf) in the root of your mission folder.

3. In init.sqf, start the weather script by adding the the following line:

execVM "Scripts\DRN\DynamicWeatherEffects\DynamicWeatherEffects.sqf";

More information is in ReadMe.txt in package.

Change log:

v2.0

- Added section for mission makers to customize and tweak weather behaviour and details.

- Dependency to CommonLib.sqf deleted.

- Improved rain behaviour.

- Initial weather is passed as arguments.

- Slightly better performance.

v1.0

- First version

Requirements

Only tested on ArmA2 Operation Arrowhead Combined Operations.

Share this post


Link to post
Share on other sites
You can't get simpler than sticking those 2 lines in the init.

Some people understand things better with an working example. I'm one of those people. Though this wouldn't fall into that category for me, maybe it would help Miller.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×