config.cpp 13 KB

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