1
0

config.cpp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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(a2a,2) : 4Rnd_AAA_missiles //RD501_4Rnd_A2AM_Mag
  274. {
  275. ammo = macro_new_ammo(a2a)
  276. count = 2;
  277. displayName = "Evil Zephyr A2A";
  278. displayNameShort = "Evil Zephyr A2A";
  279. tracersEvery=1;
  280. };
  281. class macro_new_mag(agm,6) : PylonRack_12Rnd_PG_missiles//6Rnd_Missile_AGM_02_F
  282. {
  283. ammo = macro_new_ammo(agm)
  284. count = 6;
  285. displayName = "Torrent AGM";
  286. displayNameShort = "Torrent AGM";
  287. tracersEvery=1;
  288. };
  289. class macro_new_mag(ugm,10) : 7Rnd_Rocket_04_AP_F
  290. {
  291. ammo = macro_new_ammo(ugm)
  292. count = 15;
  293. displayName = "Hurricane UGM";
  294. displayNameShort = "Hurricane UGM";
  295. tracersEvery=1;
  296. };
  297. class macro_new_mag(lgm,4) : 4Rnd_LG_Jian
  298. {
  299. ammo = macro_new_ammo(lgm)
  300. displayName = "Flashfire WGM";
  301. displayNameShort = "Flashfire WGM";
  302. };
  303. class macro_new_mag(lgm,1) : macro_new_mag(lgm,4)
  304. {
  305. count = 1;
  306. };
  307. class macro_new_mag(pylon_agm,6):PylonRack_1Rnd_Missile_AGM_01_F
  308. {
  309. ammo = macro_new_ammo(agm)
  310. count = 3;
  311. displayName = "Torrent AGM";
  312. displayNameShort = "Torrent AGM";
  313. tracersEvery=1;
  314. hardpoints[]=
  315. {
  316. "RD501_Universal_rail"
  317. };
  318. pylonWeapon=macro_new_weapon(pylon,agm)
  319. };
  320. class macro_new_mag(pylon_aa,4):4Rnd_AAA_missiles
  321. {
  322. ammo = macro_new_ammo(a2a)
  323. count = 2;
  324. displayName = "Zephyr A2A";
  325. displayNameShort = "Zephyr A2A";
  326. tracersEvery=1;
  327. hardpoints[]=
  328. {
  329. "RD501_Universal_rail"
  330. };
  331. pylonWeapon=macro_new_weapon(pylon,a2a)
  332. };
  333. class macro_new_mag(pylon_lgm,4):4Rnd_LG_Jian
  334. {
  335. ammo = macro_new_ammo(lgm)
  336. count=2;
  337. displayName = "Flashfire WGM";
  338. displayNameShort = "Flashfire WGM";
  339. hardpoints[]=
  340. {
  341. "RD501_Universal_rail"
  342. };
  343. pylonWeapon=macro_new_weapon(pylon,lgm)
  344. };
  345. class macro_new_mag(pylon_ugm,10):7Rnd_Rocket_04_AP_F
  346. {
  347. ammo = macro_new_ammo(ugm)
  348. count = 15;
  349. displayName = "Hurricane UGM";
  350. displayNameShort = "Hurricane UGM";
  351. tracersEvery=1;
  352. hardpoints[]=
  353. {
  354. "RD501_Universal_rail"
  355. };
  356. pylonWeapon=macro_new_weapon(pylon,ugm)
  357. };
  358. class macro_new_mag(pylon_spark,6):7Rnd_Rocket_04_AP_F
  359. {
  360. ammo = macro_new_ammo(spark)
  361. count = 6;
  362. displayName = "Spark UGM";
  363. displayNameShort = "Spark UGM";
  364. tracersEvery=1;
  365. hardpoints[]=
  366. {
  367. "RD501_Universal_rail"
  368. };
  369. pylonWeapon=macro_new_weapon(pylon,spark)
  370. };
  371. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  372. ////////////////////////////////////////////////Tank Cannons///////////////////////////////////////////////
  373. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  374. class macro_new_mag(saber_tx130,10): 100Rnd_TXLaser_Cannon_mag
  375. {
  376. displayNameShort = "";
  377. ammo = macro_new_ammo(saber_tx130)
  378. count = 100;
  379. tracersEvery = 1;
  380. initSpeed = 1436;
  381. muzzleImpulseFactor = 0;
  382. };
  383. class 50Rnd_Laser_Cannon_AAT;
  384. class 3as_24Rnd_AAT_AP;
  385. class 3AS_24Rnd_GAT_AP;
  386. class macro_new_mag(aat_mbt,50): 3AS_24Rnd_GAT_AP
  387. {
  388. displayNameShort = "GAT MBT 50 round mag";
  389. ammo = macro_new_ammo(aat_mbt)
  390. count = 50;
  391. tracersEvery = 1;
  392. initSpeed = 600;
  393. muzzleImpulseFactor = 0;
  394. maxLeadSpeed = 300;
  395. };
  396. class macro_new_mag(aat_mbt,10): 3as_24Rnd_AAT_AP
  397. {
  398. displayNameShort = "10Rnd King Laser Mag";
  399. ammo = macro_new_ammo(aat_king)
  400. count = 10;
  401. tracersEvery = 1;
  402. //typicalSpeedSpeed = 800;
  403. typicalSpeedSpeed = 20;
  404. muzzleImpulseFactor = 0;
  405. maxLeadSpeed = 600;
  406. };
  407. class macro_new_mag(mynock_mbt_he,12): macro_new_mag(aat_mbt,10)
  408. {
  409. displayName = "Kyber Plasma Shell";
  410. displayNameShort = "12Rnd Kyber Plasma Shell";
  411. ammo = macro_new_ammo(mynock_mbt_he)
  412. count = 12;
  413. tracersEvery = 1;
  414. initSpeed = 800;
  415. muzzleImpulseFactor = 0;
  416. maxLeadSpeed = 600;
  417. };
  418. class macro_new_mag(mynock_mbt_ap,12): macro_new_mag(aat_mbt,10)
  419. {
  420. displayName = "Compacted Durasteel Shell";
  421. displayNameShort = "12Rnd Durasteel Shell";
  422. ammo = macro_new_ammo(mynock_mbt_ap)
  423. count = 12;
  424. tracersEvery = 1;
  425. initSpeed = 800;
  426. muzzleImpulseFactor = 0;
  427. maxLeadSpeed = 600;
  428. };
  429. class macro_new_mag(mynock_mbt_td,12): macro_new_mag(aat_mbt,10)
  430. {
  431. displayName = "Tankbuster Shell";
  432. displayNameShort = "Tankbuster Shell";
  433. ammo = macro_new_ammo(mynock_mbt_td)
  434. count = 12;
  435. tracersEvery = 1;
  436. initSpeed = 800;
  437. muzzleImpulseFactor = 0;
  438. maxLeadSpeed = 600;
  439. };
  440. class 10000Rnd_Laser_Cannon_ATTE;
  441. class macro_new_mag(atte_mbt,10): 10000Rnd_Laser_Cannon_ATTE
  442. {
  443. author = "RD501";
  444. scope = 2;
  445. displayName = "10Rnd ATTE Heavy Cannon";
  446. displayNameShort = "";
  447. ammo = macro_new_ammo(atte)
  448. count = 10;
  449. tracersEvery = 1;
  450. initSpeed = 1410;
  451. maxLeadSpeed = 35;
  452. };
  453. };