config.cpp 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. #include "..\..\script_component.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_generic_aircraft_weapons
  5. {
  6. author=DANKAUTHORS;
  7. addonRootClass= MACRO_QUOTE(RD501_patch_vehicle_weapons);
  8. requiredAddons[]=
  9. {
  10. RD501_patch_vehicle_weapons
  11. };
  12. requiredVersion=0.1;
  13. units[]={};
  14. weapons[]={
  15. macro_new_weapon(generic,aircraft_laser),
  16. macro_new_weapon(generic,rebel_aircraft_laser),
  17. macro_new_weapon(generic,ion_aircraft_laser),
  18. macro_new_weapon(generic,tie_aircraft_laser),
  19. macro_new_weapon(generic,purple_aircraft_laser),
  20. macro_new_weapon(generic,plasma_aircraft_laser),
  21. macro_new_weapon(generic,tank_repeater),
  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,purple_aircraft_cannon),
  27. macro_new_weapon(generic,plasma_aircraft_cannon),
  28. macro_new_weapon(generic,preatorian_gun_opfor),
  29. macro_new_weapon(aa_gun,aa_gun_base),
  30. macro_new_weapon(generic,blue_dual_aircraft_laser),
  31. macro_new_weapon(generic,green_dual_aircraft_laser),
  32. macro_new_weapon(generic,preatorian_turret_opfor)
  33. };
  34. };
  35. };
  36. class CfgWeapons
  37. {
  38. class CannonCore;
  39. class Cannon_30mm_Plane_CAS_02_F:CannonCore
  40. {
  41. class LowROF;
  42. };
  43. class Gatling_30mm_Plane_CAS_01_F:CannonCore
  44. {
  45. class LowROF;
  46. };
  47. //Laser Guns
  48. #include "aircraft_laser_gun.hpp"
  49. //Laser Cannon
  50. class macro_new_weapon(generic,republic_aircraft_cannon) : macro_new_weapon(generic,aircraft_laser)
  51. {
  52. magazines[] = {macro_new_mag(generic_aircraft_gun_green,1000)};
  53. displayName = "Laser Cannon";
  54. burst = 1;
  55. class LowROF: LowROF
  56. {
  57. textureType = "fullAuto";
  58. burst = 1;
  59. reloadTime=0.04;
  60. dispersion=0;
  61. };
  62. };
  63. class macro_new_weapon(generic,cis_aircraft_cannon) : macro_new_weapon(generic,aircraft_laser)
  64. {
  65. magazines[] = {macro_new_mag(generic_aircraft_cannon_red,1000)};
  66. class LowROF: LowROF
  67. {
  68. textureType = "fullAuto";
  69. burst = 1;
  70. reloadTime=0.04;
  71. dispersion=0;
  72. };
  73. };
  74. class macro_new_weapon(generic,blue_aircraft_cannon) : macro_new_weapon(generic,aircraft_laser)
  75. {
  76. magazines[] = {macro_new_mag(generic_aircraft_cannon_blue,1000)};
  77. class LowROF: LowROF
  78. {
  79. textureType = "fullAuto";
  80. burst = 1;
  81. reloadTime=0.04;
  82. dispersion=0;
  83. };
  84. };
  85. class macro_new_weapon(generic,green_dual_aircraft_laser): macro_new_weapon(generic,aircraft_laser)
  86. {
  87. scope=2;
  88. canLock = 1;
  89. ballisticsComputer = 4;
  90. weaponLockSystem = 0;
  91. magazines[] = {macro_new_mag(generic_aircraft_gun_dual_green,1000),macro_new_mag(generic_aircraft_gun_asg,3000)};
  92. class LowROF: LowROF
  93. {
  94. displayName = "Aircraft Laser Gun";
  95. dispersion = 0.012;
  96. autoFire=true;
  97. aiRateOfFire = 0.001;
  98. reloadTime=0.06;
  99. aiRateOfFireDispersion = 0.0;
  100. aiRateOfFireDistance = 0;
  101. minRange = 0;
  102. minRangeProbab = 1;
  103. midRange = 7500;
  104. midRangeProbab = 1;
  105. maxRange = 15000;
  106. maxRangeProbab = 1;
  107. weaponLockDelay = 0;
  108. weaponLockSystem = 0;
  109. lockAcquire = 1;
  110. FCSMaxLeadSpeed = 1000;
  111. burst = 10;//30;
  112. };
  113. };
  114. class macro_new_weapon(generic,purple_aircraft_cannon) :macro_new_weapon(generic,republic_aircraft_cannon)
  115. {
  116. class LowROF: LowROF
  117. {
  118. class StandardSound
  119. {
  120. soundBegin[] = {"begin1",1};
  121. };
  122. };
  123. };
  124. class macro_new_weapon(generic,plasma_aircraft_cannon) : macro_new_weapon(generic,republic_aircraft_cannon)
  125. {
  126. class LowROF: LowROF
  127. {
  128. dispersion = 0;
  129. class StandardSound
  130. {
  131. soundBegin[] = {"begin1",1};
  132. };
  133. };
  134. };
  135. class macro_new_weapon(aa_gun,aa_gun_base) : macro_new_weapon(generic,republic_aircraft_cannon)
  136. {
  137. displayName = "PPTG2AC";
  138. magazines[] = {macro_new_mag(AA_Gun_Base,1000)};
  139. class LowROF: LowROF
  140. {
  141. dispersion = 0;
  142. class StandardSound
  143. {
  144. begin1[] = {};
  145. begin2[] = {};
  146. begin3[] = {};
  147. soundBegin[] = {"begin1",0.33,"begin2",0.33,"begin3",0.34};
  148. };
  149. };
  150. };
  151. //Preatorian gun
  152. class autocannon_35mm;
  153. class macro_new_weapon(generic,preatorian_gun_opfor): autocannon_35mm
  154. {
  155. displayName = "B.E.A.R.D";
  156. magazines[] = {
  157. macro_new_mag(generic_aircraft_gun_preatorian,1000)
  158. };
  159. };
  160. class macro_new_weapon(generic,preatorian_turret_opfor): autocannon_35mm
  161. {
  162. displayName = "Heavy Turret";
  163. magazines[] = {
  164. macro_new_mag(generic_aircraft_gun,1000)
  165. };
  166. };
  167. //Kannon
  168. class macro_new_weapon(generic,kannon) : macro_new_weapon(generic,republic_aircraft_cannon)
  169. {
  170. scope = 1;
  171. displayName = "SIN-C 'Rage'";
  172. magazines[] = {
  173. macro_new_mag(Kannon,100)
  174. };
  175. modes[] = {"LowROF"};
  176. dispersion = 0.00001;
  177. aiRateOfFire = 0.4;
  178. reloadTime=0.4;
  179. burst = 1;
  180. class LowROF: LowROF
  181. {
  182. displayName = "SIN-C 'Rage'";
  183. multiplier=1;
  184. dispersion = 0.00001;
  185. autoFire=true;
  186. aiRateOfFire = 0.4;
  187. reloadTime=0.4;
  188. burst = 1;
  189. };
  190. };
  191. class macro_new_weapon(generic,tank_repeater) : macro_new_weapon(generic,aircraft_laser)
  192. {
  193. scope = 1;
  194. displayName = "CIS Heavy Repeater";
  195. magazines[] = {macro_new_mag(generic_aircraft_gun,1000)};
  196. modes[] = {"LowROF"};
  197. dispersion = 0.01;
  198. aiRateOfFire = 0.1;
  199. reloadTime=0.1;
  200. burst = 1;
  201. class LowROF: LowROF
  202. {
  203. displayName = "CIS Heavy Repeater";
  204. multiplier=1;
  205. dispersion = 0.00001;
  206. autoFire=true;
  207. aiRateOfFire = 0.1;
  208. reloadTime=0.1;
  209. burst = 1;
  210. };
  211. };
  212. };