config.cpp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. #define COMPONENT DC_15a
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class RD501_patch_dc_15a
  7. {
  8. author=DANKAUTHORS;
  9. addonRootClass= RD501_patch_weapons;
  10. requiredAddons[]=
  11. {
  12. RD501_patch_weapons
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. macro_new_weapon(DC,15a_base),
  18. macro_new_weapon(DC,15a),
  19. macro_new_weapon(DC,15a_gl_rifle),
  20. macro_new_weapon(DC,15a_LE),
  21. macro_new_weapon(DC,15a_mod_0_rifle),
  22. macro_new_weapon(DC,r15a)
  23. };
  24. };
  25. };
  26. class mode_FullAuto;
  27. class cfgWeapons
  28. {
  29. class 3AS_DC15A_Base_F;
  30. class RD501_stun_muzzle;
  31. class 3AS_DC15A_F:3AS_DC15A_Base_F
  32. {
  33. class Single;
  34. class Burst;
  35. class WeaponSlotsInfo;
  36. };
  37. class macro_new_weapon(DC,15a):3AS_DC15A_F
  38. {
  39. displayName="Republic DC-15A";
  40. reloadTime=0.1;
  41. ACE_Overheating_mrbs = 300000;
  42. recoil="recoil_mx";
  43. canShootInWater=1;
  44. magazines[]=
  45. {
  46. macro_new_mag(20mwup,20),
  47. macro_new_mag(20mwdp,20)
  48. };
  49. muzzles[]=
  50. {
  51. "this",
  52. "Stun"
  53. };
  54. modes[] = {"Single","Burst","FullAuto"};
  55. class Stun: RD501_stun_muzzle
  56. {
  57. displayName="High Energy StunMode";
  58. };
  59. class Single:Single
  60. {
  61. reloadTime=0.1;
  62. dispersion=0.0006;
  63. };
  64. class Burst:Burst
  65. {
  66. reloadTime=0.1;
  67. dispersion=0.0006;
  68. };
  69. class FullAuto: Mode_FullAuto
  70. {
  71. reloadTime = 0.125;
  72. dispersion = 0.0006;
  73. soundContinuous = 0;
  74. soundBurst = 0;
  75. sounds[] = {"StandardSound","SilencedSound"};
  76. class BaseSoundModeType;
  77. class StandardSound: BaseSoundModeType
  78. {
  79. soundSetShot[] = {"3AS_DC15A_Shot_SoundSet"};
  80. };
  81. class SilencedSound: BaseSoundModeType
  82. {
  83. soundSetShot[] = {""};
  84. };
  85. };
  86. class WeaponSlotsInfo: WeaponSlotsInfo
  87. {
  88. mass = 30;
  89. class CowsSlot
  90. {
  91. displayName = "Optics Slot";
  92. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  93. iconPinpoint = "Bottom";
  94. iconPosition[] = {0.5,0.35};
  95. iconScale = 0.2;
  96. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  97. scope = 0;
  98. compatibleItems[] =
  99. {
  100. "RD501_RCO",
  101. "RD501_RCO_2",
  102. "RD501_RCO_3",
  103. "RD501_Holosight",
  104. "RD501_Holosight_2",
  105. "RD501_Holosight_3",
  106. "RD501_DMS",
  107. "RD501_DMS_2",
  108. "RD501_DMS_3",
  109. "RD501_DMS_4",
  110. "RD501_MRCO",
  111. "RD501_MRCO_2",
  112. "RD501_MRCO_3",
  113. "3AS_Optic_Red_DC15A",
  114. "3AS_Optic_LEScope_DC15A"
  115. };
  116. };
  117. class MuzzleSlot
  118. {
  119. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  120. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  121. compatibleItems[]=
  122. {
  123. "RD501_muzzle_flash",
  124. "RD501_acc_particle_condenser",
  125. "RD501_acc_particle_accelerator"
  126. };
  127. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  128. iconPinpoint="Center";
  129. };
  130. class PointerSlot
  131. {
  132. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  133. displayName = "Pointer Slot";
  134. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  135. };
  136. };
  137. };
  138. };