ACE3
ACE3 copied to clipboard
AI can't fire mortars when ammo handling is enabled
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 withforce ace_mk6mortar_useAmmoHandling = false;
. Although this means players can't use the feature when AI need to use mortars so it's not great.
Same issue is true for disable artillery computer.
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.
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.
Issue still occurs with Arma 1.88 and ACE 3.12.5. Didn't find any workaround
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.
I saw your workaround Cyruz143. But, as you wrote, it doesn't work if you want to use manual handling AND AI mortar...
Any progress on that? It's really annoying to be unable to turn that off. force ace_mk6mortar_useAmmoHandling = false
just doesn't work.
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.
Partially addressed by https://github.com/acemod/ACE3/pull/9258. Full fix in #9238.