config.cpp 11 KB

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