config.cpp 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. displayNameShort = "5 Round Stun Cell";
  134. count=5;
  135. picture="\MRC\JLTS\weapons\Core\data\ui\stun_mag_ui_ca.paa";
  136. };
  137. class macro_new_mag(pistolstun,5):DCStun_Mag
  138. {
  139. displayName="5 Round Stun Cell";
  140. descriptionShort = "5 Round Stun Cell";
  141. displayNameShort = "5 Round Stun Cell";
  142. count=5;
  143. picture="\MRC\JLTS\weapons\Core\data\ui\stun_mag_ui_ca.paa";
  144. };
  145. ///
  146. ///Grenade Launcher Magazines
  147. ///
  148. class macro_new_mag(UGL_HE,3):1Rnd_HE_Grenade_shell
  149. {
  150. displayName = "3 Rd HE DC-15A Grenades";
  151. displayNameShort = "3 Rnd HE DC-15A";
  152. count=3;
  153. ammo = macro_new_ammo(UGL_HE)
  154. descriptionShort = "3Rd HE DC-15A Grenade";
  155. }
  156. class macro_new_mag(UGL_AP,2):1Rnd_HE_Grenade_shell
  157. {
  158. displayName = "2 Rd AP DC-15A Grenades";
  159. displayNameShort = "2 Rd AP DC-15A";
  160. count=2;
  161. ammo = macro_new_ammo(UGL_HE)
  162. descriptionShort = "2Rd AP DC-15A Grenade";
  163. }
  164. class macro_new_mag(UGL_EMP,1) : 1Rnd_HE_Grenade_shell
  165. {
  166. ammo = "RD501_grenade_emp_ammo";
  167. count = 1;
  168. descriptionShort = "1Rnd EMP DC-15A Grenade";
  169. displayName = "1 Rnd EMP DC-15A Grenades";
  170. displayNameShort = "1Rnd EMP DC-15A";
  171. mass = 50;
  172. maxLeadSpeed = 25;
  173. maxThrowHoldTime = 2;
  174. maxThrowIntensityCoef = 1.4;
  175. minThrowIntensityCoef = 0.3;
  176. model = "\thermalD\EMP_Grenade_ammo.p3d";
  177. modelSpecial = "";
  178. nameSound = "";
  179. picture = "\thermalD\flash_x_ca.paa";
  180. quickReload = 0 ;
  181. reloadAction = "";
  182. scope = 2;
  183. selectionFireAnim = "zasleh";
  184. simulation = "ProxyMagazines";
  185. type = 16;
  186. useAction = 0;
  187. useActionTitle = "";
  188. value = 1;
  189. weaponpoolavailable = 1;
  190. weight = 0;
  191. class InventoryPlacements;
  192. class Library
  193. {
  194. libTextDesc = "";
  195. };
  196. }
  197. class macro_new_mag(UGL_HE,6):1Rnd_HE_Grenade_shell
  198. {
  199. displayName = "6 Rd HE RGL6 Grenades";
  200. displayNameShort = "6 Rnd HE RGL6";
  201. count=6;
  202. ammo = macro_new_ammo(UGL_HE)
  203. descriptionShort = "6Rd HE RGL6 Grenade";
  204. }
  205. class macro_new_mag(UGL_AP,6):1Rnd_HE_Grenade_shell
  206. {
  207. displayName = "6 Rd AP RGL6 Grenades";
  208. displayNameShort = "6 Rd AP RGL6";
  209. count=6;
  210. ammo = macro_new_ammo(UGL_HE)
  211. descriptionShort = "6Rd AP RGL6 Grenade";
  212. }
  213. class macro_new_mag(UGL_EMP,6) : 1Rnd_HE_Grenade_shell
  214. {
  215. ammo = "RD501_grenade_emp_ammo";
  216. count = 6;
  217. descriptionShort = "6Rnd EMP RGL6 Grenade";
  218. displayName = "6 Rnd EMP RGL6 Grenades";
  219. displayNameShort = "6Rnd EMP RGL6";
  220. mass = 50;
  221. maxLeadSpeed = 25;
  222. maxThrowHoldTime = 2;
  223. maxThrowIntensityCoef = 1.4;
  224. minThrowIntensityCoef = 0.3;
  225. model = "\thermalD\EMP_Grenade_ammo.p3d";
  226. modelSpecial = "";
  227. nameSound = "";
  228. picture = "\thermalD\flash_x_ca.paa";
  229. quickReload = 0 ;
  230. reloadAction = "";
  231. scope = 2;
  232. selectionFireAnim = "zasleh";
  233. simulation = "ProxyMagazines";
  234. type = 16;
  235. useAction = 0;
  236. useActionTitle = "";
  237. value = 1;
  238. weaponpoolavailable = 1;
  239. weight = 0;
  240. class InventoryPlacements;
  241. class Library
  242. {
  243. libTextDesc = "";
  244. };
  245. };
  246. class macro_new_mag(UGL_Smoke,6):1Rnd_Smoke_Grenade_shell
  247. {
  248. displayName = "6 Rd White Smoke RGL6 Grenades";
  249. displayNameShort = "6 Rnd White Smoke RGL6";
  250. count=6;
  251. ammo = "G_40mm_Smoke";
  252. descriptionShort = "6Rd White Smoke RGL6 Grenade";
  253. };
  254. class macro_new_mag(UGL_Flare,6):UGL_FlareWhite_F
  255. {
  256. displayName = "6 Rd White Flare RGL6 Grenades";
  257. displayNameShort = "6 Rnd White Flare RGL6";
  258. count=6;
  259. ammo = "F_40mm_White";
  260. descriptionShort = "6Rd White Flare RGL6 Grenade";
  261. };
  262. };