config.cpp 5.6 KB

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