config.cpp 12 KB

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