config.cpp 26 KB

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