config.cpp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. magazines[]=
  39. {
  40. macro_new_mag(20mwdp,20),
  41. macro_new_mag(30mw,10)
  42. };
  43. class Single : Single
  44. {
  45. reloadTime=0.65;
  46. dispersion=0.00045;
  47. };
  48. class WeaponSlotsInfo: WeaponSlotsInfo
  49. {
  50. mass = 30;
  51. class CowsSlot: CowsSlot
  52. {
  53. access = 1;
  54. compatibleItems[] =
  55. {
  56. macro_new_weapon(scope,valken_6_12x)
  57. };
  58. };
  59. class MuzzleSlot: MuzzleSlot
  60. {
  61. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  62. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  63. compatibleItems[]=
  64. {
  65. "RD501_muzzle_flash"
  66. };
  67. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  68. iconPinpoint="Center";
  69. };
  70. };
  71. };
  72. class arifle_MX_Base_F;
  73. class JLTS_DW32S:arifle_MX_Base_F
  74. {
  75. class Single;
  76. class WeaponSlotsInfo
  77. {
  78. class CowsSlot;
  79. class MuzzleSlot;
  80. };
  81. };
  82. class macro_new_weapon_nofam(valken38y):JLTS_DW32S
  83. {
  84. displayName="Republic Valken 38Y";
  85. dispersion=0.00045;
  86. magazines[]=
  87. {
  88. macro_new_mag(20mwdp,20),
  89. macro_new_mag(30mw,10)
  90. };
  91. muzzles[]={"this"};
  92. class Single : Single
  93. {
  94. reloadTime=0.65;
  95. dispersion=0.00045;
  96. };
  97. class WeaponSlotsInfo: WeaponSlotsInfo
  98. {
  99. mass = 30;
  100. class CowsSlot: CowsSlot
  101. {
  102. access = 1;
  103. compatibleItems[] =
  104. {
  105. macro_new_weapon(scope,valken_6_12x)
  106. };
  107. };
  108. class MuzzleSlot: MuzzleSlot
  109. {
  110. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  111. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  112. compatibleItems[]=
  113. {
  114. "RD501_muzzle_flash"
  115. };
  116. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  117. iconPinpoint="Center";
  118. };
  119. };
  120. };
  121. };