config.cpp 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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 DCStun_Mag;
  22. class 1Rnd_Smoke_Grenade_shell;
  23. class UGL_FlareWhite_F;
  24. ///Rifle/Pistol Magazines
  25. class macro_new_mag(2mw,30) : 3AS_45Rnd_EC50_Mag
  26. {
  27. displayName="30 Round 2MW Cell";
  28. count = 30;
  29. ammo=macro_new_ammo(2mw)
  30. typicalSpeed=400;
  31. descriptionShort="Low power magazine";
  32. };
  33. class macro_new_mag(5mw,60) : 3AS_45Rnd_EC50_Mag
  34. {
  35. displayName="60 Round 5MW Cell";
  36. count = 60;
  37. ammo=macro_new_ammo(5mw)
  38. typicalSpeed=400;
  39. descriptionShort="Low power magazine";
  40. };
  41. class macro_new_mag(5mw,10) : 3AS_45Rnd_EC50_Mag
  42. {
  43. displayName="10 Round 5MW Cell";
  44. count = 10;
  45. ammo=macro_new_ammo(5mw)
  46. typicalSpeed=400;
  47. descriptionShort="Low power magazine";
  48. };
  49. class macro_new_mag(10mw,30) : 3AS_45Rnd_EC50_Mag
  50. {
  51. displayName="30 Round 10MW Cell";
  52. count = 30;
  53. ammo=macro_new_ammo(10mw)
  54. typicalSpeed=450;
  55. descriptionShort="Medium power magazine";
  56. };
  57. class macro_new_mag(10mw,400) : 3AS_45Rnd_EC50_Mag
  58. {
  59. displayName="400 Round 10MW Cell";
  60. count = 400;
  61. ammo=macro_new_ammo(10mw)
  62. typicalSpeed=450;
  63. descriptionShort="Medium power box magazine";
  64. };
  65. class macro_new_mag(20mw,20) : 3AS_45Rnd_EC50_Mag
  66. {
  67. displayName="20 Round 20MW Cell";
  68. count = 20;
  69. ammo=macro_new_ammo(20mw)
  70. typicalSpeed=500;
  71. descriptionShort="Medium power magazine";
  72. };
  73. class macro_new_mag(20mwup,20) : 3AS_45Rnd_EC50_Mag
  74. {
  75. displayName="20 Round 20MW UP Cell";
  76. count = 20;
  77. ammo=macro_new_ammo(20mwup)
  78. typicalSpeed=500;
  79. descriptionShort="Medium power unstable plasma magazine";
  80. };
  81. class macro_new_mag(20mwdp,20) : 3AS_45Rnd_EC50_Mag
  82. {
  83. displayName="20 Round 20MW DP Cell";
  84. count = 20;
  85. ammo=macro_new_ammo(20mwdp)
  86. typicalSpeed=700;
  87. descriptionShort="Medium power dense plasma magazine";
  88. };
  89. class macro_new_mag(20mw,240) : 3AS_45Rnd_EC50_Mag
  90. {
  91. displayName="240 Round 20MW Cell";
  92. count = 240;
  93. ammo=macro_new_ammo(20mw)
  94. typicalSpeed=500;
  95. descriptionShort="Medium power box magazine";
  96. };
  97. class macro_new_mag(30mw,10) : 3AS_45Rnd_EC50_Mag
  98. {
  99. displayName="10 Round 30MW Cell";
  100. count = 10;
  101. ammo=macro_new_ammo(30mw)
  102. typicalSpeed=800;
  103. descriptionShort="High power magazine";
  104. };
  105. class macro_new_mag(40mw,5) : 3AS_45Rnd_EC50_Mag
  106. {
  107. displayName="5 Round 40MW Cell";
  108. count = 5;
  109. ammo=macro_new_ammo(40mw)
  110. typicalSpeed=1100;
  111. descriptionShort="High power magazine";
  112. };
  113. class macro_new_mag(50mw,10) : 3AS_45Rnd_EC50_Mag
  114. {
  115. displayName="10 Round 50MW Cell";
  116. count = 10;
  117. ammo=macro_new_ammo(50mw)
  118. typicalSpeed=1100;
  119. descriptionShort="High power magazine";
  120. };
  121. class macro_new_mag(50mw,8) : 3AS_45Rnd_EC50_Mag
  122. {
  123. displayName="8 Round 50MW Cell";
  124. count = 8;
  125. ammo=macro_new_ammo(50mw)
  126. typicalSpeed=1100;
  127. descriptionShort="High power magazine";
  128. };
  129. class macro_new_mag(stun,5):DCStun_Mag
  130. {
  131. displayName="5 Round Stun Cell";
  132. descriptionShort = "5 Round Stun Cell";
  133. count=5;
  134. picture="\MRC\JLTS\weapons\Core\data\ui\stun_mag_ui_ca.paa";
  135. };
  136. ///
  137. ///Grenade Launcher Magazines
  138. ///
  139. class macro_new_mag(UGL_HE,3):1Rnd_HE_Grenade_shell
  140. {
  141. displayName = "3 Rd HE DC-15A Grenades";
  142. displayNameShort = "3 Rnd HE DC-15A";
  143. count=3;
  144. ammo = macro_new_ammo(UGL_HE)
  145. descriptionShort = "3Rd HE DC-15A Grenade";
  146. }
  147. class macro_new_mag(UGL_AP,2):1Rnd_HE_Grenade_shell
  148. {
  149. displayName = "2 Rd AP DC-15A Grenades";
  150. displayNameShort = "2 Rd AP DC-15A";
  151. count=2;
  152. ammo = macro_new_ammo(UGL_HE)
  153. descriptionShort = "2Rd AP DC-15A Grenade";
  154. }
  155. class macro_new_mag(UGL_EMP,1) : 1Rnd_HE_Grenade_shell
  156. {
  157. ammo = "RD501_grenade_emp_ammo";
  158. count = 1;
  159. descriptionShort = "1Rnd EMP DC-15A Grenade";
  160. displayName = "1 Rnd EMP DC-15A Grenades";
  161. displayNameShort = "1Rnd EMP DC-15A";
  162. mass = 50;
  163. maxLeadSpeed = 25;
  164. maxThrowHoldTime = 2;
  165. maxThrowIntensityCoef = 1.4;
  166. minThrowIntensityCoef = 0.3;
  167. model = "\thermalD\EMP_Grenade_ammo.p3d";
  168. modelSpecial = "";
  169. nameSound = "";
  170. picture = "\thermalD\flash_x_ca.paa";
  171. quickReload = 0 ;
  172. reloadAction = "";
  173. scope = 2;
  174. selectionFireAnim = "zasleh";
  175. simulation = "ProxyMagazines";
  176. type = 16;
  177. useAction = 0;
  178. useActionTitle = "";
  179. value = 1;
  180. weaponpoolavailable = 1;
  181. weight = 0;
  182. class InventoryPlacements;
  183. class Library
  184. {
  185. libTextDesc = "";
  186. };
  187. }
  188. class macro_new_mag(UGL_HE,6):1Rnd_HE_Grenade_shell
  189. {
  190. displayName = "6 Rd HE RGL6 Grenades";
  191. displayNameShort = "6 Rnd HE RGL6";
  192. count=6;
  193. ammo = macro_new_ammo(UGL_HE)
  194. descriptionShort = "6Rd HE RGL6 Grenade";
  195. }
  196. class macro_new_mag(UGL_AP,6):1Rnd_HE_Grenade_shell
  197. {
  198. displayName = "6 Rd AP RGL6 Grenades";
  199. displayNameShort = "6 Rd AP RGL6";
  200. count=6;
  201. ammo = macro_new_ammo(UGL_HE)
  202. descriptionShort = "6Rd AP RGL6 Grenade";
  203. }
  204. class macro_new_mag(UGL_EMP,6) : 1Rnd_HE_Grenade_shell
  205. {
  206. ammo = "RD501_grenade_emp_ammo";
  207. count = 6;
  208. descriptionShort = "6Rnd EMP RGL6 Grenade";
  209. displayName = "6 Rnd EMP RGL6 Grenades";
  210. displayNameShort = "6Rnd EMP RGL6";
  211. mass = 50;
  212. maxLeadSpeed = 25;
  213. maxThrowHoldTime = 2;
  214. maxThrowIntensityCoef = 1.4;
  215. minThrowIntensityCoef = 0.3;
  216. model = "\thermalD\EMP_Grenade_ammo.p3d";
  217. modelSpecial = "";
  218. nameSound = "";
  219. picture = "\thermalD\flash_x_ca.paa";
  220. quickReload = 0 ;
  221. reloadAction = "";
  222. scope = 2;
  223. selectionFireAnim = "zasleh";
  224. simulation = "ProxyMagazines";
  225. type = 16;
  226. useAction = 0;
  227. useActionTitle = "";
  228. value = 1;
  229. weaponpoolavailable = 1;
  230. weight = 0;
  231. class InventoryPlacements;
  232. class Library
  233. {
  234. libTextDesc = "";
  235. };
  236. };
  237. class macro_new_mag(UGL_Smoke,6):1Rnd_Smoke_Grenade_shell
  238. {
  239. displayName = "6 Rd White Smoke RGL6 Grenades";
  240. displayNameShort = "6 Rnd White Smoke RGL6";
  241. count=6;
  242. ammo = "G_40mm_Smoke";
  243. descriptionShort = "6Rd White Smoke RGL6 Grenade";
  244. };
  245. class macro_new_mag(UGL_Flare,6):UGL_FlareWhite_F
  246. {
  247. displayName = "6 Rd White Flare RGL6 Grenades";
  248. displayNameShort = "6 Rnd White Flare RGL6";
  249. count=6;
  250. ammo = "F_40mm_White";
  251. descriptionShort = "6Rd White Flare RGL6 Grenade";
  252. };
  253. };