config.cpp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #define COMPONENT DC_15s
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class RD501_patch_dc_15c
  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,15c),
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class RD501_stun_muzzle;
  24. class 3AS_DC15C_Base_F;
  25. class 3AS_DC15C_F:3AS_DC15C_Base_F
  26. {
  27. class FullAuto;
  28. class Single;
  29. class WeaponSlotsInfo;
  30. };
  31. class macro_new_weapon(DC,15c):3AS_DC15C_F
  32. {
  33. displayName="Republic DC-15C";
  34. dispersion=0.00116;
  35. ACE_Overheating_mrbs = 300000;
  36. recoil="recoil_mxc";
  37. canShootInWater=1;
  38. magazines[]=
  39. {
  40. macro_new_mag(10mw,30)
  41. };
  42. muzzles[]=
  43. {
  44. "this",
  45. "Stun"
  46. };
  47. class Stun: RD501_stun_muzzle
  48. {
  49. displayName="High Energy StunMode";
  50. };
  51. class FullAuto:FullAuto
  52. {
  53. reloadTime=0.08;
  54. dispersion=0.00116;
  55. };
  56. class Single : Single
  57. {
  58. reloadTime=0.08;
  59. dispersion=0.00116;
  60. };
  61. class WeaponSlotsInfo: WeaponSlotsInfo
  62. {
  63. mass = 30;
  64. class CowsSlot
  65. {
  66. displayName = "Optics Slot";
  67. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  68. iconPinpoint = "Bottom";
  69. iconPosition[] = {0.5,0.35};
  70. iconScale = 0.2;
  71. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  72. scope = 0;
  73. compatibleItems[] =
  74. {
  75. "RD501_RCO",
  76. "RD501_RCO_2",
  77. "RD501_RCO_3",
  78. "RD501_Holosight",
  79. "RD501_Holosight_2",
  80. "RD501_Holosight_3",
  81. "RD501_DMS",
  82. "RD501_DMS_2",
  83. "RD501_DMS_3",
  84. "RD501_DMS_4",
  85. "RD501_MRCO",
  86. "RD501_MRCO_2",
  87. "RD501_MRCO_3"
  88. };
  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. class PointerSlot
  104. {
  105. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  106. displayName = "Pointer Slot";
  107. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  108. };
  109. };
  110. };
  111. };