config.cpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(v_wing_laser)
  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(laser,v_wing)
  17. };
  18. };
  19. };
  20. class CfgWeapons
  21. {
  22. class CannonCore;
  23. class Cannon_30mm_Plane_CAS_02_F: CannonCore
  24. {
  25. class LowROF;
  26. };
  27. class macro_new_weapon(laser,v_wing):Cannon_30mm_Plane_CAS_02_F
  28. {
  29. scope=2;
  30. displayName="Aircraft Laser Gun";
  31. modes[]=
  32. {
  33. "LowROF"
  34. };
  35. canLock=1;
  36. ballisticsComputer=1;
  37. weaponLockSystem=0;
  38. magazines[]=
  39. {
  40. macro_new_mag(generic_aircraft_gun_asg,3000)
  41. };
  42. magazineWell[]=
  43. {
  44. "RD501_generic_aircraft_laser_magwell"
  45. };
  46. class LowROF: LowROF
  47. {
  48. displayName="Energy Laser";
  49. multiplier=1;
  50. sounds[]=
  51. {
  52. "StandardSound"
  53. };
  54. class StandardSound
  55. {
  56. begin1[]=
  57. {
  58. "SW_RebelWeapons\A300\A280CFE1.ogg",
  59. 1.1,
  60. 1,
  61. 1800
  62. };
  63. begin2[]=
  64. {
  65. "SW_RebelWeapons\A300\A280CFE2.ogg",
  66. 1.1,
  67. 1,
  68. 1800
  69. };
  70. begin3[]=
  71. {
  72. "SW_RebelWeapons\A300\A280CFE3.ogg",
  73. 1.1,
  74. 1,
  75. 1800
  76. };
  77. begin4[]=
  78. {
  79. "SW_RebelWeapons\A300\A280CFE4.ogg",
  80. 1.1,
  81. 1,
  82. 1800
  83. };
  84. begin5[]=
  85. {
  86. "SW_RebelWeapons\A300\A280CFE5.ogg",
  87. 1.1,
  88. 1,
  89. 1800
  90. };
  91. soundBegin[]=
  92. {
  93. "begin1",
  94. 0.2,
  95. "begin2",
  96. 0.2,
  97. "begin3",
  98. 0.2,
  99. "begin4",
  100. 0.2,
  101. "begin5",
  102. 0.2
  103. };
  104. };
  105. flashSize=1;
  106. dispersion=0.002;
  107. autoFire="true";
  108. aiRateOfFire=0.001;
  109. reloadTime=0.02;
  110. aiRateOfFireDispersion=0;
  111. aiRateOfFireDistance=0;
  112. minRange=0;
  113. minRangeProbab=1;
  114. midRange=7500;
  115. midRangeProbab=1;
  116. maxRange=15000;
  117. maxRangeProbab=1;
  118. weaponLockDelay=0;
  119. weaponLockSystem=0;
  120. lockAcquire=1;
  121. FCSMaxLeadSpeed=1000;
  122. burst=2;
  123. };
  124. };
  125. };