config.cpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. #include "../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class macro_patch_name(ammo)
  5. {
  6. author=RD501;
  7. addonRootClass= macro_patch_name(weapons)
  8. requiredAddons[]=
  9. {
  10. macro_patch_name(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. JLTS_isEMPAmmo=1;
  177. };
  178. class macro_new_ammo(50mw) : 3AS_EC80_BluePlasma
  179. {
  180. hit=300;
  181. thrust=210;
  182. explosive=0.4;
  183. thrustTime=1.5;
  184. airLock=1;
  185. typicalSpeed=1100;
  186. caliber=5;
  187. airFriction=0;
  188. };
  189. class macro_new_ammo(mar1) : 3AS_EC80_BluePlasma
  190. {
  191. hit=1000;
  192. thrust=500;
  193. explosive=0;
  194. thrustTime=1.5;
  195. airLock=1;
  196. typicalSpeed=3000;
  197. caliber=50;
  198. airFriction=0;
  199. };
  200. class macro_new_ammo(devastator_small):JLTS_bullet_carbine_orange
  201. {
  202. hit=25;
  203. airLock=1;
  204. typicalSpeed=1000;
  205. caliber=2.4;
  206. airFriction=0;
  207. waterFriction=-0.009;
  208. explosive = 0;
  209. };
  210. class macro_new_ammo(devastator_large):JLTS_bullet_carbine_orange
  211. {
  212. cost=50;
  213. caliber=3;
  214. dangerRadiusBulletClose=16;
  215. dangerRadiusHit=40;
  216. explosionAngle=60;
  217. explosive=0.80000001;
  218. hit=100;
  219. effectFlare="FlareShell";
  220. effectsFire="CannonFire";
  221. explosionDir="explosionDir";
  222. explosionEffects="ATMissileExplosion";
  223. explosionEffectsDir="explosionDir";
  224. explosionPos="explosionPos";
  225. explosionType="explosive";
  226. indirectHit=5;
  227. indirectHitRange=3;
  228. muzzleEffect="BIS_fnc_effectFiredRocket";
  229. tracerScale=3;
  230. };
  231. class macro_new_ammo(viper) : 3AS_EC80_BluePlasma
  232. {
  233. hit=100;
  234. thrust=210;
  235. explosive=0.4;
  236. thrustTime=1.5;
  237. airLock=1;
  238. typicalSpeed=1100;
  239. caliber=5;
  240. airFriction=0;
  241. tracersevery=1;
  242. tracerScale=1;
  243. tracerStartTime=0;
  244. tracerEndTime=10;
  245. model = "\MRC\JLTS\weapons\Core\effects\laser_orange.p3d";
  246. };
  247. ///////////////////////////////////////////////////////////////////////
  248. ///////////////////////////UGL////////////////////////////////////////
  249. //////////////////////////////////////////////////////////////////////
  250. class macro_new_ammo(UGL_AP): G_40mm_HE
  251. {
  252. hit = 350;
  253. indirectHit = 0;
  254. indirectHitRange = .1;
  255. timeToLive =30;
  256. model="\3AS\3AS_Equipment\model\3AS_coredetonator.p3d";
  257. fuseDistance = 3;
  258. explosive = 0.0001;
  259. deflecting = 5;
  260. caliber = 5;
  261. ace_frag_enabled = 0;
  262. ace_frag_force = 0;
  263. ace_frag_classes[] = {""};
  264. ace_frag_metal = 0;
  265. ace_frag_charge = 0;
  266. ace_frag_gurney_c = 0;
  267. ace_frag_gurney_k = "0";
  268. ace_rearm_caliber = 0;
  269. };
  270. class macro_new_ammo(UGL_HE) :G_40mm_HE
  271. {
  272. hit = 60;
  273. indirectHit = 50;
  274. indirectHitRange = 5;
  275. timeToLive =30;
  276. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  277. fuseDistance = 5;
  278. };
  279. class RD501_grenade_emp_ammo: G_40mm_HE
  280. {
  281. JLTS_isEMPAmmo=1;
  282. hit = 0.1;
  283. indirectHit = 0.01;
  284. indirectHitRange = 12;
  285. timeToLive =30;
  286. model = "\MRC\JLTS\weapons\Core\effects\emp_blue.p3d";
  287. fuseDistance = 1
  288. explosive = 0.0001;
  289. deflecting = 5;
  290. caliber = 5;
  291. ace_frag_enabled = 0;
  292. ace_frag_force = 0;
  293. ace_frag_classes[] = {""};
  294. ace_frag_metal = 0;
  295. ace_frag_charge = 0;
  296. ace_frag_gurney_c = 0;
  297. ace_frag_gurney_k = "0";
  298. ace_rearm_caliber = 0;
  299. explosionEffects="JLTS_fx_exp_EMP";
  300. grenadeBurningSound[]=
  301. {
  302. "EMPSoundLoop1",
  303. 0.5
  304. };
  305. EMPSoundLoop1[]=
  306. {
  307. "MRC\JLTS\weapons\Grenades\sounds\grenade_burning.wss",
  308. 0.125893,
  309. 1,
  310. 70
  311. };
  312. SoundSetExplosion[]=
  313. {
  314. "JLTS_GrenadeEMP_Exp_SoundSet",
  315. "JLTS_GrenadeEMP_Tail_SoundSet",
  316. "Explosion_Debris_SoundSet"
  317. };
  318. aiAmmoUsageFlags=0;
  319. class CamShakeExplode
  320. {
  321. distance=10;
  322. duration=1;
  323. frequency=20;
  324. power=0;
  325. };
  326. };
  327. class macro_new_ammo(UGL_Supersmoke) :G_40mm_Smoke
  328. {
  329. hit = 2;
  330. indirectHit = 1;
  331. indirectHitRange = 1;
  332. timeToLive =30;
  333. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  334. effectsSmoke="RD501_ThickSmokeShellWhiteEffect";
  335. };
  336. class macro_new_ammo(Devastator_dioxis) :G_40mm_Smoke
  337. {
  338. hit = 2;
  339. indirectHit = 1;
  340. indirectHitRange = 1;
  341. timeToLive =30;
  342. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  343. effectsSmoke="RD501_DioxisSmokeShellEffect";
  344. smokeColor[]={0.21250001,0.75580001,0.35909998,1};
  345. };
  346. class macro_new_ammo(Devastator_stun) :G_40mm_HE
  347. {
  348. hit = 1;
  349. indirectHit = 1;
  350. indirectHitRange = 6;
  351. timeToLive =30;
  352. explosionEffects="JLTS_fx_exp_EMP";
  353. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  354. RD501_stunDuration=30;
  355. };
  356. ///////////////////////////////////////////////////////////////////////
  357. ///////////////////////////Grenades///////////////////////////////////
  358. //////////////////////////////////////////////////////////////////////
  359. class macro_new_ammo(imploder) : 3AS_CoreDetonator_1RND
  360. {
  361. hit=50;
  362. indirectHit=45;
  363. indirectHitRange=2;
  364. fuseDistance=0.5;
  365. explosionTime=0;
  366. simulation="shotShell";
  367. }
  368. class macro_new_ammo(throwable_c_type) : 3AS_CoreDetonator_1RND
  369. {
  370. hit=1500;
  371. indirectHit=1500;
  372. indirectHitRange=10;
  373. typicalspeed=40;
  374. explosionTime=15;
  375. timeToLive=20;
  376. model="\A3\Weapons_F\Explosives\satchel";
  377. simulation="shotShell";
  378. ExplosionEffects="MineNondirectionalExplosion";
  379. CraterEffects="MineNondirectionalCrater";
  380. }
  381. class macro_new_ammo(thermaldet) : 3AS_Detonator_1RND
  382. {
  383. hit=18;
  384. indirectHit=14;
  385. indirectHitRange=8;
  386. };
  387. class macro_new_ammo(thermaldet_cis) : 442_thermal_det
  388. {
  389. hit=10;
  390. indirectHit=8;
  391. indirectHitRange=6;
  392. cost=80;
  393. };
  394. class macro_new_ammo(squad_shield_sigma) : 3AS_CoreDetonator_1RND
  395. {
  396. hit=0;
  397. indirectHit=0;
  398. indirectHitRange=0;
  399. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  400. rd501_fired_deployable = 1;
  401. rd501_fired_deployable_object = "RD501_Squad_Shield";
  402. rd501_fired_deployable_timeToLive = 60;
  403. simulation="shotShell";
  404. }
  405. class macro_new_ammo(squad_shield_alpha) : 3AS_CoreDetonator_1RND
  406. {
  407. hit=0;
  408. indirectHit=0;
  409. indirectHitRange=0;
  410. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  411. rd501_fired_deployable = 1;
  412. rd501_fired_deployable_object = "RD501_Squad_Shield_trench";
  413. rd501_fired_deployable_timeToLive = 120;
  414. simulation="shotShell";
  415. }
  416. class macro_new_ammo(personal_shield) : 3AS_CoreDetonator_1RND
  417. {
  418. hit=0;
  419. indirectHit=0;
  420. indirectHitRange=0;
  421. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  422. rd501_fired_deployable = 1;
  423. rd501_fired_deployable_object = "RD501_Personal_Shield";
  424. rd501_fired_deployable_timeToLive = 120;
  425. rd501_fired_deployable_personal = 1;
  426. rd501_fired_deployable_personal_offset[] = {0.1, 0.9, 0.4};
  427. rd501_fired_deployable_personal_bone = "pelvis";
  428. simulation="shotShell";
  429. };
  430. class macro_new_ammo(super_smoke) : SmokeShell
  431. {
  432. effectsSmoke="RD501_ThickSmokeShellWhiteEffect";
  433. };
  434. class macro_new_ammo(dioxis) : SmokeShell
  435. {
  436. effectsSmoke="RD501_DioxisSmokeShellEffect";
  437. smokeColor[]={0.21250001,0.75580001,0.35909998,1};
  438. };
  439. class macro_new_ammo(blueshadow) : SmokeShell
  440. {
  441. effectsSmoke="RD501_DioxisSmokeShellEffect";
  442. smokeColor[] = {0.2125,0.3,0.8,1};
  443. };
  444. ///////////////////////////////////////////////////////////////////////
  445. /////////////////////////Shotgun///////////////////////////////////////
  446. //////////////////////////////////////////////////////////////////////
  447. class macro_new_ammo(shotgun_scatter): B_12Gauge_Pellets_Submunition
  448. {
  449. hit=20;
  450. submunitionConeAngle = 1;
  451. submunitionAmmo=macro_new_ammo(shotgun_scatter_submunition)
  452. };
  453. class macro_new_ammo(shotgun_scatter_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  454. {
  455. hit=12;
  456. };
  457. class macro_new_ammo(shotgun_HE): B_12Gauge_Pellets_Submunition
  458. {
  459. hit=20;
  460. submunitionConeAngle = 4;
  461. submunitionAmmo=macro_new_ammo(shotgun_HE_submunition)
  462. };
  463. class macro_new_ammo(shotgun_HE_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  464. {
  465. hit=8;
  466. indirectHit=8;
  467. indirectHitRange=0.9;
  468. };
  469. class macro_new_ammo(shotgun_EMP): B_12Gauge_Pellets_Submunition
  470. {
  471. hit=20;
  472. submunitionConeAngle = 20;
  473. submunitionAmmo=macro_new_ammo(shotgun_EMP_submunition)
  474. };
  475. class macro_new_ammo(shotgun_EMP_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  476. {
  477. hit=1;
  478. timeToLive = 0.05;
  479. JLTS_isEMPAmmo=1;
  480. };
  481. ///////////////////////////////////////////////////////////////////////
  482. /////////////////////////Flares///////////////////////////////////////
  483. //////////////////////////////////////////////////////////////////////
  484. class macro_new_ammo(40mm_white): FlareBase
  485. {
  486. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  487. lightColor[] = {1, 1, 1 ,1};
  488. useFlare = 1;
  489. deflecting = 30;
  490. smokeColor[] = {1, 1, 1, 1};
  491. brightness = 1200;
  492. size = 3;//1
  493. triggerTime = 3;
  494. triggerSpeedCoef = 1;
  495. audibleFire = 20;
  496. intensity = 1000000;
  497. flareSize = 3;//1
  498. timeToLive = 120;
  499. flareMaxDistance = 300;
  500. };
  501. class macro_new_ammo(40mm_green): macro_new_ammo(40mm_white)
  502. {
  503. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  504. lightColor[] = {0, 1, 0, 0};
  505. };
  506. class macro_new_ammo(40mm_red): macro_new_ammo(40mm_white)
  507. {
  508. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  509. lightColor[] = {1, 0, 0, 0};
  510. };
  511. class macro_new_ammo(40mm_yellow): macro_new_ammo(40mm_white)
  512. {
  513. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  514. lightColor[] = {1, 1, 0, 0};
  515. };
  516. class macro_new_ammo(40mm_CIR): macro_new_ammo(40mm_white)
  517. {
  518. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  519. lightColor[] = {0.5, 0.5, 0.25, 0};
  520. };
  521. class macro_new_ammo(40mm_blue): macro_new_ammo(40mm_white)
  522. {
  523. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  524. lightColor[] = {0, 0, 1, 0};
  525. };
  526. class macro_new_ammo(40mm_cyan): macro_new_ammo(40mm_white)
  527. {
  528. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  529. lightColor[] = {0, 1, 1, 0};
  530. };
  531. class macro_new_ammo(40mm_purple): macro_new_ammo(40mm_white)
  532. {
  533. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  534. lightColor[] = {.7, 0, 1, 0};
  535. };
  536. ///////////////////////////////////////////////////////////////////////
  537. /////////////////////////Rockets///////////////////////////////////////
  538. //////////////////////////////////////////////////////////////////////
  539. class ACE_Javelin_FGM148_static;
  540. class R_PG32V_F;
  541. class Mo_cluster_AP;
  542. /*class macro_new_ammo(striker):ACE_Javelin_FGM148_static
  543. {
  544. hit=1650;
  545. effectsMissileInit="RocketBackEffectsStaticRPG";
  546. initTime=0.1;
  547. irLock = 1;
  548. laserLock = 0;
  549. airLock = 0;
  550. class ace_missileguidance {
  551. enabled = 1;
  552. minDeflection = 0.00005; // Minium flap deflection for guidance
  553. maxDeflection = 0.025; // Maximum flap deflection for guidance
  554. incDeflection = 0.00005; // The incrmeent in which deflection adjusts.
  555. canVanillaLock = 0;
  556. // Guidance type for munitions
  557. defaultSeekerType = "Optic";
  558. seekerTypes[] = { "Optic" };
  559. defaultSeekerLockMode = "LOBL";
  560. seekerLockModes[] = { "LOBL" };
  561. seekerAngle = 180; // Angle in front of the missile which can be searched
  562. seekerAccuracy = 1; // seeker accuracy multiplier
  563. seekerMinRange = 0;
  564. seekerMaxRange = 2500; // Range from the missile which the seeker can visually search
  565. seekLastTargetPos = 1; // seek last target position [if seeker loses LOS of target, continue to last known pos]
  566. // Attack profile type selection
  567. defaultAttackProfile = "JAV_TOP";
  568. attackProfiles[] = { "JAV_TOP", "JAV_DIR" };
  569. useModeForAttackProfile = 1;
  570. };
  571. };*/
  572. class macro_new_ammo(rps4heat):R_PG32V_F
  573. {
  574. hit=150;
  575. submunitionAmmo="ammo_Penetrator_Titan_AT";
  576. };
  577. class macro_new_ammo(rps4emp):R_PG32V_F
  578. {
  579. hit=1;
  580. submunitionAmmo="";
  581. submunitionDirectionType="";
  582. CraterEffects="";
  583. explosionEffects="JLTS_fx_exp_EMP";
  584. rd501_emp_vehicle_enabled=1;
  585. rd501_emp_vehicle_duration=15;
  586. };
  587. class macro_new_ammo(rps4burst):R_PG32V_F
  588. {
  589. triggerTime = 1;
  590. submunitionConeType[] = {"poissondisc", 16};
  591. submunitionAmmo[] = {macro_new_ammo(super_smoke),1};
  592. triggerOnImpact=0;
  593. deleteParentWhenTriggered=1;
  594. //submunitionParentSpeedCoef = 0;
  595. submunitionInitSpeed = 50;
  596. submunitionDirectionType = "SubmunitionAutoLeveling";
  597. };
  598. class macro_new_ammo(rps4burstsub):Mo_cluster_AP
  599. {
  600. hit=12;
  601. indirectHit=8;
  602. indirectHitRange=8;
  603. };
  604. };