config.cpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(y_wing_gau)
  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(voltic,y_wing),
  17. macro_new_weapon(pylon_voltic,y_wing)
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class CannonCore;
  24. class Gatling_30mm_Plane_CAS_01_F:CannonCore
  25. {
  26. class LowROF;
  27. };
  28. class macro_new_weapon(voltic,y_wing):Gatling_30mm_Plane_CAS_01_F
  29. {
  30. displayName = "GAU-7D Voltic";
  31. magazines[] = {
  32. macro_new_mag(voltic,200)
  33. };
  34. maxZeroing = 10;
  35. author= "RD501";
  36. ballisticsComputer = 1;
  37. irLock = 1;
  38. cmImmunity = 0;
  39. lockAcquire = 0;
  40. FCSMaxLeadSpeed = 1500;
  41. laserLock = 1;
  42. canLock = 2;
  43. weaponLockSystem = "2+4+8+16";
  44. magazineReloadTime=10;
  45. class LowROF: LowROF
  46. {
  47. sounds[] = {"StandardSound"};
  48. class BaseSoundModeType
  49. {
  50. soundClosure[] = {"closure", 1};
  51. };
  52. class StandardSound
  53. {
  54. begin1[] = {"ywing\Bywinglaser1.ogg", 0.8, 1, 3000};
  55. begin2[] = {"ywing\Bywinglaser2.ogg", 0.8, 1, 3000};
  56. begin3[] = {"ywing\Bywinglaser3.ogg", 0.8, 1, 3000};
  57. begin4[] = {"ywing\Bywinglaser4.ogg", 0.8, 1, 3000};
  58. begin5[] = {"ywing\Bywinglaser5.ogg", 0.8, 1, 3000};
  59. soundBegin[] = {"begin1", 0.2, "begin2", 0.2, "begin3", 0.2, "begin4", 0.2, "begin5", 0.2};
  60. };
  61. burst = 10;
  62. soundContinuous=0;
  63. reloadTime = 0.04;
  64. };
  65. };
  66. class macro_new_weapon(pylon_voltic,y_wing) : macro_new_weapon(voltic,y_wing)
  67. {
  68. displayName = "Voltic (Pylon)";
  69. displayNameShort = "Voltic";
  70. magazines[]={macro_new_mag(pylon_voltic,200)};
  71. class LowROF: LowROF
  72. {
  73. burst = 1;
  74. soundContinuous=0;
  75. reloadTime = 0.04;
  76. dispersion=0.0025;
  77. };
  78. };
  79. };