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, 04:17 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Josef von Posorschitz View Post
That sounds interesting!
I've taken the idea above to a (possible) whole new level I'm coding it now and if it works it will be a quantum leap for IRAI

I'm coding in watch rotations and fatigue for the ship AI.

Here's the idea:

A watch rotation shift will be defined in \data\Scripts\AI\init.aix that lets you define the ship's watch rotation (in minutes). At some random time between 0.25 and 0.75 of that defined watch rotation fatigue will set in. Fatigue will reduce each AI sensor's sensor effectiveness some random amount. i.e.:

ShipWatchRotation = 4; # in hours
ShipFatigueMin = 0.25; # min time of ShipWatchRotation when fatigue starts
ShipFatigueMax = 0.75; # max time of ShipWatchRotation when fatigue starts
ShipFatigueSensorReductionMin = 0.0; # min sensor reduction amount for fatigue
ShipFatigueSensorReductionMax = 0.1; # max sensor reduction amount for fatigue

the formula for calculating when fatigue sets in is:

fatiguetime = ShipWatchRotation * Random(ShipFatigueMin, ShipFatigueMax)

the formula for calculating fatigue sensor reduction is:

(sensor base value * sensor difficulty level) - Random(ShipFatigueSensorReductionMin, ShipFatigueSensorReductionMax)

then the next 'watch rotation' starts at:

ShipWatchRotation - fatiguetime


If this works (cross your fingers!) then this will add a whole new dynamic to the ship AI.

The thing to realize is EACH ship will act differently as they each get a copy of this file in game

Last edited by TheDarkWraith; 10-27-10 at 04:41 PM.
TheDarkWraith 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 09:14 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.