View Single Post
Old 10-27-10, 11:08 PM   #934
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
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