SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11-29-10, 08:55 AM   #12
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

My algorithm in detail (Initial inspiration: Stiebler & Hitman):

There are 2 counters: one for STORM (Windspeed > 14) and one for FOG, which are initially both set to 0.

Everytime a condition (either storm or fog or both) is true, the according counter is incremented in order to count the time periods for storm and fog independently.

If one condition is false (wind < 14 or no fog), the according counter is set back to 0, because the bad weather interval has obviously ended for that individual weather component.

But if one of these counters reaches a certain, randomly generated, maximum value (between 2 and maybe 10), a tendency to a better weather is forced by manipulating some internal random values. This forcing a tendency to good weather will end, if both counters are below their individual maximum values, that means, the bad weather period has ended.

This algorithm guarrantees, that storm and fog periods independently from each other cannot be longer than a certain maximum time. This is, because I had some situations with longer fog-periods but windspeed below 10m/s.
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 12-01-10 at 03:03 AM.
h.sie is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.