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 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-27-10, 11:08 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v0.0.28 is working good. Will probably need some tweaking of the new values added for the watch crews and fatigue. We'll see how you all like it when I release it (here shortly).

Now I need to explain some things about the new additions for the ship AI:

there is a base watch crew time (in minutes) for each ship:
ShipWatchRotation = 180;

every ship starts with crew with no fatigue. It then determines the time before the first fatigue level by:

intervalTimeCP = (ShipWatchRotation + Ship:Random( -( ShipWatchRotation * 0.25 ), ShipWatchRotation * 0.25 ) ) / 4.0;

this says take the 180 and add a random value somewhere between -25% and +25% of 180 to it and then divide the result by 4. This gives the time before the 1st fatigue level

every ship then determines it's own fatigue levels (4 of them). Each fatigue level determines it's time by:
intervalTimeCP = (ShipWatchRotation + Ship:Random( -( ShipWatchRotation * 0.25 ), ShipWatchRotation * 0.25 ) ) / 4.0;

this says take the 180 and add a random value somewhere between -25% and +25% of 180 to it and then divide the result by 4. This gives the fatigue level time. This repeats 3 more times

after the 4th fatigue level the watch crew is relieved by a 'fresh' watch crew with no fatigue.

Now as each fatigue level is attained, each sensor of the ship will degrade in performance some random amount (simulating fatigue). Each sensor degrades it's own random amount.

All of this makes for a truly random ship AI. You can be stalking a ship thinking you're at safe distance only to find that it changes watch crew and now you're detected! The vice versa is also true: you might be hunted by an escort and over time as fatigue sets in it may 'lose' contact with you allowing you to escape.

Everytime the ship changes state (cruise, alert, damaged, etc.) the watch crew is relieved by a fresh crew with no fatigue.

I'll have v0.0.28 available for download here very shortly
TheDarkWraith is offline   Reply With Quote
 

Thread Tools
Display Modes

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 09:22 AM.


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