config.cpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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. class 2Rnd_12Gauge_Pellets;
  29. ////////////////////////////////////////////////////
  30. /////////////Rifle/Pistol Magazines/////////////////
  31. ////////////////////////////////////////////////////
  32. class macro_new_mag(2mw,30) : 3AS_45Rnd_EC50_Mag
  33. {
  34. displayName="30 Round 2MW Cell";
  35. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_dc17a.paa";
  36. count = 30;
  37. mass=4;
  38. ammo=macro_new_ammo(2mw)
  39. initSpeed=400;
  40. descriptionShort="Low power magazine";
  41. };
  42. class macro_new_mag(5mw,60) : 3AS_45Rnd_EC50_Mag
  43. {
  44. displayName="75 Round 5MW Cell";
  45. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_dc15s.paa";
  46. count = 75;
  47. ammo=macro_new_ammo(5mw)
  48. initSpeed=400;
  49. descriptionShort="Low power magazine";
  50. };
  51. class macro_new_mag(5mw,10) : 3AS_45Rnd_EC50_Mag
  52. {
  53. displayName="15 Round 5MW Cell";
  54. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_dc17.paa";
  55. count = 15;
  56. mass=4;
  57. ammo=macro_new_ammo(5mw)
  58. initSpeed=400;
  59. descriptionShort="Low power magazine";
  60. };
  61. class macro_new_mag(10mw,30) : 3AS_45Rnd_EC50_Mag
  62. {
  63. displayName="40 Round 10MW Cell";
  64. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_dc15c.paa";
  65. count = 40;
  66. ammo=macro_new_ammo(10mw)
  67. initSpeed=550;
  68. descriptionShort="Medium power magazine";
  69. };
  70. class macro_new_mag(10mws,30) : 3AS_45Rnd_EC50_Mag
  71. {
  72. displayName="40 Round 10MW Stealth Cell";
  73. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_dc15c.paa";
  74. count = 40;
  75. ammo=macro_new_ammo(10mws)
  76. initSpeed=550;
  77. descriptionShort="Medium power magazine";
  78. };
  79. class macro_new_mag(10mw,400) : 3AS_45Rnd_EC50_Mag
  80. {
  81. displayName="400 Round 10MW Cell";
  82. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_z6.paa";
  83. count = 400;
  84. ammo=macro_new_ammo(10mw)
  85. initSpeed=550;
  86. descriptionShort="Medium power box magazine";
  87. };
  88. class macro_new_mag(20mw,20) : 3AS_45Rnd_EC50_Mag
  89. {
  90. displayName="20 Round 20MW Cell";
  91. count = 20;
  92. ammo=macro_new_ammo(20mw)
  93. initSpeed=700;
  94. descriptionShort="Medium power magazine";
  95. };
  96. class macro_new_mag(20mwup,20) : 3AS_45Rnd_EC50_Mag
  97. {
  98. displayName="25 Round 20MW UP Cell";
  99. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_dc15a_up.paa";
  100. count = 25;
  101. ammo=macro_new_ammo(20mwup)
  102. initSpeed=600;
  103. descriptionShort="Medium power unstable plasma magazine";
  104. };
  105. class macro_new_mag(20mwdp,20) : 3AS_45Rnd_EC50_Mag
  106. {
  107. displayName="25 Round 20MW DP Cell";
  108. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_dc15a_dp.paa";
  109. count = 25;
  110. ammo=macro_new_ammo(20mwdp)
  111. initSpeed=700;
  112. descriptionShort="Medium power dense plasma magazine";
  113. };
  114. class macro_new_mag(20mw,240) : 3AS_45Rnd_EC50_Mag
  115. {
  116. displayName="240 Round 20MW Cell";
  117. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_dc15l.paa";
  118. count = 240;
  119. ammo=macro_new_ammo(20mw)
  120. initSpeed=700;
  121. descriptionShort="Medium power box magazine";
  122. };
  123. class macro_new_mag(20mw,90) : 3AS_45Rnd_EC50_Mag
  124. {
  125. displayName="90 Round E5C Cell";
  126. count = 90;
  127. ammo=macro_new_ammo(20mw_d)
  128. initSpeed=700;
  129. descriptionShort="Medium power box magazine";
  130. };
  131. class macro_new_mag(30mw,10) : 3AS_45Rnd_EC50_Mag
  132. {
  133. displayName="10 Round 30MW Cell";
  134. picture="\RD501_Weapons\_mag\data\rd501_icon_mag_valken38.paa";
  135. count = 10;
  136. ammo=macro_new_ammo(30mw)
  137. initSpeed=1000;
  138. descriptionShort="High power magazine";
  139. };
  140. class macro_new_mag(30mw,15) : 3AS_45Rnd_EC50_Mag
  141. {
  142. displayName="15 Round E5S Cell";
  143. count = 15;
  144. ammo=macro_new_ammo(30mw_d)
  145. initSpeed=1000;
  146. descriptionShort="High power magazine";
  147. };
  148. class macro_new_mag(30mw,7) : 3AS_45Rnd_EC50_Mag
  149. {
  150. displayName="7 Round 30MW Cell";
  151. count = 7;
  152. ammo=macro_new_ammo(30mw)
  153. initSpeed=800;
  154. descriptionShort="High power magazine";
  155. };
  156. class macro_new_mag(40mw,5) : 3AS_45Rnd_EC50_Mag
  157. {
  158. displayName="5 Round 40MW Cell";
  159. count = 5;
  160. ammo=macro_new_ammo(40mw)
  161. initSpeed=1100;
  162. descriptionShort="High power magazine";
  163. };
  164. class macro_new_mag(40mwemp,1) : 3AS_45Rnd_EC50_Mag
  165. {
  166. displayName="1 Round 40MW EMP Cell";
  167. count = 1;
  168. ammo=macro_new_ammo(40mwemp)
  169. initSpeed=1100;
  170. descriptionShort="EMP Round";
  171. };
  172. class macro_new_mag(50mw,10) : 3AS_45Rnd_EC50_Mag
  173. {
  174. displayName="10 Round 50MW Cell";
  175. count = 10;
  176. ammo=macro_new_ammo(50mw)
  177. initSpeed=1100;
  178. descriptionShort="High power magazine";
  179. };
  180. class macro_new_mag(50mw,8) : 3AS_45Rnd_EC50_Mag
  181. {
  182. displayName="8 Round 50MW Cell";
  183. count = 8;
  184. mass=4;
  185. ammo=macro_new_ammo(50mw)
  186. initSpeed=1100;
  187. descriptionShort="High power magazine";
  188. };
  189. class macro_new_mag(stun,5):DCStun_Mag
  190. {
  191. displayName="5 Round Stun Cell";
  192. descriptionShort = "5 Round Stun Cell";
  193. displayNameShort = "5 Round Stun Cell";
  194. count=5;
  195. picture="\MRC\JLTS\weapons\Core\data\ui\stun_mag_ui_ca";
  196. ammo=macro_new_ammo(surrender_stun)
  197. };
  198. ////////////////////////////////////////////////////
  199. /////////Grenade Launcher Magazines/////////////////
  200. ////////////////////////////////////////////////////
  201. class macro_new_mag(UGL_HE,3):1Rnd_HE_Grenade_shell
  202. {
  203. displayName = "3 Rnd SR HE DC-15A Grenades";
  204. displayNameShort = "3 Rnd SR HE DC-15A";
  205. count=3;
  206. ammo = macro_new_ammo(UGL_HE)
  207. descriptionShort = "3Rd HE SR DC-15A Grenade";
  208. }
  209. class macro_new_mag(UGL_AP,2):1Rnd_HE_Grenade_shell
  210. {
  211. displayName = "2 Rnd SR AP DC-15A Grenades";
  212. displayNameShort = "2 Rnd SR AP DC-15A";
  213. count=2;
  214. ammo = macro_new_ammo(UGL_AP)
  215. descriptionShort = "2Rd AP DC-15A Grenade";
  216. }
  217. class macro_new_mag(UGL_EMP,1) : 1Rnd_HE_Grenade_shell
  218. {
  219. ammo = "RD501_grenade_emp_ammo";
  220. count = 1;
  221. descriptionShort = "1Rnd EMP DC-15A Grenade";
  222. displayName = "1 Rnd EMP DC-15A Grenades";
  223. displayNameShort = "1Rnd EMP DC-15A";
  224. mass = 50;
  225. maxLeadSpeed = 25;
  226. maxThrowHoldTime = 2;
  227. maxThrowIntensityCoef = 1.4;
  228. minThrowIntensityCoef = 0.3;
  229. model = "\thermalD\EMP_Grenade_ammo.p3d";
  230. modelSpecial = "";
  231. nameSound = "";
  232. picture = "\thermalD\flash_x_ca.paa";
  233. quickReload = 0 ;
  234. reloadAction = "";
  235. scope = 2;
  236. selectionFireAnim = "zasleh";
  237. simulation = "ProxyMagazines";
  238. type = 16;
  239. useAction = 0;
  240. useActionTitle = "";
  241. value = 1;
  242. weaponpoolavailable = 1;
  243. weight = 0;
  244. class InventoryPlacements;
  245. class Library
  246. {
  247. libTextDesc = "";
  248. };
  249. }
  250. class macro_new_mag(UGL_HE,6):1Rnd_HE_Grenade_shell
  251. {
  252. displayName = "6 Rd HE RGL6 Grenades";
  253. displayNameShort = "6 Rnd HE RGL6";
  254. count=6;
  255. ammo = macro_new_ammo(UGL_HE)
  256. descriptionShort = "6Rd HE RGL6 Grenade";
  257. }
  258. class macro_new_mag(UGL_AP,6):1Rnd_HE_Grenade_shell
  259. {
  260. displayName = "6 Rd AP RGL6 Grenades";
  261. displayNameShort = "6 Rd AP RGL6";
  262. count=6;
  263. ammo = macro_new_ammo(UGL_AP)
  264. descriptionShort = "6Rd AP RGL6 Grenade";
  265. }
  266. class macro_new_mag(UGL_EMP,6) : 1Rnd_HE_Grenade_shell
  267. {
  268. ammo = "RD501_grenade_emp_ammo";
  269. count = 6;
  270. descriptionShort = "6Rnd EMP RGL6 Grenade";
  271. displayName = "6 Rnd EMP RGL6 Grenades";
  272. displayNameShort = "6Rnd EMP RGL6";
  273. mass = 50;
  274. maxLeadSpeed = 25;
  275. maxThrowHoldTime = 2;
  276. maxThrowIntensityCoef = 1.4;
  277. minThrowIntensityCoef = 0.3;
  278. model = "\thermalD\EMP_Grenade_ammo.p3d";
  279. modelSpecial = "";
  280. nameSound = "";
  281. picture = "\thermalD\flash_x_ca.paa";
  282. quickReload = 0 ;
  283. reloadAction = "";
  284. scope = 2;
  285. selectionFireAnim = "zasleh";
  286. simulation = "ProxyMagazines";
  287. type = 16;
  288. useAction = 0;
  289. useActionTitle = "";
  290. value = 1;
  291. weaponpoolavailable = 1;
  292. weight = 0;
  293. class InventoryPlacements;
  294. class Library
  295. {
  296. libTextDesc = "";
  297. };
  298. };
  299. class macro_new_mag(UGL_Smoke,6):1Rnd_Smoke_Grenade_shell
  300. {
  301. displayName = "6 Rd White Smoke RGL6 Grenades";
  302. displayNameShort = "6 Rnd White Smoke RGL6";
  303. count=6;
  304. ammo = "G_40mm_Smoke";
  305. descriptionShort = "6Rd White Smoke RGL6 Grenade";
  306. };
  307. class macro_new_mag(UGL_Flare,6):UGL_FlareWhite_F
  308. {
  309. displayName = "6 Rd White Flare RGL6 Grenades";
  310. displayNameShort = "6 Rnd White Flare RGL6";
  311. count=6;
  312. ammo = "F_40mm_White";
  313. descriptionShort = "6Rd White Flare RGL6 Grenade";
  314. };
  315. ////////////////////////////////////////////////////
  316. /////////////Grenades Magazines/////////////////////
  317. ////////////////////////////////////////////////////
  318. class macro_new_mag(imploder,1):SWOP_BCCKtermimploder_G
  319. {
  320. scope=2;
  321. displayName = "Republic Thermal Imploder";
  322. displayNameShort = "Republic Thermal Imploder";
  323. count=1;
  324. ammo = macro_new_ammo(imploder)
  325. descriptionShort = "Republic Thermal Imploder";
  326. };
  327. class macro_new_mag(thermaldet,1):SWOP_termDet_Gm
  328. {
  329. scope=2;
  330. displayName = "Republic Thermal Detonator";
  331. displayNameShort = "Republic Thermal Detonator";
  332. count=1;
  333. ammo = macro_new_ammo(thermaldet)
  334. descriptionShort = "Republic Thermal Detonator";
  335. };
  336. ////////////////////////////////////////////////////
  337. /////////////Missile Magazines/////////////////////
  338. ////////////////////////////////////////////////////
  339. class macro_new_mag(rps1,1):RPG32_F
  340. {
  341. scope=1;
  342. weight=1;
  343. mass=1;
  344. }
  345. ////////////////////////////////////////////////////
  346. /////////////Shotgun Magazines/////////////////////
  347. ////////////////////////////////////////////////////
  348. class macro_new_mag(shotgun_scatter,6):2Rnd_12Gauge_Pellets
  349. {
  350. scope=2;
  351. displayName = "6 Rnd SP Magazine";
  352. displayNameShort = "6 Rnd SP Mag";
  353. count=6;
  354. ammo = macro_new_ammo(shotgun_scatter)
  355. descriptionShort = "6 Rnd SP";
  356. };
  357. class macro_new_mag(shotgun_HE,6):2Rnd_12Gauge_Pellets
  358. {
  359. scope=2;
  360. displayName = "6 Rnd UP Magazine";
  361. displayNameShort = "6 Rnd UP Mag";
  362. count=6;
  363. ammo = macro_new_ammo(shotgun_HE)
  364. descriptionShort = "6 Rnd UP";
  365. };
  366. class macro_new_mag(shotgun_EMP,2):2Rnd_12Gauge_Pellets
  367. {
  368. scope=2;
  369. displayName = "2 Rnd EMP Magazine";
  370. displayNameShort = "2 Rnd EMP Mag";
  371. count=2;
  372. ammo = macro_new_ammo(shotgun_EMP)
  373. descriptionShort = "2 Rnd EMP";
  374. };
  375. ////////////////////////////////////////////////////
  376. /////////////Flare Magazines/////////////////////
  377. ////////////////////////////////////////////////////
  378. class macro_new_mag(40mm_white,3): UGL_FlareWhite_F
  379. {
  380. author = "RD501";
  381. scope = 2;
  382. type = 16;
  383. displayName = "Flare 3 Rounds (White)";
  384. displayNameShort = "White Flare";
  385. picture = "\A3\Weapons_F\Data\UI\gear_UGL_Flare_CA.paa";
  386. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  387. ammo = macro_new_ammo(40mm_white);
  388. initSpeed = 80;
  389. count = 3;
  390. nameSound = "";
  391. descriptionShort = "Type: Flare 3 Rounds - White <br />Rounds: 1<br />Used in: EGLM, 3GL";
  392. weaponPoolAvailable = 1;
  393. mass = 4;
  394. };
  395. class macro_new_mag(40mm_white,1):macro_new_mag(40mm_white,3)
  396. {
  397. displayName = "Flare 1 Rounds (White)";
  398. descriptionShort = "Type: Flare 1 Rounds - White";
  399. mass = 1;
  400. count = 1;
  401. };
  402. class macro_new_mag(40mm_CIR,3): macro_new_mag(40mm_white,3)
  403. {
  404. author = "Bohemia Interactive";
  405. displayName = "Flare 3 Rounds (IR)";
  406. ammo = macro_new_ammo(40mm_cir);
  407. picture = "\A3\Weapons_F\Data\UI\gear_UGL_Flare_purple_CA.paa";
  408. descriptionShort = "Type: Flare - IR<br />Rounds: 1<br />Used in: EGLM, 3GL";
  409. displayNameShort = "IR";
  410. };
  411. class macro_new_mag(40mm_CIR,1):macro_new_mag(40mm_CIR,3)
  412. {
  413. displayName = "Flare 1 Rounds (IR)";
  414. descriptionShort = "Type: Flare 1 Rounds - IR";
  415. mass = 1;
  416. count = 1;
  417. };
  418. class macro_new_mag(40mm_Green,3): macro_new_mag(40mm_white,3)
  419. {
  420. author = "Bohemia Interactive";
  421. displayName = "Flare 3 Rounds (Green)";
  422. displayNameShort = "Green Flare";
  423. ammo = macro_new_ammo(40mm_green);
  424. picture = "\A3\Weapons_F\Data\UI\gear_UGL_Flare_Green_CA.paa";
  425. descriptionShort = "Type: Flare - Green<br />Rounds: 1<br />Used in: EGLM, 3GL";
  426. };
  427. class macro_new_mag(40mm_Green,1):macro_new_mag(40mm_Green,3)
  428. {
  429. displayName = "Flare 1 Rounds (Green)";
  430. descriptionShort = "Type: Flare 1 Rounds - Green";
  431. mass = 1;
  432. count = 1;
  433. };
  434. class macro_new_mag(40mm_Red,3): macro_new_mag(40mm_white,3)
  435. {
  436. author = "Bohemia Interactive";
  437. displayName = "Flare 3 Rounds (Red)";
  438. ammo = macro_new_ammo(40mm_red);
  439. picture = "\A3\Weapons_F\Data\UI\gear_UGL_Flare_Red_CA.paa";
  440. descriptionShort = "Type: Flare - Red<br />Rounds: 1<br />Used in: EGLM, 3GL";
  441. displayNameShort = "Red Flare";
  442. };
  443. class macro_new_mag(40mm_Red,1):macro_new_mag(40mm_Red,3)
  444. {
  445. displayName = "Flare 1 Rounds (Red)";
  446. descriptionShort = "Type: Flare 1 Rounds - Red";
  447. mass = 1;
  448. count = 1;
  449. };
  450. class macro_new_mag(40mm_Yellow,3): macro_new_mag(40mm_white,3)
  451. {
  452. author = "Bohemia Interactive";
  453. displayName = "Flare 3 Rounds (Yellow)";
  454. ammo = macro_new_ammo(40mm_yellow);
  455. picture = "\A3\Weapons_F\Data\UI\gear_UGL_Flare_yelow_CA.paa";
  456. descriptionShort = "Type: Flare - Yellow<br />Rounds: 1<br />Used in: EGLM, 3GL";
  457. displayNameShort = "Yellow Flare";
  458. };
  459. class macro_new_mag(40mm_Yellow,1):macro_new_mag(40mm_Yellow,3)
  460. {
  461. displayName = "Flare 1 Rounds (Yellow)";
  462. descriptionShort = "Type: Flare 1 Rounds - Yellow";
  463. mass = 1;
  464. count = 1;
  465. };
  466. class macro_new_mag(40mm_Blue,3): macro_new_mag(40mm_white,3)
  467. {
  468. author = "Bohemia Interactive";
  469. displayName = "Flare 3 Rounds (Blue)";
  470. ammo = macro_new_ammo(40mm_blue);
  471. picture = "\A3\Weapons_F\Data\UI\gear_UGL_Flare_yelow_CA.paa";
  472. descriptionShort = "Type: Flare - Blue<br />Rounds: 1<br />Used in: EGLM, 3GL";
  473. displayNameShort = "Blue Flare";
  474. };
  475. class macro_new_mag(40mm_Blue,1):macro_new_mag(40mm_Blue,3)
  476. {
  477. displayName = "Flare 1 Rounds (Blue)";
  478. descriptionShort = "Type: Flare 1 Rounds - Blue";
  479. mass = 1;
  480. count = 1;
  481. };
  482. class macro_new_mag(40mm_Cyan,3): macro_new_mag(40mm_white,3)
  483. {
  484. author = "Bohemia Interactive";
  485. displayName = "Flare 3 Rounds (Cyan)";
  486. ammo = macro_new_ammo(40mm_cyan);
  487. picture = "\A3\Weapons_F\Data\UI\gear_UGL_Flare_yelow_CA.paa";
  488. descriptionShort = "Type: Flare - Cyan<br />Rounds: 1<br />Used in: EGLM, 3GL";
  489. displayNameShort = "Cyan Flare";
  490. };
  491. class macro_new_mag(40mm_Cyan,1):macro_new_mag(40mm_Cyan,3)
  492. {
  493. displayName = "Flare 1 Rounds (Cyan)";
  494. descriptionShort = "Type: Flare 1 Rounds - Cyan";
  495. mass = 1;
  496. count = 1;
  497. };
  498. class macro_new_mag(40mm_Purple,3): macro_new_mag(40mm_white,3)
  499. {
  500. author = "Bohemia Interactive";
  501. displayName = "Flare 3 Rounds (Purple)";
  502. ammo = macro_new_ammo(40mm_purple);
  503. picture = "\A3\Weapons_F\Data\UI\gear_UGL_Flare_yelow_CA.paa";
  504. descriptionShort = "Type: Flare - Purple<br />Rounds: 1<br />Used in: EGLM, 3GL";
  505. displayNameShort = "Purple Flare";
  506. };
  507. class macro_new_mag(40mm_Purple,1):macro_new_mag(40mm_Purple,3)
  508. {
  509. displayName = "Flare 1 Rounds (Purple)";
  510. descriptionShort = "Type: Flare 1 Rounds - Purple";
  511. mass = 1;
  512. count = 1;
  513. };
  514. };