mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Minor cleanup
This commit is contained in:
parent
da210890ac
commit
a4661f3280
@ -63,7 +63,7 @@ private _isBeltLinking = false;
|
|||||||
};
|
};
|
||||||
private _maxMagazineAmmo = _desiredAmmo min getNumber (_cfgMagazines >> _xMag >> "count");
|
private _maxMagazineAmmo = _desiredAmmo min getNumber (_cfgMagazines >> _xMag >> "count");
|
||||||
if (_xAmmo >= _maxMagazineAmmo) exitWith {
|
if (_xAmmo >= _maxMagazineAmmo) exitWith {
|
||||||
[false, _loadedMag, -6, false] breakOut "main"; // Already at capicity
|
[false, _loadedMag, -6, false] breakOut "main"; // Already at capacity
|
||||||
};
|
};
|
||||||
_ammoNeeded = _maxMagazineAmmo - _xAmmo;
|
_ammoNeeded = _maxMagazineAmmo - _xAmmo;
|
||||||
_isBeltLinking = true;
|
_isBeltLinking = true;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
* Return Value:
|
* Return Value:
|
||||||
* Mags <ARRAY>
|
* Mags <ARRAY>
|
||||||
* [Carry Magazine <STRING>, Turret Path <ARRAY>, Load Info <NUMBER>, Magazine Source <OBJECT>]
|
* [Carry Magazine <STRING>, Turret Path <ARRAY>, Load Info <ARRAY>, Magazine Source <OBJECT>, Unit <OBJECT>, Magazine Ammo <NUMBER>]
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* [cursorObject, player] call ace_csw_fnc_reload_getLoadableMagazines
|
* [cursorObject, player] call ace_csw_fnc_reload_getLoadableMagazines
|
||||||
|
@ -68,7 +68,6 @@ if (hasInterface && {!(_typeOf in GVAR(initializedStaticTypes))}) then {
|
|||||||
[_typeOf, 0, ["ACE_MainActions"], _disassembleAction] call EFUNC(interact_menu,addActionToClass);
|
[_typeOf, 0, ["ACE_MainActions"], _disassembleAction] call EFUNC(interact_menu,addActionToClass);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
private _ammoActionPath = [];
|
private _ammoActionPath = [];
|
||||||
private _magazineLocation = getText (_configOf >> QUOTE(ADDON) >> "magazineLocation");
|
private _magazineLocation = getText (_configOf >> QUOTE(ADDON) >> "magazineLocation");
|
||||||
private _condition = { //IGNORE_PRIVATE_WARNING ["_target", "_player"];
|
private _condition = { //IGNORE_PRIVATE_WARNING ["_target", "_player"];
|
||||||
|
Loading…
Reference in New Issue
Block a user