empty ammo from advanced assembly mortars

This commit is contained in:
Salluci 2023-07-24 01:55:32 +03:00
parent 0d19b994ca
commit 95a89f3bee

View File

@ -8,9 +8,13 @@ PREP_RECOMPILE_END;
#include "initSettings.sqf"
["Mortar_01_base_F", "Init", { // override CSW's ammo handling with Mk6 setting
// Override CSW's ammo handling with Mk6 setting for non-advanced assembly mortars
["Mortar_01_base_F", "Init", {
params ["_mortar"];
_mortar setVariable [QEGVAR(csw,assemblyMode), [0, 3] select GVAR(useAmmoHandling)];
if (GVAR(useAmmoHandling)) exitWith {};
if ((_mortar getVariable [QEGVAR(csw,assemblyMode), 3]) isEqualTo 3) then {
_mortar setVariable [QEGVAR(csw,assemblyMode), 0];
};
}] call CBA_fnc_addClassEventHandler;
ADDON = true;