config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. 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. };
  80. };
  81. class UnderBarrelSlot
  82. {
  83. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  84. compatibleItems[]=
  85. {
  86. "bipod_01_F_blk",
  87. };
  88. iconPicture="\A3\Weapons_F_Mark\Data\UI\attachment_under.paa";
  89. iconPinpoint="Bottom";
  90. };
  91. class MuzzleSlot
  92. {
  93. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  94. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  95. compatibleItems[]=
  96. {
  97. "RD501_muzzle_flash",
  98. "RD501_acc_particle_condenser",
  99. "RD501_acc_particle_accelerator"
  100. };
  101. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  102. iconPinpoint="Center";
  103. };
  104. };
  105. /*class LinkedItems
  106. {
  107. class LinkedItemsUnder
  108. {
  109. slot = "UnderBarrelSlot";
  110. item = "bipod_01_F_blk";
  111. };
  112. };*/
  113. };
  114. };