config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #include "..\..\script_component.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_ball_turret
  5. {
  6. author=DANKAUTHORS;
  7. addonRootClass= MACRO_QUOTE(RD501_patch_vehicle_weapons);
  8. requiredAddons[]=
  9. {
  10. RD501_patch_vehicle_weapons,
  11. "3AS_LAAT"
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. macro_new_weapon(turret,laat_ball_beam_l),
  17. macro_new_weapon(turret,laat_ball_beam_r)
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class 3as_LAAT_autocannon_30mm;
  24. class ParticleBeamCannon_F: 3as_LAAT_autocannon_30mm
  25. {
  26. class HE;
  27. };
  28. class ParticleBeamCannon: ParticleBeamCannon_F{};
  29. class macro_new_weapon(turret,laat_ball_beam_l): ParticleBeamCannon
  30. {
  31. displayName = "BeamRider Mk-I";
  32. author = DANKAUTHORS;
  33. magazines[] = {macro_new_mag(laat_ball_beam,300), "Laser_Battery_F"};
  34. class HE: HE
  35. {
  36. displayName = "BeamRider Mk-I";
  37. magazines[] = {macro_new_mag(laat_ball_beam,300), "Laser_Battery_F"};
  38. };
  39. stabilizedInAxes = 3;
  40. ballisticsComputer = 1;
  41. canLock = 2;
  42. magazineReloadTime=10;
  43. };
  44. class macro_new_weapon(turret,laat_ball_beam_r): macro_new_weapon(turret,laat_ball_beam_l){};
  45. class LMG_RCWS;
  46. class Cannon_Portableun:LMG_RCWS
  47. {
  48. class manual;
  49. };
  50. class macro_new_weapon(turret,laat_ball_turret):Cannon_Portableun
  51. {
  52. displayName = "BeamRider Mk-III";
  53. magazines[] = {macro_new_mag(laat_ball_turret,200)};
  54. stabilizedInAxes = 3;
  55. ballisticsComputer = 1;
  56. canLock = 2;
  57. magazineReloadTime=10;
  58. dlc = "RD501";
  59. author= "RD501";
  60. modes[] = {"manual", "close"};
  61. class manual: manual
  62. {
  63. sounds[] = {"StandardSound"};
  64. class BaseSoundModeType
  65. {
  66. closure1[] = {};
  67. soundClosure[] = {};
  68. };
  69. displayName = "Laat Ball Turret";
  70. reloadTime = 0.0009;
  71. class StandardSound
  72. {
  73. weaponSoundEffect = "DefaultRifle";
  74. begin1[] = {};
  75. soundBegin[] = {"begin1", 1};
  76. };
  77. autoFire = 1;
  78. recoil = "Empty";
  79. dispersion = 0;
  80. showToPlayer = 1;
  81. burst = 1;
  82. ballisticscomputer = 1;
  83. minRange = 1;
  84. minRangeProbab = 0.1;
  85. midRange = 400;
  86. midRangeProbab = 0.7;
  87. maxRange = 1200;
  88. maxRangeProbab = 0.04;
  89. aiDispersionCoefY = 7;
  90. aiDispersionCoefX = 7;
  91. aiRateOfFire = 0.3;
  92. aiRateOfFireDistance = 1500;
  93. maxLeadSpeed = 600;
  94. };
  95. class close: manual
  96. {
  97. showToPlayer = 0;
  98. soundBurst = 0;
  99. burst = 12;
  100. aiRateOfFire = 0.05;
  101. aiRateOfFireDistance = 2000;
  102. minRange = 0;
  103. minRangeProbab = 0.05;
  104. midRange = 1000;
  105. midRangeProbab = 0.58;
  106. maxRange = 8000;
  107. maxRangeProbab = 0.04;
  108. };
  109. };
  110. };