config.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #include "..\..\script_component.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_y_wing_gau
  5. {
  6. author=DANKAUTHORS;
  7. addonRootClass= MACRO_QUOTE(RD501_patch_vehicle_weapons);
  8. requiredAddons[]=
  9. {
  10. RD501_patch_vehicle_weapons
  11. };
  12. requiredVersion=0.1;
  13. units[]={};
  14. weapons[]={
  15. macro_new_weapon(voltic,y_wing),
  16. macro_new_weapon(pylon_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. soundClosure[] = {"closure", 1};
  50. };
  51. class StandardSound
  52. {
  53. begin1[] = {""};
  54. begin2[] = {""};
  55. begin3[] = {""};
  56. begin4[] = {""};
  57. begin5[] = {""};
  58. soundBegin[] = {"begin1", 0.2, "begin2", 0.2, "begin3", 0.2, "begin4", 0.2, "begin5", 0.2};
  59. };
  60. burst = 10;
  61. soundContinuous=0;
  62. reloadTime = 0.04;
  63. };
  64. };
  65. class macro_new_weapon(pylon_voltic,y_wing) : macro_new_weapon(voltic,y_wing)
  66. {
  67. displayName = "Voltic (Pylon)";
  68. displayNameShort = "Voltic";
  69. magazines[]={macro_new_mag(pylon_voltic,200)};
  70. class LowROF: LowROF
  71. {
  72. burst = 1;
  73. soundContinuous=0;
  74. reloadTime = 0.04;
  75. dispersion=0.0025;
  76. };
  77. };
  78. };