config.cpp 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(generic_aircraft_weapons)
  6. {
  7. author=DANKAUTHORS;
  8. addonRootClass= macro_patch_name(vehicle_weapons)
  9. requiredAddons[]=
  10. {
  11. macro_patch_name(vehicle_weapons)
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. macro_new_weapon(generic,aircraft_laser),
  17. macro_new_weapon(generic,rebel_aircraft_laser),
  18. macro_new_weapon(generic,ion_aircraft_laser),
  19. macro_new_weapon(generic,tie_aircraft_laser),
  20. macro_new_weapon(generic,purple_aircraft_laser),
  21. macro_new_weapon(generic,plasma_aircraft_laser),
  22. macro_new_weapon(generic,rebel_aircraft_cannon),
  23. macro_new_weapon(generic,imperial_aircraft_cannon),
  24. macro_new_weapon(generic,republic_aircraft_cannon),
  25. macro_new_weapon(generic,cis_aircraft_cannon),
  26. macro_new_weapon(generic,ion_aircraft_cannon),
  27. macro_new_weapon(generic,purple_aircraft_cannon),
  28. macro_new_weapon(generic,plasma_aircraft_cannon),
  29. macro_new_weapon(generic,preatorian_gun_opfor),
  30. macro_new_weapon(aa_gun,aa_gun_base),
  31. macro_new_weapon(generic,blue_dual_aircraft_laser)
  32. };
  33. };
  34. };
  35. class CfgWeapons
  36. {
  37. class Cannon_30mm_Plane_CAS_02_F;
  38. class SWOP_Cannon_trid:Cannon_30mm_Plane_CAS_02_F
  39. {
  40. class LowROF;
  41. };
  42. //Laser Guns
  43. #include "aircraft_laser_gun.hpp"
  44. //Laser Cannon
  45. class macro_new_weapon(generic,rebel_aircraft_cannon) : macro_new_weapon(generic,aircraft_laser)
  46. {
  47. magazineWell[] = {macro_new_magwell(generic_aircraft_cannon)};
  48. ballisticsComputer = "1+4";
  49. displayName = "Laser Cannon";
  50. burst = 1;
  51. class LowROF: LowROF
  52. {
  53. textureType = "fullAuto";
  54. burst = 1;
  55. reloadTime=0.04;
  56. dispersion=0;
  57. class StandardSound
  58. {
  59. begin1[] = {"XT\sounds\laser.ogg",1,1,3000};
  60. soundBegin[] = {"begin1",1};
  61. };
  62. };
  63. };
  64. class macro_new_weapon(generic,imperial_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
  65. {
  66. class LowROF: LowROF
  67. {
  68. class StandardSound
  69. {
  70. begin1[] = {"TIE\Sounds\tielaser1.ogg",1.1,1,3000};
  71. begin10[] = {"TIE\Sounds\TIELaserCharge.wss",1.1,1,3000};
  72. begin2[] = {"TIE\Sounds\tielaser2.ogg",1.1,1,3000};
  73. begin3[] = {"TIE\Sounds\tielaser3.ogg",1.1,1,3000};
  74. begin4[] = {"TIE\Sounds\TIELaserCharge.wss",1.1,1,3000};
  75. begin5[] = {"TIE\Sounds\tielaser4.ogg",1.1,1,3000};
  76. begin6[] = {"TIE\Sounds\tielaser5.ogg",1.1,1,3000};
  77. begin7[] = {"TIE\Sounds\tielaser6.ogg",1.1,1,3000};
  78. begin8[] = {"TIE\Sounds\tielaser7.ogg",1.1,1,3000};
  79. begin9[] = {"TIE\Sounds\tielaser8.ogg",1.1,1,3000};
  80. soundBegin[] = {"begin1",0.1,"begin2",0.1,"begin3",0.1,"begin4",0.1,"begin5",0.1,"begin6",0.1,"begin7",0.1,"begin8",0.1,"begin9",0.1,"begin10",0.1};
  81. };
  82. };
  83. };
  84. class macro_new_weapon(generic,republic_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
  85. {
  86. class LowROF: LowROF
  87. {
  88. class StandardSound
  89. {
  90. begin1[] = {"SW_RebelWeapons\A300\A280CFE1.ogg",1.1,1,1800};
  91. begin2[] = {"SW_RebelWeapons\A300\A280CFE2.ogg",1.1,1,1800};
  92. begin3[] = {"SW_RebelWeapons\A300\A280CFE3.ogg",1.1,1,1800};
  93. begin4[] = {"SW_RebelWeapons\A300\A280CFE4.ogg",1.1,1,1800};
  94. begin5[] = {"SW_RebelWeapons\A300\A280CFE5.ogg",1.1,1,1800};
  95. soundBegin[] = {"begin1",0.2,"begin2",0.2,"begin3",0.2,"begin4",0.2,"begin5",0.2};
  96. };
  97. };
  98. };
  99. class macro_new_weapon(generic,blue_dual_aircraft_laser) : macro_new_weapon(generic,republic_aircraft_cannon)
  100. {
  101. displayName = "Aircraft Laser Gun";
  102. magazines[] = {macro_new_mag(generic_aircraft_gun_dual_blue,1000)};
  103. class LowROF: LowROF
  104. {
  105. class StandardSound
  106. {
  107. begin1[] = {"rd501_vehicle_weapons\_sounds\New_Laat_2.ogg",1,1,2500};
  108. begin2[] = {"rd501_vehicle_weapons\_sounds\laat_cannon\shot1.ogg",1.1,1,2500};
  109. begin3[] = {"rd501_vehicle_weapons\_sounds\laat_cannon\shot2.ogg",1.1,1,2500};
  110. begin4[] = {"rd501_vehicle_weapons\_sounds\laat_cannon\shot3.ogg",1.1,1,2500};
  111. soundBegin[] = {"begin1",0.2,"begin2",0.2,"begin3",0.2,"begin4",0.2};
  112. };
  113. };
  114. };
  115. class macro_new_weapon(generic,cis_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
  116. {
  117. class LowROF: LowROF
  118. {
  119. class StandardSound
  120. {
  121. begin1[] = {"vulture\vulturecannon1.ogg", 0.7, 1, 3000};
  122. begin2[] = {"vulture\vulturecannon2.ogg", 0.7, 1, 3000};
  123. begin3[] = {"vulture\vulturecannon3.ogg", 0.7, 1, 3000};
  124. begin4[] = {"vulture\vulturecannon4.ogg", 0.7, 1, 3000};
  125. begin5[] = {"vulture\vulturecannon5.ogg", 0.7, 1, 3000};
  126. soundBegin[] = {"begin1", 0.2, "begin2", 0.2, "begin3", 0.2, "begin4", 0.2, "begin5", 0.2};
  127. };
  128. };
  129. };
  130. class macro_new_weapon(generic,ion_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
  131. {
  132. class LowROF: LowROF
  133. {
  134. class StandardSound
  135. {
  136. begin1[] = {"TIEdef\ioncanon1.ogg",1.1,1.1,3000};
  137. begin2[] = {"TIEdef\ioncanon2.ogg",1.1,1.1,3000};
  138. begin3[] = {"TIEdef\ioncanon3.ogg",1.1,1.1,3000};
  139. soundBegin[] = {"begin1",0.33,"begin2",0.33,"begin3",0.34};
  140. };
  141. };
  142. };
  143. class macro_new_weapon(generic,purple_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
  144. {
  145. class LowROF: LowROF
  146. {
  147. class StandardSound
  148. {
  149. begin1[] = {"SWOP_vehiclecommon\Speeder\Speederbike\Sounds\canon",1.5,1,2500};
  150. soundBegin[] = {"begin1",1};
  151. };
  152. };
  153. };
  154. class macro_new_weapon(generic,plasma_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
  155. {
  156. class LowROF: LowROF
  157. {
  158. dispersion = 0;
  159. class StandardSound
  160. {
  161. begin1[] = {"SWOP_vehiclecommon\Speeder\Speederbike\Sounds\canon",1.5,1,2500};
  162. soundBegin[] = {"begin1",1};
  163. };
  164. };
  165. };
  166. class macro_new_weapon(aa_gun,aa_gun_base) : macro_new_weapon(generic,rebel_aircraft_cannon)
  167. {
  168. displayName = "PPTG2AC"
  169. magazines[] = {macro_new_mag(AA_Gun_Base,1000)};
  170. class LowROF: LowROF
  171. {
  172. dispersion = 0;
  173. class StandardSound
  174. {
  175. begin1[] = {"TIEdef\ioncanon1.ogg",1.1,1.1,3000};
  176. begin2[] = {"TIEdef\ioncanon2.ogg",1.1,1.1,3000};
  177. begin3[] = {"TIEdef\ioncanon3.ogg",1.1,1.1,3000};
  178. soundBegin[] = {"begin1",0.33,"begin2",0.33,"begin3",0.34};
  179. };
  180. };
  181. };
  182. //Preatorian gun
  183. class macro_new_weapon(generic,preatorian_gun_opfor): macro_new_weapon(generic,purple_aircraft_laser)
  184. {
  185. displayName = "B.E.A.R.D";
  186. magazines[] = {
  187. macro_new_mag(generic_aircraft_gun_preatorian,1000)
  188. };
  189. class LowROF: LowROF
  190. {
  191. burst = 1;
  192. class StandardSound
  193. {
  194. begin1[] = {"SW_EmpireWeapons\e11\e1.ogg", 0.7, 1, 3000};
  195. soundBegin[] = {"begin1", 0.2};
  196. };
  197. };
  198. };
  199. //Kannon
  200. class macro_new_weapon(generic,kannon) : macro_new_weapon(generic,republic_aircraft_cannon)
  201. {
  202. scope = 1;
  203. displayName = "SIN-C 'Rage'";
  204. magazines[] = {
  205. macro_new_mag(Kannon,100)
  206. };
  207. modes[] = {"LowROF"};
  208. dispersion = 0.00001;
  209. aiRateOfFire = 0.4;
  210. reloadTime=0.4;
  211. burst = 1;
  212. class LowROF: LowROF
  213. {
  214. displayName = "SIN-C 'Rage'";
  215. multiplier=1;
  216. sounds[] = {"StandardSound"};
  217. dispersion = 0.00001;
  218. autoFire=true;
  219. aiRateOfFire = 0.4;
  220. reloadTime=0.4;
  221. burst = 1;
  222. class StandardSound
  223. {
  224. begin1[] = {macro_soundpath\Kannon_Trail_1.ogg,50,1,3000};
  225. begin2[] = {macro_soundpath\Kannon_1.ogg,50,1,3000};
  226. begin3[] = {macro_soundpath\Kannon_2.ogg,50,1,3000};
  227. begin4[] = {macro_soundpath\Kannon_3.ogg,50,1,3000};
  228. begin5[] = {macro_soundpath\Kannon_Trail_2.ogg,50,1,3000};
  229. begin6[] = {macro_soundpath\Kannon_4.ogg,50,1,3000};
  230. begin7[] = {macro_soundpath\Kannon_5.ogg,50,1,3000};
  231. begin8[] = {macro_soundpath\Kannon_Trail_3.ogg,50,1,3000};
  232. soundBegin[] = {"begin1",0.1,"begin2",0.1,"begin3",0.1,"begin4",0.1,"begin5",0.1,"begin6",0.1,"begin7",0.1,"begin8",0.1};
  233. };
  234. };
  235. };
  236. };