dcs-liberation / dcs_liberation

DCS World dynamic campaign.
GNU Lesser General Public License v3.0
718 stars 184 forks source link

DEAD flight with AttackGroup task fires all missiles against a single target #2152

Closed RndName closed 2 years ago

RndName commented 2 years ago

Affected versions

5.2.0, Development build

Development build

No response

Description

We set the AttackGroup task for DEAD flights with the property ["expend"]="All" instead of ["expend"]="Auto" like DCS does by default. This causes the AI to fire all available missiles at one single target. This makes the DEAD flight extremly uneffective.

grafik

Left is the Task in the mission file from Liberation, right is the task as i just removed the task and recreated it.

grafik

The expend property maps to "REL QTY". which has these possible values: grafik

a short test showed that the AI does what expected if its changed to AUTO.

Solution: Update Pydcs with the correct properties for this Task

Save game and other files

This mission shows All vs Auto attack_group_test.zip

DanAlbert commented 2 years ago

How well does "auto" work when the loadout is plain CBUs? That's sort of the "expected" loadout for this mission type.

RndName commented 2 years ago

In this example it fires 1 JSOW at each target. I think i've read sth in the dcs forum about the AI calculating the amount of ammunition needed against the given target. but this is highly speculative tbh. I am not sure :D But Auto is still way better as we normaly have at least two aircraft coming in with a huge loadout.

Also i found out in my testing that the AI is not targeting the Ural Truck standing nearby (same group!). It focuses on the higher values (just my interpretation of what is happening again)

DanAlbert commented 2 years ago

My worry is that with non-standoff weapons the AI will take multiple passes over the target dropping one CBU per target and just end up getting killed once the SAM wakes back up. With unguided bombs they really need to do one pass haul ass.

RndName commented 2 years ago

With unguided the AI is cheating :D they drop them immediatly at the correct targets.

grafik

DanAlbert commented 2 years ago

Nice, okay, so this improves both behaviors.

RndName commented 2 years ago

we can also set attackQty to 1 if we want SEAD and DEAD to only do one attack run at all. We currently have attackQtyLimit disabled so the AI can do what it wans if i understand this parameter correctly

Dovahkiin-r commented 2 years ago

With unguided the AI is cheating :D they drop them immediatly at the correct targets.

grafik

Isn't CBU 103 a guides Bomb? Humans can do that too, beacuse that works like GPS guided bombs...

DanAlbert commented 2 years ago

Good catch, yes. The unguided version of that is the 99? 103/105 are WCMD, so that should probably be retested.

RndName commented 2 years ago

Ok you were right i checked it with CBU-87s 8 per Aircraft, 2 Aircrafts per package. grafik

Results Unguided CBU-87 (8x) and MK-82 (4x each)

Results Guided JSOW-A (4x) and JDAMs tested. Results are with JDAMS (4x each)

With GroupAttack enabled they do an immense overkill on a single target all the time. If they are set to All then i would definetly disable GroupAttack as otherwise they only attack 1 single target with all weapons they have which imo is totally useless.

When set to Auto the AI is a bit more intelligent and it is debatable if we choose Group Attack or not but i would highly recommend disabling it either way.

Type Armament Target Expend Group Attack Result AttackRuns
Unguided MK-82 4x2 8xZU-23 All on 1/8 1
Unguided MK-82 4x2 8xZU-23 All off 2/8 1
Unguided MK-82 4x2 8xZU-23 Auto on 2/8 2
Unguided MK-82 4x2 8xZU-23 Auto off 4/8 2
Guided GBU-38 4x2 8xZU-23 All on 1/8 1
Guided AGM-154A 4x2 SA-11 Site All on 2/7 1
Guided GBU-38 4x2 8xZU-23 All off 2/8 1
Guided AGM-154A 4x2 SA-11 Site All off 5/7 1
Guided GBU-38 4x2 8xZU-23 Auto on 5/8 1
Guided AGM-154A 4x2 SA-11 Site Auto on 5/7 1
Guided GBU-38 4x2 8xZU-23 Auto off 8/8 1
Guided AGM-154A 4x2 SA-11 Site Auto off 7/7 1

On Auto they are doing multiple attack runs even if AttackQty limit is enabled and set to 1. Found a thread with the same issue on the forum https://forum.dcs.world/topic/274672-how-does-max-attack-quantity-works/

The problem is to identitfy if the Flight uses Unguided or Guided munition.

So to sum up all my testing i would recommend: expend=Auto, groupAttack=False. Downside is that unguided munition can cause the AI to do multiple Attack runs. To prevent this we would have to check if the AI is using unguided or guided munition or set expend=All, groupAttack=False with the downsides of dumb AI :D Still i would highly recommend groupAttack to turn off.

Test mission: attack_group_test.zip

RndName commented 2 years ago

Also this could be interesting for #270 as there my be specific Attack Task profiles for each Aircraft. The default value we choose is always a tradeoff and does not work equally for all missions and aircrafts.

DanAlbert commented 2 years ago

As long as the selected target is one of the radars, group attack sounds like the better option? Best chance of survival and best chance of removing the threat. Group attack disabled might kill more units, but that doesn't matter. The goal is to make the SAM inoperable, not to wipe it completely off the map. Launchers with no radars aren't any more of a threat than a ural. The AI commander won't even bother planning SEAD/DEAD against them.

The exception where that won't work as well is groups with TELARs or with multiple SRs, but those aren't the common case.

RndName commented 2 years ago

As long as the selected target is one of the radars, group attack sounds like the better option? Best chance of survival and best chance of removing the threat. Group attack disabled might kill more units, but that doesn't matter. The goal is to make the SAM inoperable, not to wipe it completely off the map. Launchers with no radars aren't any more of a threat than a ural. The AI commander won't even bother planning SEAD/DEAD against them.

The exception where that won't work as well is groups with TELARs or with multiple SRs, but those aren't the common case.

Yeah i tried a bit of testing with Auto and GroupAttack on. Works quite nice even against an SA-11 with only Telars. The AI does a quite okay job in setting the target priority: they killed all the Launchers for the SA-11 Site. For the SA-2 Site they just focused the SR and TR. Really good overall effects.

So maybe Auto and GroupAttack on is the way to go.

Same thing for Strike and BAI. WDYT, Strike: GroupAttack on, BAI GroupAttack off? Strike has the focus of destroying the specific targets so GroupAttack does a good job even if its an overkill. For BAI i think its better to be off as there we want more kills than ensuring it is 100% killed or am i wrong?

DanAlbert commented 2 years ago

Makes sense for BAI but I suspect we can't do much for strike since each target is a distinct task. Afaict the AI cannot plan ahead.

RndName commented 2 years ago

but I suspect we can't do much for strike

yes we can not set the priority to the AI in regard to the targets but the Bombing task also has the GroupAttack param so at least all pilots attack the targets :) Gonna update the PR accordingly.

For the future when we come to the point of mission specific flight plans it could also be of interest to add customization possibilites to these task params from the UI. but thats for the future :D

Starfire13 commented 2 years ago

Attaching save file with kamikaze SEAD flights as Rndname requested. There are 2 packages of 8 Hornets each attacking two different S-300 sites, as well as a whole bunch of other flights attacking a variety of different SAM sites. On the whole, they don't do very well.

Capture

Vegas Nerve #3776.zip