config.cpp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. #define COMPONENT DC_15gl
  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,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 3AS_GL_F;
  33. class macro_new_weapon(DC,r15gl):3AS_DC15A_GL
  34. {
  35. displayName="Republic DC-15A UGL";
  36. JLTS_hasElectronics=0;
  37. ACE_Overheating_mrbs = 300000;
  38. canShootInWater=1;
  39. magazines[]=
  40. {
  41. macro_new_mag(20mw,20)
  42. };
  43. modes[] = {"Single", "Burst"};
  44. muzzles[]=
  45. {
  46. "this",
  47. "Stun",
  48. "RD501_15A_UGL_Muzzle"
  49. };
  50. class RD501_15A_UGL_Muzzle:3AS_GL_F
  51. {
  52. magazines[] = {};
  53. magazineWell[] += {macro_new_magwell(GL_Mags)};
  54. };
  55. class Stun: RD501_stun_muzzle
  56. {
  57. displayName="High Energy StunMode";
  58. };
  59. class Single:Single
  60. {
  61. reloadTime=0.1;
  62. };
  63. class Burst : Single
  64. {
  65. reloadTime=0.1;
  66. burst=3;
  67. textureType="burst";
  68. };
  69. class WeaponSlotsInfo: WeaponSlotsInfo
  70. {
  71. mass=80;
  72. class CowsSlot
  73. {
  74. displayName = "Optics Slot";
  75. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  76. iconPinpoint = "Bottom";
  77. iconPosition[] = {0.5,0.35};
  78. iconScale = 0.2;
  79. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  80. scope = 0;
  81. compatibleItems[] =
  82. {
  83. "RD501_RCO",
  84. "RD501_RCO_2",
  85. "RD501_RCO_3",
  86. "RD501_Holosight",
  87. "RD501_Holosight_2",
  88. "RD501_Holosight_3",
  89. "RD501_DMS",
  90. "RD501_DMS_2",
  91. "RD501_DMS_3",
  92. "RD501_DMS_4",
  93. "RD501_MRCO",
  94. "RD501_MRCO_2",
  95. "RD501_MRCO_3",
  96. "3AS_Optic_Red_DC15A",
  97. "3AS_Optic_LEScope_DC15A"
  98. };
  99. };
  100. class MuzzleSlot
  101. {
  102. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  103. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  104. compatibleItems[]=
  105. {
  106. "RD501_muzzle_flash",
  107. "RD501_acc_particle_condenser",
  108. "RD501_acc_particle_accelerator"
  109. };
  110. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  111. iconPinpoint="Center";
  112. };
  113. class PointerSlot
  114. {
  115. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  116. displayName = "Pointer Slot";
  117. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  118. };
  119. };
  120. };
  121. class 3AS_DC15C_Base_F;
  122. class 3AS_DC15C_GL: 3AS_DC15C_Base_F
  123. {
  124. class 3AS_15CGL;
  125. class FullAuto;
  126. class Single;
  127. class WeaponSlotsInfo;
  128. };
  129. class macro_new_weapon(DC,15cgl):3AS_DC15C_GL
  130. {
  131. displayName="Republic DC-15C US";
  132. dispersion=0.00116;
  133. ACE_Overheating_mrbs = 300000;
  134. recoil="recoil_mxc";
  135. canShootInWater=1;
  136. scope = 2;
  137. magazines[]=
  138. {
  139. macro_new_mag(10mw,30)
  140. };
  141. muzzles[]=
  142. {
  143. "this",
  144. "Shotgun_Muzzle",
  145. "Stun"
  146. };
  147. class Shotgun_Muzzle: 3AS_15CGL
  148. {
  149. displayName="Shotgun Attachment";
  150. descriptionShort="Shotgun";
  151. magazines[]=
  152. {
  153. macro_new_mag(shotgun_scatter,6),
  154. macro_new_mag(shotgun_HE,6),
  155. macro_new_mag(shotgun_EMP,2)
  156. };
  157. magazineWell[]={};
  158. };
  159. class Stun: RD501_stun_muzzle
  160. {
  161. displayName="High Energy StunMode";
  162. };
  163. class FullAuto:FullAuto
  164. {
  165. reloadTime=0.08;
  166. dispersion=0.00116;
  167. };
  168. class Single : Single
  169. {
  170. reloadTime=0.08;
  171. dispersion=0.00116;
  172. };
  173. class WeaponSlotsInfo: WeaponSlotsInfo
  174. {
  175. mass = 30;
  176. class CowsSlot
  177. {
  178. displayName = "Optics Slot";
  179. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  180. iconPinpoint = "Bottom";
  181. iconPosition[] = {0.5,0.35};
  182. iconScale = 0.2;
  183. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  184. scope = 0;
  185. compatibleItems[] =
  186. {
  187. "RD501_RCO",
  188. "RD501_RCO_2",
  189. "RD501_RCO_3",
  190. "RD501_Holosight",
  191. "RD501_Holosight_2",
  192. "RD501_Holosight_3",
  193. "RD501_DMS",
  194. "RD501_DMS_2",
  195. "RD501_DMS_3",
  196. "RD501_DMS_4",
  197. "RD501_MRCO",
  198. "RD501_MRCO_2",
  199. "RD501_MRCO_3"
  200. };
  201. };
  202. class MuzzleSlot
  203. {
  204. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  205. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  206. compatibleItems[]=
  207. {
  208. "RD501_muzzle_flash",
  209. "RD501_acc_particle_condenser",
  210. "RD501_acc_particle_accelerator"
  211. };
  212. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  213. iconPinpoint="Center";
  214. };
  215. class PointerSlot
  216. {
  217. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  218. displayName = "Pointer Slot";
  219. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  220. };
  221. };
  222. };
  223. };