config.cpp 12 KB

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