config.cpp 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. #define COMPONENT DC_17
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class RD501_patch_dc_17
  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,17),
  18. macro_new_weapon(DC,17a),
  19. macro_new_weapon(DC,r17),
  20. macro_new_weapon(DC,r17a),
  21. macro_new_weapon(DC,17sig),
  22. macro_new_weapon(DC,r17_shield),
  23. macro_new_weapon(DC,r17a_shield),
  24. macro_new_weapon(DC,r17_dual)
  25. };
  26. };
  27. };
  28. class cfgWeapons
  29. {
  30. class RD501_stun_muzzle;
  31. class hgun_P07_F;
  32. class 3AS_DC17STest_F;
  33. class JLTS_DC17SA:hgun_P07_F
  34. {
  35. class Single;
  36. class WeaponSlotsInfo
  37. {
  38. class CowsSlot;
  39. };
  40. };
  41. class macro_new_weapon(DC,r17):JLTS_DC17SA
  42. {
  43. displayName="Republic DC-17";
  44. reloadAction="GestureReloadPistol";
  45. baseWeapon=MACRO_QUOTE(macro_new_weapon(DC,r17));
  46. JLTS_hasElectronics=0;
  47. JLTS_canHaveShield=1;
  48. JLTS_shieldedWeapon=MACRO_QUOTE(macro_new_weapon(DC,r17_shield));
  49. canShootInWater=1;
  50. magazines[]=
  51. {
  52. macro_new_mag(5mw,10)
  53. };
  54. muzzles[]=
  55. {
  56. "this",
  57. "Stun"
  58. };
  59. class Stun: RD501_stun_muzzle
  60. {
  61. displayName="High Energy StunMode";
  62. reloadAction="GestureReloadPistol";
  63. magazines[]=
  64. {
  65. macro_new_mag(stun,5)
  66. };
  67. };
  68. class Single : Single
  69. {
  70. reloadTime=0.1;
  71. };
  72. class WeaponSlotsInfo: WeaponSlotsInfo
  73. {
  74. mass = 30;
  75. class CowsSlot: CowsSlot
  76. {
  77. displayName = "Optics Slot";
  78. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  79. iconPinpoint = "Bottom";
  80. iconPosition[] = {0.5,0.35};
  81. iconScale = 0.2;
  82. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  83. scope = 0;
  84. compatibleItems[] =
  85. {
  86. "RD501_pistol",
  87. "RD501_pistol_2"
  88. };
  89. };
  90. };
  91. };
  92. class macro_new_weapon(DC,r17_shield): macro_new_weapon(DC,r17)
  93. {
  94. displayName="Republic DC-17 Shield";
  95. baseWeapon=MACRO_QUOTE(macro_new_weapon(DC,r17_shield));
  96. scope=1;
  97. JLTS_isShielded=1;
  98. JLTS_baseWeapon=MACRO_QUOTE(macro_new_weapon(DC,r17));
  99. model="\MRC\JLTS\weapons\DC17SA\DC17SA_shielded.p3d";
  100. handAnim[]=
  101. {
  102. "OFP2_ManSkeleton",
  103. "\MRC\JLTS\weapons\DC17SA\anims\DC17SA_shielded_handanim.rtm"
  104. };
  105. inertia=0.80000001;
  106. recoil="recoil_pdw";
  107. canShootInWater=1;
  108. class WeaponSlotsInfo: WeaponSlotsInfo
  109. {
  110. mass=110;
  111. class UnderBarrelSlot
  112. {
  113. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  114. iconPicture="\A3\Weapons_F_Mark\Data\UI\attachment_under.paa";
  115. iconPinpoint="Bottom";
  116. compatibleItems[]=
  117. {
  118. "JLTS_riot_shield_attachment",
  119. "JLTS_riot_shield_212_attachment",
  120. "JLTS_riot_shield_501_attachment",
  121. "JLTS_riot_shield_101_attachment",
  122. "JLTS_riot_shield_CG_attachment",
  123. "JLTS_riot_shield_GD_attachment",
  124. "JLTS_riot_shield_droid_attachment"
  125. };
  126. };
  127. };
  128. };
  129. class macro_new_weapon(DC,r17a):JLTS_DC17SA
  130. {
  131. displayName="Republic DC-17A";
  132. baseWeapon=MACRO_QUOTE(macro_new_weapon(DC,r17a));
  133. JLTS_hasElectronics=0;
  134. JLTS_canHaveShield=1;
  135. JLTS_shieldedWeapon=MACRO_QUOTE(macro_new_weapon(DC,r17a_shield));
  136. canShootInWater=1;
  137. magazines[]=
  138. {
  139. macro_new_mag(2mw,30)
  140. };
  141. modes[] = {"FullAuto"};
  142. muzzles[]=
  143. {
  144. "this",
  145. "Stun"
  146. };
  147. class Stun: RD501_stun_muzzle
  148. {
  149. displayName="High Energy StunMode";
  150. reloadAction="GestureReloadPistol";
  151. magazines[]=
  152. {
  153. macro_new_mag(stun,5)
  154. };
  155. };
  156. class FullAuto : Single
  157. {
  158. autoFire=1;
  159. reloadTime=0.055;
  160. displayName="$STR_DN_MODE_FULLAUTO";
  161. textureType="fullAuto";
  162. recoil="recoil_auto_primary_3outof10";
  163. recoilProne="recoil_auto_primary_prone_3outof10";
  164. aiDispersionCoefY=3;
  165. aiDispersionCoefX=2;
  166. soundBurst=0;
  167. burst=3;
  168. };
  169. class WeaponSlotsInfo: WeaponSlotsInfo
  170. {
  171. mass = 30;
  172. class CowsSlot: CowsSlot
  173. {
  174. displayName = "Optics Slot";
  175. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  176. iconPinpoint = "Bottom";
  177. iconPosition[] = {0.5,0.35};
  178. iconScale = 0.2;
  179. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  180. scope = 0;
  181. compatibleItems[] =
  182. {
  183. "RD501_pistol",
  184. "RD501_pistol_2"
  185. };
  186. };
  187. };
  188. };
  189. class macro_new_weapon(DC,r17a_shield): macro_new_weapon(DC,r17a)
  190. {
  191. displayName="Republic DC-17A Shield";
  192. baseWeapon=MACRO_QUOTE(macro_new_weapon(DC,r17a_shield));
  193. scope=1;
  194. JLTS_isShielded=1;
  195. JLTS_baseWeapon=MACRO_QUOTE(macro_new_weapon(DC,r17a));
  196. model="\MRC\JLTS\weapons\DC17SA\DC17SA_shielded.p3d";
  197. handAnim[]=
  198. {
  199. "OFP2_ManSkeleton",
  200. "\MRC\JLTS\weapons\DC17SA\anims\DC17SA_shielded_handanim.rtm"
  201. };
  202. inertia=0.80000001;
  203. recoil="recoil_pdw";
  204. canShootInWater=1;
  205. class WeaponSlotsInfo: WeaponSlotsInfo
  206. {
  207. mass=110;
  208. class UnderBarrelSlot
  209. {
  210. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  211. iconPicture="\A3\Weapons_F_Mark\Data\UI\attachment_under.paa";
  212. iconPinpoint="Bottom";
  213. compatibleItems[]=
  214. {
  215. "JLTS_riot_shield_attachment",
  216. "JLTS_riot_shield_212_attachment",
  217. "JLTS_riot_shield_501_attachment",
  218. "JLTS_riot_shield_101_attachment",
  219. "JLTS_riot_shield_CG_attachment",
  220. "JLTS_riot_shield_GD_attachment",
  221. "JLTS_riot_shield_droid_attachment"
  222. };
  223. };
  224. };
  225. };
  226. class macro_new_weapon(DC,17sig):JLTS_DC17SA
  227. {
  228. scope=2;
  229. displayName = "Republic DC17 Signal";
  230. baseWeapon=MACRO_QUOTE(macro_new_weapon(DC,17sig));
  231. muzzles[]={"this"};
  232. magazines[]=
  233. {
  234. "1Rnd_Smoke_Grenade_shell",
  235. "1Rnd_SmokeRed_Grenade_shell",
  236. "1Rnd_SmokeGreen_Grenade_shell",
  237. "1Rnd_SmokeYellow_Grenade_shell",
  238. "1Rnd_SmokePurple_Grenade_shell",
  239. "1Rnd_SmokeBlue_Grenade_shell",
  240. "1Rnd_SmokeOrange_Grenade_shell",
  241. MACRO_GL_flare_rounds_1rnd
  242. };
  243. JLTS_hasElectronics=0;
  244. };
  245. class macro_new_weapon(DC,r17_dual):3AS_DC17STest_F
  246. {
  247. displayName="Republic Dual DC-17";
  248. canShootInWater=1;
  249. magazines[]=
  250. {
  251. macro_new_mag(5mw_dual,10)
  252. };
  253. muzzles[]=
  254. {
  255. "this",
  256. "Stun"
  257. };
  258. class Stun: RD501_stun_muzzle
  259. {
  260. displayName="High Energy StunMode";
  261. reloadAction="GestureReloadPistol";
  262. magazines[]=
  263. {
  264. macro_new_mag(stun,5)
  265. };
  266. };
  267. };
  268. };