config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(ball_turret)
  6. {
  7. author=DANKAUTHORS;
  8. addonRootClass= macro_patch_name(vehicle_weapons)
  9. requiredAddons[]=
  10. {
  11. macro_patch_name(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. };
  40. stabilizedInAxes = 3;
  41. ballisticsComputer = 1;
  42. canLock = 2;
  43. magazineReloadTime=10;
  44. };
  45. class macro_new_weapon(turret,laat_ball_beam_r): macro_new_weapon(turret,laat_ball_beam_l){};
  46. class LMG_RCWS;
  47. class Cannon_Portableun:LMG_RCWS
  48. {
  49. class manual;
  50. };
  51. class macro_new_weapon(turret,laat_ball_turret):Cannon_Portableun
  52. {
  53. displayName = "BeamRider Mk-III";
  54. magazines[] = {macro_new_mag(laat_ball_turret,200)};
  55. stabilizedInAxes = 3;
  56. ballisticsComputer = 1;
  57. canLock = 2;
  58. magazineReloadTime=10;
  59. dlc = "RD501";
  60. author= "RD501";
  61. modes[] = {"manual", "close"};
  62. class manual: manual
  63. {
  64. sounds[] = {"StandardSound"};
  65. class BaseSoundModeType
  66. {
  67. closure1[] = {};
  68. soundClosure[] = {};
  69. };
  70. displayName = "Laat Ball Turret";
  71. reloadTime = 0.0009;
  72. class StandardSound
  73. {
  74. weaponSoundEffect = "DefaultRifle";
  75. begin1[] = {"Uwing\uwingcannon.ogg", 0.8, 0.5, 2000};
  76. soundBegin[] = {"begin1", 1};
  77. };
  78. autoFire = 1;
  79. recoil = "Empty";
  80. dispersion = 0;
  81. showToPlayer = 1;
  82. burst = 1;
  83. ballisticscomputer = 1;
  84. minRange = 1;
  85. minRangeProbab = 0.1;
  86. midRange = 400;
  87. midRangeProbab = 0.7;
  88. maxRange = 1200;
  89. maxRangeProbab = 0.04;
  90. aiDispersionCoefY = 7;
  91. aiDispersionCoefX = 7;
  92. aiRateOfFire = 0.3;
  93. aiRateOfFireDistance = 1500;
  94. maxLeadSpeed = 600;
  95. };
  96. class close: manual
  97. {
  98. showToPlayer = 0;
  99. soundBurst = 0;
  100. burst = 12;
  101. aiRateOfFire = 0.05;
  102. aiRateOfFireDistance = 2000;
  103. minRange = 0;
  104. minRangeProbab = 0.05;
  105. midRange = 1000;
  106. midRangeProbab = 0.58;
  107. maxRange = 8000;
  108. maxRangeProbab = 0.04;
  109. };
  110. };
  111. };