mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add spare barrel to misc items (#8374)
This commit is contained in:
parent
56123591a0
commit
2944064c06
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -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), {
|
||||
|
Loading…
Reference in New Issue
Block a user