Add spare barrel to misc items (#8374)

This commit is contained in:
Salluci 2021-08-23 14:43:05 -03:00 committed by GitHub
parent 56123591a0
commit 2944064c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -38,4 +38,16 @@ class CfgWeapons {
class LMG_Mk200_F : Rifle_Long_Base_F {
GVAR(allowSwapBarrel) = 1;
};
class ACE_ItemCore;
class CBA_MiscItem_ItemInfo;
class ACE_SpareBarrel_Item: ACE_ItemCore {
displayName = CSTRING(SpareBarrelName);
author = ECSTRING(common,ACETeam);
scope = 2;
descriptionshort = CSTRING(SpareBarrelDescription);
picture = QUOTE(PATHTOF(UI\spare_barrel_ca.paa));
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 60;
};
};
};

View File

@ -1,6 +1,9 @@
// by esteldunedain
#include "script_component.hpp"
// Spare barrel item to magazine
["ACE_SpareBarrel_Item", "ACE_SpareBarrel"] call EFUNC(common,registerItemReplacement);
if (hasInterface) then {
// Add keybinds
["ACE3 Weapons", QGVAR(unjamWeapon), localize LSTRING(UnjamWeapon), {