config.cpp 9.0 KB

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