config.cpp 13 KB

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