config.cpp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. closure[] = {"SW_CloneWarsWeapons\SW_Z6\sound\closure.wav", 2, 1, 30};
  51. soundClosure[] = {"closure", 1};
  52. };
  53. class StandardSound
  54. {
  55. begin1[] = {"ywing\Bywinglaser1.ogg", 0.8, 1, 3000};
  56. begin2[] = {"ywing\Bywinglaser2.ogg", 0.8, 1, 3000};
  57. begin3[] = {"ywing\Bywinglaser3.ogg", 0.8, 1, 3000};
  58. begin4[] = {"ywing\Bywinglaser4.ogg", 0.8, 1, 3000};
  59. begin5[] = {"ywing\Bywinglaser5.ogg", 0.8, 1, 3000};
  60. soundBegin[] = {"begin1", 0.2, "begin2", 0.2, "begin3", 0.2, "begin4", 0.2, "begin5", 0.2};
  61. };
  62. burst = 10;
  63. soundContinuous=0;
  64. reloadTime = 0.04;
  65. };
  66. };
  67. class macro_new_weapon(pylon_voltic,y_wing) : macro_new_weapon(voltic,y_wing)
  68. {
  69. displayName = "Voltic (Pylon)";
  70. displayNameShort = "Voltic";
  71. magazines[]={macro_new_mag(pylon_voltic,200)};
  72. class LowROF: LowROF
  73. {
  74. burst = 1;
  75. soundContinuous=0;
  76. reloadTime = 0.04;
  77. dispersion=0.0025;
  78. };
  79. };
  80. };