config.cpp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(missiles)
  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(wynd,a2a),
  17. macro_new_weapon(wynd,agm),
  18. macro_new_weapon(wynd,ugm),
  19. macro_new_weapon(wynd,lgm),
  20. };
  21. };
  22. };
  23. class CfgWeapons
  24. {
  25. class missiles_ASRAAM;
  26. class Rocket_04_AP_Plane_CAS_01_F;
  27. class missiles_DAGR;
  28. class missiles_Jian;
  29. class Missile_AGM_01_Plane_CAS_02_F;
  30. class RocketPods;
  31. class macro_new_weapon(wynd,a2a) : missiles_ASRAAM
  32. {
  33. displayName = "Zephyr (AA)";
  34. displayNameShort = "Zephyr";
  35. magazines[] = {macro_new_mag(a2a,4)};
  36. soundFly[] = {"\xt\SWrocketloop.ogg",3,1,800};
  37. lockedTargetSound[] = {"TIE\LockedOn_2.ogg",0.7,1};
  38. lockingTargetSound[] = {"TIE\Locking_Beep1.ogg",1,1};
  39. };
  40. class macro_new_weapon(wynd,agm) : missiles_DAGR
  41. {
  42. displayName = "Torrent (AGM)";
  43. displayNameShort = "Torrent";
  44. canLock = 2;
  45. magazines[] = {macro_new_mag(agm,6)};
  46. soundfly[] = {"\xt\SWionrocketloop.ogg",3,1,800};
  47. lockedTargetSound[] = {"TIE\LockedOn_2.ogg",0.7,1};
  48. lockingTargetSound[] = {"TIE\Locking_Beep1.ogg",1,1};
  49. };
  50. class macro_new_weapon(wynd,ugm) : Rocket_04_AP_Plane_CAS_01_F
  51. {
  52. displayName = "Hurricane (UGM)";
  53. displayNameShort = "Hurricane";
  54. soundfly[] = {"\xt\SWionrocketloop.ogg",3,1,800};
  55. magazines[] = {macro_new_mag(ugm,10)};
  56. autoFire=true;
  57. };
  58. class macro_new_weapon(wynd,lgm) : missiles_Jian
  59. {
  60. displayName = "Flashfire (LGM)";
  61. displayNameShort = "Flashfire";
  62. soundfly[] = {"\rd501_vehicle_weapons\_sounds\proton_torp.ogg",3,1,800};
  63. magazines[] = {macro_new_mag(lgm,4)};
  64. };
  65. class macro_new_weapon(wynd,lgm1) : missiles_Jian
  66. {
  67. displayName = "Flashfire (LGM)";
  68. displayNameShort = "Flashfire";
  69. soundfly[] = {"\rd501_vehicle_weapons\_sounds\proton_torp.ogg",3,1,800};
  70. magazines[] = {macro_new_mag(lgm,1)};
  71. };
  72. class macro_new_weapon(pylon,agm):missiles_DAGR
  73. {
  74. displayName = "Torrent(Pylon)";
  75. displayNameShort = "Torrent";
  76. canLock = 2;
  77. magazines[] = {
  78. macro_new_mag(pylon_agm,6)
  79. };
  80. soundfly[] = {"\xt\SWionrocketloop.ogg",3,1,800};
  81. lockedTargetSound[] = {"TIE\LockedOn_2.ogg",0.7,1};
  82. lockingTargetSound[] = {"TIE\Locking_Beep1.ogg",1,1};
  83. };
  84. class macro_new_weapon(pylon,a2a) : missiles_ASRAAM
  85. {
  86. displayName = "Zephyr Pylon)";
  87. displayNameShort = "Zephyr";
  88. magazines[] = {macro_new_mag(pylon_aa,4)};
  89. soundFly[] = {"\xt\SWrocketloop.ogg",3,1,800};
  90. lockedTargetSound[] = {"TIE\LockedOn_2.ogg",0.7,1};
  91. lockingTargetSound[] = {"TIE\Locking_Beep1.ogg",1,1};
  92. };
  93. class macro_new_weapon(pylon,ugm) : Rocket_04_AP_Plane_CAS_01_F
  94. {
  95. displayName = "Hurricane(Pylon)";
  96. displayNameShort = "Hurricane";
  97. soundfly[] = {"\xt\SWionrocketloop.ogg",3,1,800};
  98. magazines[] = {macro_new_mag(pylon_ugm,10)};
  99. autoFire=true;
  100. modes[]=
  101. {
  102. "Far_AI",
  103. "Medium_AI",
  104. "Close_AI",
  105. "Burst",
  106. "Dual"
  107. };
  108. class Dual: RocketPods
  109. {
  110. displayName="Hurricane Dual(Pylon)";
  111. textureType="burst";
  112. burst=2;
  113. autoFire=0;
  114. soundContinuous=0;
  115. lockingTargetSound[]=
  116. {
  117. "A3\Sounds_F\weapons\Rockets\locked_1",
  118. 0.56234133,
  119. 1
  120. };
  121. lockedTargetSound[]=
  122. {
  123. "A3\Sounds_F\weapons\Rockets\locked_3",
  124. 0.56234133,
  125. 1.5
  126. };
  127. sounds[]=
  128. {
  129. "StandardSound"
  130. };
  131. class StandardSound
  132. {
  133. begin1[]=
  134. {
  135. "A3\Sounds_F\weapons\Rockets\missile_1",
  136. 1,
  137. 1,
  138. 2000
  139. };
  140. soundBegin[]=
  141. {
  142. "begin1",
  143. 1
  144. };
  145. };
  146. salvo=20;
  147. reloadTime=0.2;
  148. dispersion=0.015;
  149. aiRateOfFire=1;
  150. aiRateOfFireDistance=10;
  151. minRange=0;
  152. minRangeProbab=0.0099999998;
  153. midRange=1;
  154. midRangeProbab=0.0099999998;
  155. maxRange=2;
  156. maxRangeProbab=0.0099999998;
  157. };
  158. };
  159. class macro_new_weapon(pylon,spark) : Rocket_04_AP_Plane_CAS_01_F
  160. {
  161. displayName = "Spark(Pylon)";
  162. displayNameShort = "Spark";
  163. soundfly[] = {"\xt\SWionrocketloop.ogg",3,1,800};
  164. magazines[] = {macro_new_mag(pylon_spark,6)};
  165. autoFire=true;
  166. };
  167. class macro_new_weapon(pylon,lgm) : missiles_Jian
  168. {
  169. displayName = "Flashfire (Pylon)";
  170. displayNameShort = "Flashfire";
  171. soundfly[] = {"\rd501_vehicle_weapons\_sounds\proton_torp.ogg",3,1,800};
  172. magazines[] = {macro_new_mag(pylon_lgm,4)};
  173. };
  174. };