Arsenal - Add stats for buddy-loading launchers and belt linking (#9470)

* reload launchers - show if enable arsenal stat

* Apply suggestions from code review

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Add ACE_isBelt stat

* buddy

---------

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
PabstMirror 2023-10-09 18:20:23 -05:00 committed by GitHub
parent b4c72d8255
commit 60143be55f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,13 @@
class EGVAR(arsenal,stats) {
class statBase;
class ACE_isBelt: statBase {
scope = 2;
priority = -1;
stats[] = {"ACE_isBelt"};
displayName = CSTRING(LinkBelt);
showText = 1;
textStatement = QUOTE(localize QUOTE(ELSTRING(Common,Enabled)));
condition = QUOTE(params[ARR_2('_stat', '_config')]; (getNumber (_config >> _stat select 0)) == 1);
tabs[] = {{}, {4}};
};
};

View File

@ -14,6 +14,7 @@ class CfgPatches {
};
};
#include "ACE_Arsenal_Stats.hpp"
#include "CfgVehicles.hpp"
#include "CfgMagazines.hpp"
#include "CfgEventHandlers.hpp"

View File

@ -0,0 +1,13 @@
class EGVAR(arsenal,stats) {
class statBase;
class ADDON: statBase {
scope = 2;
priority = -1;
stats[] = {QGVAR(enabled)};
displayName = CSTRING(featureDescription);
showText = 1;
textStatement = QUOTE(localize QUOTE(ELSTRING(Common,Enabled)));
condition = QUOTE(params[ARR_2('_stat', '_config')]; (getNumber (_config >> _stat select 0)) == 1);
tabs[] = {{2}, {}};
};
};

View File

@ -14,6 +14,7 @@ class CfgPatches {
};
};
#include "ACE_Arsenal_Stats.hpp"
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"

View File

@ -107,5 +107,8 @@
<Polish>Wyrzutnia nie mogła być załadowana</Polish>
<Korean>발사기를 장전할 수 없습니다.</Korean>
</Key>
<Key ID="STR_ACE_ReloadLaunchers_featureDescription">
<English>Buddy Loading</English>
</Key>
</Package>
</Project>