config.cpp 1.7 KB

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