config.cpp 6.0 KB

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