config.cpp 7.5 KB

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