config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #define COMPONENT DC_15l
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class RD501_patch_dc_15l
  7. {
  8. author="RD501";
  9. addonRootClass = MACRO_QUOTE(RD501_patch_weapons);
  10. requiredAddons[]=
  11. {
  12. RD501_patch_weapons
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. macro_new_weapon(DC,15l),
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class UnderBarrelSlot;
  24. class 3AS_DC15L_Base_F;
  25. class 3AS_DC15L_F:3AS_DC15L_Base_F
  26. {
  27. class FullAuto;
  28. class Single;
  29. class WeaponSlotsInfo;
  30. };
  31. class macro_new_weapon(DC,15l):3AS_DC15L_F
  32. {
  33. displayName="Republic DC-15L";
  34. recoil="recoil_mmg_02";
  35. dispersion=0.00075;
  36. ACE_Overheating_mrbs = 450000;
  37. canShootInWater=1;
  38. magazines[]=
  39. {
  40. macro_new_mag(20mw,240)
  41. };
  42. class FullAuto:FullAuto
  43. {
  44. reloadTime=0.08;
  45. dispersion=0.00075;
  46. };
  47. class Single : Single
  48. {
  49. reloadTime=0.08;
  50. dispersion=0.00075;
  51. };
  52. class WeaponSlotsInfo: WeaponSlotsInfo
  53. {
  54. mass = 30;
  55. class CowsSlot
  56. {
  57. displayName = "Optics Slot";
  58. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  59. iconPinpoint = "Bottom";
  60. iconPosition[] = {0.5,0.35};
  61. iconScale = 0.2;
  62. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  63. scope = 0;
  64. compatibleItems[] =
  65. {
  66. "RD501_RCO",
  67. "RD501_RCO_2",
  68. "RD501_RCO_3",
  69. "RD501_Holosight",
  70. "RD501_Holosight_2",
  71. "RD501_Holosight_3",
  72. "RD501_DMS",
  73. "RD501_DMS_2",
  74. "RD501_DMS_3",
  75. "RD501_DMS_4",
  76. "RD501_MRCO",
  77. "RD501_MRCO_2",
  78. "RD501_MRCO_3",
  79. "3AS_Optic_DC15L"
  80. };
  81. };
  82. class UnderBarrelSlot
  83. {
  84. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  85. compatibleItems[]=
  86. {
  87. "bipod_01_F_blk",
  88. };
  89. iconPicture="\A3\Weapons_F_Mark\Data\UI\attachment_under.paa";
  90. iconPinpoint="Bottom";
  91. };
  92. class MuzzleSlot
  93. {
  94. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  95. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  96. compatibleItems[]=
  97. {
  98. "RD501_muzzle_flash",
  99. "RD501_acc_particle_condenser",
  100. "RD501_acc_particle_accelerator"
  101. };
  102. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  103. iconPinpoint="Center";
  104. };
  105. };
  106. /*class LinkedItems
  107. {
  108. class LinkedItemsUnder
  109. {
  110. slot = "UnderBarrelSlot";
  111. item = "bipod_01_F_blk";
  112. };
  113. };*/
  114. };
  115. };