config.cpp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #define COMPONENT DC_15s
  2. #include "../../RD501_main/config_macros.hpp"
  3. #include "../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(valken38x)
  7. {
  8. author="RD501";
  9. addonRootClass= macro_patch_name(weapons)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(weapons)
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. macro_new_weapon_nofam(valken38x),
  18. macro_new_weapon_nofam(valken38y)
  19. };
  20. };
  21. };
  22. class CfgWeapons
  23. {
  24. class 3AS_Valken38X_Base_F;
  25. class 3AS_Valken38X_F:3AS_Valken38X_Base_F
  26. {
  27. class Single;
  28. class WeaponSlotsInfo
  29. {
  30. class CowsSlot;
  31. class MuzzleSlot;
  32. };
  33. };
  34. class macro_new_weapon_nofam(valken38x):3AS_Valken38X_F
  35. {
  36. displayName="Republic Valken 38X";
  37. dispersion=0.00045;
  38. ACE_Overheating_JamChance = 0;
  39. magazines[]=
  40. {
  41. macro_new_mag(20mwdp,20),
  42. macro_new_mag(30mw,10)
  43. };
  44. class Single : Single
  45. {
  46. reloadTime=0.35;
  47. dispersion=0.00045;
  48. };
  49. class WeaponSlotsInfo: WeaponSlotsInfo
  50. {
  51. mass = 30;
  52. class CowsSlot: CowsSlot
  53. {
  54. access = 1;
  55. compatibleItems[] =
  56. {
  57. macro_new_weapon(scope,valken_6_12x)
  58. };
  59. };
  60. class MuzzleSlot: MuzzleSlot
  61. {
  62. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  63. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  64. compatibleItems[]=
  65. {
  66. "RD501_muzzle_flash"
  67. };
  68. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  69. iconPinpoint="Center";
  70. };
  71. };
  72. };
  73. class arifle_MX_Base_F;
  74. class JLTS_DW32S:arifle_MX_Base_F
  75. {
  76. class Single;
  77. class WeaponSlotsInfo
  78. {
  79. class CowsSlot;
  80. class MuzzleSlot;
  81. };
  82. };
  83. class macro_new_weapon_nofam(valken38y):JLTS_DW32S
  84. {
  85. displayName="Republic Valken 38Y";
  86. dispersion=0.00045;
  87. ACE_Overheating_JamChance = 0;
  88. magazines[]=
  89. {
  90. macro_new_mag(20mwdp,20),
  91. macro_new_mag(30mw,10)
  92. };
  93. muzzles[]={"this"};
  94. class Single : Single
  95. {
  96. reloadTime=0.35;
  97. dispersion=0.00045;
  98. };
  99. class WeaponSlotsInfo: WeaponSlotsInfo
  100. {
  101. mass = 30;
  102. class CowsSlot: CowsSlot
  103. {
  104. displayName = "Optics Slot";
  105. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  106. iconPinpoint = "Bottom";
  107. iconPosition[] = {0.5,0.35};
  108. iconScale = 0.2;
  109. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  110. scope = 0;
  111. access=1;
  112. compatibleItems[] =
  113. {
  114. "RD501_DMS",
  115. "RD501_DMS_2",
  116. "RD501_DMS_3"
  117. };
  118. };
  119. class MuzzleSlot: MuzzleSlot
  120. {
  121. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  122. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  123. compatibleItems[]=
  124. {
  125. "RD501_muzzle_flash"
  126. };
  127. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  128. iconPinpoint="Center";
  129. };
  130. };
  131. };
  132. };