YSCEDC / YSCE

YSFlight Community Edition
BSD 3-Clause "New" or "Revised" License
13 stars 4 forks source link

Improve dogfight AI #10

Open app4soft opened 2 years ago

app4soft commented 2 years ago

Expected behavior

Improve dogfight AI.

REFERENCE

NodokaHanamura commented 2 years ago

This is something currently out of our scope. We'll come back to this at a later date.

NodokaHanamura commented 1 year ago

Since Jobbin introduced some changes to how AI handle flares, I'll task him to work on this over time if he has no problem with it.

JOBBIN9422 commented 1 year ago

I'll gladly (attempt) to take this on, but I think pasutisu was actually the one who originally added the flare changes, I suppose they get first dibs if they want!

NodokaHanamura commented 1 year ago

Some remarks from a private build containing JOBBIN's PR code on this issue, mirrored from the discord:

  1. The AI works pretty good - in a 1 F-22 v. 2x Su-27 and 2x Su-25, I had a hard time keeping up with the Flankers - they're definitely a lot more unpredictable than I remember.
  2. An issue I found in yours and @MrMofumofu(pasutisu)'s flare code - I think the AI doesn't recognized AMRAAMs with the new code, as flares from what I saw do not deploy at intervals when an AIM-120 is still tracking them
  3. An issue that I can't exactly assess - one of the Su-27s went below around 2000 feet in a 10 degree dive at one point - and was unresponsive to gunfire for some reason. Once it was around 1,000ft or so it began to show signs of life.
  4. A suggestion in general for later - maybe implement some sort of smart 'capability awareness' - for example, aircraft like the A-10 and Su-25 should under no circumstances try to engage in a dogfight with an F-22 or other Air Superiority fighters, but should solely engage defensive by flying low, fast and away from the threat when in immediate radar range - that is unless we implement some sort of risk chance variable for the AI, that determines how often they'll take chances on unfavorable engagements. Furthermore, Aircraft with low maneuverability but high speed (like the F-14 or F-104) should utilize boom and zoom tactics instead of attempting to enter a turn fight with a Su-27 or F-16.
  5. This kind of ties into 4 - And is more something to laugh at and fix than a complaint - Why in the fuck would a Su-25 be in a full vertical climb to engage an F-22?
JOBBIN9422 commented 1 year ago

@NodokaHanamura good to close this issue? or do we want to keep it open as part of a continuing effort to improve the AI?

NodokaHanamura commented 1 year ago

Yes, this will be a long-term project.