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 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
 


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 03:32 AM.


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.