config.cpp 2.9 KB

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