config.cpp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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 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(10mw,30)
  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. };
  97. };
  98. class MuzzleSlot
  99. {
  100. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  101. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  102. compatibleItems[]=
  103. {
  104. "RD501_muzzle_flash",
  105. "RD501_acc_particle_condenser",
  106. "RD501_acc_particle_accelerator"
  107. };
  108. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  109. iconPinpoint="Center";
  110. };
  111. class PointerSlot
  112. {
  113. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  114. displayName = "Pointer Slot";
  115. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  116. };
  117. };
  118. };
  119. class 3AS_DC15C_Base_F;
  120. class 3AS_DC15C_GL: 3AS_DC15C_Base_F
  121. {
  122. class 3AS_15CGL;
  123. class FullAuto;
  124. class Single;
  125. class WeaponSlotsInfo;
  126. };
  127. class macro_new_weapon(DC,15cgl):3AS_DC15C_GL
  128. {
  129. displayName="Republic DC-15C US";
  130. dispersion=0.00116;
  131. ACE_Overheating_mrbs = 300000;
  132. recoil="recoil_mxc";
  133. canShootInWater=1;
  134. scope = 2;
  135. magazines[]=
  136. {
  137. macro_new_mag(10mw,30)
  138. };
  139. muzzles[]=
  140. {
  141. "this",
  142. "Shotgun_Muzzle",
  143. "Stun"
  144. };
  145. class Shotgun_Muzzle: 3AS_15CGL
  146. {
  147. displayName="Shotgun Attachment";
  148. descriptionShort="Shotgun";
  149. magazines[]=
  150. {
  151. macro_new_mag(shotgun_scatter,6),
  152. macro_new_mag(shotgun_HE,6),
  153. macro_new_mag(shotgun_EMP,2)
  154. };
  155. magazineWell[]={};
  156. };
  157. class Stun: RD501_stun_muzzle
  158. {
  159. displayName="High Energy StunMode";
  160. };
  161. class FullAuto:FullAuto
  162. {
  163. reloadTime=0.08;
  164. dispersion=0.00116;
  165. };
  166. class Single : Single
  167. {
  168. reloadTime=0.08;
  169. dispersion=0.00116;
  170. };
  171. class WeaponSlotsInfo: WeaponSlotsInfo
  172. {
  173. mass = 30;
  174. class CowsSlot
  175. {
  176. displayName = "Optics Slot";
  177. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  178. iconPinpoint = "Bottom";
  179. iconPosition[] = {0.5,0.35};
  180. iconScale = 0.2;
  181. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  182. scope = 0;
  183. compatibleItems[] =
  184. {
  185. "RD501_RCO",
  186. "RD501_RCO_2",
  187. "RD501_RCO_3",
  188. "RD501_Holosight",
  189. "RD501_Holosight_2",
  190. "RD501_Holosight_3",
  191. "RD501_DMS",
  192. "RD501_DMS_2",
  193. "RD501_DMS_3",
  194. "RD501_DMS_4",
  195. "RD501_MRCO",
  196. "RD501_MRCO_2",
  197. "RD501_MRCO_3"
  198. };
  199. };
  200. class MuzzleSlot
  201. {
  202. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  203. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  204. compatibleItems[]=
  205. {
  206. "RD501_muzzle_flash",
  207. "RD501_acc_particle_condenser",
  208. "RD501_acc_particle_accelerator"
  209. };
  210. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  211. iconPinpoint="Center";
  212. };
  213. class PointerSlot
  214. {
  215. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  216. displayName = "Pointer Slot";
  217. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  218. };
  219. };
  220. };
  221. };