config.cpp 2.5 KB

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