config.cpp 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115
  1. #define COMPONENT weapons
  2. #include "../RD501_main/config_macros.hpp"
  3. #include "_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(weapons)
  7. {
  8. author=DANKAUTHORS;
  9. requiredAddons[]=
  10. {
  11. macro_lvl1_req
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. macro_new_weapon(scope,dc_15a_x4),
  17. macro_new_weapon(scope,dc_15a_acog),
  18. macro_new_weapon(scope,dc_15a_x4_x8)
  19. };
  20. };
  21. };
  22. //scopes
  23. class CfgWeapons
  24. {
  25. class ItemCore;
  26. class InventoryItem_Base_F;
  27. class InventoryOpticsItem_Base_F;
  28. #include "_scopes/DC_15A_modeled_x4.hpp"
  29. #include "_scopes/DC_15A_x4_acog.hpp"
  30. #include "_scopes/DC_15A_LE_x4_x8.hpp"
  31. class GrenadeLauncher;
  32. // class Throw: GrenadeLauncher
  33. // {
  34. // muzzles[] += {"NICEMEME_MUZZLE"};
  35. // class ThrowMuzzle;
  36. // class NICEMEME_MUZZLE: ThrowMuzzle
  37. // {
  38. // displayName = "AYAYAYAYYA";
  39. // magazines[] = {"smoke_meme_mag"};
  40. // };
  41. // };
  42. };
  43. class CfgMagazineWells
  44. {
  45. class macro_new_magwell(GL_Mags)
  46. {
  47. macro_new_magwell(GL_flare)[]=
  48. {
  49. GL_flare_rounds
  50. };
  51. macro_new_magwell(GL_AP)[]=
  52. {
  53. macro_new_mag(AT_GL,2)
  54. };
  55. macro_new_magwell(GL_HE)[]=
  56. {
  57. macro_new_mag(HE_GL,3)
  58. };
  59. macro_new_magwell(smoke)[]=
  60. {
  61. "3Rnd_Smoke_Grenade_shell",
  62. "3Rnd_SmokeRed_Grenade_shell",
  63. "3Rnd_SmokeGreen_Grenade_shell",
  64. "3Rnd_SmokeYellow_Grenade_shell",
  65. "3Rnd_SmokePurple_Grenade_shell",
  66. "3Rnd_SmokeBlue_Grenade_shell",
  67. "3Rnd_SmokeOrange_Grenade_shell",
  68. "ACE_HuntIR_M203"
  69. };
  70. };
  71. class macro_new_magwell(DC17_GL_Mags)
  72. {
  73. macro_new_magwell(1rnd_GL_flare)[]=
  74. {
  75. MACRO_GL_flare_rounds_1rnd
  76. };
  77. macro_new_magwell(1rnd_smoke)[]=
  78. {
  79. "1Rnd_Smoke_Grenade_shell",
  80. "1Rnd_SmokeRed_Grenade_shell",
  81. "1Rnd_SmokeGreen_Grenade_shell",
  82. "1Rnd_SmokeYellow_Grenade_shell",
  83. "1Rnd_SmokePurple_Grenade_shell",
  84. "1Rnd_SmokeBlue_Grenade_shell",
  85. "1Rnd_SmokeOrange_Grenade_shell",
  86. "ACE_HuntIR_M203"
  87. };
  88. }
  89. class macro_new_magwell(DC_15a_energy)
  90. {
  91. macro_new_magwell(DC_15a_energy)[]=
  92. {
  93. macro_new_mag(DC15a_Med,30),
  94. macro_new_mag(DC15a_High,15),
  95. macro_new_mag(DC15a_Low,60)
  96. };
  97. };
  98. class macro_new_magwell(rocket_RPS)
  99. {
  100. macro_new_magwell(rocket_RPS)[]=
  101. {
  102. macro_new_mag(RPS_AT,1),
  103. macro_new_mag(RPS_AA,1)
  104. };
  105. };
  106. };
  107. class CfgMagazines
  108. {
  109. class CA_Magazine;
  110. class SWOP_e11_Mag;
  111. class UGL_FlareWhite_F;
  112. class macro_new_mag(westar_35,20): CA_Magazine
  113. {
  114. scope = 2;
  115. model = "SW_CloneWarsWeapons\ammo.p3d";
  116. displayName = "20Rnd WESTAR-35 Magazine";
  117. picture = "\SWOP_Main\swop_Pistols\ui\M_SB_EnergyCell_CA.paa";
  118. ammo = macro_new_ammo(westar_35);
  119. //ammo = "SWOP_DC17_Ammo_low_RD501";
  120. tracersEvery = 1;
  121. type = 16;
  122. count = 20;
  123. descriptionShort = "20 Round WESTAR-35 Magazine";
  124. mass = 6;
  125. initSpeed = 310;
  126. };
  127. class macro_new_mag(z6,400): SWOP_e11_Mag
  128. {
  129. author = "rd501";
  130. model = "\SW_ExtraWeapons\PICKUPS\power_cell.p3d";
  131. ammo = macro_new_ammo(z6);
  132. displayName = "400Rnd Z6 Rotary Blaster Magazine";
  133. descriptionShort = "400Rnd Z6 Magazine";
  134. count = 400;
  135. weight = 100;
  136. mass = 30;
  137. ACE_isBelt = 1;
  138. initSpeed = 500;//360;
  139. picture = "\SW_CloneWarsWeapons\SW_Z6\UI\SW_Z6-mag.paa";
  140. };
  141. #include "_mag/flare_mag.hpp"
  142. class macro_new_mag(AT_GL,2): CA_Magazine
  143. {
  144. author = "RD501";
  145. scope = 2;
  146. type = 16;
  147. displayName = "2 Rnd AP DC-15A Grenades";
  148. displayNameShort = "2 Rnd AP DC-15A";
  149. picture = "\A3\Weapons_f\Data\ui\gear_UGL_slug_CA.paa";
  150. ammo = macro_new_ammo(GL_AT);
  151. initSpeed = 220;//120;
  152. count = 2;
  153. nameSound = "";
  154. descriptionShort = "2Rnd AP DC-15A Grenade";
  155. //mass = 30;
  156. mass = 15;
  157. };
  158. class macro_new_mag(HE_GL,3): macro_new_mag(AT_GL,2)
  159. {
  160. displayName = "3 Rnd HE DC-15A Grenades";
  161. displayNameShort = "3 Rnd HE DC-15A";
  162. count=3;
  163. ammo = macro_new_ammo(GL_HE);
  164. descriptionShort = "3Rnd HE DC-15A Grenade";
  165. initSpeed = 120;
  166. };
  167. class SWOP_dc15xBlasterRifle_Mag;
  168. class macro_new_mag(DC15x,6): SWOP_dc15xBlasterRifle_Mag
  169. {
  170. author = "RD501";
  171. scope = 2;
  172. model = "\SW_ExtraWeapons\PICKUPS\power_cell.p3d";
  173. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\powercell_X_ca.paa";
  174. displayName = "6Rnd DC-15X Magazine";
  175. ammo =macro_new_ammo(DC15x);
  176. tracersEvery = 1;
  177. count = 6;
  178. descriptionShort = "6Rnd DC15X Magazine";
  179. mass = 20;
  180. initSpeed = 4000;
  181. };
  182. class macro_new_mag(DC15s,60): CA_Magazine
  183. {
  184. author = "RD501";
  185. scope = 2;
  186. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  187. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  188. displayName = "60Rnd DC-15S Carbine Magazine";
  189. ammo = macro_new_ammo(dc15s_carbine);
  190. tracersEvery = 1;
  191. type = 16;
  192. count = 60;
  193. descriptionShort = "60Rnd DC15 Blaster Magazine";
  194. //mass = 15;
  195. mass = 20;
  196. initSpeed = 310;
  197. };
  198. class SWOP_DC15ABlasterRifle_Mag;
  199. class macro_new_mag(DC15a_Med,30): SWOP_DC15ABlasterRifle_Mag
  200. {
  201. author = "RD501";
  202. scope = 2;
  203. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  204. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  205. displayName = "30Rnd DC-15A Mid Energy Rounds";
  206. ammo = macro_new_ammo(dc15a_med);
  207. tracersEvery = 1;
  208. count = 30;
  209. descriptionShort = "30Rnd DC15A Mid Energy";
  210. mass = 20;
  211. initSpeed = 380;
  212. };
  213. class macro_new_mag(DC15a_High,15): macro_new_mag(DC15a_Med,30)
  214. {
  215. displayName = "15Rnd DC-15A High Energy Rounds";
  216. ammo = macro_new_ammo(dc15a_high);
  217. count = 15;
  218. descriptionShort = "15Rnd DC15A High Energy Rounds";
  219. mass = 35;
  220. initSpeed = 1200;
  221. };
  222. class macro_new_mag(DC15a_Low,60): macro_new_mag(DC15a_Med,30)
  223. {
  224. displayName = "60Rnd DC-15A Low Energy Rounds";
  225. ammo = macro_new_ammo(dc15a_low);
  226. count = 60;
  227. descriptionShort = "60Rnd DC15A Low Energy";
  228. mass = 30;
  229. };
  230. class macro_new_mag(DC15a_box_mag,240): CA_Magazine
  231. {
  232. author = "RD501";
  233. scope = 2;
  234. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  235. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  236. displayName = "240Rnd Box DC-15A Low Energy Rounds";
  237. ammo = macro_new_ammo(dc15a_low);
  238. tracersEvery = 1;
  239. count =240;
  240. descriptionShort = "240Rnd DC15A Low Energy";
  241. mass = 40;
  242. initSpeed = 300;
  243. ACE_isBelt = 1;
  244. };
  245. class SWOP_DC17Pistol_Mag;
  246. class macro_new_mag(DC17,20): SWOP_DC17Pistol_Mag
  247. {
  248. scope = 2;
  249. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  250. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  251. displayName = "20Rnd DC17 Magazine.";
  252. ammo = macro_new_ammo(dc_17);
  253. tracersEvery = 1;
  254. type = 16;
  255. count = 20;
  256. descriptionShort = "20Rnd DC17 Magazine";
  257. mass = 6;
  258. initSpeed = 310;
  259. //initSpeed = 110;
  260. };
  261. class macro_new_mag(DC17,40): macro_new_mag(DC17,20)
  262. {
  263. displayName = "40Rnd DC17 Magazine.";
  264. tracersEvery = 1;
  265. count = 40;
  266. descriptionShort = "40Rnd DC17 Magazine";
  267. mass = 13;
  268. };
  269. class Titan_AA;
  270. class CA_LauncherMagazine;
  271. class macro_new_mag(RPS_AT,1): CA_LauncherMagazine
  272. {
  273. scope = 2;
  274. displayName = "RPS AT Rocket";
  275. ammo = macro_new_ammo(RPS_AT);
  276. type = "2 * 256";
  277. count = 1;
  278. picture = "\A3\weapons_f\launchers\nlaw\data\UI\gear_nlaw_rocket_ca.paa";
  279. model = "\A3\weapons_f\launchers\nlaw\nlaw_proxy";
  280. initSpeed = 60;
  281. maxLeadSpeed = 60;
  282. mass = 70;
  283. nameSound = "missiles";
  284. };
  285. class macro_new_mag(RPS_AA,1): Titan_AA
  286. {
  287. author = "Bohemia Interactive";
  288. scope = 2;
  289. displayName = "RPS AA Rocket";
  290. displayNameShort = "AA";
  291. ammo = macro_new_ammo(RPS_AA);
  292. type = "6 * 256";
  293. picture = "\A3\Weapons_F_beta\Launchers\titan\Data\UI\gear_titan_missile_atl_CA.paa";
  294. model = "\A3\Weapons_F_beta\Launchers\titan\titan_missile_atl";
  295. initSpeed = 18;
  296. maxLeadSpeed = 277.778;
  297. descriptionShort = "Type: Anti-Air<br />Rounds: 1<br />Used in: Titan MPRL";
  298. mass = 100;
  299. };
  300. class SWOP_b2rocket_Mag: CA_Magazine
  301. {
  302. scope = 2;
  303. displayName = "5Rnd B2 Wrist Rockets";
  304. model = "\SW_ExtraWeapons\PICKUPS\bolts.p3d";
  305. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\bolts_X_ca.paa";
  306. ammo = "R_WristRocket_F";
  307. tracersEvery = 1;
  308. type = 16;
  309. count = 5;
  310. descriptionShort = "5Rnd Wrist Rockets";
  311. mass = 3;
  312. initSpeed = 100;
  313. soundFly[] = {"A3\Sounds_F\weapons\Rockets\rocket_fly_2", 0.501187, 1.3, 400};
  314. nameSound = "missiles";
  315. };
  316. class SWOP_E5C_Mag;
  317. class SWOP_E5_Mag;
  318. class macro_new_mag(E5c_aqua,90): SWOP_E5C_Mag
  319. {
  320. author = "RD501";
  321. scope = 2;
  322. displayName = "90Rnd E5C-Aqua Magazine";
  323. ammo = macro_new_ammo(E5c_Aqua);
  324. tracersEvery = 1;
  325. count = 90;
  326. descriptionShort = "90Rnd E5-Aqua Magazine";
  327. };
  328. class macro_new_mag(E5_aqua,60): SWOP_E5_Mag
  329. {
  330. author = "RD501";
  331. scope = 2;
  332. displayName = "60Rnd E5-Aqua Magazine";
  333. ammo = macro_new_ammo(E5_Aqua);
  334. tracersEvery = 1;
  335. count = 60;
  336. descriptionShort = "60Rnd E5-A Magazine";
  337. };
  338. class SW_iondisruptor_BlasterRifle_Mag;
  339. class macro_new_mag(RAMER,6):SW_iondisruptor_BlasterRifle_Mag
  340. {
  341. scope = 2;
  342. model = "\SW_ExtraWeapons\PICKUPS\power_cell.p3d";
  343. displayName = "6Rnd ION Magazine";
  344. picture = "\SWOP_Main\SWOP_Rifles\SWOP_Blaster\data\ui\E11_Mag.paa";
  345. ammo = "SW_iondisruptor_BlasterRifle_Ammo";
  346. tracersEvery = 1;
  347. count = 6;
  348. descriptionShort = "6Rnd ION Magazine";
  349. mass = 50;
  350. initSpeed = 310;
  351. author = "RD501";
  352. };
  353. class macro_new_mag(DC15a_LE,15): CA_Magazine
  354. {
  355. author = "RD501";
  356. scope = 2;
  357. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  358. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  359. displayName = "15Rnd DC-15 LE Mag";
  360. ammo = macro_new_ammo(dc15_LE);
  361. tracersEvery = 1;
  362. //count = 10;
  363. count = 15;
  364. descriptionShort = "15Rnd DC-15 LE Mag";
  365. mass = 20;
  366. initSpeed = 1200;
  367. };
  368. class SWOP_DC15SAPistol_Mag;
  369. class macro_new_mag(DC15_razor_blade,9): SWOP_DC15SAPistol_Mag
  370. {
  371. scope = 2;
  372. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  373. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  374. displayName = "9Rnd DC15-SA Magazine";
  375. ammo =macro_new_ammo(DC15_Razor_Blade);
  376. tracersEvery = 1;
  377. type = 16;
  378. count = 9;
  379. descriptionShort = "9Rnd DC15SA Magazine";
  380. mass =4;
  381. initSpeed = 310;
  382. };
  383. class SWOP_Valken38Xauto_MagXXD: CA_Magazine
  384. {
  385. author = "RD501";
  386. scope = 2;
  387. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  388. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  389. displayName = "400Rnd Valken38X Magazine";
  390. tracersEvery = 1;
  391. count = 400;
  392. weight = 90;
  393. initSpeed = 1700;
  394. ammo = "valken_38xxd_ammo";
  395. descriptionShort = "400Rnd Valken38X Blaster Magazine";
  396. };
  397. class SmokeShell;
  398. class smoke_meme_mag: SmokeShell
  399. {
  400. author = "Bohemia Interactive";
  401. displayNameShort = "Yeet Smoke";
  402. ammo = "smoke_meme";
  403. picture = "\A3\Weapons_f\data\ui\gear_smokegrenade_blue_ca.paa";
  404. model = "\A3\Weapons_f\ammo\smokegrenade_blue";
  405. descriptionShort = "Type: Smoke Grenade - Blue<br />Rounds: 1<br />Used in: Hand";
  406. displayName = "[]M18 Smoke Grenade (Yeet)";
  407. };
  408. class macro_new_mag(DC15_underwater,40): CA_Magazine
  409. {
  410. author = "RD501";
  411. scope = 2;
  412. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  413. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  414. displayName = "40Rnd Republic Aqua Rounds";
  415. ammo = macro_new_ammo(dc15_underwater);
  416. tracersEvery = 1;
  417. type = 16;
  418. count = 40;
  419. descriptionShort = "40Rnd Republic Aqua Rounds";
  420. //mass = 15;
  421. mass = 20;
  422. initSpeed = 310;
  423. };
  424. class RPG32_HE_F;
  425. class macro_new_mag(chaingun_z6x,1000): RPG32_HE_F
  426. {
  427. dlc = "RD501";
  428. displayname = "Z6x 1000rnd Mag";
  429. displaynameshort = "1000rnd Mag";
  430. descriptionshort = "Z6x 1000rnd mag";
  431. ammo = macro_new_ammo(chaingun_z6x);
  432. // picture = "\OPTRE_weapons\rockets\icons\rocket.paa";
  433. // model = "\OPTRE_Weapons\Rockets\M41_tube.p3d";
  434. // modelSpecial = "\OPTRE_Weapons\Rockets\M41_launcher_loaded.p3d";
  435. count = 1000;
  436. mass = 100;
  437. initSpeed = 550;
  438. allowedSlots[] = {901, 701};
  439. tracersEvery = 100;
  440. ACE_isBelt = 1;
  441. };
  442. };
  443. class CfgAmmo
  444. {
  445. class GrenadeHand;
  446. class SWOP_DC17_Ammo;
  447. class M_Titan_AT;
  448. class R_PG32V_F;
  449. class R_TBG32V_F;
  450. class LaserAmmo_Minigun;
  451. class FlareBase;
  452. class G_40mm_HE;
  453. class SWOP_dc15xBlasterRifle_Ammo;
  454. class SWOP_DC15ABlasterRifle_Ammo;
  455. class SWOP_DC15ABlasterRifle_Full_Ammo;
  456. class SWOP_DC15ABlasterRifle_L_Ammo;
  457. class SWOP_DC15_Ammo;
  458. class ATMine_Range_Ammo;
  459. class PipeBombBase;
  460. class A_RocketHH15Clone_HEAT_FireForget;
  461. class M_Titan_AA;
  462. class DH17_Blaster_Ammo;
  463. class macro_new_ammo(westar_35):SWOP_DC17_Ammo
  464. {
  465. hit = pistol_hit_high;
  466. indirectHit = 0.0;
  467. indirectHitRange = 0.0;
  468. explosive = 0.0;
  469. caliber = pistol_cali_high;
  470. };
  471. class macro_new_ammo(dc_17): SWOP_DC17_Ammo
  472. {
  473. hit = 10;
  474. waterFriction = -0.001;//
  475. indirectHit = 0.2;
  476. indirectHitRange = 0.2;
  477. explosive = 0.05;
  478. caliber = 2.8;//7
  479. };
  480. class macro_new_ammo(z6):LaserAmmo_Minigun
  481. {
  482. hit = mg_hit_high;
  483. indirectHit = 0.0;
  484. indirectHitRange = 0.0;
  485. explosive = 0.0;
  486. caliber = mg_cali_high;
  487. ACE_caliber = 0;
  488. };
  489. #include "_ammo/40mm_flare.hpp"
  490. class macro_new_ammo(GL_AT): G_40mm_HE
  491. {
  492. hit = 350;
  493. indirectHit = 0;
  494. indirectHitRange = .1;
  495. timeToLive =30;
  496. model = "\GeonFighter\LaserGeon.p3d";
  497. fuseDistance = 3;
  498. explosive = 0.0001;
  499. deflecting = 5;
  500. caliber = 5;
  501. ace_frag_enabled = 0;
  502. ace_frag_force = 0;
  503. ace_frag_classes[] = {""};
  504. ace_frag_metal = 0;
  505. ace_frag_charge = 0;
  506. ace_frag_gurney_c = 0;
  507. ace_frag_gurney_k = "0";
  508. ace_rearm_caliber = 0;
  509. };
  510. class macro_new_ammo(GL_HE): G_40mm_HE
  511. {
  512. hit = 60;
  513. indirectHit = 50;
  514. indirectHitRange = 5;
  515. timeToLive =30;
  516. model = "SW_AV7\ion.p3d";
  517. fuseDistance = 3;
  518. };
  519. class macro_new_ammo(DC15x): SWOP_dc15xBlasterRifle_Ammo
  520. {
  521. hit = 55;//35
  522. indirectHit = 0;
  523. indirectHitRange = 0;
  524. explosive = 0.0;
  525. caliber = 6;//15
  526. waterFriction = -0.001;//
  527. timeToLive = 5;
  528. };
  529. class macro_new_ammo(dc15s_carbine):SWOP_DC15_Ammo
  530. {
  531. waterFriction = -0.001;//
  532. hit = 7;
  533. indirectHit = 0.1;
  534. indirectHitRange = 0.2;
  535. explosive = 0.1;//.4
  536. caliber = 2;//5
  537. timeToLive = 4;
  538. };
  539. class macro_new_ammo(dc15_underwater):macro_new_ammo(dc15s_carbine)
  540. {
  541. waterFriction = -0.001;//
  542. hit = 7;
  543. indirectHit = 0.1;
  544. indirectHitRange = 0.2;
  545. explosive = 0.1;//.4
  546. caliber = 2;//5
  547. timeToLive = 4;
  548. effectFly = "AmmoUnderwater";
  549. nvgOnly = 1;
  550. aiAmmoUsageFlags = "64 + 32";
  551. };
  552. class macro_new_ammo(dc15a_med):SWOP_DC15ABlasterRifle_Ammo
  553. {
  554. hit = 8;
  555. waterFriction = -0.001;
  556. indirectHit = 0.1;
  557. indirectHitRange = 0.2;
  558. explosive = 0.4;
  559. caliber = 3;//7
  560. timeToLive = 4;
  561. };
  562. class macro_new_ammo(dc15a_high):SWOP_DC15ABlasterRifle_Full_Ammo
  563. {
  564. hit = 20;
  565. waterFriction = -0.001;
  566. indirectHit = 0.5;
  567. indirectHitRange = 0.4;
  568. explosive = 0.2;
  569. caliber = 4;//10
  570. timeToLive = 4;
  571. };
  572. class macro_new_ammo(dc15a_low):SWOP_DC15ABlasterRifle_L_Ammo
  573. {
  574. hit = 6;
  575. waterFriction = -0.001;//
  576. indirectHit = 0.1;
  577. indirectHitRange = 0.2;
  578. explosive = 0.4;
  579. caliber = 2;//5
  580. timeToLive = 4;
  581. };
  582. class UNSC_Mine_Ammo: ATMine_Range_Ammo
  583. {
  584. hit = 2500;
  585. indirectHit = 2500;
  586. indirectHitRange = 20;
  587. };
  588. class TermMineA: PipeBombBase
  589. {
  590. hit = 400;
  591. indirectHit = 400;
  592. indirectHitRange = 25;
  593. };
  594. class TermMineC: PipeBombBase
  595. {
  596. hit = 2500;
  597. indirectHit = 2500;
  598. indirectHitRange = 15;
  599. };
  600. class macro_new_ammo(RPS_AT):A_RocketHH15Clone_HEAT_FireForget
  601. {
  602. aiAmmoUsageFlags = "128 + 256 +512";
  603. hit = 95;
  604. thrust = 130;//130;
  605. thrustTime = 3.5;
  606. timeToLive = 20;
  607. indirectHit = 20;
  608. indirectHitRange = 2;
  609. };
  610. class macro_new_ammo(RPS_AA) : M_Titan_AA
  611. {
  612. hit = 800;
  613. indirectHit = 400;
  614. indirectHitRange = 1;
  615. };
  616. class macro_new_ammo(E5c_Aqua): DH17_Blaster_Ammo
  617. {
  618. airFriction = 0;
  619. waterFriction = 0;
  620. effectFly = "AmmoUnderwater";
  621. };
  622. class macro_new_ammo(E5_Aqua): DH17_Blaster_Ammo
  623. {
  624. airFriction = 0;
  625. waterFriction = 0;
  626. effectFly = "AmmoUnderwater";
  627. };
  628. class SWOP_bactagammo:GrenadeHand
  629. {
  630. soundFly[] = {"\thermalD\diox1.ogg", 1, 1, 60};
  631. class NVGMarkers
  632. {
  633. class Blinking1
  634. {
  635. name = "blinkpos1";
  636. color[] = {0.01, 0.01, 0.01, 1};
  637. ambient[] = {0.005, 0.005, 0.005, 1};
  638. blinking = 1;
  639. brightness = 0.002;
  640. onlyInNvg = 1;
  641. };
  642. class Blinking2
  643. {
  644. color[] = {0.9, 0.1, 0.1};
  645. ambient[] = {0.1, 0.1, 0.1};
  646. name = "blinkpos2";
  647. blinking = 1;
  648. blinkingStartsOn = 1;
  649. blinkingPattern[] = {0.1, 0.9};
  650. blinkingPatternGuarantee = 1;
  651. drawLightSize = 0.35;
  652. drawLightCenterSize = 0.05;
  653. brightness = 0.002;
  654. dayLight = 1;
  655. onlyInNvg = 0;
  656. intensity = 75;
  657. drawLight = 1;
  658. activeLight = 0;
  659. useFlare = 0;
  660. };
  661. };
  662. };
  663. //212th stuff
  664. class SCI_PLX1_R : M_Titan_AT
  665. {
  666. hit = 95;
  667. indirectHit = 20;
  668. indirectHitRange = 2;
  669. };
  670. class SCI_RPS6_HEAA_R : R_PG32V_F
  671. {
  672. hit = 800;
  673. indirectHit = 400;
  674. indirectHitRange = 1;
  675. };
  676. class SCI_RPS6_HEDP_R : R_TBG32V_F
  677. {
  678. hit = 50;
  679. indirectHit = 60;
  680. indirectHitRange = 8;
  681. };
  682. class macro_new_ammo(dc15_LE): SWOP_DC15ABlasterRifle_Full_Ammo
  683. {
  684. //hit = 15;
  685. hit = 33;
  686. waterFriction = -0.001;//
  687. indirectHit = 0.5;
  688. indirectHitRange = 0.4;
  689. //explosive = 0.45;
  690. explosive = 0.4;
  691. caliber = 5;//10
  692. cartridge = "";
  693. cost = 1;
  694. model = "\SWOP_Main\Effects\Tracer\laserblue";
  695. tracerScale = 1.5;
  696. tracerStartTime = 0;
  697. tracerEndTime = 2;
  698. //timeToLive = 2;
  699. timeToLive = 4;
  700. nvgOnly = 0;
  701. typicalSpeed = 70;
  702. visibleFire = 3;
  703. audibleFire = 5;
  704. visibleFireTime = 4;
  705. dangerRadiusBulletClose = 16;
  706. dangerRadiusHit = 40;
  707. suppressionRadiusBulletClose = 10;
  708. suppressionRadiusHit = 14;
  709. };
  710. class SWOP_DC15SA_Ammo;
  711. class macro_new_ammo(DC15_Razor_Blade):SWOP_DC15SA_Ammo
  712. {
  713. hit = 50;
  714. indirectHit = 0.0;
  715. indirectHitRange = 0.0;
  716. explosive = 0;
  717. caliber = 5;
  718. CraterEffects = "ExploAmmoLaserCrater";
  719. };
  720. class B_127x108_APDS;
  721. class SW_iondisruptor_BlasterRifle_Ammo: B_127x108_APDS
  722. {
  723. timeToLive = 2;
  724. };
  725. class valken_38xxd_ammo: SWOP_dc15xBlasterRifle_Ammo
  726. {
  727. hit = 55;
  728. indirectHit = 0;
  729. indirectHitRange = 0.00;
  730. explosive = 0.0;
  731. caliber = 10;
  732. timeToLive = 4;
  733. };
  734. class SmokeShell;
  735. class smoke_meme: SmokeShell
  736. {
  737. model = "\A3\Weapons_f\ammo\smokegrenade_blue_throw";
  738. smokeColor[] = {0.1183, 0.1867, 1, 1};
  739. effectsSmoke = "smoke_yeet";
  740. };
  741. //LOOK HERE $$$
  742. class M_NLAW_AT_F;
  743. class ammo_Penetrator_Base;
  744. class macro_new_ammo(chaingun_z6x_penetrator): ammo_Penetrator_Base
  745. {
  746. hit = 30;
  747. indirectHit = 0.0;
  748. indirectHitRange = 0.0;
  749. explosive = 0.0;
  750. caliber = 2;
  751. ACE_caliber = 0;
  752. timeToLive = 6;
  753. class HitEffects
  754. {
  755. Hit_Foliage_green="SWOP_LaserExploSmallblue2";
  756. Hit_Foliage_Dead="SWOP_LaserExploSmallblue2";
  757. Hit_Foliage_Green_big="SWOP_LaserExploSmallblue2";
  758. Hit_Foliage_Palm="SWOP_LaserExploSmallblue2";
  759. Hit_Foliage_Pine="SWOP_LaserExploSmallblue2";
  760. hitFoliage="SWOP_LaserExploSmallblue2";
  761. hitGlass="SWOP_LaserExploSmallblue2";
  762. hitGlassArmored="SWOP_LaserExploSmallblue2";
  763. hitWood="SWOP_LaserExploSmallblue2";
  764. hitMetal="SWOP_LaserExploSmallblue2";
  765. hitMetalPlate="SWOP_LaserExploSmallblue2";
  766. hitBuilding="SWOP_LaserExploSmallblue2";
  767. hitPlastic="SWOP_LaserExploSmallblue2";
  768. hitRubber="SWOP_LaserExploSmallblue2";
  769. hitTyre="SWOP_LaserExploSmallblue2";
  770. hitConcrete="SWOP_LaserExploSmallblue2";
  771. hitMan="SWOP_LaserExploSmallblue2";
  772. hitGroundSoft="SWOP_LaserExploSmallblue2";
  773. hitGroundRed="SWOP_LaserExploSmallblue2";
  774. hitGroundHard="SWOP_LaserExploSmallblue2";
  775. hitWater="SWOP_LaserExploSmallblue2";
  776. hitVirtual="SWOP_LaserExploSmallblue2";
  777. default_mat="SWOP_LaserExploSmallblue2";
  778. };
  779. coefGravity = 0.6;
  780. };
  781. class macro_new_ammo(chaingun_z6x): M_NLAW_AT_F
  782. {
  783. hit = 32;
  784. indirectHit = 20;
  785. indirectHitRange = 0.1;
  786. explosive = 0;
  787. caliber = 2;
  788. ACE_caliber = 0;
  789. model = "\SWOP_Main\Effects\Tracer\laserblue";
  790. effectFly = "SWOP_BlueLaserEffect";
  791. cost = 500;
  792. airFriction = 0;
  793. sideairFriction = 0;
  794. coefGravity = 0;
  795. maxSpeed = 1050;
  796. typicalSpeed = 1050;
  797. initTime = 0.0;
  798. thrustTime = 3.4;
  799. thrust = 500;
  800. fuseDistance = 0;
  801. simulationStep = 0.02;
  802. timeToLive = 4;
  803. effectsMissile = "SWOP_BlueLaserEffect";
  804. whistleDist = 20;
  805. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  806. submunitionAmmo = macro_new_ammo(chaingun_z6x_penetrator);
  807. submunitionDirectionType = "SubmunitionModelDirection";
  808. submunitionInitSpeed = 1000;
  809. submunitionParentSpeedCoef = 0;
  810. submunitionInitialOffset[] = {0,0,-0.2};
  811. triggerOnImpact = 1;
  812. deleteParentWhenTriggered = 0;
  813. flightProfiles[] = {"Direct"};
  814. CraterEffects = "ExploAmmoLaserCrater";
  815. explosionEffects = "SWOP_LaserExploSmallblue2";
  816. soundHit[] = {"A3\Sounds_F\arsenal\sfx\bullet_hits\concrete_01",1,1,150};
  817. soundHit1[] = {"A3\Sounds_F\arsenal\sfx\bullet_hits\concrete_01",1,1,200};
  818. soundHit2[] = {"A3\Sounds_F\arsenal\sfx\bullet_hits\concrete_01",1,1,200};
  819. soundHit3[] = {"A3\Sounds_F\arsenal\sfx\bullet_hits\concrete_01",1,1,2000};
  820. effectsSmoke = "SWOP_BlueLaserEffect";
  821. explosionSoundEffect = "";
  822. soundFly[] = {"",1,1,50};
  823. muzzleEffect = "";
  824. SoundSetExplosion[] = {""};
  825. class HitEffects
  826. {
  827. Hit_Foliage_green = "SWOP_LaserExploSmallblue2";
  828. Hit_Foliage_Dead = "SWOP_LaserExploSmallblue2";
  829. Hit_Foliage_Green_big = "SWOP_LaserExploSmallblue2";
  830. Hit_Foliage_Palm = "SWOP_LaserExploSmallblue2";
  831. Hit_Foliage_Pine = "SWOP_LaserExploSmallblue2";
  832. hitFoliage = "SWOP_LaserExploSmallblue2";
  833. hitGlass = "SWOP_LaserExploSmallblue2";
  834. hitGlassArmored = "SWOP_LaserExploSmallblue2";
  835. hitWood = "SWOP_LaserExploSmallblue2";
  836. hitMetal = "SWOP_LaserExploSmallblue2";
  837. hitMetalPlate = "SWOP_LaserExploSmallblue2";
  838. hitBuilding = "SWOP_LaserExploSmallblue2";
  839. hitPlastic = "SWOP_LaserExploSmallblue2";
  840. hitRubber = "SWOP_LaserExploSmallblue2";
  841. hitTyre = "SWOP_LaserExploSmallblue2";
  842. hitConcrete = "SWOP_LaserExploSmallblue2";
  843. hitMan = "SWOP_LaserExploSmallblue2";
  844. hitGroundSoft = "SWOP_LaserExploSmallblue2";
  845. hitGroundRed = "SWOP_LaserExploSmallblue2";
  846. hitGroundHard = "SWOP_LaserExploSmallblue2";
  847. hitWater = "SWOP_LaserExploSmallblue2";
  848. hitVirtual = "SWOP_LaserExploSmallblue2";
  849. default_mat = "SWOP_LaserExploSmallblue2";
  850. };
  851. class Direct{};
  852. class CamShakeExplode
  853. {
  854. power = 1;
  855. duration = 1.4;
  856. frequency = 20;
  857. distance = 1;
  858. };
  859. class CamShakeHit
  860. {
  861. power = 1;
  862. duration = 0.6;
  863. frequency = 20;
  864. distance = 1;
  865. };
  866. class CamShakeFire
  867. {
  868. power = 1;
  869. duration = 1.2;
  870. frequency = 20;
  871. distance = 1;
  872. };
  873. class CamShakePlayerFire
  874. {
  875. power = 1;
  876. duration = 0.1;
  877. frequency = 20;
  878. distance = 1;
  879. };
  880. };
  881. };
  882. class smoke_yeet
  883. {
  884. class SmokeShell
  885. {
  886. simulation = "particles";
  887. type = "SMOKEEFFECT_MEME";
  888. position[] = {0, 0, 0};
  889. intensity = 1;
  890. interval = 1;
  891. };
  892. class SmokeShell2
  893. {
  894. simulation = "particles";
  895. type = "SmokeShellWhite2";
  896. position[] = {0, 0, 0};
  897. intensity = 1;
  898. interval = 1;
  899. };
  900. class SmokeShellUW
  901. {
  902. simulation = "particles";
  903. type = "SmokeShellWhiteUW";
  904. position[] = {0, 0, 0};
  905. intensity = 1;
  906. interval = 1;
  907. };
  908. class SmokeShell2UW
  909. {
  910. simulation = "particles";
  911. type = "SmokeShellWhite2UW";
  912. position[] = {0, 0, 0};
  913. intensity = 1;
  914. interval = 1;
  915. };
  916. };
  917. class CfgCloudlets
  918. {
  919. class Default;
  920. class SMOKEEFFECT_MEME: Default
  921. {
  922. animationSpeedCoef = 1;
  923. colorCoef[] = {"colorR", "colorG", "colorB", "colorA"};
  924. sizeCoef = 1;
  925. position[] = {0, 0, 0};
  926. interval = 0.03;
  927. circleRadius = 0;
  928. circleVelocity[] = {0, 0, 0};
  929. particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
  930. particleFSNtieth = 16;
  931. particleFSIndex = 7;
  932. particleFSFrameCount = 48;
  933. particleFSLoop = 1;
  934. angleVar = 0.1;
  935. animationName = "";
  936. particleType = "Billboard";
  937. timerPeriod = 1;
  938. lifeTime = 20;
  939. moveVelocity[] = {0.0, 0.0, 0.0};//{0.2, 0.1, 0.1};
  940. rotationVelocity = 1;
  941. weight = 1.2777;
  942. volume = 1;
  943. rubbing = 0.05;
  944. size[] = {6, 16};//{0.1, 2, 6};
  945. color[] = {{0.6, 0.6, 0.6, 0.2}, {0.6, 0.6, 0.6, 0.05}, {0.6, 0.6, 0.6, 0}};
  946. animationSpeed[] = {1.5, 0.5};
  947. randomDirectionPeriod = 1;
  948. randomDirectionIntensity = 0.04;
  949. onTimerScript = "";
  950. beforeDestroyScript = "";
  951. destroyOnWaterSurface = 1;
  952. destroyOnWaterSurfaceOffset = -0.6;
  953. lifeTimeVar = 2;
  954. positionVar[] = {0, 0, 0};
  955. MoveVelocityVar[] = {0.25, 0.25, 0.25};
  956. rotationVelocityVar = 20;
  957. sizeVar = 0.5;
  958. colorVar[] = {0, 0, 0, 0.35};
  959. randomDirectionPeriodVar = 0;
  960. randomDirectionIntensityVar = 0;
  961. };
  962. };
  963. class CfgRecoils
  964. {
  965. class recoil_default;
  966. class Default;
  967. class macro_new_recoil(westar_pistol): recoil_default
  968. {
  969. muzzleOuter[] = {"0.05", ".5", "0.1", "0.2"};
  970. kickBack[] = {"0.04", "0.08"};
  971. temporary = "0.06";
  972. };
  973. class macro_new_recoil(dc15_rb): Default
  974. {
  975. muzzleOuter[] = {"0.3*0.2", "6", "0.3*1", ".6"};
  976. muzzleInner[] = {0, 0, 0.1, 0.1};
  977. kickBack[] = {"0.03*2", "0.06*2.5"};
  978. permanent = "0.1*1.8";
  979. temporary = "0.01*1.2";
  980. };
  981. class Valken_Super_auto_recoil: Default
  982. {
  983. muzzleOuter[] = {".08*0.25", ".08*0.25", "0.3*0.25", ".1*0.25"};
  984. muzzleInner[] = {0, 0, 0.1, 0.1};
  985. kickBack[] = {"0.03*0.25", "0.03*0.25"};
  986. permanent = "0.1*0.25";
  987. temporary = "0.01*0.25";
  988. };
  989. class macro_new_recoil(chaingun): Default
  990. {
  991. muzzleOuter[] = {"0.03", "0.4", "0.03", ".06"};
  992. muzzleInner[] = {0, 0, 0.01, 0.01};
  993. kickBack[] = {"0.02", "0.03"};
  994. permanent = "0.013";
  995. temporary = "0.013";
  996. prone = 0.0; //coefficient of recoil forces while in prone (this is further multiplied by weapon resting coefficients)
  997. };
  998. };