ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

AI can't fire mortars when ammo handling is enabled

Open Cyruz143 opened this issue 6 years ago • 9 comments

Arma 3 Version: 1.80 (stable) CBA Version: 3.6.0 (stable) ACE3 Version: 3.12.1 (stable)

Mods:

- CBA_A3
- ace

Description:

  • In the CBA settings having force force ace_mk6mortar_useAmmoHandling = true; breaks AI using mortars.

Steps to reproduce:

test_mortar_fnc = {
    params ["_unit","_target"]
    private _mortar = vehicle _unit;

    if (_target inRangeOfArtillery [[_unit], "8Rnd_82mm_Mo_shells"] ) then {
        _mortar setVehicleAmmoDef 1;
        _mortar setVehicleAmmo 1;
        _unit doArtilleryFire [_target, "8Rnd_82mm_Mo_shells", 3];
        diag_log format ["MORTARS -- %1 firing at %2", _unit, _target];
        systemChat format ["MORTARS -- %1 firing at %2", _unit, _target];
        uiSleep 15;
    } else {
        diag_log format ["MORTARS -- %2 out of range of %1", _unit, _target];
        systemChat format ["MORTARS -- %2 out of range of %1", _unit, _target];
        uiSleep 15;
    };
};

[mortarGunner, getMarkerPos "testTarget"] spawn test_mortar_fnc;

Drop that in init.sqf, place a vanilla unit named mortarGunner on a vanilla mortar and put a marker down called testTarget.

Where did the issue occur?

  • Editor (Singleplayer)

CBA Settings:

  • https://github.com/Cyruz143/ark_inhouse/blob/master/addons/cba_settings/cba_settings.sqf

Was previously set to force force ace_mk6mortar_useAmmoHandling = true;

RPT log file:

  • Doesn't log anything other than the logging I've provided in the test function.

Workaround

  • Changed CBA setting to force ace_mk6mortar_useAmmoHandling = true; and in the mission file itself I created a cba_settings.sqf with force ace_mk6mortar_useAmmoHandling = false;. Although this means players can't use the feature when AI need to use mortars so it's not great.

Cyruz143 avatar Mar 01 '18 11:03 Cyruz143

Same issue is true for disable artillery computer.

MisterHLunaticwraith avatar Apr 06 '18 09:04 MisterHLunaticwraith

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 18 '18 12:11 stale[bot]

Still an issue? I think there was once a PR to fix this? Not sure. If it's still a thing it should be labeled as bug.

dedmen avatar Nov 18 '18 12:11 dedmen

Issue still occurs with Arma 1.88 and ACE 3.12.5. Didn't find any workaround

Tanin69 avatar Dec 08 '18 16:12 Tanin69

Issue still occurs with Arma 1.88 and ACE 3.12.5. Didn't find any workaround

The workaround is in my initial report but means it's either you have manual ammo handling or the AI can fire mortars, but not both.

Cyruz143 avatar Dec 10 '18 10:12 Cyruz143

I saw your workaround Cyruz143. But, as you wrote, it doesn't work if you want to use manual handling AND AI mortar...

Tanin69 avatar Dec 10 '18 23:12 Tanin69

Any progress on that? It's really annoying to be unable to turn that off. force ace_mk6mortar_useAmmoHandling = false just doesn't work.

genjonakasone avatar Nov 17 '20 17:11 genjonakasone

Any progress on this again? This still completely breaks AmmoHandling if you are just using it in PvE missions and want Mk6 like mortars to work for the AI, quite frustrating this is nearly 5 years old now too.

Spiretail avatar Jun 25 '23 13:06 Spiretail

Partially addressed by https://github.com/acemod/ACE3/pull/9258. Full fix in #9238.

LinkIsGrim avatar Jul 13 '23 17:07 LinkIsGrim