Quote:
Originally Posted by gap
Can't you instead update the logic steps counter: i.e. when an unit detects a contact, you set a new random variable that must be equal or lesser than the current logic step and equal or lesser than a preset value (for making sure that delay isn't too long), the you load the new variable as current logic step
|
What I can do is this:
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.