config.cpp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  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(Devastator_dioxis) :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_DioxisSmokeShellEffect";
  335. smokeColor[]={0.21250001,0.75580001,0.35909998,1};
  336. };
  337. class macro_new_ammo(Devastator_stun) :G_40mm_HE
  338. {
  339. hit = 1;
  340. indirectHit = 1;
  341. indirectHitRange = 6;
  342. timeToLive =30;
  343. explosionEffects="JLTS_fx_exp_EMP";
  344. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  345. RD501_stunDuration=30;
  346. };
  347. ///////////////////////////////////////////////////////////////////////
  348. ///////////////////////////Grenades///////////////////////////////////
  349. //////////////////////////////////////////////////////////////////////
  350. class macro_new_ammo(imploder) : 3AS_CoreDetonator_1RND
  351. {
  352. hit=50;
  353. indirectHit=45;
  354. indirectHitRange=2;
  355. fuseDistance=0.5;
  356. explosionTime=0;
  357. simulation="shotShell";
  358. }
  359. class macro_new_ammo(throwable_c_type) : 3AS_CoreDetonator_1RND
  360. {
  361. hit=1500;
  362. indirectHit=1500;
  363. indirectHitRange=10;
  364. typicalspeed=40;
  365. explosionTime=15;
  366. timeToLive=20;
  367. model="\A3\Weapons_F\Explosives\satchel";
  368. simulation="shotShell";
  369. ExplosionEffects="MineNondirectionalExplosion";
  370. CraterEffects="MineNondirectionalCrater";
  371. }
  372. class macro_new_ammo(thermaldet) : 3AS_Detonator_1RND
  373. {
  374. hit=18;
  375. indirectHit=14;
  376. indirectHitRange=8;
  377. };
  378. class macro_new_ammo(thermaldet_cis) : 442_thermal_det
  379. {
  380. hit=10;
  381. indirectHit=8;
  382. indirectHitRange=6;
  383. cost=80;
  384. };
  385. class macro_new_ammo(squad_shield_sigma) : 3AS_CoreDetonator_1RND
  386. {
  387. hit=0;
  388. indirectHit=0;
  389. indirectHitRange=0;
  390. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  391. rd501_fired_deployable = 1;
  392. rd501_fired_deployable_object = "RD501_Squad_Shield";
  393. rd501_fired_deployable_timeToLive = 60;
  394. simulation="shotShell";
  395. }
  396. class macro_new_ammo(squad_shield_alpha) : 3AS_CoreDetonator_1RND
  397. {
  398. hit=0;
  399. indirectHit=0;
  400. indirectHitRange=0;
  401. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  402. rd501_fired_deployable = 1;
  403. rd501_fired_deployable_object = "RD501_Squad_Shield_trench";
  404. rd501_fired_deployable_timeToLive = 120;
  405. simulation="shotShell";
  406. }
  407. class macro_new_ammo(personal_shield) : 3AS_CoreDetonator_1RND
  408. {
  409. hit=0;
  410. indirectHit=0;
  411. indirectHitRange=0;
  412. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  413. rd501_fired_deployable = 1;
  414. rd501_fired_deployable_object = "RD501_Personal_Shield";
  415. rd501_fired_deployable_timeToLive = 120;
  416. rd501_fired_deployable_personal = 1;
  417. rd501_fired_deployable_personal_offset[] = {0.1, 0.9, 0.4};
  418. rd501_fired_deployable_personal_bone = "pelvis";
  419. simulation="shotShell";
  420. };
  421. class macro_new_ammo(super_smoke) : SmokeShell
  422. {
  423. effectsSmoke="RD501_ThickSmokeShellWhiteEffect";
  424. };
  425. class macro_new_ammo(dioxis) : SmokeShell
  426. {
  427. effectsSmoke="RD501_DioxisSmokeShellEffect";
  428. smokeColor[]={0.21250001,0.75580001,0.35909998,1};
  429. };
  430. class macro_new_ammo(blueshadow) : SmokeShell
  431. {
  432. effectsSmoke="RD501_DioxisSmokeShellEffect";
  433. smokeColor[] = {0.2125,0.3,0.8,1};
  434. };
  435. ///////////////////////////////////////////////////////////////////////
  436. /////////////////////////Shotgun///////////////////////////////////////
  437. //////////////////////////////////////////////////////////////////////
  438. class macro_new_ammo(shotgun_scatter): B_12Gauge_Pellets_Submunition
  439. {
  440. hit=20;
  441. submunitionConeAngle = 1;
  442. submunitionAmmo=macro_new_ammo(shotgun_scatter_submunition)
  443. };
  444. class macro_new_ammo(shotgun_scatter_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  445. {
  446. hit=12;
  447. };
  448. class macro_new_ammo(shotgun_HE): B_12Gauge_Pellets_Submunition
  449. {
  450. hit=20;
  451. submunitionConeAngle = 4;
  452. submunitionAmmo=macro_new_ammo(shotgun_HE_submunition)
  453. };
  454. class macro_new_ammo(shotgun_HE_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  455. {
  456. hit=8;
  457. indirectHit=8;
  458. indirectHitRange=0.9;
  459. };
  460. class macro_new_ammo(shotgun_EMP): B_12Gauge_Pellets_Submunition
  461. {
  462. hit=20;
  463. submunitionConeAngle = 20;
  464. submunitionAmmo=macro_new_ammo(shotgun_EMP_submunition)
  465. };
  466. class macro_new_ammo(shotgun_EMP_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  467. {
  468. hit=1;
  469. timeToLive = 0.05;
  470. JLTS_isEMPAmmo=1;
  471. };
  472. ///////////////////////////////////////////////////////////////////////
  473. /////////////////////////Flares///////////////////////////////////////
  474. //////////////////////////////////////////////////////////////////////
  475. class macro_new_ammo(40mm_white): FlareBase
  476. {
  477. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  478. lightColor[] = {1, 1, 1 ,1};
  479. useFlare = 1;
  480. deflecting = 30;
  481. smokeColor[] = {1, 1, 1, 1};
  482. brightness = 1200;
  483. size = 3;//1
  484. triggerTime = 3;
  485. triggerSpeedCoef = 1;
  486. audibleFire = 20;
  487. intensity = 1000000;
  488. flareSize = 3;//1
  489. timeToLive = 120;
  490. flareMaxDistance = 300;
  491. };
  492. class macro_new_ammo(40mm_green): macro_new_ammo(40mm_white)
  493. {
  494. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  495. lightColor[] = {0, 1, 0, 0};
  496. };
  497. class macro_new_ammo(40mm_red): macro_new_ammo(40mm_white)
  498. {
  499. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  500. lightColor[] = {1, 0, 0, 0};
  501. };
  502. class macro_new_ammo(40mm_yellow): macro_new_ammo(40mm_white)
  503. {
  504. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  505. lightColor[] = {1, 1, 0, 0};
  506. };
  507. class macro_new_ammo(40mm_CIR): macro_new_ammo(40mm_white)
  508. {
  509. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  510. lightColor[] = {0.5, 0.5, 0.25, 0};
  511. };
  512. class macro_new_ammo(40mm_blue): macro_new_ammo(40mm_white)
  513. {
  514. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  515. lightColor[] = {0, 0, 1, 0};
  516. };
  517. class macro_new_ammo(40mm_cyan): macro_new_ammo(40mm_white)
  518. {
  519. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  520. lightColor[] = {0, 1, 1, 0};
  521. };
  522. class macro_new_ammo(40mm_purple): macro_new_ammo(40mm_white)
  523. {
  524. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  525. lightColor[] = {.7, 0, 1, 0};
  526. };
  527. ///////////////////////////////////////////////////////////////////////
  528. /////////////////////////Rockets///////////////////////////////////////
  529. //////////////////////////////////////////////////////////////////////
  530. class ACE_Javelin_FGM148_static;
  531. class R_PG32V_F;
  532. class Mo_cluster_AP;
  533. /*class macro_new_ammo(striker):ACE_Javelin_FGM148_static
  534. {
  535. hit=1650;
  536. effectsMissileInit="RocketBackEffectsStaticRPG";
  537. initTime=0.1;
  538. irLock = 1;
  539. laserLock = 0;
  540. airLock = 0;
  541. class ace_missileguidance {
  542. enabled = 1;
  543. minDeflection = 0.00005; // Minium flap deflection for guidance
  544. maxDeflection = 0.025; // Maximum flap deflection for guidance
  545. incDeflection = 0.00005; // The incrmeent in which deflection adjusts.
  546. canVanillaLock = 0;
  547. // Guidance type for munitions
  548. defaultSeekerType = "Optic";
  549. seekerTypes[] = { "Optic" };
  550. defaultSeekerLockMode = "LOBL";
  551. seekerLockModes[] = { "LOBL" };
  552. seekerAngle = 180; // Angle in front of the missile which can be searched
  553. seekerAccuracy = 1; // seeker accuracy multiplier
  554. seekerMinRange = 0;
  555. seekerMaxRange = 2500; // Range from the missile which the seeker can visually search
  556. seekLastTargetPos = 1; // seek last target position [if seeker loses LOS of target, continue to last known pos]
  557. // Attack profile type selection
  558. defaultAttackProfile = "JAV_TOP";
  559. attackProfiles[] = { "JAV_TOP", "JAV_DIR" };
  560. useModeForAttackProfile = 1;
  561. };
  562. };*/
  563. class macro_new_ammo(rps4heat):R_PG32V_F
  564. {
  565. hit=150;
  566. submunitionAmmo="ammo_Penetrator_Titan_AT";
  567. };
  568. class macro_new_ammo(rps4burst):R_PG32V_F
  569. {
  570. triggerTime = 1;
  571. submunitionConeType[] = {"poissondisc", 16};
  572. submunitionAmmo[] = {macro_new_ammo(rps4burstsub),1};
  573. triggerOnImpact=0;
  574. deleteParentWhenTriggered=1;
  575. //submunitionParentSpeedCoef = 0;
  576. submunitionInitSpeed = 50;
  577. submunitionDirectionType = "SubmunitionAutoLeveling";
  578. };
  579. class macro_new_ammo(rps4burstsub):Mo_cluster_AP
  580. {
  581. hit=12;
  582. indirectHit=8;
  583. indirectHitRange=8;
  584. };
  585. };