1
0

config.cpp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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. };
  95. class macro_new_weapon_nofam(rZ6):JLTS_Z6
  96. {
  97. scope=2;
  98. scopeArsenal=2;
  99. recoil="recoil_mmg_02"
  100. baseWeapon=macro_new_weapon_nofam(rZ6)
  101. displayName="Republic Z6 Chaingun";
  102. magazines[]=
  103. {
  104. macro_new_mag(10mw,400)
  105. };
  106. modes[] = {"manual", "Overcharge"};
  107. class manual:manual
  108. {
  109. reloadTime=0.059;
  110. };
  111. class Overcharge:manual
  112. {
  113. dispersion = Z6_accuracy_burst
  114. displayName = "Over Charge Auto";
  115. recoil = "recoil_single_smg_02";
  116. recoilProne = "recoil_single_prone_smg_02";
  117. //reloadTime = 0.1;
  118. reloadTime = Z6_burst_reload
  119. //soundContinuous = 1;
  120. burst = 25;
  121. textureType = "fastAuto";
  122. };
  123. };
  124. class 3AS_Chaingun;
  125. class macro_new_weapon_nofam(z1000): 3AS_Chaingun
  126. {
  127. scope=2;
  128. scopeArsenal=2;
  129. recoil="recoil_mmg_01";
  130. displayName="Republic Z1000 Chaingun";
  131. picture = "\RD501_Weapons\Z6\chaingun_icon.paa";
  132. RD501_Empty_Weapon = macro_quote(macro_new_weapon_nofam(z1000u));
  133. magazines[]=
  134. {
  135. macro_new_mag(z1000,3000)
  136. };
  137. class EventHandlers {
  138. fired = macro_quote(_this call macro_fnc_name(onWeaponFiredSwapToEmpty));
  139. };
  140. };
  141. class macro_new_weapon_nofam(z1000u): 3AS_Chaingun
  142. {
  143. scope=1;
  144. scopeArsenal=1;
  145. displayName="Z1000 Chaingun (Used)";
  146. picture = "\RD501_Weapons\Z6\chaingun_icon.paa";
  147. _generalMacro="launch_RPG32_F";
  148. magazines[]=
  149. {
  150. "none"
  151. };
  152. };
  153. /*class OPTRE_UnguidedLauncher_Base;
  154. class OPTRE_M41_SSR:OPTRE_UnguidedLauncher_Base
  155. {
  156. class Single;
  157. };
  158. class macro_new_weapon(chaingun,z6x): OPTRE_M41_SSR
  159. {
  160. baseWeapon = macro_new_weapon(chaingun,z6x);
  161. recoil = macro_new_recoil(chaingun);
  162. displayName = "Z-6X";
  163. magazines[] = {macro_new_mag(chaingun_z6x,1000)};
  164. ace_overpressure_priority = 1;
  165. ace_overpressure_angle = 0;
  166. ace_overpressure_range = 0;
  167. ace_overpressure_damage = 0;
  168. descriptionshort = "Ur mom gay :)";
  169. class GunParticles
  170. {
  171. class effect1
  172. {
  173. positionName = "muzzleEnd2";
  174. directionName = "muzzlePos2";
  175. effectName = "";
  176. };
  177. };
  178. modelOptics = "Scope\4x_xm8.p3d";
  179. class OpticsModes
  180. {
  181. class StepScope
  182. {
  183. opticsID = 1;
  184. useModelOptics = 1;
  185. opticsPPEffects[] = {"OpticsCHAbera1", "OpticsBlur1"};
  186. opticsFlare = 0;
  187. opticsZoomMin = 0.125;
  188. opticsZoomMax = 0.125/2;
  189. opticsZoomInit = 0.125;
  190. distanceZoomMin = 300;
  191. distanceZoomMax = 300;
  192. memoryPointCamera = "eye";
  193. cameraDir = "look";
  194. visionMode[] = {"Normal", "NVG", "Ti"};
  195. thermalMode[] = {0, 1};
  196. opticsDisablePeripherialVision = 1;
  197. discretefov[] = {0.125, 0.125/4, 0.125/8};
  198. discreteInitIndex = 0;
  199. };
  200. };
  201. modes[] = {"Single"};
  202. class Single: Single
  203. {
  204. sounds[] = {"StandardSound"};
  205. class BaseSoundModeType
  206. {
  207. };
  208. class StandardSound: BaseSoundModeType
  209. {
  210. // begin1[] = {"OPTRE_Weapons\Rockets\data\sounds\rocket_1.wss", 2.5, 1, 1500};
  211. // soundBegin[] = {"begin1", 1};
  212. begin1[] = {"SW_CloneWarsWeapons\SW_Z6\sound\fire1z6.ogg", 0.9, 3, 2000};
  213. begin2[] = {"SW_CloneWarsWeapons\SW_Z6\sound\fire1z6.ogg", 0.9, 3, 2000};
  214. soundBegin[] = {"begin1", 0.5, "begin2", 0.5};
  215. // begin1[] = {"SW_CloneWarsWeapons\DC17\DC171.ogg", 1, 3, 1200};
  216. // begin2[] = {"SW_CloneWarsWeapons\DC17\DC172.ogg", 1, 3, 1200};
  217. // begin3[] = {"SW_CloneWarsWeapons\DC17\DC173.ogg", 1, 3, 1200};
  218. // begin4[] = {"SW_CloneWarsWeapons\DC17\DC174.ogg", 1, 3, 1200};
  219. // begin5[] = {"SW_CloneWarsWeapons\DC17\DC175.ogg", 1, 3, 1200};
  220. // soundBegin[] = {"begin1", 0.2, "begin2", 0.2, "begin3", 0.2, "begin4", 0.2, "begin5", 0.2};
  221. };
  222. recoil = "recoil_empty";
  223. //reloadtime = 1;
  224. reloadTime = 0.03;
  225. dispersion = 0.0015;
  226. autoFire=1;
  227. burst = 1;
  228. aiRateOfFire = 7;
  229. aiRateOfFireDistance = 600;
  230. minRange = 10;
  231. minRangeProbab = 0.3;
  232. midRange = 400;
  233. midRangeProbab = 0.8;
  234. maxRange = 600;
  235. maxRangeProbab = 0.1;
  236. };
  237. };*/
  238. };