config.cpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. #include "../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_ammo
  5. {
  6. author=RD501;
  7. addonRootClass = MACRO_QUOTE(RD501_patch_weapons);
  8. requiredAddons[]=
  9. {
  10. RD501_patch_weapons
  11. };
  12. requiredVersion=0.1;
  13. units[]={};
  14. weapons[]={};
  15. };
  16. };
  17. class CfgAmmo
  18. {
  19. class 3AS_EC20_BluePlasma;
  20. class 3AS_EC30_BluePlasma;
  21. class 3AS_EC40_BluePlasma;
  22. class 3AS_EC50_BluePlasma;
  23. class 3AS_EC60_BluePlasma;
  24. class 3AS_EC70_BluePlasma;
  25. class 3AS_EC80_BluePlasma;
  26. class JLTS_bullet_carbine_red;
  27. class G_40mm_HE;
  28. class G_40mm_Smoke;
  29. class 3AS_CoreDetonator_1RND;
  30. class 3AS_Detonator_1RND;
  31. class B_12Gauge_Pellets_Submunition;
  32. class B_12Gauge_Pellets_Submunition_Deploy;
  33. class FlareBase;
  34. class SmokeShell;
  35. class JLTS_bullet_stun;
  36. class 442_thermal_det;
  37. class JLTS_bullet_carbine_orange;
  38. class JLTS_bullet_carbine_yellow;
  39. class macro_new_ammo(surrender_stun): JLTS_bullet_stun
  40. {
  41. model="\MRC\JLTS\weapons\Core\effects\stun.p3d";
  42. hit=0.0099999998;
  43. JLTS_isStunAmmo=0;
  44. typicalSpeed=30;
  45. timetolive=3;
  46. aiAmmoUsageFlags=0;
  47. RD501_stunDuration=30;
  48. };
  49. class macro_new_ammo(2mw):3AS_EC20_BluePlasma
  50. {
  51. hit=4;
  52. airLock=1;
  53. typicalSpeed=400;
  54. caliber=1.2;
  55. airFriction=0;
  56. waterFriction=-0.009;
  57. };
  58. class macro_new_ammo(5mw) : 3AS_EC30_BluePlasma
  59. {
  60. hit=6;
  61. airLock=1;
  62. typicalSpeed=400;
  63. caliber=1.4;
  64. airFriction=0;
  65. waterFriction=-0.009;
  66. };
  67. class macro_new_ammo(5mw_dual) : 3AS_EC30_BluePlasma
  68. {
  69. hit=12;
  70. airLock=1;
  71. typicalSpeed=400;
  72. caliber=1.4;
  73. airFriction=0;
  74. waterFriction=-0.009;
  75. };
  76. class macro_new_ammo(10mw) : 3AS_EC40_BluePlasma
  77. {
  78. hit=9;
  79. airLock=1;
  80. typicalSpeed=550;
  81. caliber=1;
  82. airFriction=0;
  83. waterFriction=-0.009;
  84. explosive = 0;
  85. };
  86. class macro_new_ammo(10mws) : 3AS_EC40_BluePlasma
  87. {
  88. hit=9;
  89. airLock=1;
  90. typicalSpeed=550;
  91. caliber=1;
  92. visibleFire=1;
  93. audibleFire=5;
  94. visibleFireTime=3;
  95. airFriction=0;
  96. waterFriction=-0.009;
  97. explosive = 0;
  98. };
  99. class macro_new_ammo(20mw) : 3AS_EC50_BluePlasma
  100. {
  101. hit=12;
  102. airLock=1;
  103. typicalSpeed=700;
  104. caliber=2.8;
  105. airFriction=0;
  106. waterFriction=-0.009;
  107. explosive = 0.4;
  108. };
  109. class macro_new_ammo(20mw_d) : JLTS_bullet_carbine_red
  110. {
  111. hit=12;
  112. airLock=1;
  113. typicalSpeed=700;
  114. caliber=2.8;
  115. airFriction=0;
  116. waterFriction=-0.009;
  117. };
  118. class macro_new_ammo(20mwup) : 3AS_EC50_BluePlasma
  119. {
  120. hit=10;
  121. airLock=1;
  122. typicalSpeed=600;
  123. indirectHit = 3;
  124. indirectHitRange = 0.5;
  125. explosive = 0.4;
  126. caliber=0.6;
  127. airFriction=0;
  128. waterFriction=-0.009;
  129. };
  130. class macro_new_ammo(20mwdp) : 3AS_EC50_BluePlasma
  131. {
  132. hit=17;
  133. airLock=1;
  134. typicalSpeed=700;
  135. caliber=2.8;
  136. airFriction=0;
  137. waterFriction=-0.009;
  138. explosive = 0;
  139. };
  140. class macro_new_ammo(30mw) : 3AS_EC60_BluePlasma
  141. {
  142. hit=35;
  143. airLock=1;
  144. typicalSpeed=1000;
  145. caliber=2.4;
  146. airFriction=0;
  147. waterFriction=-0.009;
  148. explosive = 0;
  149. };
  150. class macro_new_ammo(30mw_d) : JLTS_bullet_carbine_red
  151. {
  152. hit=35;
  153. airLock=1;
  154. typicalSpeed=1000;
  155. caliber=2.4;
  156. airFriction=0;
  157. };
  158. class macro_new_ammo(40mw) : 3AS_EC70_BluePlasma
  159. {
  160. hit=60;
  161. airLock=1;
  162. typicalSpeed=1100;
  163. caliber=3.6;
  164. airFriction=0;
  165. waterFriction=-0.009;
  166. explosive = 0;
  167. };
  168. class macro_new_ammo(40mwemp) : 3AS_EC70_BluePlasma
  169. {
  170. hit=0.01;
  171. airLock=1;
  172. typicalSpeed=1100;
  173. caliber=1;
  174. airFriction=0;
  175. explosive = 0;
  176. rd501_emp_vehicle_enabled=1;
  177. rd501_emp_vehicle_duration=15;
  178. };
  179. class macro_new_ammo(50mw) : 3AS_EC80_BluePlasma
  180. {
  181. hit=300;
  182. thrust=210;
  183. explosive=0.4;
  184. thrustTime=1.5;
  185. airLock=1;
  186. typicalSpeed=1100;
  187. caliber=5;
  188. airFriction=0;
  189. };
  190. class macro_new_ammo(mar1) : 3AS_EC80_BluePlasma
  191. {
  192. hit=1000;
  193. thrust=500;
  194. explosive=0;
  195. thrustTime=1.5;
  196. airLock=1;
  197. typicalSpeed=3000;
  198. caliber=50;
  199. airFriction=0;
  200. };
  201. class macro_new_ammo(devastator_small):JLTS_bullet_carbine_orange
  202. {
  203. hit=25;
  204. airLock=1;
  205. typicalSpeed=1000;
  206. caliber=2.4;
  207. airFriction=0;
  208. waterFriction=-0.009;
  209. explosive = 0;
  210. };
  211. class macro_new_ammo(devastator_large):JLTS_bullet_carbine_orange
  212. {
  213. cost=50;
  214. caliber=3;
  215. dangerRadiusBulletClose=16;
  216. dangerRadiusHit=40;
  217. explosionAngle=60;
  218. explosive=0.80000001;
  219. hit=100;
  220. effectFlare="FlareShell";
  221. effectsFire="CannonFire";
  222. explosionDir="explosionDir";
  223. explosionEffects="ATMissileExplosion";
  224. explosionEffectsDir="explosionDir";
  225. explosionPos="explosionPos";
  226. explosionType="explosive";
  227. indirectHit=5;
  228. indirectHitRange=3;
  229. muzzleEffect="BIS_fnc_effectFiredRocket";
  230. tracerScale=3;
  231. };
  232. class macro_new_ammo(viper) : 3AS_EC80_BluePlasma
  233. {
  234. hit=100;
  235. thrust=210;
  236. explosive=0.4;
  237. thrustTime=1.5;
  238. airLock=1;
  239. typicalSpeed=1100;
  240. caliber=5;
  241. airFriction=0;
  242. tracersevery=1;
  243. tracerScale=1;
  244. tracerStartTime=0;
  245. tracerEndTime=10;
  246. model = "\MRC\JLTS\weapons\Core\effects\laser_orange.p3d";
  247. };
  248. ///////////////////////////////////////////////////////////////////////
  249. ///////////////////////////UGL////////////////////////////////////////
  250. //////////////////////////////////////////////////////////////////////
  251. class macro_new_ammo(UGL_AP): G_40mm_HE
  252. {
  253. hit = 350;
  254. indirectHit = 0;
  255. indirectHitRange = .1;
  256. timeToLive =30;
  257. model="\3AS\3AS_Equipment\model\3AS_coredetonator.p3d";
  258. fuseDistance = 3;
  259. explosive = 0.0001;
  260. deflecting = 5;
  261. caliber = 5;
  262. ace_frag_enabled = 0;
  263. ace_frag_force = 0;
  264. ace_frag_classes[] = {""};
  265. ace_frag_metal = 0;
  266. ace_frag_charge = 0;
  267. ace_frag_gurney_c = 0;
  268. ace_frag_gurney_k = "0";
  269. ace_rearm_caliber = 0;
  270. };
  271. class macro_new_ammo(UGL_HE) :G_40mm_HE
  272. {
  273. hit = 60;
  274. indirectHit = 50;
  275. indirectHitRange = 5;
  276. timeToLive =30;
  277. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  278. fuseDistance = 5;
  279. };
  280. class RD501_grenade_emp_ammo: G_40mm_HE
  281. {
  282. JLTS_isEMPAmmo=1;
  283. hit = 0.1;
  284. indirectHit = 0.01;
  285. indirectHitRange = 12;
  286. timeToLive =30;
  287. model = "\MRC\JLTS\weapons\Core\effects\emp_blue.p3d";
  288. fuseDistance = 1;
  289. explosive = 0.0001;
  290. deflecting = 5;
  291. caliber = 5;
  292. ace_frag_enabled = 0;
  293. ace_frag_force = 0;
  294. ace_frag_classes[] = {""};
  295. ace_frag_metal = 0;
  296. ace_frag_charge = 0;
  297. ace_frag_gurney_c = 0;
  298. ace_frag_gurney_k = "0";
  299. ace_rearm_caliber = 0;
  300. explosionEffects="JLTS_fx_exp_EMP";
  301. grenadeBurningSound[]=
  302. {
  303. "EMPSoundLoop1",
  304. 0.5
  305. };
  306. EMPSoundLoop1[]=
  307. {
  308. "MRC\JLTS\weapons\Grenades\sounds\grenade_burning.wss",
  309. 0.125893,
  310. 1,
  311. 70
  312. };
  313. SoundSetExplosion[]=
  314. {
  315. "JLTS_GrenadeEMP_Exp_SoundSet",
  316. "JLTS_GrenadeEMP_Tail_SoundSet",
  317. "Explosion_Debris_SoundSet"
  318. };
  319. aiAmmoUsageFlags=0;
  320. class CamShakeExplode
  321. {
  322. distance=10;
  323. duration=1;
  324. frequency=20;
  325. power=0;
  326. };
  327. };
  328. class macro_new_ammo(UGL_Supersmoke) :G_40mm_Smoke
  329. {
  330. hit = 2;
  331. indirectHit = 1;
  332. indirectHitRange = 1;
  333. timeToLive =30;
  334. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  335. effectsSmoke="RD501_ThickSmokeShellWhiteEffect";
  336. };
  337. class macro_new_ammo(Devastator_dioxis) :G_40mm_Smoke
  338. {
  339. hit = 2;
  340. indirectHit = 1;
  341. indirectHitRange = 1;
  342. timeToLive =30;
  343. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  344. effectsSmoke="RD501_DioxisSmokeShellEffect";
  345. smokeColor[]={0.21250001,0.75580001,0.35909998,1};
  346. };
  347. class macro_new_ammo(Devastator_stun) :G_40mm_HE
  348. {
  349. hit = 1;
  350. indirectHit = 1;
  351. indirectHitRange = 6;
  352. timeToLive =30;
  353. explosionEffects="JLTS_fx_exp_EMP";
  354. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  355. RD501_stunDuration=30;
  356. };
  357. ///////////////////////////////////////////////////////////////////////
  358. ///////////////////////////Grenades///////////////////////////////////
  359. //////////////////////////////////////////////////////////////////////
  360. class macro_new_ammo(imploder) : 3AS_CoreDetonator_1RND
  361. {
  362. hit=50;
  363. indirectHit=45;
  364. indirectHitRange=2;
  365. fuseDistance=0.5;
  366. explosionTime=0;
  367. simulation="shotShell";
  368. };
  369. class macro_new_ammo(throwable_c_type) : 3AS_CoreDetonator_1RND
  370. {
  371. hit=1500;
  372. indirectHit=1500;
  373. indirectHitRange=10;
  374. typicalspeed=40;
  375. explosionTime=15;
  376. timeToLive=20;
  377. model="\A3\Weapons_F\Explosives\satchel";
  378. simulation="shotShell";
  379. ExplosionEffects="MineNondirectionalExplosion";
  380. CraterEffects="MineNondirectionalCrater";
  381. };
  382. class macro_new_ammo(thermaldet) : 3AS_Detonator_1RND
  383. {
  384. hit=18;
  385. indirectHit=14;
  386. indirectHitRange=8;
  387. };
  388. class macro_new_ammo(thermaldet_cis) : 442_thermal_det
  389. {
  390. hit=10;
  391. indirectHit=8;
  392. indirectHitRange=6;
  393. cost=80;
  394. };
  395. class macro_new_ammo(squad_shield_sigma) : 3AS_CoreDetonator_1RND
  396. {
  397. hit=0;
  398. indirectHit=0;
  399. indirectHitRange=0;
  400. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  401. rd501_fired_deployable = 1;
  402. rd501_fired_deployable_object = "RD501_Squad_Shield";
  403. rd501_fired_deployable_timeToLive = 60;
  404. simulation="shotShell";
  405. };
  406. class macro_new_ammo(squad_shield_alpha) : 3AS_CoreDetonator_1RND
  407. {
  408. hit=0;
  409. indirectHit=0;
  410. indirectHitRange=0;
  411. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  412. rd501_fired_deployable = 1;
  413. rd501_fired_deployable_object = "RD501_Squad_Shield_trench";
  414. rd501_fired_deployable_timeToLive = 120;
  415. simulation="shotShell";
  416. };
  417. class macro_new_ammo(personal_shield) : 3AS_CoreDetonator_1RND
  418. {
  419. hit=0;
  420. indirectHit=0;
  421. indirectHitRange=0;
  422. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  423. rd501_fired_deployable = 1;
  424. rd501_fired_deployable_object = "RD501_Personal_Shield";
  425. rd501_fired_deployable_timeToLive = 120;
  426. rd501_fired_deployable_personal = 1;
  427. rd501_fired_deployable_personal_offset[] = {0.1, 0.9, 0.4};
  428. rd501_fired_deployable_personal_bone = "pelvis";
  429. simulation="shotShell";
  430. };
  431. class macro_new_ammo(super_smoke) : SmokeShell
  432. {
  433. effectsSmoke="RD501_ThickSmokeShellWhiteEffect";
  434. };
  435. class macro_new_ammo(dioxis) : SmokeShell
  436. {
  437. effectsSmoke="RD501_DioxisSmokeShellEffect";
  438. smokeColor[]={0.21250001,0.75580001,0.35909998,1};
  439. };
  440. class macro_new_ammo(blueshadow) : SmokeShell
  441. {
  442. effectsSmoke="RD501_DioxisSmokeShellEffect";
  443. smokeColor[] = {0.2125,0.3,0.8,1};
  444. };
  445. ///////////////////////////////////////////////////////////////////////
  446. /////////////////////////Shotgun///////////////////////////////////////
  447. //////////////////////////////////////////////////////////////////////
  448. class macro_new_ammo(shotgun_scatter): B_12Gauge_Pellets_Submunition
  449. {
  450. hit=20;
  451. submunitionConeAngle = 1;
  452. submunitionAmmo=MACRO_QUOTE(macro_new_ammo(shotgun_scatter_submunition));
  453. };
  454. class macro_new_ammo(shotgun_scatter_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  455. {
  456. hit=12;
  457. };
  458. class macro_new_ammo(shotgun_HE): B_12Gauge_Pellets_Submunition
  459. {
  460. hit=20;
  461. submunitionConeAngle = 4;
  462. submunitionAmmo=MACRO_QUOTE(macro_new_ammo(shotgun_HE_submunition));
  463. };
  464. class macro_new_ammo(shotgun_HE_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  465. {
  466. hit=8;
  467. indirectHit=8;
  468. indirectHitRange=0.9;
  469. };
  470. class macro_new_ammo(shotgun_EMP): B_12Gauge_Pellets_Submunition
  471. {
  472. hit=20;
  473. submunitionConeAngle = 20;
  474. submunitionAmmo=MACRO_QUOTE(macro_new_ammo(shotgun_EMP_submunition));
  475. };
  476. class macro_new_ammo(shotgun_EMP_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  477. {
  478. hit=1;
  479. timeToLive = 0.05;
  480. JLTS_isEMPAmmo=1;
  481. };
  482. ///////////////////////////////////////////////////////////////////////
  483. /////////////////////////Flares///////////////////////////////////////
  484. //////////////////////////////////////////////////////////////////////
  485. class macro_new_ammo(40mm_white): FlareBase
  486. {
  487. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  488. lightColor[] = {1, 1, 1 ,1};
  489. useFlare = 1;
  490. deflecting = 30;
  491. smokeColor[] = {1, 1, 1, 1};
  492. brightness = 1200;
  493. size = 3;//1
  494. triggerTime = 3;
  495. triggerSpeedCoef = 1;
  496. audibleFire = 20;
  497. intensity = 1000000;
  498. flareSize = 3;//1
  499. timeToLive = 120;
  500. flareMaxDistance = 300;
  501. };
  502. class macro_new_ammo(40mm_green): macro_new_ammo(40mm_white)
  503. {
  504. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  505. lightColor[] = {0, 1, 0, 0};
  506. };
  507. class macro_new_ammo(40mm_red): macro_new_ammo(40mm_white)
  508. {
  509. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  510. lightColor[] = {1, 0, 0, 0};
  511. };
  512. class macro_new_ammo(40mm_yellow): macro_new_ammo(40mm_white)
  513. {
  514. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  515. lightColor[] = {1, 1, 0, 0};
  516. };
  517. class macro_new_ammo(40mm_CIR): macro_new_ammo(40mm_white)
  518. {
  519. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  520. lightColor[] = {0.5, 0.5, 0.25, 0};
  521. };
  522. class macro_new_ammo(40mm_blue): macro_new_ammo(40mm_white)
  523. {
  524. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  525. lightColor[] = {0, 0, 1, 0};
  526. };
  527. class macro_new_ammo(40mm_cyan): macro_new_ammo(40mm_white)
  528. {
  529. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  530. lightColor[] = {0, 1, 1, 0};
  531. };
  532. class macro_new_ammo(40mm_purple): macro_new_ammo(40mm_white)
  533. {
  534. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  535. lightColor[] = {.7, 0, 1, 0};
  536. };
  537. ///////////////////////////////////////////////////////////////////////
  538. /////////////////////////Rockets///////////////////////////////////////
  539. //////////////////////////////////////////////////////////////////////
  540. class ACE_Javelin_FGM148_static;
  541. class R_PG32V_F;
  542. class Mo_cluster_AP;
  543. /*class macro_new_ammo(striker):ACE_Javelin_FGM148_static
  544. {
  545. hit=1650;
  546. effectsMissileInit="RocketBackEffectsStaticRPG";
  547. initTime=0.1;
  548. irLock = 1;
  549. laserLock = 0;
  550. airLock = 0;
  551. class ace_missileguidance {
  552. enabled = 1;
  553. minDeflection = 0.00005; // Minium flap deflection for guidance
  554. maxDeflection = 0.025; // Maximum flap deflection for guidance
  555. incDeflection = 0.00005; // The incrmeent in which deflection adjusts.
  556. canVanillaLock = 0;
  557. // Guidance type for munitions
  558. defaultSeekerType = "Optic";
  559. seekerTypes[] = { "Optic" };
  560. defaultSeekerLockMode = "LOBL";
  561. seekerLockModes[] = { "LOBL" };
  562. seekerAngle = 180; // Angle in front of the missile which can be searched
  563. seekerAccuracy = 1; // seeker accuracy multiplier
  564. seekerMinRange = 0;
  565. seekerMaxRange = 2500; // Range from the missile which the seeker can visually search
  566. seekLastTargetPos = 1; // seek last target position [if seeker loses LOS of target, continue to last known pos]
  567. // Attack profile type selection
  568. defaultAttackProfile = "JAV_TOP";
  569. attackProfiles[] = { "JAV_TOP", "JAV_DIR" };
  570. useModeForAttackProfile = 1;
  571. };
  572. };*/
  573. class macro_new_ammo(rps4heat):R_PG32V_F
  574. {
  575. hit=150;
  576. submunitionAmmo="ammo_Penetrator_Titan_AT";
  577. };
  578. class macro_new_ammo(rps4emp):R_PG32V_F
  579. {
  580. hit=1;
  581. submunitionAmmo="";
  582. submunitionDirectionType="";
  583. CraterEffects="";
  584. explosionEffects="JLTS_fx_exp_EMP";
  585. rd501_emp_vehicle_enabled=1;
  586. rd501_emp_vehicle_duration=25;
  587. };
  588. class macro_new_ammo(rps4burst):R_PG32V_F
  589. {
  590. triggerTime = 1;
  591. submunitionConeType[] = {"poissondisc", 8};
  592. submunitionAmmo[] = {macro_new_ammo(super_smoke),1};
  593. triggerOnImpact=0;
  594. deleteParentWhenTriggered=1;
  595. //submunitionParentSpeedCoef = 0;
  596. submunitionInitSpeed = 50;
  597. submunitionDirectionType = "SubmunitionAutoLeveling";
  598. };
  599. class macro_new_ammo(rps4burstsub):Mo_cluster_AP
  600. {
  601. hit=12;
  602. indirectHit=8;
  603. indirectHitRange=8;
  604. };
  605. };