config.cpp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. #include "../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class macro_patch_name(magazines)
  5. {
  6. author=RD501;
  7. addonRootClass= macro_patch_name(weapons)
  8. requiredAddons[]=
  9. {
  10. macro_patch_name(weapons)
  11. };
  12. requiredVersion=0.1;
  13. units[]={};
  14. weapons[]={};
  15. };
  16. };
  17. class CfgMagazines
  18. {
  19. class 3AS_45Rnd_EC50_Mag;
  20. class 1Rnd_HE_Grenade_shell;
  21. class macro_new_mag(2mw,30) : 3AS_45Rnd_EC50_Mag
  22. {
  23. displayName="30 Round 2MW Cell";
  24. count = 30;
  25. ammo=macro_new_ammo(2mw)
  26. typicalSpeed=400;
  27. descriptionShort="Low power magazine";
  28. };
  29. class macro_new_mag(5mw,60) : 3AS_45Rnd_EC50_Mag
  30. {
  31. displayName="60 Round 5MW Cell";
  32. count = 60;
  33. ammo=macro_new_ammo(5mw)
  34. typicalSpeed=400;
  35. descriptionShort="Low power magazine";
  36. };
  37. class macro_new_mag(5mw,10) : 3AS_45Rnd_EC50_Mag
  38. {
  39. displayName="10 Round 5MW Cell";
  40. count = 10;
  41. ammo=macro_new_ammo(5mw)
  42. typicalSpeed=400;
  43. descriptionShort="Low power magazine";
  44. };
  45. class macro_new_mag(10mw,30) : 3AS_45Rnd_EC50_Mag
  46. {
  47. displayName="30 Round 10MW Cell";
  48. count = 30;
  49. ammo=macro_new_ammo(10mw)
  50. typicalSpeed=450;
  51. descriptionShort="Medium power magazine";
  52. };
  53. class macro_new_mag(10mw,400) : 3AS_45Rnd_EC50_Mag
  54. {
  55. displayName="400 Round 10MW Cell";
  56. count = 400;
  57. ammo=macro_new_ammo(10mw)
  58. typicalSpeed=450;
  59. descriptionShort="Medium power box magazine";
  60. };
  61. class macro_new_mag(20mw,20) : 3AS_45Rnd_EC50_Mag
  62. {
  63. displayName="20 Round20MW Cell";
  64. count = 20;
  65. ammo=macro_new_ammo(20mw)
  66. typicalSpeed=500;
  67. descriptionShort="Medium power magazine";
  68. };
  69. class macro_new_mag(20mw,240) : 3AS_45Rnd_EC50_Mag
  70. {
  71. displayName="240 Round 20MW Cell";
  72. count = 240;
  73. ammo=macro_new_ammo(20mw)
  74. typicalSpeed=500;
  75. descriptionShort="Medium power box magazine";
  76. };
  77. class macro_new_mag(30mw,10) : 3AS_45Rnd_EC50_Mag
  78. {
  79. displayName="10 Round 30MW Cell";
  80. count = 10;
  81. ammo=macro_new_ammo(30mw)
  82. typicalSpeed=800;
  83. descriptionShort="High power magazine";
  84. };
  85. class macro_new_mag(40mw,5) : 3AS_45Rnd_EC50_Mag
  86. {
  87. displayName="5 Round 40MW Cell";
  88. count = 5;
  89. ammo=macro_new_ammo(40mw)
  90. typicalSpeed=1100;
  91. descriptionShort="High power magazine";
  92. };
  93. class macro_new_mag(50mw,10) : 3AS_45Rnd_EC50_Mag
  94. {
  95. displayName="10 Round 50MW Cell";
  96. count = 10;
  97. ammo=macro_new_ammo(20mw)
  98. typicalSpeed=1100;
  99. descriptionShort="High power magazine";
  100. };
  101. class macro_new_mag(50mw,8) : 3AS_45Rnd_EC50_Mag
  102. {
  103. displayName="8 Round 50MW Cell";
  104. count = 8;
  105. ammo=macro_new_ammo(20mw)
  106. typicalSpeed=1100;
  107. descriptionShort="High power magazine";
  108. };
  109. class macro_new_mag(UGL_HE,3):1Rnd_HE_Grenade_shell
  110. {
  111. displayName = "3 Rd HE DC-15A Grenades";
  112. displayNameShort = "3 Rnd HE DC-15A";
  113. count=3;
  114. ammo = macro_new_ammo(UGL_HE)
  115. descriptionShort = "3Rd HE DC-15A Grenade";
  116. }
  117. class macro_new_mag(UGL_AP,2):1Rnd_HE_Grenade_shell
  118. {
  119. displayName = "2 Rd AP DC-15A Grenades";
  120. displayNameShort = "2 Rd AP DC-15A";
  121. count=2;
  122. ammo = macro_new_ammo(UGL_HE)
  123. descriptionShort = "2Rd AP DC-15A Grenade";
  124. }
  125. class macro_new_mag(UGL_EMP,1) : 1Rnd_HE_Grenade_shell
  126. {
  127. ammo = "RD501_grenade_emp_ammo";
  128. count = 1;
  129. descriptionShort = "1Rnd EMP DC-15A Grenade";
  130. displayName = "1 Rnd EMP DC-15A Grenades";
  131. displayNameShort = "1Rnd EMP DC-15A";
  132. //initSpeed = 120;
  133. mass = 50;
  134. maxLeadSpeed = 25;
  135. maxThrowHoldTime = 2;
  136. maxThrowIntensityCoef = 1.4;
  137. minThrowIntensityCoef = 0.3;
  138. model = "\thermalD\EMP_Grenade_ammo.p3d";
  139. modelSpecial = "";
  140. nameSound = "";
  141. picture = "\thermalD\flash_x_ca.paa";
  142. quickReload = 0 ;
  143. reloadAction = "";
  144. scope = 2;
  145. selectionFireAnim = "zasleh";
  146. simulation = "ProxyMagazines";
  147. type = 16;
  148. useAction = 0;
  149. useActionTitle = "";
  150. value = 1;
  151. weaponpoolavailable = 1;
  152. weight = 0;
  153. class InventoryPlacements;
  154. class Library
  155. {
  156. libTextDesc = "";
  157. };
  158. };
  159. };