config.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. };
  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(voltic,y_wing):Gatling_30mm_Plane_CAS_01_F
  28. {
  29. displayName = "GAU-7D Voltic";
  30. magazines[] = {
  31. macro_new_mag(voltic,200)
  32. };
  33. maxZeroing = 10;
  34. author= "RD501";
  35. ballisticsComputer = 1;
  36. irLock = 1;
  37. cmImmunity = 0;
  38. lockAcquire = 0;
  39. FCSMaxLeadSpeed = 1500;
  40. laserLock = 1;
  41. canLock = 2;
  42. weaponLockSystem = "2+4+8+16";
  43. magazineReloadTime=10;
  44. class LowROF: LowROF
  45. {
  46. sounds[] = {"StandardSound"};
  47. class BaseSoundModeType
  48. {
  49. closure[] = {"SW_CloneWarsWeapons\SW_Z6\sound\closure.wav", 2, 1, 30};
  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. };