config.cpp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. #define COMPONENT z6_patch
  2. #include "../../RD501_main/config_macros.hpp"
  3. #include "../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(z6)
  7. {
  8. author=DANKAUTHORS;
  9. addonRootClass= macro_patch_name(weapons)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(weapons),
  13. "3AS_Weapons"
  14. };
  15. requiredVersion=0.1;
  16. units[]={};
  17. weapons[]={
  18. macro_new_weapon_nofam(Z6),
  19. macro_new_weapon_nofam(rZ6),
  20. "SWOP_Valken38XAuto_XD",
  21. macro_new_weapon_nofam(Z1000)
  22. };
  23. };
  24. };
  25. class Mode_SemiAuto;
  26. class cfgWeapons
  27. {
  28. /*class Rifle_Base_F;
  29. class Mode_FullAuto;
  30. class SW_Z6_base_F:Rifle_Base_F
  31. {
  32. class WeaponSlotsInfo;
  33. };
  34. class SWOP_Z6Blaster:SW_Z6_base_F
  35. {
  36. displayName="Z6 Rotary Cannon";
  37. class FullAuto1;
  38. class FullAuto2;
  39. class WeaponSlotsInfo:WeaponSlotsInfo
  40. {
  41. class CowsSlot;
  42. };
  43. };
  44. class macro_new_weapon_nofam(Z6):SWOP_Z6Blaster
  45. {
  46. displayName="Z6 Rotary Cannon";
  47. scope=2;
  48. scopeArsenal=2;
  49. dlc = "RD501";
  50. author= "RD501";
  51. baseWeapon = macro_new_weapon_nofam(Z6)
  52. modes[] = {"FullAuto1", "overcharge_burst", "medium1", "medium2", "far1", "far2"};
  53. ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
  54. ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
  55. ACE_Overheating_JamChance = DC15a_Overheat_JamChance
  56. ACE_overheating_mrbs = DC15a_Overheat_mrbs
  57. ACE_overheating_allowSwapBarrel = 1;
  58. ACE_clearJamAction = "ReloadMagazine";
  59. magazines[] = {macro_new_mag(z6,400)};
  60. class FullAuto1:FullAuto1
  61. {
  62. dispersion = Z6_accuracy
  63. recoil = "recoil_single_smg_02";
  64. recoilProne = "recoil_single_prone_smg_02";
  65. reloadTime = Z6_fullauto_reload
  66. };
  67. class overcharge_burst:FullAuto1
  68. {
  69. dispersion = Z6_accuracy_burst
  70. displayName = "Over Charge Auto";
  71. recoil = "recoil_single_smg_02";
  72. recoilProne = "recoil_single_prone_smg_02";
  73. //reloadTime = 0.1;
  74. reloadTime = Z6_burst_reload
  75. //soundContinuous = 1;
  76. burst = 25;
  77. textureType = "fastAuto";
  78. };
  79. class WeaponSlotsInfo: WeaponSlotsInfo
  80. {
  81. mass = 30;
  82. class CowsSlot: CowsSlot
  83. {
  84. compatibleItems[] = {
  85. macro_new_weapon(scope,dc_15a_acog)
  86. };
  87. };
  88. };
  89. };*/
  90. class LMG_Mk200_F;
  91. class JLTS_Z6:LMG_Mk200_F
  92. {
  93. class manual;
  94. class WeaponSlotsInfo
  95. {
  96. class MuzzleSlot;
  97. };
  98. };
  99. class macro_new_weapon_nofam(rZ6):JLTS_Z6
  100. {
  101. scope=2;
  102. scopeArsenal=2;
  103. JLTS_hasElectronics=0;
  104. recoil="recoil_lim"
  105. baseWeapon=macro_new_weapon_nofam(rZ6)
  106. displayName="Republic Z6 Chaingun";
  107. ACE_Overheating_mrbs = 450000;
  108. magazines[]=
  109. {
  110. macro_new_mag(10mw,400)
  111. };
  112. modes[] = {"manual", "Overcharge"};
  113. class manual:manual
  114. {
  115. reloadTime=0.059;
  116. };
  117. class Overcharge:manual
  118. {
  119. dispersion = Z6_accuracy_burst
  120. displayName = "Over Charge Auto";
  121. reloadTime = Z6_burst_reload
  122. burst = 25;
  123. textureType = "fastAuto";
  124. };
  125. class WeaponSlotsInfo: WeaponSlotsInfo
  126. {
  127. mass = 30;
  128. class MuzzleSlot: MuzzleSlot
  129. {
  130. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  131. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  132. compatibleItems[]=
  133. {
  134. "RD501_muzzle_flash"
  135. };
  136. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  137. iconPinpoint="Center";
  138. };
  139. };
  140. class HitEffects
  141. {
  142. Hit_Foliage_green="";
  143. Hit_Foliage_Dead="";
  144. Hit_Foliage_Green_big="";
  145. Hit_Foliage_Palm="";
  146. Hit_Foliage_Pine="";
  147. hitFoliage="";
  148. hitGlass="";
  149. hitGlassArmored="";
  150. hitWood="";
  151. hitHay="";
  152. hitMetal="";
  153. hitMetalPlate="";
  154. hitBuilding="";
  155. hitPlastic="";
  156. hitRubber="";
  157. hitConcrete="";
  158. hitMan="ImpactEffectsBlood";
  159. hitGroundSoft="";
  160. hitGroundRed="";
  161. hitGroundHard="";
  162. hitWater="";
  163. hitVirtual="";
  164. };
  165. };
  166. class 3AS_Chaingun;
  167. class macro_new_weapon_nofam(z1000): 3AS_Chaingun
  168. {
  169. scope=2;
  170. scopeArsenal=2;
  171. recoil="recoil_mmg_02";
  172. displayName="Republic Z1000 Chaingun";
  173. picture = "\RD501_Weapons\Z6\chaingun_icon.paa";
  174. RD501_Empty_Weapon = macro_quote(macro_new_weapon_nofam(z1000u));
  175. magazines[]=
  176. {
  177. macro_new_mag(z1000,3000)
  178. };
  179. class EventHandlers {
  180. fired = macro_quote(_this call macro_fnc_name(onWeaponFiredSwapToEmpty));
  181. };
  182. class HitEffects
  183. {
  184. Hit_Foliage_green="";
  185. Hit_Foliage_Dead="";
  186. Hit_Foliage_Green_big="";
  187. Hit_Foliage_Palm="";
  188. Hit_Foliage_Pine="";
  189. hitFoliage="";
  190. hitGlass="";
  191. hitGlassArmored="";
  192. hitWood="";
  193. hitHay="";
  194. hitMetal="";
  195. hitMetalPlate="";
  196. hitBuilding="";
  197. hitPlastic="";
  198. hitRubber="";
  199. hitConcrete="";
  200. hitMan="ImpactEffectsBlood";
  201. hitGroundSoft="";
  202. hitGroundRed="";
  203. hitGroundHard="";
  204. hitWater="";
  205. hitVirtual="";
  206. };
  207. };
  208. class macro_new_weapon_nofam(z1000u): 3AS_Chaingun
  209. {
  210. scope=1;
  211. scopeArsenal=1;
  212. displayName="Z1000 Chaingun (Used)";
  213. picture = "\RD501_Weapons\Z6\chaingun_icon.paa";
  214. _generalMacro="launch_RPG32_F";
  215. magazines[]=
  216. {
  217. "none"
  218. };
  219. };
  220. };