config.cpp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  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. "SWOP_Valken38XAuto_XD",
  20. macro_new_weapon_nofam(Z1000)
  21. };
  22. };
  23. };
  24. class Mode_SemiAuto;
  25. class cfgWeapons
  26. {
  27. class Rifle_Base_F;
  28. class Mode_FullAuto;
  29. class SW_Z6_base_F:Rifle_Base_F
  30. {
  31. class WeaponSlotsInfo;
  32. };
  33. class SWOP_Z6Blaster:SW_Z6_base_F
  34. {
  35. displayName="Z6 Rotary Cannon";
  36. class FullAuto1;
  37. class FullAuto2;
  38. class WeaponSlotsInfo:WeaponSlotsInfo
  39. {
  40. class CowsSlot;
  41. };
  42. };
  43. class macro_new_weapon_nofam(Z6):SWOP_Z6Blaster
  44. {
  45. displayName="Z6 Rotary Cannon";
  46. scope=2;
  47. scopeArsenal=2;
  48. dlc = "RD501";
  49. author= "RD501";
  50. baseWeapon = macro_new_weapon_nofam(Z6)
  51. modes[] = {"FullAuto1", "overcharge_burst", "medium1", "medium2", "far1", "far2"};
  52. ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
  53. ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
  54. ACE_Overheating_JamChance = DC15a_Overheat_JamChance
  55. ACE_overheating_mrbs = DC15a_Overheat_mrbs
  56. ACE_overheating_allowSwapBarrel = 1;
  57. ACE_clearJamAction = "ReloadMagazine";
  58. magazines[] = {macro_new_mag(z6,400)};
  59. class FullAuto1:FullAuto1
  60. {
  61. dispersion = Z6_accuracy
  62. recoil = "recoil_single_smg_02";
  63. recoilProne = "recoil_single_prone_smg_02";
  64. reloadTime = Z6_fullauto_reload
  65. };
  66. class overcharge_burst:FullAuto1
  67. {
  68. dispersion = Z6_accuracy_burst
  69. displayName = "Over Charge Auto";
  70. recoil = "recoil_single_smg_02";
  71. recoilProne = "recoil_single_prone_smg_02";
  72. //reloadTime = 0.1;
  73. reloadTime = Z6_burst_reload
  74. //soundContinuous = 1;
  75. burst = 25;
  76. textureType = "fastAuto";
  77. };
  78. class WeaponSlotsInfo: WeaponSlotsInfo
  79. {
  80. mass = 30;
  81. class CowsSlot: CowsSlot
  82. {
  83. compatibleItems[] = {
  84. macro_new_weapon(scope,dc_15a_acog)
  85. };
  86. };
  87. };
  88. };
  89. class 3AS_Chaingun;
  90. class macro_new_weapon_nofam(z1000): 3AS_Chaingun
  91. {
  92. scope=2;
  93. scopeArsenal=2;
  94. reloadAction="broken";
  95. displayName="Z1000 Chaingun";
  96. _generalMacro="launch_RPG32_F";
  97. magazines[]=
  98. {
  99. macro_new_mag(z1000,3000)
  100. };
  101. };
  102. class macro_new_weapon_nofam(z1000u): 3AS_Chaingun
  103. {
  104. scope=1;
  105. scopeArsenal=1;
  106. displayName="Z1000 Chaingun(Used)";
  107. _generalMacro="launch_RPG32_F";
  108. magazines[]=
  109. {
  110. "none"
  111. };
  112. };
  113. class SWOP_BlasterRifle_Base;
  114. class SWOP_Valken38XAuto:SWOP_BlasterRifle_Base
  115. {
  116. magazines[] = {};//SWOP_Valken38Xauto_Mag
  117. class Single;
  118. class FullAuto;
  119. class WeaponSlotsInfo;
  120. };
  121. class SWOP_Valken38XAuto_XD:SWOP_Valken38XAuto
  122. {
  123. magazines[] = {"SWOP_Valken38Xauto_MagXXD"};
  124. baseWeapon = "SWOP_Valken38XAuto_XD";
  125. //recoil = "Valken_Super_auto_recoil";
  126. scopeArsenal=2;
  127. ACE_Overheating_Dispersion = 0.0;
  128. ACE_Overheating_SlowdownFactor = 1;
  129. ACE_Overheating_JamChance = 1.5e-014;
  130. ACE_overheating_mrbs = 3e+009;
  131. ACE_overheating_allowSwapBarrel = 1;
  132. class Single:Single
  133. {
  134. dispersion = 0.0001;
  135. reloadTime = 0.06;
  136. class BaseSoundModeType
  137. {
  138. closure1[] = {};
  139. closure2[] = {};
  140. soundClosure[] = {};
  141. weaponSoundEffect = "DefaultRifle";
  142. };
  143. class StandardSound: BaseSoundModeType
  144. {
  145. begin1[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s1.ogg", 1, 1, 1800};
  146. begin2[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s2.ogg", 1, 1, 1800};
  147. begin3[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s3.ogg", 1, 1, 1800};
  148. begin4[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s4.ogg", 1, 1, 1800};
  149. begin5[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s5.ogg", 1, 1, 1800};
  150. begin6[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s6.ogg", 1, 1, 1800};
  151. begin7[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s7.ogg", 1, 1, 1800};
  152. begin8[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s8.ogg", 1, 1, 1800};
  153. begin9[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s9.ogg", 1, 1, 1800};
  154. soundBegin[] = {"begin1", 0.11, "begin2", 0.11, "begin3", 0.11, "begin4", 0.11, "begin5", 0.11, "begin6", 0.11, "begin7", 0.11, "begin8", 0.11, "begin9", 0.11};
  155. beginwater1[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15A_3_bajoagua.ogg", 1, 1, 400};
  156. beginwater2[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15A_3_bajoagua.ogg", 1.05, 1, 400};
  157. beginwater3[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15A_3_bajoagua.ogg", 0.95, 1, 400};
  158. soundBeginWater[] = {"beginwater1", 0.33, "beginwater2", 0.33, "beginwater3", 0.34};
  159. class SoundTails
  160. {
  161. class TailInterior
  162. {
  163. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\Silencer_Sting_Tail_interior", 1, 1, 400};
  164. frequency = 1;
  165. volume = "interior";
  166. };
  167. class TailTrees
  168. {
  169. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\Silencer_Sting_Tail_trees", 1, 1, 400};
  170. frequency = 1;
  171. volume = "(1-interior/1.4)*trees";
  172. };
  173. class TailForest
  174. {
  175. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\silencer_Sting_tail_forest", 1, 1, 400};
  176. frequency = 1;
  177. volume = "(1-interior/1.4)*forest";
  178. };
  179. class TailMeadows
  180. {
  181. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\Silencer_Sting_Tail_meadows", 1, 1, 400};
  182. frequency = 1;
  183. volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
  184. };
  185. class TailHouses
  186. {
  187. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\Silencer_Sting_Tail_houses", 1, 1, 400};
  188. frequency = 1;
  189. volume = "(1-interior/1.4)*houses";
  190. };
  191. };
  192. weaponSoundEffect = "DefaultRifle";
  193. };
  194. };
  195. class FullAuto:FullAuto
  196. {
  197. dispersion = "1*0.0001";
  198. reloadTime = 0.08;
  199. class BaseSoundModeType
  200. {
  201. closure1[] = {};
  202. closure2[] = {};
  203. soundClosure[] = {};
  204. weaponSoundEffect = "DefaultRifle";
  205. };
  206. class StandardSound: BaseSoundModeType
  207. {
  208. begin1[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s1.ogg", 1, 1, 1800};
  209. begin2[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s2.ogg", 1, 1, 1800};
  210. begin3[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s3.ogg", 1, 1, 1800};
  211. begin4[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s4.ogg", 1, 1, 1800};
  212. begin5[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s5.ogg", 1, 1, 1800};
  213. begin6[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s6.ogg", 1, 1, 1800};
  214. begin7[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s7.ogg", 1, 1, 1800};
  215. begin8[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s8.ogg", 1, 1, 1800};
  216. begin9[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15s9.ogg", 1, 1, 1800};
  217. soundBegin[] = {"begin1", 0.11, "begin2", 0.11, "begin3", 0.11, "begin4", 0.11, "begin5", 0.11, "begin6", 0.11, "begin7", 0.11, "begin8", 0.11, "begin9", 0.11};
  218. beginwater1[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15A_3_bajoagua.ogg", 1, 1, 400};
  219. beginwater2[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15A_3_bajoagua.ogg", 1.05, 1, 400};
  220. beginwater3[] = {"SW_CloneWarsWeapons\DCrifles\sounds\dc15A_3_bajoagua.ogg", 0.95, 1, 400};
  221. soundBeginWater[] = {"beginwater1", 0.33, "beginwater2", 0.33, "beginwater3", 0.34};
  222. class SoundTails
  223. {
  224. class TailInterior
  225. {
  226. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\Silencer_Sting_Tail_interior", 1, 1, 400};
  227. frequency = 1;
  228. volume = "interior";
  229. };
  230. class TailTrees
  231. {
  232. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\Silencer_Sting_Tail_trees", 1, 1, 400};
  233. frequency = 1;
  234. volume = "(1-interior/1.4)*trees";
  235. };
  236. class TailForest
  237. {
  238. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\silencer_Sting_tail_forest", 1, 1, 400};
  239. frequency = 1;
  240. volume = "(1-interior/1.4)*forest";
  241. };
  242. class TailMeadows
  243. {
  244. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\Silencer_Sting_Tail_meadows", 1, 1, 400};
  245. frequency = 1;
  246. volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
  247. };
  248. class TailHouses
  249. {
  250. sound[] = {"A3\Sounds_F\arsenal\weapons\SMG\Sting\Silencer_Sting_Tail_houses", 1, 1, 400};
  251. frequency = 1;
  252. volume = "(1-interior/1.4)*houses";
  253. };
  254. };
  255. weaponSoundEffect = "DefaultRifle";
  256. };
  257. };
  258. displayname = "Valken-39XX-XD";
  259. class OpticsModes
  260. {
  261. class Snip
  262. {
  263. //modelOptics = "Scope\a180.p3d";
  264. modelOptics = "Scope\4x_xm8.p3d";
  265. opticsID = 1;
  266. opticsDisplayName = "WFOV";
  267. useModelOptics = 1;
  268. opticsPPEffects[] = {"OpticsCHAbera1", "OpticsBlur1"};
  269. opticsZoomMin = ".25/24";
  270. opticsZoomMax = 0.25;
  271. opticsZoomInit = 0.25;
  272. discretefov[] = {.25/4,.25/8,.25/12,.25/24};
  273. discreteinitIndex = 0;
  274. discreteDistance[] = {100};
  275. discreteDistanceInitIndex = 1;
  276. distanceZoomMin = 100;
  277. distanceZoomMax = 4000;
  278. visionMode[] = {"Normal", "NVG","TI"};
  279. thermalMode[] = {1};
  280. memoryPointCamera = "opticView";
  281. //modelOptics = "Scope\dc15zoomscope_sight.p3d";
  282. weaponInfoType = "RscOptics_nightstalkerblue";//make diffrent scope?
  283. opticsFlare = 1;
  284. opticsDisablePeripherialVision = 0;
  285. cameraDir = "";
  286. };
  287. class Iron
  288. {
  289. opticsID = 2;
  290. opticsDisplayName = "";
  291. useModelOptics = 0;
  292. opticsPPEffects[] = {"", ""};
  293. opticsFlare = 0;
  294. opticsDisablePeripherialVision = 0;
  295. opticsZoomMin = 0.25;
  296. opticsZoomMax = 1.25;
  297. opticsZoomInit = 0.75;
  298. memoryPointCamera = "eye";
  299. modelOptics = "\A3\Weapons_F\empty";
  300. visionMode[] = {};
  301. discretefov[] = {};
  302. discreteDistance[] = {200};
  303. discreteDistanceInitIndex = 0;
  304. distanceZoomMin = 200;
  305. distanceZoomMax = 200;
  306. discreteInitIndex = 0;
  307. };
  308. };
  309. class WeaponSlotsInfo: WeaponSlotsInfo
  310. {
  311. mass = 0.1;
  312. };
  313. };
  314. /*class OPTRE_UnguidedLauncher_Base;
  315. class OPTRE_M41_SSR:OPTRE_UnguidedLauncher_Base
  316. {
  317. class Single;
  318. };
  319. class macro_new_weapon(chaingun,z6x): OPTRE_M41_SSR
  320. {
  321. baseWeapon = macro_new_weapon(chaingun,z6x);
  322. recoil = macro_new_recoil(chaingun);
  323. displayName = "Z-6X";
  324. magazines[] = {macro_new_mag(chaingun_z6x,1000)};
  325. ace_overpressure_priority = 1;
  326. ace_overpressure_angle = 0;
  327. ace_overpressure_range = 0;
  328. ace_overpressure_damage = 0;
  329. descriptionshort = "Ur mom gay :)";
  330. class GunParticles
  331. {
  332. class effect1
  333. {
  334. positionName = "muzzleEnd2";
  335. directionName = "muzzlePos2";
  336. effectName = "";
  337. };
  338. };
  339. modelOptics = "Scope\4x_xm8.p3d";
  340. class OpticsModes
  341. {
  342. class StepScope
  343. {
  344. opticsID = 1;
  345. useModelOptics = 1;
  346. opticsPPEffects[] = {"OpticsCHAbera1", "OpticsBlur1"};
  347. opticsFlare = 0;
  348. opticsZoomMin = 0.125;
  349. opticsZoomMax = 0.125/2;
  350. opticsZoomInit = 0.125;
  351. distanceZoomMin = 300;
  352. distanceZoomMax = 300;
  353. memoryPointCamera = "eye";
  354. cameraDir = "look";
  355. visionMode[] = {"Normal", "NVG", "Ti"};
  356. thermalMode[] = {0, 1};
  357. opticsDisablePeripherialVision = 1;
  358. discretefov[] = {0.125, 0.125/4, 0.125/8};
  359. discreteInitIndex = 0;
  360. };
  361. };
  362. modes[] = {"Single"};
  363. class Single: Single
  364. {
  365. sounds[] = {"StandardSound"};
  366. class BaseSoundModeType
  367. {
  368. };
  369. class StandardSound: BaseSoundModeType
  370. {
  371. // begin1[] = {"OPTRE_Weapons\Rockets\data\sounds\rocket_1.wss", 2.5, 1, 1500};
  372. // soundBegin[] = {"begin1", 1};
  373. begin1[] = {"SW_CloneWarsWeapons\SW_Z6\sound\fire1z6.ogg", 0.9, 3, 2000};
  374. begin2[] = {"SW_CloneWarsWeapons\SW_Z6\sound\fire1z6.ogg", 0.9, 3, 2000};
  375. soundBegin[] = {"begin1", 0.5, "begin2", 0.5};
  376. // begin1[] = {"SW_CloneWarsWeapons\DC17\DC171.ogg", 1, 3, 1200};
  377. // begin2[] = {"SW_CloneWarsWeapons\DC17\DC172.ogg", 1, 3, 1200};
  378. // begin3[] = {"SW_CloneWarsWeapons\DC17\DC173.ogg", 1, 3, 1200};
  379. // begin4[] = {"SW_CloneWarsWeapons\DC17\DC174.ogg", 1, 3, 1200};
  380. // begin5[] = {"SW_CloneWarsWeapons\DC17\DC175.ogg", 1, 3, 1200};
  381. // soundBegin[] = {"begin1", 0.2, "begin2", 0.2, "begin3", 0.2, "begin4", 0.2, "begin5", 0.2};
  382. };
  383. recoil = "recoil_empty";
  384. //reloadtime = 1;
  385. reloadTime = 0.03;
  386. dispersion = 0.0015;
  387. autoFire=1;
  388. burst = 1;
  389. aiRateOfFire = 7;
  390. aiRateOfFireDistance = 600;
  391. minRange = 10;
  392. minRangeProbab = 0.3;
  393. midRange = 400;
  394. midRangeProbab = 0.8;
  395. maxRange = 600;
  396. maxRangeProbab = 0.1;
  397. };
  398. };*/
  399. };