config.cpp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(v_wing_laser)
  6. {
  7. author=MACRO_QUOTE(DANKAUTHORS);
  8. addonRootClass=MACRO_QUOTE(macro_patch_name(vehicle_weapons));
  9. requiredAddons[]=
  10. {
  11. MACRO_QUOTE(macro_patch_name(vehicle_weapons))
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. MACRO_QUOTE(macro_new_weapon(laser,v_wing))
  17. };
  18. };
  19. };
  20. class CfgWeapons
  21. {
  22. class CannonCore;
  23. class Cannon_30mm_Plane_CAS_02_F: CannonCore
  24. {
  25. class LowROF;
  26. };
  27. class macro_new_weapon(laser,v_wing):Cannon_30mm_Plane_CAS_02_F
  28. {
  29. scope=2;
  30. displayName="Aircraft Laser Gun";
  31. modes[]=
  32. {
  33. "LowROF"
  34. };
  35. canLock=1;
  36. ballisticsComputer=1;
  37. weaponLockSystem=0;
  38. magazines[]=
  39. {
  40. macro_new_mag(generic_aircraft_gun_asg,3000)
  41. };
  42. magazineWell[]=
  43. {
  44. "RD501_generic_aircraft_laser_magwell"
  45. };
  46. class LowROF: LowROF
  47. {
  48. displayName="Energy Laser";
  49. multiplier=1;
  50. sounds[]=
  51. {
  52. "StandardSound"
  53. };
  54. class StandardSound
  55. {
  56. begin1[]=
  57. {
  58. "3AS\3AS_AAT\data\sounds\AAT_Cannon.wss",
  59. 1,
  60. 0.89999998,
  61. 6000
  62. };
  63. begin2[]=
  64. {
  65. "3AS\3AS_AAT\data\sounds\AAT_Cannon.wss",
  66. 1,
  67. 0.89999998,
  68. 6000
  69. };
  70. soundBegin[]=
  71. {
  72. "begin1",
  73. 0.1,
  74. "begin2",
  75. 0.5
  76. };
  77. class SoundTails
  78. {
  79. class TailForest
  80. {
  81. sound[]=
  82. {
  83. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_forest",
  84. 1,
  85. 1,
  86. 2200
  87. };
  88. frequency=1;
  89. volume="(1-interior/1.4)*forest";
  90. };
  91. class TailHouses
  92. {
  93. sound[]=
  94. {
  95. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_houses",
  96. 1,
  97. 1,
  98. 2200
  99. };
  100. frequency=1;
  101. volume="(1-interior/1.4)*houses";
  102. };
  103. class TailInterior
  104. {
  105. sound[]=
  106. {
  107. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_interior",
  108. 1.99526,
  109. 1,
  110. 2200
  111. };
  112. frequency=1;
  113. volume="interior";
  114. };
  115. class TailMeadows
  116. {
  117. sound[]=
  118. {
  119. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_meadows",
  120. 1,
  121. 1,
  122. 2200
  123. };
  124. frequency=1;
  125. volume="(1-interior/1.4)*(meadows/2 max sea/2)";
  126. };
  127. class TailTrees
  128. {
  129. sound[]=
  130. {
  131. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_trees",
  132. 1,
  133. 1,
  134. 2200
  135. };
  136. frequency=1;
  137. volume="(1-interior/1.4)*trees";
  138. };
  139. };
  140. };
  141. soundContinuous=0;
  142. flashSize=1;
  143. dispersion=0.002;
  144. autoFire="true";
  145. aiRateOfFire=0.001;
  146. reloadTime=0.02;
  147. aiRateOfFireDispersion=0;
  148. aiRateOfFireDistance=0;
  149. minRange=0;
  150. minRangeProbab=1;
  151. midRange=7500;
  152. midRangeProbab=1;
  153. maxRange=15000;
  154. maxRangeProbab=1;
  155. weaponLockDelay=0;
  156. weaponLockSystem=0;
  157. lockAcquire=1;
  158. FCSMaxLeadSpeed=1000;
  159. burst=2;
  160. };
  161. };
  162. };