config.cpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 CannonCore;
  23. class Gatling_30mm_Plane_CAS_01_F:CannonCore
  24. {
  25. class LowROF;
  26. };
  27. class macro_new_weapon(cannon,laat): Gatling_30mm_Plane_CAS_01_F//Cannon_TurboLaserx2_RD501//Cannon_LAAT
  28. {
  29. author= "RD501";
  30. displayName="LAAT Laser Cannon";
  31. magazines[]=
  32. {
  33. macro_new_mag(laat_cannon,100),
  34. macro_new_mag(laat_cannon_double,100)
  35. };
  36. scope=2;
  37. initSpeed = 2000;
  38. ballisticsComputer = 4;
  39. canLock = 2;
  40. FCSMaxLeadSpeed = 1500;
  41. magazineReloadTime=6;
  42. autoFire=0;
  43. burst=1;
  44. class LowROF: LowROF
  45. {
  46. displayName="LAAT Laser Cannon";
  47. sounds[]=
  48. {
  49. "StandardSound_1"
  50. };
  51. class StandardSound_1
  52. {
  53. begin1[]=
  54. {
  55. "3as\3as_saber\sounds\wpn_saberTank_autocannon_fire",
  56. 1.99526,
  57. 1,
  58. 1500
  59. };
  60. soundBegin[]=
  61. {
  62. "begin1",
  63. 0.33000001
  64. };
  65. soundsetshot[]=
  66. {
  67. "Autocannon30mmTurret_Shot_SoundSet",
  68. "Autocannon30mmBody_tail_SoundSet"
  69. };
  70. };
  71. multiplier=1;
  72. ballisticscomputer = 4;
  73. soundContinuous=1;
  74. autoFire=1;
  75. flash="gunfire";
  76. flashSize=0.1;
  77. recoil="Empty";
  78. ffMagnitude=0.5;
  79. ffFrequency=11;
  80. ffCount=6;
  81. burst=1;
  82. showToPlayer=1;
  83. reloadTime = 0.4;
  84. dispersion = 0.00001;
  85. aiRateOfFire=1;
  86. aiRateOfFireDistance=10;
  87. minRange=0;
  88. minRangeProbab=0.0099999998;
  89. midRange=1;
  90. midRangeProbab=0.0099999998;
  91. maxRange=2;
  92. maxRangeProbab=0.0099999998;
  93. };
  94. };
  95. };