config.cpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(laat_cannons)
  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 Cannon_30mm_Plane_CAS_02_F;
  23. class Cannon_LAAT:Cannon_30mm_Plane_CAS_02_F
  24. {
  25. class LowROF;
  26. }
  27. class macro_new_weapon(cannon,laat): Cannon_LAAT//Cannon_TurboLaserx2_RD501//Cannon_LAAT
  28. {
  29. author= "RD501";
  30. displayName = "LAAT Laser Cannon";
  31. magazines[] = {
  32. macro_new_mag(laat_cannon,100)
  33. };
  34. initSpeed = 2000;
  35. ballisticsComputer = 1;
  36. canLock = 2;
  37. FCSMaxLeadSpeed = 1500;
  38. magazineReloadTime=6;
  39. modes[] = {"manual", "close"};
  40. class manual: LowROF//manual//LowROF
  41. {
  42. sounds[] = {"StandardSound"};
  43. class BaseSoundModeType
  44. {
  45. closure1[] = {};
  46. soundClosure[] = {};
  47. };
  48. class StandardSound
  49. {
  50. begin1[] = {"SW_Droides_2\ATTE\atte_laserx2.ogg", 1.5, 1, 2000};
  51. soundBegin[] = {"begin1", 1};
  52. closure1[] = {};
  53. soundClosure[] = {"closure1", 1};
  54. };
  55. reloadTime = 0.4;
  56. dispersion = 0.00001;
  57. autoFire = 1;
  58. recoil = "Empty";
  59. showToPlayer = 1;
  60. burst = 1;
  61. ballisticscomputer = 1;
  62. minRange = 1;
  63. minRangeProbab = 0.1;
  64. midRange = 400;
  65. midRangeProbab = 0.7;
  66. maxRange = 1200;
  67. maxRangeProbab = 0.04;
  68. aiDispersionCoefY = 7;
  69. aiDispersionCoefX = 7;
  70. aiRateOfFire = 0.3;
  71. aiRateOfFireDistance = 1500;
  72. maxLeadSpeed = 600;
  73. };
  74. class close: manual
  75. {
  76. showToPlayer = 0;
  77. soundBurst = 0;
  78. burst = 12;
  79. aiRateOfFire = .4;
  80. aiRateOfFireDistance = 200;
  81. minRange = 0;
  82. minRangeProbab = 0.05;
  83. midRange = 1000;
  84. midRangeProbab = 0.58;
  85. maxRange = 2000;
  86. maxRangeProbab = 0.04;
  87. };
  88. };
  89. };