config.cpp 13 KB

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