mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
b4c72d8255
commit
60143be55f
13
addons/reload/ACE_Arsenal_Stats.hpp
Normal file
13
addons/reload/ACE_Arsenal_Stats.hpp
Normal 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}};
|
||||
};
|
||||
};
|
@ -14,6 +14,7 @@ class CfgPatches {
|
||||
};
|
||||
};
|
||||
|
||||
#include "ACE_Arsenal_Stats.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgMagazines.hpp"
|
||||
#include "CfgEventHandlers.hpp"
|
||||
|
13
addons/reloadlaunchers/ACE_Arsenal_Stats.hpp
Normal file
13
addons/reloadlaunchers/ACE_Arsenal_Stats.hpp
Normal 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}, {}};
|
||||
};
|
||||
};
|
@ -14,6 +14,7 @@ class CfgPatches {
|
||||
};
|
||||
};
|
||||
|
||||
#include "ACE_Arsenal_Stats.hpp"
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgWeapons.hpp"
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user