config.cpp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. #include "../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_vehicle_mags
  5. {
  6. author="RD501";
  7. addonRootClass= MACRO_QUOTE(RD501_patch_vehicle_weapons);
  8. requiredAddons[]=
  9. {
  10. "3AS_VehicleWeapons"
  11. };
  12. requiredVersion=0.1;
  13. units[]={};
  14. weapons[]={
  15. };
  16. };
  17. };
  18. class CfgMagazines
  19. {
  20. class 500Rnd_Cannon_ARCback;
  21. class 1000Rnd_Gatling_30mm_Plane_CAS_01_F;
  22. class OPTRE_6Rnd_ASGM2_rockets;
  23. class macro_new_mag(MRLS_M80,2): OPTRE_6Rnd_ASGM2_rockets
  24. {
  25. count = 2;
  26. };
  27. class 100Rnd_TXLaser_Cannon_mag;
  28. class 4Rnd_AAA_missiles;
  29. class 7Rnd_Rocket_04_AP_F;
  30. class magazine_Missile_rim116_x21;
  31. class magazine_Missile_rim162_x8;
  32. class PylonRack_12Rnd_PG_missiles;
  33. class 4Rnd_LG_Jian;
  34. class PylonRack_1Rnd_Missile_AGM_01_F;
  35. class 4Rnd_BombCluster_02_F;
  36. class PylonRack_Bomb_SDB_x4;
  37. class 2Rnd_GBU12_LGB;
  38. class macro_new_mag(cluster_bomb,4) : 4Rnd_BombCluster_02_F
  39. {
  40. ammo = MACRO_QUOTE(macro_new_ammo(cluster_bomb));
  41. count = 4;
  42. DisplayName = "Thunderstorm CB";
  43. displayNameShort = "Thunderstorm CB";
  44. tracersEvery=1;
  45. };
  46. class macro_new_mag(cluster_bomb,2) : macro_new_mag(cluster_bomb,4)
  47. {
  48. count = 2;
  49. };
  50. class macro_new_mag(cluster_emp,2) : macro_new_mag(cluster_bomb,4)
  51. {
  52. ammo = MACRO_QUOTE(macro_new_ammo(cluster_emp));
  53. DisplayName = "Lightning EMP CB";
  54. displayNameShort = "Lightning EMP CB";
  55. count = 2;
  56. };
  57. class macro_new_mag(sdb_bomb,4) : PylonRack_Bomb_SDB_x4
  58. {
  59. ammo = MACRO_QUOTE(macro_new_ammo(sdb_bomb));
  60. count = 4;
  61. DisplayName = "Wrath PGB";
  62. displayNameShort = "Wrath PGB";
  63. tracersEvery=1;
  64. };
  65. class macro_new_mag(lgb_bomb,4) : 2Rnd_GBU12_LGB
  66. {
  67. ammo = MACRO_QUOTE(macro_new_ammo(lgb_bomb));
  68. count = 4;
  69. DisplayName = "Ruinscape GB";
  70. displayNameShort = "Ruinscape GB";
  71. tracersEvery=1;
  72. };
  73. class macro_new_mag(laat_cannon,100) : 1000Rnd_Gatling_30mm_Plane_CAS_01_F
  74. {
  75. displayNameShort = "LAAT Laser Cannon";
  76. ammo = MACRO_QUOTE(macro_new_ammo(laat_cannon));
  77. count = 100;
  78. tracersEvery = 1;
  79. initSpeed = 2000;
  80. brightness = 100;
  81. magazineReloadTime=10;
  82. muzzleImpulseFactor[]={0,0};
  83. };
  84. class macro_new_mag(voltic,200):1000Rnd_Gatling_30mm_Plane_CAS_01_F
  85. {
  86. displayNameShort = "HE";
  87. ammo = MACRO_QUOTE(macro_new_ammo(voltic));
  88. count = 200;
  89. tracersEvery = 1;
  90. initSpeed = 1036;
  91. maxLeadSpeed = 300;
  92. macro_no_muzzle_impulse
  93. };
  94. class macro_new_mag(laat_ball_beam,300): 1000Rnd_Gatling_30mm_Plane_CAS_01_F
  95. {
  96. displayName = "Laat Ball Turret Mag";
  97. displayNameShort = "Ball Turret Mag";
  98. tracersEvery=1;
  99. muzzleImpulseFactor[]={0,0};
  100. initSpeed=1120;
  101. count = 300;
  102. ammo = MACRO_QUOTE(macro_new_ammo(ball_beam));
  103. };
  104. class 2Rnd_Bomb_03_F;
  105. class macro_new_mag(carpet_I_bomb_mag,20): 2Rnd_Bomb_03_F
  106. {
  107. dlc = "RD501";
  108. scope = 2;
  109. displayName = "20 Rnd Carpet I Bomb";
  110. displayNameShort = "20 Rnd Bomb";
  111. count = 20;
  112. ammo =MACRO_QUOTE(macro_new_ammo(carpet_I_bomb));
  113. initSpeed = 0;
  114. maxLeadSpeed = 1000;
  115. };
  116. ///////////////////////////////////////////////////////////////////////////////////////
  117. ////////////////////////Aircraft Cannons///////////////////////////////////////////////
  118. ///////////////////////////////////////////////////////////////////////////////////////
  119. class macro_new_mag(generic_aircraft_gun,1000): 1000Rnd_Gatling_30mm_Plane_CAS_01_F
  120. {
  121. displayNameShort = "Plasma Cores (Red)";
  122. displayName = "Plasma Cores (Red)";
  123. ammo =MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_gun_red));
  124. count = 1200;
  125. tracersEvery = 1;
  126. initSpeed = 1036;
  127. maxLeadSpeed = 300;
  128. macro_no_muzzle_impulse
  129. };
  130. class macro_new_mag(generic_aircraft_gun_blue,1000) : macro_new_mag(generic_aircraft_gun,1000)
  131. {
  132. displayNameShort = "Plasma Cores (Blue)";
  133. displayName = "Plasma Cores (Blue)";
  134. ammo =MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_gun_blue));
  135. };
  136. class macro_new_mag(generic_aircraft_gun_green,1000) : macro_new_mag(generic_aircraft_gun,1000)
  137. {
  138. displayNameShort = "Plasma Cores (Green)";
  139. displayName = "Plasma Cores (Green)";
  140. ammo =MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_green));
  141. };
  142. class macro_new_mag(generic_aircraft_gun_asg,3000) : macro_new_mag(generic_aircraft_gun,1000)
  143. {
  144. displayNameShort = "AS Gun";
  145. displayName = "Air Superiority Gun";
  146. ammo =MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_green));
  147. count = 3000;
  148. };
  149. class macro_new_mag(generic_aircraft_gun_purple,1000) : macro_new_mag(generic_aircraft_gun,1000)
  150. {
  151. displayNameShort = "Plasma Cores (Purple)";
  152. displayName = "Plasma Cores (Purple)";
  153. ammo =MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_gun_purple));
  154. };
  155. class macro_new_mag(generic_aircraft_gun_preatorian,1000): macro_new_mag(generic_aircraft_gun,1000)
  156. {
  157. displayNameShort = "Plasma Cores (Preatorian)";
  158. displayName = "Plasma Cores";
  159. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_gun_praetorian));
  160. };
  161. class macro_new_mag(generic_aircraft_cannon_red,1000): macro_new_mag(generic_aircraft_gun,1000)
  162. {
  163. displayNameShort = "Plasma Cores (Red)";
  164. displayName = "Plasma Cores (Red)";
  165. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_red));
  166. };
  167. class macro_new_mag(generic_aircraft_cannon_green,1000): macro_new_mag(generic_aircraft_gun,1000)
  168. {
  169. displayNameShort = "Plasma Cores (Green)";
  170. displayName = "Plasma Cores (Green)";
  171. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_green));
  172. };
  173. class macro_new_mag(generic_aircraft_cannon_blue,1000): macro_new_mag(generic_aircraft_gun,1000)
  174. {
  175. displayNameShort = "Plasma Cores (Blue)";
  176. displayName = "Plasma Cores (Blue)";
  177. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_blue));
  178. };
  179. class macro_new_mag(generic_aircraft_cannon_plasma_red,1000): macro_new_mag(generic_aircraft_gun,1000)
  180. {
  181. displayNameShort = "Plasma Cores";
  182. displayName = "Plasma Cores";
  183. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_plasma_red));
  184. };
  185. class macro_new_mag(generic_aircraft_cannon_plasma_blue,1000): macro_new_mag(generic_aircraft_gun_blue,1000)
  186. {
  187. displayNameShort = "Plasma Cores";
  188. displayName = "Plasma Cores";
  189. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_plasma_blue));
  190. };
  191. class macro_new_mag(generic_aircraft_cannon_purple,1000): macro_new_mag(generic_aircraft_gun_purple,1000)
  192. {
  193. displayNameShort = "Plasma Cores (Purple)";
  194. displayName = "Plasma Cores (Purple)";
  195. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_purple));
  196. };
  197. class macro_new_mag(Kannon,100) :macro_new_mag(generic_aircraft_gun,1000)
  198. {
  199. ammo = MACRO_QUOTE(macro_new_ammo(generic_kannon));
  200. displayNameShort = "Coaxium Shells";
  201. count = "15";
  202. };
  203. class macro_new_mag(generic_aircraft_gun_dual_blue,1000): macro_new_mag(generic_aircraft_gun_blue,1000)
  204. {
  205. displayNameShort = "Plasma Cores (Blue)";
  206. displayName = "Plasma Cores (Blue)";
  207. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_dual_blue));
  208. };
  209. class macro_new_mag(generic_aircraft_gun_dual_green,1000): 1000Rnd_Gatling_30mm_Plane_CAS_01_F
  210. {
  211. displayNameShort = "Plasma Cores (Green)";
  212. displayName = "Plasma Cores (Green)";
  213. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_dual_green));
  214. count = 1000;
  215. tracersEvery = 1;
  216. initSpeed = 1036;
  217. maxLeadSpeed = 300;
  218. macro_no_muzzle_impulse
  219. };
  220. class macro_new_mag(pylon_generic_aircraft_gun_asg,3000): macro_new_mag(generic_aircraft_gun,1000)
  221. {
  222. displayNameShort = "AS Gun";
  223. displayName = "Air Superiority Gun";
  224. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_green));
  225. count = 3000;
  226. hardpoints[]=
  227. {
  228. "RD501_Gun_rail"
  229. };
  230. pylonWeapon=MACRO_QUOTE(macro_new_weapon(pylon_laser,v_wing));
  231. };
  232. class macro_new_mag(pylon_voltic,200):macro_new_mag(generic_aircraft_gun,1000)
  233. {
  234. displayNameShort = "Voltic";
  235. ammo = MACRO_QUOTE(macro_new_ammo(voltic));
  236. count = 1000;
  237. tracersEvery = 1;
  238. initSpeed = 1036;
  239. maxLeadSpeed = 300;
  240. macro_no_muzzle_impulse
  241. hardpoints[]=
  242. {
  243. "RD501_Gun_rail"
  244. };
  245. pylonWeapon=MACRO_QUOTE(macro_new_weapon(pylon_voltic,y_wing));
  246. };
  247. class macro_new_mag(AA_Gun_Base,1000): 1000Rnd_Gatling_30mm_Plane_CAS_01_F
  248. {
  249. displayNameShort = "Plasma Cores";
  250. displayName = "Plasma Cores";
  251. ammo = MACRO_QUOTE(macro_new_ammo(generic_aircraft_laser_cannon_plasma_blue));
  252. count = 1000;
  253. tracersEvery = 1;
  254. initSpeed = 1036;
  255. maxLeadSpeed = 300;
  256. macro_no_muzzle_impulse
  257. };
  258. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  259. ////////////////////////////////////////////////Missiles///////////////////////////////////////////////////
  260. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  261. class macro_new_mag(a2a,4) : 4Rnd_AAA_missiles //RD501_4Rnd_A2AM_Mag
  262. {
  263. ammo =MACRO_QUOTE(macro_new_ammo(a2a));
  264. count = 4;
  265. displayName = "Zephyr A2A";
  266. displayNameShort = "Zephyr A2A";
  267. tracersEvery=1;
  268. };
  269. class macro_new_mag(a2a,2) : 4Rnd_AAA_missiles //RD501_4Rnd_A2AM_Mag
  270. {
  271. ammo =MACRO_QUOTE(macro_new_ammo(a2a));
  272. count = 2;
  273. displayName = "Evil Zephyr A2A";
  274. displayNameShort = "Evil Zephyr A2A";
  275. tracersEvery=1;
  276. };
  277. class macro_new_mag(agm,6) : PylonRack_12Rnd_PG_missiles//6Rnd_Missile_AGM_02_F
  278. {
  279. ammo =MACRO_QUOTE(macro_new_ammo(agm));
  280. count = 6;
  281. displayName = "Torrent AGM";
  282. displayNameShort = "Torrent AGM";
  283. tracersEvery=1;
  284. };
  285. class macro_new_mag(ugm,10) : 7Rnd_Rocket_04_AP_F
  286. {
  287. ammo =MACRO_QUOTE(macro_new_ammo(ugm));
  288. count = 15;
  289. displayName = "Hurricane UGM";
  290. displayNameShort = "Hurricane UGM";
  291. tracersEvery=1;
  292. };
  293. class macro_new_mag(lgm,4) : 4Rnd_LG_Jian
  294. {
  295. ammo =MACRO_QUOTE(macro_new_ammo(lgm));
  296. displayName = "Flashfire WGM";
  297. displayNameShort = "Flashfire WGM";
  298. };
  299. class macro_new_mag(lgm,1) : macro_new_mag(lgm,4)
  300. {
  301. count = 1;
  302. };
  303. class macro_new_mag(pylon_agm,6):PylonRack_1Rnd_Missile_AGM_01_F
  304. {
  305. ammo =MACRO_QUOTE(macro_new_ammo(agm));
  306. count = 3;
  307. displayName = "Torrent AGM";
  308. displayNameShort = "Torrent AGM";
  309. tracersEvery=1;
  310. hardpoints[]=
  311. {
  312. "RD501_Universal_rail"
  313. };
  314. pylonWeapon=MACRO_QUOTE(macro_new_weapon(pylon,agm));
  315. };
  316. class macro_new_mag(pylon_aa,4):4Rnd_AAA_missiles
  317. {
  318. ammo =MACRO_QUOTE(macro_new_ammo(a2a));
  319. count = 2;
  320. displayName = "Zephyr A2A";
  321. displayNameShort = "Zephyr A2A";
  322. tracersEvery=1;
  323. hardpoints[]=
  324. {
  325. "RD501_Universal_rail"
  326. };
  327. pylonWeapon=MACRO_QUOTE(macro_new_weapon(pylon,a2a));
  328. };
  329. class macro_new_mag(pylon_lgm,4):4Rnd_LG_Jian
  330. {
  331. ammo =MACRO_QUOTE(macro_new_ammo(lgm));
  332. count=2;
  333. displayName = "Flashfire WGM";
  334. displayNameShort = "Flashfire WGM";
  335. hardpoints[]=
  336. {
  337. "RD501_Universal_rail"
  338. };
  339. pylonWeapon=MACRO_QUOTE(macro_new_weapon(pylon,lgm));
  340. };
  341. class macro_new_mag(pylon_ugm,10):7Rnd_Rocket_04_AP_F
  342. {
  343. ammo =MACRO_QUOTE(macro_new_ammo(ugm));
  344. count = 15;
  345. displayName = "Hurricane UGM";
  346. displayNameShort = "Hurricane UGM";
  347. tracersEvery=1;
  348. hardpoints[]=
  349. {
  350. "RD501_Universal_rail"
  351. };
  352. pylonWeapon=MACRO_QUOTE(macro_new_weapon(pylon,ugm));
  353. };
  354. class macro_new_mag(pylon_spark,6):7Rnd_Rocket_04_AP_F
  355. {
  356. ammo =MACRO_QUOTE(macro_new_ammo(spark));
  357. count = 6;
  358. displayName = "Spark UGM";
  359. displayNameShort = "Spark UGM";
  360. tracersEvery=1;
  361. hardpoints[]=
  362. {
  363. "RD501_Universal_rail"
  364. };
  365. pylonWeapon=MACRO_QUOTE(macro_new_weapon(pylon,spark));
  366. };
  367. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  368. ////////////////////////////////////////////////Tank Cannons///////////////////////////////////////////////
  369. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  370. class macro_new_mag(saber_tx130,10): 100Rnd_TXLaser_Cannon_mag
  371. {
  372. displayNameShort = "";
  373. ammo =MACRO_QUOTE(macro_new_ammo(saber_tx130));
  374. count = 100;
  375. tracersEvery = 1;
  376. initSpeed = 1436;
  377. muzzleImpulseFactor = 0;
  378. };
  379. class 50Rnd_Laser_Cannon_AAT;
  380. class 3as_24Rnd_AAT_AP;
  381. class 3AS_24Rnd_GAT_AP;
  382. class macro_new_mag(aat_mbt,50): 3AS_24Rnd_GAT_AP
  383. {
  384. displayNameShort = "GAT MBT 50 round mag";
  385. ammo =MACRO_QUOTE(macro_new_ammo(aat_mbt));
  386. count = 50;
  387. tracersEvery = 1;
  388. initSpeed = 600;
  389. muzzleImpulseFactor = 0;
  390. maxLeadSpeed = 300;
  391. };
  392. class macro_new_mag(aat_mbt,10): 3as_24Rnd_AAT_AP
  393. {
  394. displayNameShort = "10Rnd King Laser Mag";
  395. ammo =MACRO_QUOTE(macro_new_ammo(aat_king));
  396. count = 10;
  397. tracersEvery = 1;
  398. //typicalSpeedSpeed = 800;
  399. typicalSpeedSpeed = 20;
  400. muzzleImpulseFactor = 0;
  401. maxLeadSpeed = 600;
  402. };
  403. class macro_new_mag(mynock_mbt_he,12): macro_new_mag(aat_mbt,10)
  404. {
  405. displayName = "Kyber Plasma Shell";
  406. displayNameShort = "12Rnd Kyber Plasma Shell";
  407. ammo =MACRO_QUOTE(macro_new_ammo(mynock_mbt_he));
  408. count = 12;
  409. tracersEvery = 1;
  410. initSpeed = 800;
  411. muzzleImpulseFactor = 0;
  412. maxLeadSpeed = 600;
  413. };
  414. class macro_new_mag(mynock_mbt_ap,12): macro_new_mag(aat_mbt,10)
  415. {
  416. displayName = "Compacted Durasteel Shell";
  417. displayNameShort = "12Rnd Durasteel Shell";
  418. ammo =MACRO_QUOTE(macro_new_ammo(mynock_mbt_ap));
  419. count = 12;
  420. tracersEvery = 1;
  421. initSpeed = 800;
  422. muzzleImpulseFactor = 0;
  423. maxLeadSpeed = 600;
  424. };
  425. class macro_new_mag(mynock_mbt_td,12): macro_new_mag(aat_mbt,10)
  426. {
  427. displayName = "Tankbuster Shell";
  428. displayNameShort = "Tankbuster Shell";
  429. ammo =MACRO_QUOTE(macro_new_ammo(mynock_mbt_td));
  430. count = 12;
  431. tracersEvery = 1;
  432. initSpeed = 800;
  433. muzzleImpulseFactor = 0;
  434. maxLeadSpeed = 600;
  435. };
  436. };