config.cpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. //macro_new_weapon(cannon,laat)
  17. };
  18. };
  19. };
  20. class CfgWeapons
  21. {
  22. class LMG_RCWS;
  23. class Cannon_Portableun:LMG_RCWS
  24. {
  25. class manual;
  26. };
  27. class macro_new_weapon(turret,laat_ball_turret):Cannon_Portableun
  28. {
  29. displayName = "BeamRider Mk-III";
  30. magazines[] = {macro_new_mag(laat_ball_turret,200)};
  31. stabilizedInAxes = 3;
  32. ballisticsComputer = 1;
  33. canLock = 2;
  34. magazineReloadTime=10;
  35. dlc = "RD501";
  36. author= "RD501";
  37. modes[] = {"manual", "close"};
  38. class manual: manual
  39. {
  40. sounds[] = {"StandardSound"};
  41. class BaseSoundModeType
  42. {
  43. closure1[] = {};
  44. soundClosure[] = {};
  45. };
  46. displayName = "Laat Ball Turret";
  47. reloadTime = 0.0009;
  48. //sounds[] = {"StandardSound"};
  49. class StandardSound
  50. {
  51. weaponSoundEffect = "DefaultRifle";
  52. begin1[] = {"Uwing\uwingcannon.ogg", 0.8, 0.5, 2000};
  53. soundBegin[] = {"begin1", 1};
  54. };
  55. autoFire = 1;
  56. recoil = "Empty";
  57. dispersion = 0;
  58. showToPlayer = 1;
  59. burst = 1;
  60. ballisticscomputer = 1;
  61. minRange = 1;
  62. minRangeProbab = 0.1;
  63. midRange = 400;
  64. midRangeProbab = 0.7;
  65. maxRange = 1200;
  66. maxRangeProbab = 0.04;
  67. aiDispersionCoefY = 7;
  68. aiDispersionCoefX = 7;
  69. aiRateOfFire = 0.3;
  70. aiRateOfFireDistance = 1500;
  71. maxLeadSpeed = 600;
  72. };
  73. class close: manual
  74. {
  75. showToPlayer = 0;
  76. soundBurst = 0;
  77. burst = 12;
  78. aiRateOfFire = 0.05;
  79. aiRateOfFireDistance = 2000;
  80. minRange = 0;
  81. minRangeProbab = 0.05;
  82. midRange = 1000;
  83. midRangeProbab = 0.58;
  84. maxRange = 8000;
  85. maxRangeProbab = 0.04;
  86. };
  87. };
  88. };