config.cpp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  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(throwable_c_type) : 3AS_CoreDetonator_1RND
  264. {
  265. hit=1500;
  266. indirectHit=1500;
  267. indirectHitRange=10;
  268. typicalspeed=40;
  269. explosionTime=15;
  270. timeToLive=20;
  271. model="\A3\Weapons_F\Explosives\satchel";
  272. simulation="shotShell";
  273. ExplosionEffects="MineNondirectionalExplosion";
  274. CraterEffects="MineNondirectionalCrater";
  275. }
  276. class macro_new_ammo(thermaldet) : 3AS_Detonator_1RND
  277. {
  278. hit=18;
  279. indirectHit=14;
  280. indirectHitRange=8;
  281. };
  282. class macro_new_ammo(squad_shield_sigma) : 3AS_CoreDetonator_1RND
  283. {
  284. hit=0;
  285. indirectHit=0;
  286. indirectHitRange=0;
  287. model="\RD501_Weapons\Grenades\data\icecream.p3d";
  288. rd501_grenade_deployable = 1;
  289. rd501_grenade_deployable_object = "RD501_Squad_Shield";
  290. rd501_grenade_deployable_timeToLive = 30;
  291. simulation="shotShell";
  292. }
  293. ///////////////////////////////////////////////////////////////////////
  294. /////////////////////////Shotgun///////////////////////////////////////
  295. //////////////////////////////////////////////////////////////////////
  296. class macro_new_ammo(shotgun_scatter): B_12Gauge_Pellets_Submunition
  297. {
  298. hit=20;
  299. submunitionConeAngle = 1;
  300. submunitionAmmo=macro_new_ammo(shotgun_scatter_submunition)
  301. };
  302. class macro_new_ammo(shotgun_scatter_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  303. {
  304. hit=12;
  305. };
  306. class macro_new_ammo(shotgun_HE): B_12Gauge_Pellets_Submunition
  307. {
  308. hit=20;
  309. submunitionConeAngle = 4;
  310. submunitionAmmo=macro_new_ammo(shotgun_HE_submunition)
  311. };
  312. class macro_new_ammo(shotgun_HE_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  313. {
  314. hit=8;
  315. indirectHit=8;
  316. indirectHitRange=0.9;
  317. };
  318. class macro_new_ammo(shotgun_EMP): B_12Gauge_Pellets_Submunition
  319. {
  320. hit=20;
  321. submunitionConeAngle = 20;
  322. submunitionAmmo=macro_new_ammo(shotgun_EMP_submunition)
  323. };
  324. class macro_new_ammo(shotgun_EMP_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  325. {
  326. hit=1;
  327. timeToLive = 0.05;
  328. JLTS_isEMPAmmo=1;
  329. };
  330. ///////////////////////////////////////////////////////////////////////
  331. /////////////////////////Flares///////////////////////////////////////
  332. //////////////////////////////////////////////////////////////////////
  333. class macro_new_ammo(40mm_white): FlareBase
  334. {
  335. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  336. lightColor[] = {1, 1, 1 ,1};
  337. useFlare = 1;
  338. deflecting = 30;
  339. smokeColor[] = {1, 1, 1, 1};
  340. brightness = 1200;
  341. size = 3;//1
  342. triggerTime = 3;
  343. triggerSpeedCoef = 1;
  344. audibleFire = 20;
  345. intensity = 1000000;
  346. flareSize = 3;//1
  347. timeToLive = 120;
  348. flareMaxDistance = 300;
  349. };
  350. class macro_new_ammo(40mm_green): macro_new_ammo(40mm_white)
  351. {
  352. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  353. lightColor[] = {0, 1, 0, 0};
  354. };
  355. class macro_new_ammo(40mm_red): macro_new_ammo(40mm_white)
  356. {
  357. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  358. lightColor[] = {1, 0, 0, 0};
  359. };
  360. class macro_new_ammo(40mm_yellow): macro_new_ammo(40mm_white)
  361. {
  362. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  363. lightColor[] = {1, 1, 0, 0};
  364. };
  365. class macro_new_ammo(40mm_CIR): macro_new_ammo(40mm_white)
  366. {
  367. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  368. lightColor[] = {0.5, 0.5, 0.25, 0};
  369. };
  370. class macro_new_ammo(40mm_blue): macro_new_ammo(40mm_white)
  371. {
  372. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  373. lightColor[] = {0, 0, 1, 0};
  374. };
  375. class macro_new_ammo(40mm_cyan): macro_new_ammo(40mm_white)
  376. {
  377. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  378. lightColor[] = {0, 1, 1, 0};
  379. };
  380. class macro_new_ammo(40mm_purple): macro_new_ammo(40mm_white)
  381. {
  382. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  383. lightColor[] = {.7, 0, 1, 0};
  384. };
  385. ///////////////////////////////////////////////////////////////////////
  386. /////////////////////////Rockets///////////////////////////////////////
  387. //////////////////////////////////////////////////////////////////////
  388. class ACE_Javelin_FGM148_static;
  389. class R_PG32V_F;
  390. class Mo_cluster_AP;
  391. /*class macro_new_ammo(striker):ACE_Javelin_FGM148_static
  392. {
  393. hit=1650;
  394. effectsMissileInit="RocketBackEffectsStaticRPG";
  395. initTime=0.1;
  396. irLock = 1;
  397. laserLock = 0;
  398. airLock = 0;
  399. class ace_missileguidance {
  400. enabled = 1;
  401. minDeflection = 0.00005; // Minium flap deflection for guidance
  402. maxDeflection = 0.025; // Maximum flap deflection for guidance
  403. incDeflection = 0.00005; // The incrmeent in which deflection adjusts.
  404. canVanillaLock = 0;
  405. // Guidance type for munitions
  406. defaultSeekerType = "Optic";
  407. seekerTypes[] = { "Optic" };
  408. defaultSeekerLockMode = "LOBL";
  409. seekerLockModes[] = { "LOBL" };
  410. seekerAngle = 180; // Angle in front of the missile which can be searched
  411. seekerAccuracy = 1; // seeker accuracy multiplier
  412. seekerMinRange = 0;
  413. seekerMaxRange = 2500; // Range from the missile which the seeker can visually search
  414. seekLastTargetPos = 1; // seek last target position [if seeker loses LOS of target, continue to last known pos]
  415. // Attack profile type selection
  416. defaultAttackProfile = "JAV_TOP";
  417. attackProfiles[] = { "JAV_TOP", "JAV_DIR" };
  418. useModeForAttackProfile = 1;
  419. };
  420. };*/
  421. class macro_new_ammo(rps4heat):R_PG32V_F
  422. {
  423. hit=150;
  424. submunitionAmmo="ammo_Penetrator_Titan_AT";
  425. };
  426. class macro_new_ammo(rps4burst):R_PG32V_F
  427. {
  428. triggerTime = 1;
  429. submunitionConeType[] = {"poissondisc", 16};
  430. submunitionAmmo[] = {macro_new_ammo(rps4burstsub),1};
  431. triggerOnImpact=0;
  432. deleteParentWhenTriggered=1;
  433. //submunitionParentSpeedCoef = 0;
  434. submunitionInitSpeed = 50;
  435. submunitionDirectionType = "SubmunitionAutoLeveling";
  436. };
  437. class macro_new_ammo(rps4burstsub):Mo_cluster_AP
  438. {
  439. hit=12;
  440. indirectHit=8;
  441. indirectHitRange=8;
  442. };
  443. };