Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CfgPatches {
- class proxymag_examples {
- magazines[] = {"proxymag_30rnd_556x45_emag"};
- requiredVersion = 1.82;
- requiredAddons[] = {"A3_Data_F_Tank_Loadorder"};
- name = "Proxymag example EMAG";
- author = da12thMonkey;
- };
- };
- class CfgMagazines {
- class 30Rnd_556x45_Stanag;
- class proxymag_30rnd_556x45_emag : 30Rnd_556x45_Stanag {
- scope = 2;
- author = "da12thMonkey, tigg";
- displayname = "30rnd EMAG 5.56x45mm";
- picture = \proxymag_example\data\inventory\proxymag_30rnd_556x45_emag_ca.paa;
- model = proxymag_example\tigg_emag_ground;
- //Model as shown when the mag is dropped on the ground
- modelSpecial = proxymag_example\tigg_emag;
- //Model as loaded in to the weapon. Must have autocenter 0 in geometry LOD
- modelSpecialIsProxy = 1;
- //Very important: Otherwise, the whole weapon model switches to the magazine modelSpecial alone
- /*
- Texture variants of magazine classes can be made if the modelSpecial has sections set up properly, with model.cfg.
- However, it seems the dropped magazine model requires separate .p3ds to display different textures
- */
- hiddenSelections[] = {"camo"};
- hiddenSelectionsTextures[] = {"proxymag_example\data\emag_co.paa"};
- };
- };
- /*
- Below we can make the magazine compatible with all weapons that would use magazineWell[] = {"STANAG_556x45",...,...};,
- to define compatible magazine groups in the array.
- Otherwise, explicit compatibility with select weapons is done using old magazines[] array in cfgWeapons class
- */
- class CfgMagazineWells {
- class STANAG_556x45 {
- proxymag_examples[] = {
- "proxymag_30rnd_556x45_emag"
- };
- };
- };
- class CfgWeapons {
- class mk20_base_F : Rifle_Base_F {
- magazines[] = {30Rnd_556x45_Stanag}; // keep non empty, some script (arsenal) reed it only from here
- magazineWell[] = {Stanag556x45}; // allows use of all magazines that use the Stanag556x45 magwell
- };
- };
Add Comment
Please, Sign In to add comment