1
0

config.cpp 4.6 KB

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