config.cpp 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. magazines[]=
  132. {
  133. macro_new_mag(z1000,3000)
  134. };
  135. };
  136. class macro_new_weapon_nofam(z1000u): 3AS_Chaingun
  137. {
  138. scope=1;
  139. scopeArsenal=1;
  140. displayName="Z1000 Chaingun(Used)";
  141. _generalMacro="launch_RPG32_F";
  142. magazines[]=
  143. {
  144. "none"
  145. };
  146. };
  147. /*class OPTRE_UnguidedLauncher_Base;
  148. class OPTRE_M41_SSR:OPTRE_UnguidedLauncher_Base
  149. {
  150. class Single;
  151. };
  152. class macro_new_weapon(chaingun,z6x): OPTRE_M41_SSR
  153. {
  154. baseWeapon = macro_new_weapon(chaingun,z6x);
  155. recoil = macro_new_recoil(chaingun);
  156. displayName = "Z-6X";
  157. magazines[] = {macro_new_mag(chaingun_z6x,1000)};
  158. ace_overpressure_priority = 1;
  159. ace_overpressure_angle = 0;
  160. ace_overpressure_range = 0;
  161. ace_overpressure_damage = 0;
  162. descriptionshort = "Ur mom gay :)";
  163. class GunParticles
  164. {
  165. class effect1
  166. {
  167. positionName = "muzzleEnd2";
  168. directionName = "muzzlePos2";
  169. effectName = "";
  170. };
  171. };
  172. modelOptics = "Scope\4x_xm8.p3d";
  173. class OpticsModes
  174. {
  175. class StepScope
  176. {
  177. opticsID = 1;
  178. useModelOptics = 1;
  179. opticsPPEffects[] = {"OpticsCHAbera1", "OpticsBlur1"};
  180. opticsFlare = 0;
  181. opticsZoomMin = 0.125;
  182. opticsZoomMax = 0.125/2;
  183. opticsZoomInit = 0.125;
  184. distanceZoomMin = 300;
  185. distanceZoomMax = 300;
  186. memoryPointCamera = "eye";
  187. cameraDir = "look";
  188. visionMode[] = {"Normal", "NVG", "Ti"};
  189. thermalMode[] = {0, 1};
  190. opticsDisablePeripherialVision = 1;
  191. discretefov[] = {0.125, 0.125/4, 0.125/8};
  192. discreteInitIndex = 0;
  193. };
  194. };
  195. modes[] = {"Single"};
  196. class Single: Single
  197. {
  198. sounds[] = {"StandardSound"};
  199. class BaseSoundModeType
  200. {
  201. };
  202. class StandardSound: BaseSoundModeType
  203. {
  204. // begin1[] = {"OPTRE_Weapons\Rockets\data\sounds\rocket_1.wss", 2.5, 1, 1500};
  205. // soundBegin[] = {"begin1", 1};
  206. begin1[] = {"SW_CloneWarsWeapons\SW_Z6\sound\fire1z6.ogg", 0.9, 3, 2000};
  207. begin2[] = {"SW_CloneWarsWeapons\SW_Z6\sound\fire1z6.ogg", 0.9, 3, 2000};
  208. soundBegin[] = {"begin1", 0.5, "begin2", 0.5};
  209. // begin1[] = {"SW_CloneWarsWeapons\DC17\DC171.ogg", 1, 3, 1200};
  210. // begin2[] = {"SW_CloneWarsWeapons\DC17\DC172.ogg", 1, 3, 1200};
  211. // begin3[] = {"SW_CloneWarsWeapons\DC17\DC173.ogg", 1, 3, 1200};
  212. // begin4[] = {"SW_CloneWarsWeapons\DC17\DC174.ogg", 1, 3, 1200};
  213. // begin5[] = {"SW_CloneWarsWeapons\DC17\DC175.ogg", 1, 3, 1200};
  214. // soundBegin[] = {"begin1", 0.2, "begin2", 0.2, "begin3", 0.2, "begin4", 0.2, "begin5", 0.2};
  215. };
  216. recoil = "recoil_empty";
  217. //reloadtime = 1;
  218. reloadTime = 0.03;
  219. dispersion = 0.0015;
  220. autoFire=1;
  221. burst = 1;
  222. aiRateOfFire = 7;
  223. aiRateOfFireDistance = 600;
  224. minRange = 10;
  225. minRangeProbab = 0.3;
  226. midRange = 400;
  227. midRangeProbab = 0.8;
  228. maxRange = 600;
  229. maxRangeProbab = 0.1;
  230. };
  231. };*/
  232. };