config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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_15s
  7. {
  8. author=DANKAUTHORS;
  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,15s),
  18. macro_new_weapon(DC,15s_shield),
  19. macro_new_weapon(DC,r15s)
  20. };
  21. };
  22. };
  23. class cfgWeapons
  24. {
  25. class Pistol;
  26. class Pistol_Base_F:Pistol
  27. {
  28. class WeaponSlotsInfo;
  29. };
  30. class RD501_stun_muzzle;
  31. class 3AS_DC15S_Base_F;
  32. class 3AS_DC15S_F:3AS_DC15S_Base_F
  33. {
  34. class Single;
  35. class FullAuto;
  36. class WeaponSlotsInfo;
  37. };
  38. class macro_new_weapon(DC,r15s):3AS_DC15S_F
  39. {
  40. displayName="Republic DC-15S";
  41. reloadTime=0.66;
  42. recoil="recoil_smg_01";
  43. reloadAction="ReloadMagazine";
  44. ACE_Overheating_mrbs = 300000;
  45. canShootInWater=1;
  46. magazines[]=
  47. {
  48. macro_new_mag(5mw,60)
  49. };
  50. muzzles[]=
  51. {
  52. "this",
  53. "Stun"
  54. };
  55. class Stun: RD501_stun_muzzle
  56. {
  57. displayName="High Energy StunMode";
  58. };
  59. class Single:Single
  60. {
  61. reloadTime=0.066;
  62. };
  63. class FullAuto:FullAuto
  64. {
  65. reloadTime=0.066;
  66. };
  67. class WeaponSlotsInfo: WeaponSlotsInfo
  68. {
  69. mass = 30;
  70. class CowsSlot
  71. {
  72. displayName = "Optics Slot";
  73. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  74. iconPinpoint = "Bottom";
  75. iconPosition[] = {0.5,0.35};
  76. iconScale = 0.2;
  77. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  78. scope = 0;
  79. compatibleItems[] =
  80. {
  81. "RD501_RCO",
  82. "RD501_RCO_2",
  83. "RD501_RCO_3",
  84. "RD501_Holosight",
  85. "RD501_Holosight_2",
  86. "RD501_Holosight_3",
  87. "RD501_DMS",
  88. "RD501_DMS_2",
  89. "RD501_DMS_3",
  90. "RD501_DMS_4",
  91. "RD501_MRCO",
  92. "RD501_MRCO_2",
  93. "RD501_MRCO_3",
  94. "3AS_optic_reflex_DC15C"
  95. };
  96. };
  97. class MuzzleSlot
  98. {
  99. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  100. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  101. compatibleItems[]=
  102. {
  103. "RD501_muzzle_flash",
  104. "RD501_acc_particle_condenser",
  105. "RD501_acc_particle_accelerator"
  106. };
  107. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  108. iconPinpoint="Center";
  109. };
  110. class PointerSlot
  111. {
  112. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  113. displayName = "Pointer Slot";
  114. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  115. };
  116. };
  117. };
  118. };