config.cpp 26 KB

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