config.cpp 7.2 KB

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