config.cpp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. };
  34. };
  35. };
  36. class CfgWeapons
  37. {
  38. class Cannon_30mm_Plane_CAS_02_F;
  39. class SWOP_Cannon_trid:Cannon_30mm_Plane_CAS_02_F
  40. {
  41. class LowROF;
  42. };
  43. class CannonCore;
  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. begin1[] = {"SWOP_vehiclecommon\Speeder\Speederbike\Sounds\canon",1.5,1,2500};
  122. soundBegin[] = {"begin1",1};
  123. };
  124. };
  125. };
  126. class macro_new_weapon(generic,plasma_aircraft_cannon) : macro_new_weapon(generic,republic_aircraft_cannon)
  127. {
  128. class LowROF: LowROF
  129. {
  130. dispersion = 0;
  131. class StandardSound
  132. {
  133. begin1[] = {"SWOP_vehiclecommon\Speeder\Speederbike\Sounds\canon",1.5,1,2500};
  134. soundBegin[] = {"begin1",1};
  135. };
  136. };
  137. };
  138. class macro_new_weapon(aa_gun,aa_gun_base) : macro_new_weapon(generic,republic_aircraft_cannon)
  139. {
  140. displayName = "PPTG2AC"
  141. magazines[] = {macro_new_mag(AA_Gun_Base,1000)};
  142. class LowROF: LowROF
  143. {
  144. dispersion = 0;
  145. class StandardSound
  146. {
  147. begin1[] = {"TIEdef\ioncanon1.ogg",1.1,1.1,3000};
  148. begin2[] = {"TIEdef\ioncanon2.ogg",1.1,1.1,3000};
  149. begin3[] = {"TIEdef\ioncanon3.ogg",1.1,1.1,3000};
  150. soundBegin[] = {"begin1",0.33,"begin2",0.33,"begin3",0.34};
  151. };
  152. };
  153. };
  154. //Preatorian gun
  155. class autocannon_35mm;
  156. class macro_new_weapon(generic,preatorian_gun_opfor): autocannon_35mm
  157. {
  158. displayName = "B.E.A.R.D";
  159. magazines[] = {
  160. macro_new_mag(generic_aircraft_gun_preatorian,1000)
  161. };
  162. };
  163. //Kannon
  164. class macro_new_weapon(generic,kannon) : macro_new_weapon(generic,republic_aircraft_cannon)
  165. {
  166. scope = 1;
  167. displayName = "SIN-C 'Rage'";
  168. magazines[] = {
  169. macro_new_mag(Kannon,100)
  170. };
  171. modes[] = {"LowROF"};
  172. dispersion = 0.00001;
  173. aiRateOfFire = 0.4;
  174. reloadTime=0.4;
  175. burst = 1;
  176. class LowROF: LowROF
  177. {
  178. displayName = "SIN-C 'Rage'";
  179. multiplier=1;
  180. dispersion = 0.00001;
  181. autoFire=true;
  182. aiRateOfFire = 0.4;
  183. reloadTime=0.4;
  184. burst = 1;
  185. };
  186. };
  187. class macro_new_weapon(generic,tank_repeater) : macro_new_weapon(generic,aircraft_laser)
  188. {
  189. scope = 1;
  190. displayName = "CIS Heavy Repeater";
  191. magazines[] = {macro_new_mag(generic_aircraft_gun,1000)};
  192. modes[] = {"LowROF"};
  193. dispersion = 0.01;
  194. aiRateOfFire = 0.1;
  195. reloadTime=0.1;
  196. burst = 1;
  197. class LowROF: LowROF
  198. {
  199. displayName = "CIS Heavy Repeater";
  200. multiplier=1;
  201. dispersion = 0.00001;
  202. autoFire=true;
  203. aiRateOfFire = 0.1;
  204. reloadTime=0.1;
  205. burst = 1;
  206. };
  207. };
  208. };