config.cpp 9.0 KB

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