config.cpp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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 SWOP_BCCKtermimploder;
  29. class SWOP_termDet;
  30. class B_12Gauge_Pellets_Submunition;
  31. class B_12Gauge_Pellets_Submunition_Deploy;
  32. class FlareBase;
  33. class macro_new_ammo(2mw):3AS_EC20_BluePlasma
  34. {
  35. hit=4;
  36. airLock=1;
  37. typicalSpeed=400;
  38. caliber=1.2;
  39. airFriction=0;
  40. };
  41. class macro_new_ammo(5mw) : 3AS_EC30_BluePlasma
  42. {
  43. hit=6;
  44. airLock=1;
  45. typicalSpeed=400;
  46. caliber=1.4;
  47. airFriction=0;
  48. };
  49. class macro_new_ammo(10mw) : 3AS_EC40_BluePlasma
  50. {
  51. hit=9;
  52. airLock=1;
  53. typicalSpeed=550;
  54. caliber=1;
  55. airFriction=0;
  56. explosive = 0;
  57. };
  58. class macro_new_ammo(10mws) : 3AS_EC40_BluePlasma
  59. {
  60. hit=9;
  61. airLock=1;
  62. typicalSpeed=550;
  63. caliber=1;
  64. visibleFire=1;
  65. audibleFire=5;
  66. visibleFireTime=3;
  67. airFriction=0;
  68. explosive = 0;
  69. };
  70. class macro_new_ammo(20mw) : 3AS_EC50_BluePlasma
  71. {
  72. hit=12;
  73. airLock=1;
  74. typicalSpeed=700;
  75. caliber=2.8;
  76. airFriction=0;
  77. explosive = 0.4;
  78. };
  79. class macro_new_ammo(20mw_d) : JLTS_bullet_carbine_red
  80. {
  81. hit=12;
  82. airLock=1;
  83. typicalSpeed=700;
  84. caliber=2.8;
  85. airFriction=0;
  86. };
  87. class macro_new_ammo(20mwup) : 3AS_EC50_BluePlasma
  88. {
  89. hit=10;
  90. airLock=1;
  91. typicalSpeed=500;
  92. indirectHit = 3;
  93. indirectHitRange = 0.5;
  94. explosive = 0.4;
  95. caliber=0.6;
  96. airFriction=0;
  97. };
  98. class macro_new_ammo(20mwdp) : 3AS_EC50_BluePlasma
  99. {
  100. hit=17;
  101. airLock=1;
  102. typicalSpeed=800;
  103. caliber=2.8;
  104. airFriction=0;
  105. explosive = 0.2;
  106. };
  107. class macro_new_ammo(30mw) : 3AS_EC60_BluePlasma
  108. {
  109. hit=35;
  110. airLock=1;
  111. typicalSpeed=1000;
  112. caliber=2.4;
  113. airFriction=0;
  114. explosive = 0.4;
  115. };
  116. class macro_new_ammo(30mw_d) : JLTS_bullet_carbine_red
  117. {
  118. hit=35;
  119. airLock=1;
  120. typicalSpeed=1000;
  121. caliber=2.4;
  122. airFriction=0;
  123. };
  124. class macro_new_ammo(40mw) : 3AS_EC70_BluePlasma
  125. {
  126. hit=60;
  127. airLock=1;
  128. typicalSpeed=1100;
  129. caliber=3.6;
  130. airFriction=0;
  131. explosive = 0.4;
  132. };
  133. class macro_new_ammo(40mwemp) : 3AS_EC70_BluePlasma
  134. {
  135. hit=0.01;
  136. airLock=1;
  137. typicalSpeed=1100;
  138. caliber=1;
  139. airFriction=0;
  140. explosive = 0;
  141. JLTS_isEMPAmmo=1;
  142. };
  143. class macro_new_ammo(50mw) : 3AS_EC80_BluePlasma
  144. {
  145. hit=300;
  146. thrust=210;
  147. explosive=0.4;
  148. thrustTime=1.5;
  149. airLock=1;
  150. typicalSpeed=1100;
  151. caliber=5;
  152. airFriction=0;
  153. };
  154. class macro_new_ammo(mar1) : 3AS_EC80_BluePlasma
  155. {
  156. hit=900;
  157. thrust=500;
  158. explosive=0;
  159. thrustTime=1.5;
  160. airLock=1;
  161. typicalSpeed=3000;
  162. caliber=50;
  163. airFriction=0;
  164. };
  165. class macro_new_ammo(UGL_AP): G_40mm_HE
  166. {
  167. hit = 350;
  168. indirectHit = 0;
  169. indirectHitRange = .1;
  170. timeToLive =30;
  171. model = "\GeonFighter\LaserGeon.p3d";
  172. fuseDistance = 3;
  173. explosive = 0.0001;
  174. deflecting = 5;
  175. caliber = 5;
  176. ace_frag_enabled = 0;
  177. ace_frag_force = 0;
  178. ace_frag_classes[] = {""};
  179. ace_frag_metal = 0;
  180. ace_frag_charge = 0;
  181. ace_frag_gurney_c = 0;
  182. ace_frag_gurney_k = "0";
  183. ace_rearm_caliber = 0;
  184. };
  185. class macro_new_ammo(UGL_HE) :G_40mm_HE
  186. {
  187. hit = 60;
  188. indirectHit = 50;
  189. indirectHitRange = 5;
  190. timeToLive =30;
  191. model = "SW_AV7\ion.p3d";
  192. fuseDistance = 3;
  193. };
  194. class RD501_grenade_emp_ammo: G_40mm_HE
  195. {
  196. JLTS_isEMPAmmo=1;
  197. hit = 0.1;
  198. indirectHit = 0.01;
  199. indirectHitRange = 12;
  200. timeToLive =30;
  201. model = "\thermalD\EMP_Grenade_ammo.p3d";
  202. fuseDistance = 1
  203. explosive = 0.0001;
  204. deflecting = 5;
  205. caliber = 5;
  206. ace_frag_enabled = 0;
  207. ace_frag_force = 0;
  208. ace_frag_classes[] = {""};
  209. ace_frag_metal = 0;
  210. ace_frag_charge = 0;
  211. ace_frag_gurney_c = 0;
  212. ace_frag_gurney_k = "0";
  213. ace_rearm_caliber = 0;
  214. explosionEffects="JLTS_fx_exp_EMP";
  215. grenadeBurningSound[]=
  216. {
  217. "EMPSoundLoop1",
  218. 0.5
  219. };
  220. EMPSoundLoop1[]=
  221. {
  222. "MRC\JLTS\weapons\Grenades\sounds\grenade_burning.wss",
  223. 0.125893,
  224. 1,
  225. 70
  226. };
  227. SoundSetExplosion[]=
  228. {
  229. "JLTS_GrenadeEMP_Exp_SoundSet",
  230. "JLTS_GrenadeEMP_Tail_SoundSet",
  231. "Explosion_Debris_SoundSet"
  232. };
  233. aiAmmoUsageFlags=0;
  234. class CamShakeExplode
  235. {
  236. distance=10;
  237. duration=1;
  238. frequency=20;
  239. power=0;
  240. };
  241. };
  242. class macro_new_ammo(imploder) : SWOP_BCCKtermimploder
  243. {
  244. hit=50;
  245. indirectHit=45;
  246. indirectHitRange=2;
  247. }
  248. class macro_new_ammo(thermaldet) : SWOP_termDet
  249. {
  250. hit=18;
  251. indirectHit=14;
  252. indirectHitRange=8;
  253. }
  254. ///////////////////////////////////////////////////////////////////////
  255. /////////////////////////Shotgun///////////////////////////////////////
  256. //////////////////////////////////////////////////////////////////////
  257. class macro_new_ammo(shotgun_scatter): B_12Gauge_Pellets_Submunition
  258. {
  259. hit=20;
  260. submunitionConeAngle = 1;
  261. submunitionAmmo=macro_new_ammo(shotgun_scatter_submunition)
  262. };
  263. class macro_new_ammo(shotgun_scatter_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  264. {
  265. hit=12;
  266. };
  267. class macro_new_ammo(shotgun_HE): B_12Gauge_Pellets_Submunition
  268. {
  269. hit=20;
  270. submunitionConeAngle = 4;
  271. submunitionAmmo=macro_new_ammo(shotgun_HE_submunition)
  272. };
  273. class macro_new_ammo(shotgun_HE_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  274. {
  275. hit=8;
  276. indirectHit=8;
  277. indirectHitRange=0.9;
  278. };
  279. class macro_new_ammo(shotgun_EMP): B_12Gauge_Pellets_Submunition
  280. {
  281. hit=20;
  282. submunitionConeAngle = 20;
  283. submunitionAmmo=macro_new_ammo(shotgun_EMP_submunition)
  284. };
  285. class macro_new_ammo(shotgun_EMP_submunition) : B_12Gauge_Pellets_Submunition_Deploy
  286. {
  287. hit=1;
  288. timeToLive = 0.05;
  289. JLTS_isEMPAmmo=1;
  290. };
  291. ///////////////////////////////////////////////////////////////////////
  292. /////////////////////////Flares///////////////////////////////////////
  293. //////////////////////////////////////////////////////////////////////
  294. class macro_new_ammo(40mm_white): FlareBase
  295. {
  296. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  297. lightColor[] = {1, 1, 1 ,1};
  298. useFlare = 1;
  299. deflecting = 30;
  300. smokeColor[] = {1, 1, 1, 1};
  301. brightness = 1200;
  302. size = 3;//1
  303. triggerTime = 3;
  304. triggerSpeedCoef = 1;
  305. audibleFire = 20;
  306. intensity = 1000000;
  307. flareSize = 3;//1
  308. timeToLive = 120;
  309. flareMaxDistance = 300;
  310. };
  311. class macro_new_ammo(40mm_green): macro_new_ammo(40mm_white)
  312. {
  313. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  314. lightColor[] = {0, 1, 0, 0};
  315. };
  316. class macro_new_ammo(40mm_red): macro_new_ammo(40mm_white)
  317. {
  318. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  319. lightColor[] = {1, 0, 0, 0};
  320. };
  321. class macro_new_ammo(40mm_yellow): macro_new_ammo(40mm_white)
  322. {
  323. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  324. lightColor[] = {1, 1, 0, 0};
  325. };
  326. class macro_new_ammo(40mm_CIR): macro_new_ammo(40mm_white)
  327. {
  328. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  329. lightColor[] = {0.5, 0.5, 0.25, 0};
  330. };
  331. class macro_new_ammo(40mm_blue): macro_new_ammo(40mm_white)
  332. {
  333. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  334. lightColor[] = {0, 0, 1, 0};
  335. };
  336. class macro_new_ammo(40mm_cyan): macro_new_ammo(40mm_white)
  337. {
  338. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  339. lightColor[] = {0, 1, 1, 0};
  340. };
  341. class macro_new_ammo(40mm_purple): macro_new_ammo(40mm_white)
  342. {
  343. model = "\A3\Weapons_F\Ammo\UGL_Flare";
  344. lightColor[] = {.7, 0, 1, 0};
  345. };
  346. };