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

Reply
 
Thread Tools Display Modes
Old 07-05-13, 09:15 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
I am not sure that I fully understand the logic of logic steps. How are "remaining logic steps" calculated?

Anyway, multiplying 91 second times 15 (IRAI airstrike.cfg settings), gives a maximum interval of 22.75 minutes. Isn't this delay too long? Would it be affected by Airbase Modifier (see the PS in previous post)?
In the main game loop a function is called that updates all the game's timers. One of those timers is this 91.0 second one. Every 91.0 seconds the logic steps value is decremented. Once it's value is 0:
- a function is called that checks for airstrikes
- the logic steps value is reloaded with the logic steps value defined in AirStrike.cfg file

Is the Delay too long? Could be. Chances of the logic steps value being at the value defined in the AirStrikes.cfg file is very slim. Thus it's a 'random' value and is perfect for simulating delay in the airbases launching aircraft.
TheDarkWraith is offline   Reply With Quote
Old 07-05-13, 09:30 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
Is the Delay too long? Could be. Chances of the logic steps value being at the value defined in the AirStrikes.cfg file is very slim.
To be exact, 6.66% (1/15) with IRAI settings, assuming that I got your explainations right
gap is offline   Reply With Quote
Reply

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 03:26 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.