config.cpp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. #define COMPONENT DC_15gl
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(dc_15c)
  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,15gl),
  18. macro_new_weapon(DC,r15gl)
  19. };
  20. };
  21. };
  22. class CfgWeapons
  23. {
  24. class 3AS_DC15A_Base_F;
  25. class 3AS_DC15A_GL: 3AS_DC15A_Base_F
  26. {
  27. class WeaponSlotsInfo;
  28. class Single;
  29. class Burst;
  30. };
  31. class RD501_stun_muzzle;
  32. class JLTS_DC15A_ugl;
  33. class JLTS_DC15A_ugl_plastic:JLTS_DC15A_ugl
  34. {
  35. class Single;
  36. class EGLM;
  37. class WeaponSlotsInfo
  38. {
  39. class CowsSlot;
  40. class PointerSlot;
  41. class MuzzleSlot;
  42. };
  43. };
  44. class 3AS_GL_F;
  45. class macro_new_weapon(DC,15gl):JLTS_DC15A_ugl_plastic
  46. {
  47. displayName="Republic DC-15A UGL";
  48. JLTS_hasElectronics=0;
  49. ACE_Overheating_mrbs = 300000;
  50. magazines[]=
  51. {
  52. macro_new_mag(10mw,30)
  53. };
  54. modes[] = {"Single", "Burst"};
  55. muzzles[]=
  56. {
  57. "this",
  58. "Stun",
  59. "EGLM"
  60. };
  61. class Stun: RD501_stun_muzzle
  62. {
  63. displayName="High Energy StunMode";
  64. };
  65. class Single:Single
  66. {
  67. reloadTime=0.1;
  68. };
  69. class Burst : Single
  70. {
  71. reloadTime=0.1;
  72. burst=3;
  73. textureType="burst";
  74. };
  75. class EGLM:EGLM
  76. {
  77. magazines[] = {};
  78. magazineWell[] += {macro_new_magwell(GL_Mags)};
  79. };
  80. class WeaponSlotsInfo: WeaponSlotsInfo
  81. {
  82. mass = 30;
  83. class CowsSlot: CowsSlot
  84. {
  85. displayName = "Optics Slot";
  86. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  87. iconPinpoint = "Bottom";
  88. iconPosition[] = {0.5,0.35};
  89. iconScale = 0.2;
  90. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  91. scope = 0;
  92. compatibleItems[] =
  93. {
  94. //macro_new_weapon(scope,dc_15a_acog),
  95. //"RD501_RCO",
  96. //"RD501_RCO_2",
  97. //"RD501_RCO_3",
  98. "RD501_MRCO",
  99. "RD501_MRCO_2",
  100. "RD501_MRCO_3"
  101. //"RD501_Holosight",
  102. //"RD501_Holosight_2",
  103. //"RD501_Holosight_3"
  104. };
  105. };
  106. class MuzzleSlot: MuzzleSlot
  107. {
  108. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  109. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  110. compatibleItems[]=
  111. {
  112. "RD501_muzzle_flash"
  113. };
  114. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  115. iconPinpoint="Center";
  116. };
  117. class PointerSlot : PointerSlot
  118. {
  119. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  120. displayName = "Pointer Slot";
  121. compatibleItems[] = {"acc_flashlight","acc_pointer_IR","ace_acc_pointer_green"};
  122. };
  123. };
  124. };
  125. class macro_new_weapon(DC,r15gl):3AS_DC15A_GL
  126. {
  127. displayName="Republic DC-15A UGL mod0";
  128. JLTS_hasElectronics=0;
  129. ACE_Overheating_mrbs = 300000;
  130. magazines[]=
  131. {
  132. macro_new_mag(10mw,30)
  133. };
  134. modes[] = {"Single", "Burst"};
  135. muzzles[]=
  136. {
  137. "this",
  138. "Stun",
  139. "RD501_15A_UGL_Muzzle"
  140. };
  141. class RD501_15A_UGL_Muzzle:3AS_GL_F
  142. {
  143. magazines[] = {};
  144. magazineWell[] += {macro_new_magwell(GL_Mags)};
  145. };
  146. class Stun: RD501_stun_muzzle
  147. {
  148. displayName="High Energy StunMode";
  149. };
  150. class Single:Single
  151. {
  152. reloadTime=0.1;
  153. };
  154. class Burst : Single
  155. {
  156. reloadTime=0.1;
  157. burst=3;
  158. textureType="burst";
  159. };
  160. class WeaponSlotsInfo: WeaponSlotsInfo
  161. {
  162. mass=80;
  163. };
  164. };
  165. };