Guest User

Untitled

a guest
May 27th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. class CfgPatches {
  2. class proxymag_examples {
  3. magazines[] = {"proxymag_30rnd_556x45_emag"};
  4. requiredVersion = 1.82;
  5. requiredAddons[] = {"A3_Data_F_Tank_Loadorder"};
  6. name = "Proxymag example EMAG";
  7. author = da12thMonkey;
  8. };
  9. };
  10.  
  11. class CfgMagazines {
  12. class 30Rnd_556x45_Stanag;
  13. class proxymag_30rnd_556x45_emag : 30Rnd_556x45_Stanag {
  14. scope = 2;
  15. author = "da12thMonkey, tigg";
  16. displayname = "30rnd EMAG 5.56x45mm";
  17. picture = \proxymag_example\data\inventory\proxymag_30rnd_556x45_emag_ca.paa;
  18. model = proxymag_example\tigg_emag_ground;
  19. //Model as shown when the mag is dropped on the ground
  20. modelSpecial = proxymag_example\tigg_emag;
  21. //Model as loaded in to the weapon. Must have autocenter 0 in geometry LOD
  22. modelSpecialIsProxy = 1;
  23. //Very important: Otherwise, the whole weapon model switches to the magazine modelSpecial alone
  24. /*
  25. Texture variants of magazine classes can be made if the modelSpecial has sections set up properly, with model.cfg.
  26. However, it seems the dropped magazine model requires separate .p3ds to display different textures
  27. */
  28. hiddenSelections[] = {"camo"};
  29. hiddenSelectionsTextures[] = {"proxymag_example\data\emag_co.paa"};
  30. };
  31. };
  32.  
  33. /*
  34. Below we can make the magazine compatible with all weapons that would use magazineWell[] = {"STANAG_556x45",...,...};,
  35. to define compatible magazine groups in the array.
  36. Otherwise, explicit compatibility with select weapons is done using old magazines[] array in cfgWeapons class
  37. */
  38.  
  39. class CfgMagazineWells {
  40. class STANAG_556x45 {
  41. proxymag_examples[] = {
  42. "proxymag_30rnd_556x45_emag"
  43. };
  44. };
  45. };
  46.  
  47. class CfgWeapons {
  48. class mk20_base_F : Rifle_Base_F {
  49. magazines[] = {30Rnd_556x45_Stanag}; // keep non empty, some script (arsenal) reed it only from here
  50. magazineWell[] = {Stanag556x45}; // allows use of all magazines that use the Stanag556x45 magwell
  51. };
  52. };
Add Comment
Please, Sign In to add comment