Skip to content

Commit

Permalink
proper inhertiance
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Jul 25, 2019
1 parent 72a3af4 commit 8e24cb6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/jam/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CfgWeapons {
magazineWell[] += {"CBA_65x39_MX","CBA_65x39_MX_XL"};

class GL_3GL_F: UGL_F {
magazineWell[] += {"CBA_40mm_3GL","CBA_40mm_M203","CBA_40mm_EGLM"}; // [] in vanilla
// handled in subconfig because of limitations of +=
};
};

Expand Down
30 changes: 30 additions & 0 deletions addons/jam/subConfig/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include "\x\cba\addons\jam\script_component.hpp"
#undef COMPONENT
#define COMPONENT cba_jam_subConfig

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
magazines[] = {};
ammo[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_jam"};
version = VERSION;
authors[] = {"Robalo"};
};
};


class CfgWeapons {
class Rifle_Base_F;
class UGL_F;
class arifle_MX_Base_F: Rifle_Base_F {
class GL_3GL_F: UGL_F {
magazineWell[] += {"CBA_40mm_3GL","CBA_40mm_M203","CBA_40mm_EGLM"};
};
};
};

0 comments on commit 8e24cb6

Please sign in to comment.