config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #define COMPONENT DC_15l
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(dc_15l)
  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(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. magazines[]=
  38. {
  39. macro_new_mag(20mw,240)
  40. };
  41. class FullAuto:FullAuto
  42. {
  43. reloadTime=0.08;
  44. dispersion=0.00075;
  45. };
  46. class Single : Single
  47. {
  48. reloadTime=0.08;
  49. dispersion=0.00075;
  50. };
  51. class WeaponSlotsInfo: WeaponSlotsInfo
  52. {
  53. mass = 30;
  54. class CowsSlot
  55. {
  56. displayName = "Optics Slot";
  57. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  58. iconPinpoint = "Bottom";
  59. iconPosition[] = {0.5,0.35};
  60. iconScale = 0.2;
  61. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  62. scope = 0;
  63. compatibleItems[] =
  64. {
  65. "RD501_RCO",
  66. "RD501_RCO_2",
  67. "RD501_RCO_3",
  68. "RD501_Holosight",
  69. "RD501_Holosight_2",
  70. "RD501_Holosight_3",
  71. "RD501_DMS",
  72. "RD501_DMS_2",
  73. "RD501_DMS_3",
  74. "RD501_DMS_4",
  75. "RD501_MRCO",
  76. "RD501_MRCO_2",
  77. "RD501_MRCO_3"
  78. };
  79. };
  80. class UnderBarrelSlot
  81. {
  82. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  83. compatibleItems[]=
  84. {
  85. "bipod_01_F_blk",
  86. };
  87. iconPicture="\A3\Weapons_F_Mark\Data\UI\attachment_under.paa";
  88. iconPinpoint="Bottom";
  89. };
  90. class MuzzleSlot
  91. {
  92. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  93. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  94. compatibleItems[]=
  95. {
  96. "RD501_muzzle_flash",
  97. "RD501_acc_particle_condenser",
  98. "RD501_acc_particle_accelerator"
  99. };
  100. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  101. iconPinpoint="Center";
  102. };
  103. };
  104. /*class LinkedItems
  105. {
  106. class LinkedItemsUnder
  107. {
  108. slot = "UnderBarrelSlot";
  109. item = "bipod_01_F_blk";
  110. };
  111. };*/
  112. };
  113. };