config.cpp 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(laat_cannons)
  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(cannon,laat)
  17. };
  18. };
  19. };
  20. class CfgWeapons
  21. {
  22. class CannonCore;
  23. class Gatling_30mm_Plane_CAS_01_F:CannonCore
  24. {
  25. class LowROF;
  26. };
  27. class macro_new_weapon(cannon,laat): Gatling_30mm_Plane_CAS_01_F//Cannon_TurboLaserx2_RD501//Cannon_LAAT
  28. {
  29. author= "RD501";
  30. displayName="LAAT Laser Cannon";
  31. magazines[]=
  32. {
  33. macro_new_mag(laat_cannon,100),
  34. macro_new_mag(laat_cannon_double,100)
  35. };
  36. scope=2;
  37. initSpeed = 2000;
  38. ballisticsComputer = 4;
  39. canLock = 2;
  40. FCSMaxLeadSpeed = 1500;
  41. magazineReloadTime=6;
  42. autoFire=0;
  43. burst=1;
  44. class LowROF: LowROF
  45. {
  46. sounds[]=
  47. {
  48. "StandardSound"
  49. };
  50. class StandardSound
  51. {
  52. begin1[]=
  53. {
  54. "3AS\3AS_AAT\data\sounds\AAT_Cannon.wss",
  55. 1,
  56. 0.89999998,
  57. 6000
  58. };
  59. begin2[]=
  60. {
  61. "3AS\3AS_AAT\data\sounds\AAT_Cannon.wss",
  62. 1,
  63. 0.89999998,
  64. 6000
  65. };
  66. soundBegin[]=
  67. {
  68. "begin1",
  69. 0.1,
  70. "begin2",
  71. 0.5
  72. };
  73. class SoundTails
  74. {
  75. class TailForest
  76. {
  77. sound[]=
  78. {
  79. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_forest",
  80. 1,
  81. 1,
  82. 2200
  83. };
  84. frequency=1;
  85. volume="(1-interior/1.4)*forest";
  86. };
  87. class TailHouses
  88. {
  89. sound[]=
  90. {
  91. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_houses",
  92. 1,
  93. 1,
  94. 2200
  95. };
  96. frequency=1;
  97. volume="(1-interior/1.4)*houses";
  98. };
  99. class TailInterior
  100. {
  101. sound[]=
  102. {
  103. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_interior",
  104. 1.99526,
  105. 1,
  106. 2200
  107. };
  108. frequency=1;
  109. volume="interior";
  110. };
  111. class TailMeadows
  112. {
  113. sound[]=
  114. {
  115. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_meadows",
  116. 1,
  117. 1,
  118. 2200
  119. };
  120. frequency=1;
  121. volume="(1-interior/1.4)*(meadows/2 max sea/2)";
  122. };
  123. class TailTrees
  124. {
  125. sound[]=
  126. {
  127. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_trees",
  128. 1,
  129. 1,
  130. 2200
  131. };
  132. frequency=1;
  133. volume="(1-interior/1.4)*trees";
  134. };
  135. };
  136. };
  137. multiplier=1;
  138. ballisticscomputer = 4;
  139. soundContinuous=1;
  140. autoFire=1;
  141. flash="gunfire";
  142. flashSize=0.1;
  143. recoil="Empty";
  144. ffMagnitude=0.5;
  145. ffFrequency=11;
  146. ffCount=6;
  147. burst=1;
  148. showToPlayer=1;
  149. reloadTime = 0.4;
  150. dispersion = 0.00001;
  151. aiRateOfFire=1;
  152. aiRateOfFireDistance=10;
  153. minRange=0;
  154. minRangeProbab=0.0099999998;
  155. midRange=1;
  156. midRangeProbab=0.0099999998;
  157. maxRange=2;
  158. maxRangeProbab=0.0099999998;
  159. };
  160. };
  161. };