config.cpp 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138
  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(T21,25): CA_Magazine
  354. {
  355. author = "RD501";
  356. scope = 2;
  357. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  358. Displayname = "25Rnd R-T21 Mag";
  359. ammo = macro_new_ammo(T21);
  360. tracersevery = 1;
  361. count = 25;
  362. descriptionshort = "25Rnd R-T21 Mag";
  363. mass = 20;
  364. initspeed = 250;
  365. };
  366. class macro_new_mag(DC15a_LE,15): CA_Magazine
  367. {
  368. author = "RD501";
  369. scope = 2;
  370. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  371. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  372. displayName = "15Rnd DC-15 LE Mag";
  373. ammo = macro_new_ammo(dc15_LE);
  374. tracersEvery = 1;
  375. //count = 10;
  376. count = 15;
  377. descriptionShort = "15Rnd DC-15 LE Mag";
  378. mass = 20;
  379. initSpeed = 1200;
  380. };
  381. class SWOP_DC15SAPistol_Mag;
  382. class macro_new_mag(DC15_razor_blade,9): SWOP_DC15SAPistol_Mag
  383. {
  384. scope = 2;
  385. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  386. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  387. displayName = "9Rnd DC15-SA Magazine";
  388. ammo =macro_new_ammo(DC15_Razor_Blade);
  389. tracersEvery = 1;
  390. type = 16;
  391. count = 9;
  392. descriptionShort = "9Rnd DC15SA Magazine";
  393. mass =4;
  394. initSpeed = 310;
  395. };
  396. class SWOP_Valken38Xauto_MagXXD: CA_Magazine
  397. {
  398. author = "RD501";
  399. scope = 2;
  400. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  401. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  402. displayName = "400Rnd Valken38X Magazine";
  403. tracersEvery = 1;
  404. count = 400;
  405. weight = 90;
  406. initSpeed = 1700;
  407. ammo = "valken_38xxd_ammo";
  408. descriptionShort = "400Rnd Valken38X Blaster Magazine";
  409. };
  410. class SmokeShell;
  411. class smoke_meme_mag: SmokeShell
  412. {
  413. author = "Bohemia Interactive";
  414. displayNameShort = "Yeet Smoke";
  415. ammo = "smoke_meme";
  416. picture = "\A3\Weapons_f\data\ui\gear_smokegrenade_blue_ca.paa";
  417. model = "\A3\Weapons_f\ammo\smokegrenade_blue";
  418. descriptionShort = "Type: Smoke Grenade - Blue<br />Rounds: 1<br />Used in: Hand";
  419. displayName = "[]M18 Smoke Grenade (Yeet)";
  420. };
  421. class macro_new_mag(DC15_underwater,40): CA_Magazine
  422. {
  423. author = "RD501";
  424. scope = 2;
  425. model = "\SW_ExtraWeapons\PICKUPS\energy_cell.p3d";
  426. picture = "\SW_ExtraWeapons\PICKUPS\UI\icons\energycell_X_ca.paa";
  427. displayName = "40Rnd Republic Aqua Rounds";
  428. ammo = macro_new_ammo(dc15_underwater);
  429. tracersEvery = 1;
  430. type = 16;
  431. count = 40;
  432. descriptionShort = "40Rnd Republic Aqua Rounds";
  433. //mass = 15;
  434. mass = 20;
  435. initSpeed = 310;
  436. };
  437. class RPG32_HE_F;
  438. class macro_new_mag(chaingun_z6x,1000): RPG32_HE_F
  439. {
  440. dlc = "RD501";
  441. displayname = "Z6x 1000rnd Mag";
  442. displaynameshort = "1000rnd Mag";
  443. descriptionshort = "Z6x 1000rnd mag";
  444. ammo = macro_new_ammo(chaingun_z6x);
  445. // picture = "\OPTRE_weapons\rockets\icons\rocket.paa";
  446. // model = "\OPTRE_Weapons\Rockets\M41_tube.p3d";
  447. // modelSpecial = "\OPTRE_Weapons\Rockets\M41_launcher_loaded.p3d";
  448. count = 1000;
  449. mass = 100;
  450. initSpeed = 550;
  451. allowedSlots[] = {901, 701};
  452. tracersEvery = 100;
  453. ACE_isBelt = 1;
  454. };
  455. };
  456. class CfgAmmo
  457. {
  458. class GrenadeHand;
  459. class SWOP_DC17_Ammo;
  460. class M_Titan_AT;
  461. class R_PG32V_F;
  462. class R_TBG32V_F;
  463. class LaserAmmo_Minigun;
  464. class FlareBase;
  465. class G_40mm_HE;
  466. class SWOP_dc15xBlasterRifle_Ammo;
  467. class SWOP_DC15ABlasterRifle_Ammo;
  468. class SWOP_DC15ABlasterRifle_Full_Ammo;
  469. class SWOP_DC15ABlasterRifle_L_Ammo;
  470. class SWOP_DC15_Ammo;
  471. class ATMine_Range_Ammo;
  472. class PipeBombBase;
  473. class A_RocketHH15Clone_HEAT_FireForget;
  474. class M_Titan_AA;
  475. class DH17_Blaster_Ammo;
  476. class macro_new_ammo(westar_35):SWOP_DC17_Ammo
  477. {
  478. hit = pistol_hit_high;
  479. indirectHit = 0.0;
  480. indirectHitRange = 0.0;
  481. explosive = 0.0;
  482. caliber = pistol_cali_high;
  483. };
  484. class macro_new_ammo(dc_17): SWOP_DC17_Ammo
  485. {
  486. hit = 10;
  487. waterFriction = -0.001;//
  488. indirectHit = 0.2;
  489. indirectHitRange = 0.2;
  490. explosive = 0.05;
  491. caliber = 2.8;//7
  492. };
  493. class macro_new_ammo(z6):LaserAmmo_Minigun
  494. {
  495. hit = mg_hit_high;
  496. indirectHit = 0.0;
  497. indirectHitRange = 0.0;
  498. explosive = 0.0;
  499. caliber = mg_cali_high;
  500. ACE_caliber = 0;
  501. };
  502. #include "_ammo/40mm_flare.hpp"
  503. class macro_new_ammo(GL_AT): G_40mm_HE
  504. {
  505. hit = 350;
  506. indirectHit = 0;
  507. indirectHitRange = .1;
  508. timeToLive =30;
  509. model = "\GeonFighter\LaserGeon.p3d";
  510. fuseDistance = 3;
  511. explosive = 0.0001;
  512. deflecting = 5;
  513. caliber = 5;
  514. ace_frag_enabled = 0;
  515. ace_frag_force = 0;
  516. ace_frag_classes[] = {""};
  517. ace_frag_metal = 0;
  518. ace_frag_charge = 0;
  519. ace_frag_gurney_c = 0;
  520. ace_frag_gurney_k = "0";
  521. ace_rearm_caliber = 0;
  522. };
  523. class macro_new_ammo(GL_HE): G_40mm_HE
  524. {
  525. hit = 60;
  526. indirectHit = 50;
  527. indirectHitRange = 5;
  528. timeToLive =30;
  529. model = "SW_AV7\ion.p3d";
  530. fuseDistance = 3;
  531. };
  532. class macro_new_ammo(DC15x): SWOP_dc15xBlasterRifle_Ammo
  533. {
  534. hit = 55;//35
  535. indirectHit = 0;
  536. indirectHitRange = 0;
  537. explosive = 0.0;
  538. caliber = 6;//15
  539. waterFriction = -0.001;//
  540. timeToLive = 5;
  541. };
  542. class macro_new_ammo(dc15s_carbine):SWOP_DC15_Ammo
  543. {
  544. waterFriction = -0.001;//
  545. hit = 7;
  546. indirectHit = 0.1;
  547. indirectHitRange = 0.2;
  548. explosive = 0.1;//.4
  549. caliber = 2;//5
  550. timeToLive = 4;
  551. };
  552. class macro_new_ammo(dc15_underwater):macro_new_ammo(dc15s_carbine)
  553. {
  554. waterFriction = -0.001;//
  555. hit = 7;
  556. indirectHit = 0.1;
  557. indirectHitRange = 0.2;
  558. explosive = 0.1;//.4
  559. caliber = 2;//5
  560. timeToLive = 4;
  561. effectFly = "AmmoUnderwater";
  562. nvgOnly = 1;
  563. aiAmmoUsageFlags = "64 + 32";
  564. };
  565. class macro_new_ammo(dc15a_med):SWOP_DC15ABlasterRifle_Ammo
  566. {
  567. hit = 8;
  568. waterFriction = -0.001;
  569. indirectHit = 0.1;
  570. indirectHitRange = 0.2;
  571. explosive = 0.4;
  572. caliber = 3;//7
  573. timeToLive = 4;
  574. };
  575. class macro_new_ammo(dc15a_high):SWOP_DC15ABlasterRifle_Full_Ammo
  576. {
  577. hit = 20;
  578. waterFriction = -0.001;
  579. indirectHit = 0.5;
  580. indirectHitRange = 0.4;
  581. explosive = 0.2;
  582. caliber = 4;//10
  583. timeToLive = 4;
  584. };
  585. class macro_new_ammo(dc15a_low):SWOP_DC15ABlasterRifle_L_Ammo
  586. {
  587. hit = 6;
  588. waterFriction = -0.001;//
  589. indirectHit = 0.1;
  590. indirectHitRange = 0.2;
  591. explosive = 0.4;
  592. caliber = 2;//5
  593. timeToLive = 4;
  594. };
  595. class UNSC_Mine_Ammo: ATMine_Range_Ammo
  596. {
  597. hit = 2500;
  598. indirectHit = 2500;
  599. indirectHitRange = 20;
  600. };
  601. class TermMineA: PipeBombBase
  602. {
  603. hit = 400;
  604. indirectHit = 400;
  605. indirectHitRange = 25;
  606. };
  607. class TermMineC: PipeBombBase
  608. {
  609. hit = 2500;
  610. indirectHit = 2500;
  611. indirectHitRange = 15;
  612. };
  613. class macro_new_ammo(RPS_AT):A_RocketHH15Clone_HEAT_FireForget
  614. {
  615. aiAmmoUsageFlags = "128 + 256 +512";
  616. hit = 95;
  617. thrust = 130;//130;
  618. thrustTime = 3.5;
  619. timeToLive = 20;
  620. indirectHit = 20;
  621. indirectHitRange = 2;
  622. };
  623. class macro_new_ammo(RPS_AA) : M_Titan_AA
  624. {
  625. hit = 800;
  626. indirectHit = 400;
  627. indirectHitRange = 1;
  628. };
  629. class macro_new_ammo(E5c_Aqua): DH17_Blaster_Ammo
  630. {
  631. airFriction = 0;
  632. waterFriction = 0;
  633. effectFly = "AmmoUnderwater";
  634. };
  635. class macro_new_ammo(E5_Aqua): DH17_Blaster_Ammo
  636. {
  637. airFriction = 0;
  638. waterFriction = 0;
  639. effectFly = "AmmoUnderwater";
  640. };
  641. class SWOP_bactagammo:GrenadeHand
  642. {
  643. soundFly[] = {"\thermalD\diox1.ogg", 1, 1, 60};
  644. class NVGMarkers
  645. {
  646. class Blinking1
  647. {
  648. name = "blinkpos1";
  649. color[] = {0.01, 0.01, 0.01, 1};
  650. ambient[] = {0.005, 0.005, 0.005, 1};
  651. blinking = 1;
  652. brightness = 0.002;
  653. onlyInNvg = 1;
  654. };
  655. class Blinking2
  656. {
  657. color[] = {0.9, 0.1, 0.1};
  658. ambient[] = {0.1, 0.1, 0.1};
  659. name = "blinkpos2";
  660. blinking = 1;
  661. blinkingStartsOn = 1;
  662. blinkingPattern[] = {0.1, 0.9};
  663. blinkingPatternGuarantee = 1;
  664. drawLightSize = 0.35;
  665. drawLightCenterSize = 0.05;
  666. brightness = 0.002;
  667. dayLight = 1;
  668. onlyInNvg = 0;
  669. intensity = 75;
  670. drawLight = 1;
  671. activeLight = 0;
  672. useFlare = 0;
  673. };
  674. };
  675. };
  676. //212th stuff
  677. class SCI_PLX1_R : M_Titan_AT
  678. {
  679. hit = 95;
  680. indirectHit = 20;
  681. indirectHitRange = 2;
  682. };
  683. class SCI_RPS6_HEAA_R : R_PG32V_F
  684. {
  685. hit = 800;
  686. indirectHit = 400;
  687. indirectHitRange = 1;
  688. };
  689. class SCI_RPS6_HEDP_R : R_TBG32V_F
  690. {
  691. hit = 50;
  692. indirectHit = 60;
  693. indirectHitRange = 8;
  694. };
  695. class macro_new_ammo(dc15_LE): SWOP_DC15ABlasterRifle_Full_Ammo
  696. {
  697. //hit = 15;
  698. hit = 33;
  699. waterFriction = -0.001;//
  700. indirectHit = 0.5;
  701. indirectHitRange = 0.4;
  702. //explosive = 0.45;
  703. explosive = 0.4;
  704. caliber = 5;//10
  705. cartridge = "";
  706. cost = 1;
  707. model = "\SWOP_Main\Effects\Tracer\laserblue";
  708. tracerScale = 1.5;
  709. tracerStartTime = 0;
  710. tracerEndTime = 2;
  711. //timeToLive = 2;
  712. timeToLive = 4;
  713. nvgOnly = 0;
  714. typicalSpeed = 70;
  715. visibleFire = 3;
  716. audibleFire = 5;
  717. visibleFireTime = 4;
  718. dangerRadiusBulletClose = 16;
  719. dangerRadiusHit = 40;
  720. suppressionRadiusBulletClose = 10;
  721. suppressionRadiusHit = 14;
  722. };
  723. class SWOP_DC15SA_Ammo;
  724. class macro_new_ammo(DC15_Razor_Blade):SWOP_DC15SA_Ammo
  725. {
  726. hit = 50;
  727. indirectHit = 0.0;
  728. indirectHitRange = 0.0;
  729. explosive = 0;
  730. caliber = 5;
  731. CraterEffects = "ExploAmmoLaserCrater";
  732. };
  733. class macro_new_ammo(T21):SWOP_DC15SA_Ammo
  734. {
  735. hit = 55;
  736. indirecthit = 25
  737. indirecthitrange = 1
  738. explosive = 1;
  739. caliber = 10;
  740. CraterEffects = "ExploAmmoLaserCrater";
  741. timeToLive = 2;
  742. };
  743. class B_127x108_APDS;
  744. class SW_iondisruptor_BlasterRifle_Ammo: B_127x108_APDS
  745. {
  746. timeToLive = 2;
  747. };
  748. class valken_38xxd_ammo: SWOP_dc15xBlasterRifle_Ammo
  749. {
  750. hit = 55;
  751. indirectHit = 0;
  752. indirectHitRange = 0.00;
  753. explosive = 0.0;
  754. caliber = 10;
  755. timeToLive = 4;
  756. };
  757. class SmokeShell;
  758. class smoke_meme: SmokeShell
  759. {
  760. model = "\A3\Weapons_f\ammo\smokegrenade_blue_throw";
  761. smokeColor[] = {0.1183, 0.1867, 1, 1};
  762. effectsSmoke = "smoke_yeet";
  763. };
  764. //LOOK HERE $$$
  765. class M_NLAW_AT_F;
  766. class ammo_Penetrator_Base;
  767. class macro_new_ammo(chaingun_z6x_penetrator): ammo_Penetrator_Base
  768. {
  769. hit = 30;
  770. indirectHit = 0.0;
  771. indirectHitRange = 0.0;
  772. explosive = 0.0;
  773. caliber = 2;
  774. ACE_caliber = 0;
  775. timeToLive = 6;
  776. class HitEffects
  777. {
  778. Hit_Foliage_green="SWOP_LaserExploSmallblue2";
  779. Hit_Foliage_Dead="SWOP_LaserExploSmallblue2";
  780. Hit_Foliage_Green_big="SWOP_LaserExploSmallblue2";
  781. Hit_Foliage_Palm="SWOP_LaserExploSmallblue2";
  782. Hit_Foliage_Pine="SWOP_LaserExploSmallblue2";
  783. hitFoliage="SWOP_LaserExploSmallblue2";
  784. hitGlass="SWOP_LaserExploSmallblue2";
  785. hitGlassArmored="SWOP_LaserExploSmallblue2";
  786. hitWood="SWOP_LaserExploSmallblue2";
  787. hitMetal="SWOP_LaserExploSmallblue2";
  788. hitMetalPlate="SWOP_LaserExploSmallblue2";
  789. hitBuilding="SWOP_LaserExploSmallblue2";
  790. hitPlastic="SWOP_LaserExploSmallblue2";
  791. hitRubber="SWOP_LaserExploSmallblue2";
  792. hitTyre="SWOP_LaserExploSmallblue2";
  793. hitConcrete="SWOP_LaserExploSmallblue2";
  794. hitMan="SWOP_LaserExploSmallblue2";
  795. hitGroundSoft="SWOP_LaserExploSmallblue2";
  796. hitGroundRed="SWOP_LaserExploSmallblue2";
  797. hitGroundHard="SWOP_LaserExploSmallblue2";
  798. hitWater="SWOP_LaserExploSmallblue2";
  799. hitVirtual="SWOP_LaserExploSmallblue2";
  800. default_mat="SWOP_LaserExploSmallblue2";
  801. };
  802. coefGravity = 0.6;
  803. };
  804. class macro_new_ammo(chaingun_z6x): M_NLAW_AT_F
  805. {
  806. hit = 32;
  807. indirectHit = 20;
  808. indirectHitRange = 0.1;
  809. explosive = 0;
  810. caliber = 2;
  811. ACE_caliber = 0;
  812. model = "\SWOP_Main\Effects\Tracer\laserblue";
  813. effectFly = "SWOP_BlueLaserEffect";
  814. cost = 500;
  815. airFriction = 0;
  816. sideairFriction = 0;
  817. coefGravity = 0;
  818. maxSpeed = 1050;
  819. typicalSpeed = 1050;
  820. initTime = 0.0;
  821. thrustTime = 3.4;
  822. thrust = 500;
  823. fuseDistance = 0;
  824. simulationStep = 0.02;
  825. timeToLive = 4;
  826. effectsMissile = "SWOP_BlueLaserEffect";
  827. whistleDist = 20;
  828. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  829. submunitionAmmo = macro_new_ammo(chaingun_z6x_penetrator);
  830. submunitionDirectionType = "SubmunitionModelDirection";
  831. submunitionInitSpeed = 1000;
  832. submunitionParentSpeedCoef = 0;
  833. submunitionInitialOffset[] = {0,0,-0.2};
  834. triggerOnImpact = 1;
  835. deleteParentWhenTriggered = 0;
  836. flightProfiles[] = {"Direct"};
  837. CraterEffects = "ExploAmmoLaserCrater";
  838. explosionEffects = "SWOP_LaserExploSmallblue2";
  839. soundHit[] = {"A3\Sounds_F\arsenal\sfx\bullet_hits\concrete_01",1,1,150};
  840. soundHit1[] = {"A3\Sounds_F\arsenal\sfx\bullet_hits\concrete_01",1,1,200};
  841. soundHit2[] = {"A3\Sounds_F\arsenal\sfx\bullet_hits\concrete_01",1,1,200};
  842. soundHit3[] = {"A3\Sounds_F\arsenal\sfx\bullet_hits\concrete_01",1,1,2000};
  843. effectsSmoke = "SWOP_BlueLaserEffect";
  844. explosionSoundEffect = "";
  845. soundFly[] = {"",1,1,50};
  846. muzzleEffect = "";
  847. SoundSetExplosion[] = {""};
  848. class HitEffects
  849. {
  850. Hit_Foliage_green = "SWOP_LaserExploSmallblue2";
  851. Hit_Foliage_Dead = "SWOP_LaserExploSmallblue2";
  852. Hit_Foliage_Green_big = "SWOP_LaserExploSmallblue2";
  853. Hit_Foliage_Palm = "SWOP_LaserExploSmallblue2";
  854. Hit_Foliage_Pine = "SWOP_LaserExploSmallblue2";
  855. hitFoliage = "SWOP_LaserExploSmallblue2";
  856. hitGlass = "SWOP_LaserExploSmallblue2";
  857. hitGlassArmored = "SWOP_LaserExploSmallblue2";
  858. hitWood = "SWOP_LaserExploSmallblue2";
  859. hitMetal = "SWOP_LaserExploSmallblue2";
  860. hitMetalPlate = "SWOP_LaserExploSmallblue2";
  861. hitBuilding = "SWOP_LaserExploSmallblue2";
  862. hitPlastic = "SWOP_LaserExploSmallblue2";
  863. hitRubber = "SWOP_LaserExploSmallblue2";
  864. hitTyre = "SWOP_LaserExploSmallblue2";
  865. hitConcrete = "SWOP_LaserExploSmallblue2";
  866. hitMan = "SWOP_LaserExploSmallblue2";
  867. hitGroundSoft = "SWOP_LaserExploSmallblue2";
  868. hitGroundRed = "SWOP_LaserExploSmallblue2";
  869. hitGroundHard = "SWOP_LaserExploSmallblue2";
  870. hitWater = "SWOP_LaserExploSmallblue2";
  871. hitVirtual = "SWOP_LaserExploSmallblue2";
  872. default_mat = "SWOP_LaserExploSmallblue2";
  873. };
  874. class Direct{};
  875. class CamShakeExplode
  876. {
  877. power = 1;
  878. duration = 1.4;
  879. frequency = 20;
  880. distance = 1;
  881. };
  882. class CamShakeHit
  883. {
  884. power = 1;
  885. duration = 0.6;
  886. frequency = 20;
  887. distance = 1;
  888. };
  889. class CamShakeFire
  890. {
  891. power = 1;
  892. duration = 1.2;
  893. frequency = 20;
  894. distance = 1;
  895. };
  896. class CamShakePlayerFire
  897. {
  898. power = 1;
  899. duration = 0.1;
  900. frequency = 20;
  901. distance = 1;
  902. };
  903. };
  904. };
  905. class smoke_yeet
  906. {
  907. class SmokeShell
  908. {
  909. simulation = "particles";
  910. type = "SMOKEEFFECT_MEME";
  911. position[] = {0, 0, 0};
  912. intensity = 1;
  913. interval = 1;
  914. };
  915. class SmokeShell2
  916. {
  917. simulation = "particles";
  918. type = "SmokeShellWhite2";
  919. position[] = {0, 0, 0};
  920. intensity = 1;
  921. interval = 1;
  922. };
  923. class SmokeShellUW
  924. {
  925. simulation = "particles";
  926. type = "SmokeShellWhiteUW";
  927. position[] = {0, 0, 0};
  928. intensity = 1;
  929. interval = 1;
  930. };
  931. class SmokeShell2UW
  932. {
  933. simulation = "particles";
  934. type = "SmokeShellWhite2UW";
  935. position[] = {0, 0, 0};
  936. intensity = 1;
  937. interval = 1;
  938. };
  939. };
  940. class CfgCloudlets
  941. {
  942. class Default;
  943. class SMOKEEFFECT_MEME: Default
  944. {
  945. animationSpeedCoef = 1;
  946. colorCoef[] = {"colorR", "colorG", "colorB", "colorA"};
  947. sizeCoef = 1;
  948. position[] = {0, 0, 0};
  949. interval = 0.03;
  950. circleRadius = 0;
  951. circleVelocity[] = {0, 0, 0};
  952. particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
  953. particleFSNtieth = 16;
  954. particleFSIndex = 7;
  955. particleFSFrameCount = 48;
  956. particleFSLoop = 1;
  957. angleVar = 0.1;
  958. animationName = "";
  959. particleType = "Billboard";
  960. timerPeriod = 1;
  961. lifeTime = 20;
  962. moveVelocity[] = {0.0, 0.0, 0.0};//{0.2, 0.1, 0.1};
  963. rotationVelocity = 1;
  964. weight = 1.2777;
  965. volume = 1;
  966. rubbing = 0.05;
  967. size[] = {6, 16};//{0.1, 2, 6};
  968. color[] = {{0.6, 0.6, 0.6, 0.2}, {0.6, 0.6, 0.6, 0.05}, {0.6, 0.6, 0.6, 0}};
  969. animationSpeed[] = {1.5, 0.5};
  970. randomDirectionPeriod = 1;
  971. randomDirectionIntensity = 0.04;
  972. onTimerScript = "";
  973. beforeDestroyScript = "";
  974. destroyOnWaterSurface = 1;
  975. destroyOnWaterSurfaceOffset = -0.6;
  976. lifeTimeVar = 2;
  977. positionVar[] = {0, 0, 0};
  978. MoveVelocityVar[] = {0.25, 0.25, 0.25};
  979. rotationVelocityVar = 20;
  980. sizeVar = 0.5;
  981. colorVar[] = {0, 0, 0, 0.35};
  982. randomDirectionPeriodVar = 0;
  983. randomDirectionIntensityVar = 0;
  984. };
  985. };
  986. class CfgRecoils
  987. {
  988. class recoil_default;
  989. class Default;
  990. class macro_new_recoil(westar_pistol): recoil_default
  991. {
  992. muzzleOuter[] = {"0.05", ".5", "0.1", "0.2"};
  993. kickBack[] = {"0.04", "0.08"};
  994. temporary = "0.06";
  995. };
  996. class macro_new_recoil(dc15_rb): Default
  997. {
  998. muzzleOuter[] = {"0.3*0.2", "6", "0.3*1", ".6"};
  999. muzzleInner[] = {0, 0, 0.1, 0.1};
  1000. kickBack[] = {"0.03*2", "0.06*2.5"};
  1001. permanent = "0.1*1.8";
  1002. temporary = "0.01*1.2";
  1003. };
  1004. class Valken_Super_auto_recoil: Default
  1005. {
  1006. muzzleOuter[] = {".08*0.25", ".08*0.25", "0.3*0.25", ".1*0.25"};
  1007. muzzleInner[] = {0, 0, 0.1, 0.1};
  1008. kickBack[] = {"0.03*0.25", "0.03*0.25"};
  1009. permanent = "0.1*0.25";
  1010. temporary = "0.01*0.25";
  1011. };
  1012. class macro_new_recoil(chaingun): Default
  1013. {
  1014. muzzleOuter[] = {"0.03", "0.4", "0.03", ".06"};
  1015. muzzleInner[] = {0, 0, 0.01, 0.01};
  1016. kickBack[] = {"0.02", "0.03"};
  1017. permanent = "0.013";
  1018. temporary = "0.013";
  1019. prone = 0.0; //coefficient of recoil forces while in prone (this is further multiplied by weapon resting coefficients)
  1020. };
  1021. };