mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
empty ammo from advanced assembly mortars
This commit is contained in:
parent
0d19b994ca
commit
95a89f3bee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user