config.cpp 10 KB

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