Hi Friends!
You know what grinds my gears? Terrible enemy spawn mechanics! You know the kind I mean - the sort where poor programming leads to a very obvious maintenance of the same number(s) of enemies no matter what you, the player, try to do. For example, Ngalia. Oooh Ngalia. You would think that a Compromised Nav Beacon wouldn't spawn police, but you would be wrong! They are called bounty hunters, and for the last two hours they have spawned consistently and relentlessly - always one wing, always close to my ship, always scanning me first. This mechanic is not exclusive to compromised nav beacons, it's pretty much a staple throughout encounters in Elite. In asteroid fields for example, you will always have at least one ship coming to harass you. Near certain bases marked as "impossible to beat solo", you will *always* have at least one fighter hanging around. It seems to me, that someone at Frontier forgot to code some decent spawn mechanics. So without further ado ladies and gentlemen, I, a fellow game developer, present to you and Frontier - a nicer way to spawn enemies!
spawnCountDown = minSpawnTime + rand() % (maxSpawnTime - minSpawnTime);
There you go! Easy isn't it? Obviously, timing is in milliseconds.
You are welcome.
hehe brilliant! I always knew it was a one liner fix
+rep