Skip to content

Commit

Permalink
Add spare barrel to misc items (#8374)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkIsGrim authored Aug 23, 2021
1 parent 5612359 commit 2944064
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions addons/overheating/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
};
3 changes: 3 additions & 0 deletions addons/overheating/XEH_postInit.sqf
Original file line number Diff line number Diff line change
@@ -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), {
Expand Down

0 comments on commit 2944064

Please sign in to comment.