config.cpp 7.0 KB

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