FSIC Messageboard
  Tech Talk
  Request for SOS guys (gunner AI)

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Request for SOS guys (gunner AI)
charmstar
Pilot
posted 08-08- 05:05 PM     Click Here to See the Profile for charmstar   Click Here to Email charmstar     Edit/Delete Message   Reply w/Quote
I would like to see planes capable of engaging multiple targets simultaneously. Here's what I'm thinking:

there would be two levels of AI: plane AI and gunner AI. Plane AI has a flag EnemyNear which is true if an enemy is within the max range of the longest range gun the plane has. Then you have:

while(EnemyNear) {
For each guncrew in plane {
EnemyInRange = CheckForEnemy(gun position, gun rotation capability, gun range)
GunnerAI(EnemyInRange)
}
Wait X seconds before checking again
}

CheckForEnemy would see if an enemy was within range and hittable. If so, it would return True. GunnerAI would be some basic algorithm for tracking/shooting a target, if EnemyInRange is true. Otherwise the gun will lie dormant. The GunnerAI function would run parallel with the loop above, so that more than one gun could be firing at more than one target at a time. If there were multiple targets available, the GunnerAI could have some simple algorthim for picking a target (like take the closest one for instance).

This might be tricky, but it could really improve the lethality of bombers and boats!

charm

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c