config.cpp 15 KB

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