- summary: Targetting AI suggestion --> AI suggestion
I'm not a very good programmer at game, but have
thought of some ideas regarding implementation of AIs
in combat that might work well.
I did a little C++ programming, so I'll try to only
provide ideas that might be easy to implement.
Targetting system (Rookie, Veteran)
For rookie: Orient guns to target location, with a
random angle changes depending on their skill/accuracy
level.
For veteran: Calculate distance between ship,
Calculate time for weapon to reach target ship
(distance/weapon velocity). Use target ship's velocity
and find ship's location after the time calculated in
previous step, attempt to orient ship towards that
direction. With a random angle changes based on their
accuracy.
Further suggestion on AI behavior (Aggressive,
Neutral, Defensive) during combat.
Aggressive: Fly in a straight line right towards you
no matter what.
Neutral: Aggressive when their ship overpower you.
Defensive if reversed.
Defensive: Will try to circle around you as much as
possible.