View Single Post
Old 07-13-15, 09:52 AM   #12
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by redline202 View Post
######################### Ship consts ##########################
SHIP_PATROL_RATE = 0.008333; # (1.f / (20.f * 60.f))

STATE_CRUISE = 0; #Normal navigation
STATE_ALERT = 1; #Alert State
STATE_DMG_CONTROL = 2; #damage control
STATE_IN_PORT = 3; #docked
STATE_FAKE_SURRENDER = 4; #fakesurrender
STATE_SURRENDER = 5; #surrender
STATE_ABANDON = 6; #abandonship

I have found these lines in IRAI Scripts\AI\init.aix
"STATE_IN_PORT = 3; #docked" Could this maybe be the problem with
stuck ships in ports?, i was trying simply to delete this line but i didn't have time
to test it in the campaign.
As far as I can understand, those lines are where TDW is declaring ship state variables, used farther in his code to determine ship tactics. If you remove them from the code, AI routines will look for those missing variables, and the game will likely CTD
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote