![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
07-08-13, 09:05 PM
|
#1 | |
|
Black Magic
![]() |
Quote:
take current logic steps counter value and multiply by random number (0.0-1.0 range). Compare that result to a minimum and maximum value. Adjust accordingly. What should I set the minimum and maximum values to This will be used when ANY unit detects a contact (to force the game to check for airstrikes quicker). One exception is aircraft. I do not let them set the ignore logic steps bit because when they are spawned they will more than likely detect a contact and this would cause the game to check for airstrikes again resulting in more aircraft being spawned etc. etc. This is why aircraft are not allowed to set the ignore logic steps bit.
|
|
|
|
07-08-13, 09:16 PM
|
#2 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
![]() Quote:
|
||
|
|
07-08-13, 09:19 PM
|
#3 | |
|
Black Magic
![]() |
Quote:
A caveat to the aircraft is say an aircraft is spawned. A few seconds later a unit in the game detects a contact. Because this unit detected a contact the ignore logic steps bit is set and thus when the current 91.0 second interval is up game will check for airstrikes again. There was no real easy way to code this
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
