aircraft_laser_gun.hpp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. class macro_new_weapon(generic,aircraft_laser) : Gatling_30mm_Plane_CAS_01_F
  2. {
  3. scope = 2;
  4. displayName = "Aircraft Laser Gun";
  5. //magazines[] = {"10000Rnd_RD501_RED_AircraftGun_Mag"};
  6. modes[] = {"LowROF"};
  7. canLock=0;
  8. ballisticsComputer=4;
  9. weaponLockSystem = 0;//changed
  10. magazines[] = {macro_new_mag(generic_aircraft_gun,1000)};
  11. class LowROF: LowROF
  12. {
  13. displayName="Aircraft Laser Cannon";
  14. sounds[]=
  15. {
  16. "StandardSound"
  17. };
  18. class StandardSound
  19. {
  20. begin1[]=
  21. {
  22. "3AS\3AS_AAT\data\sounds\AAT_Cannon.wss",
  23. 1,
  24. 0.89999998,
  25. 6000
  26. };
  27. begin2[]=
  28. {
  29. "3AS\3AS_AAT\data\sounds\AAT_Cannon.wss",
  30. 1,
  31. 0.89999998,
  32. 6000
  33. };
  34. soundBegin[]=
  35. {
  36. "begin1",
  37. 0.1,
  38. "begin2",
  39. 0.5
  40. };
  41. class SoundTails
  42. {
  43. class TailForest
  44. {
  45. sound[]=
  46. {
  47. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_forest",
  48. 1,
  49. 1,
  50. 2200
  51. };
  52. frequency=1;
  53. volume="(1-interior/1.4)*forest";
  54. };
  55. class TailHouses
  56. {
  57. sound[]=
  58. {
  59. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_houses",
  60. 1,
  61. 1,
  62. 2200
  63. };
  64. frequency=1;
  65. volume="(1-interior/1.4)*houses";
  66. };
  67. class TailInterior
  68. {
  69. sound[]=
  70. {
  71. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_interior",
  72. 1.99526,
  73. 1,
  74. 2200
  75. };
  76. frequency=1;
  77. volume="interior";
  78. };
  79. class TailMeadows
  80. {
  81. sound[]=
  82. {
  83. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_meadows",
  84. 1,
  85. 1,
  86. 2200
  87. };
  88. frequency=1;
  89. volume="(1-interior/1.4)*(meadows/2 max sea/2)";
  90. };
  91. class TailTrees
  92. {
  93. sound[]=
  94. {
  95. "A3\Sounds_F\arsenal\weapons\LongRangeRifles\GM6_Lynx\GM6_tail_trees",
  96. 1,
  97. 1,
  98. 2200
  99. };
  100. frequency=1;
  101. volume="(1-interior/1.4)*trees";
  102. };
  103. };
  104. };
  105. soundContinuous=0;
  106. autoFire=1;
  107. multiplier=1;
  108. flash="gunfire";
  109. flashSize=0.1;
  110. recoil="Empty";
  111. ffMagnitude=0.5;
  112. ffFrequency=11;
  113. ffCount=6;
  114. showToPlayer=1;
  115. burst = 1;
  116. reloadTime=0.04;
  117. dispersion = 0.00001;
  118. aiRateOfFire=1;
  119. aiRateOfFireDistance=10;
  120. minRange=0;
  121. minRangeProbab=0.0099999998;
  122. midRange=1;
  123. midRangeProbab=0.0099999998;
  124. maxRange=2;
  125. maxRangeProbab=0.0099999998;
  126. };
  127. };
  128. class macro_new_weapon(generic,rebel_aircraft_laser) : macro_new_weapon(generic,aircraft_laser)
  129. {
  130. displayName = "Rebel Aircraft Laser Gun";
  131. class LowROF: LowROF
  132. {
  133. class StandardSound
  134. {
  135. begin1[] = {"XT\sounds\laser.ogg",1,1,3000};
  136. soundBegin[] = {"begin1",1};
  137. };
  138. };
  139. };
  140. class macro_new_weapon(generic,ion_aircraft_laser) : macro_new_weapon(generic,aircraft_laser)
  141. {
  142. displayName = "ION Aircraft Laser Gun";
  143. ballisticsComputer = "1+4";
  144. class LowROF: LowROF
  145. {
  146. class StandardSound
  147. {
  148. begin1[] = {"TIEdef\ioncanon1.ogg",1.1,1.1,3000};
  149. begin2[] = {"TIEdef\ioncanon2.ogg",1.1,1.1,3000};
  150. begin3[] = {"TIEdef\ioncanon3.ogg",1.1,1.1,3000};
  151. soundBegin[] = {"begin1",0.33,"begin2",0.33,"begin3",0.34};
  152. };
  153. };
  154. };
  155. class macro_new_weapon(generic,purple_aircraft_laser) : macro_new_weapon(generic,aircraft_laser)
  156. {
  157. displayName = "Aircraft Laser Gun";
  158. class LowROF: LowROF
  159. {
  160. class StandardSound
  161. {
  162. begin1[] = {"SWOP_vehiclecommon\Speeder\Speederbike\Sounds\canon",1.5,1,2500};
  163. soundBegin[] = {"begin1",1};
  164. };
  165. };
  166. };
  167. class macro_new_weapon(generic,plasma_aircraft_laser) : macro_new_weapon(generic,aircraft_laser)
  168. {
  169. displayName = "Aircraft Laser Gun";
  170. class LowROF: LowROF
  171. {
  172. class StandardSound
  173. {
  174. begin1[] = {"rd501_vehicle_weapons\_sounds\laser_cannon\laser_cannon_shot.ogg",1.5,1,2500};
  175. soundBegin[] = {"begin1",1};
  176. };
  177. };
  178. };