config.cpp 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. #define COMPONENT weapons
  2. #include "../RD501_main/config_macros.hpp"
  3. #include "_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(weapons)
  7. {
  8. author=DANKAUTHORS;
  9. requiredAddons[]=
  10. {
  11. macro_lvl1_req
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. macro_new_weapon(scope,dc_15a_x4),
  17. macro_new_weapon(scope,dc_15a_acog),
  18. macro_new_weapon(scope,dc_15a_x4_x8)
  19. };
  20. };
  21. };
  22. //scopes
  23. class CfgWeapons
  24. {
  25. class JLTS_stun_muzzle;
  26. class RD501_stun_muzzle: JLTS_stun_muzzle
  27. {
  28. magazines[]=
  29. {
  30. macro_new_mag(stun,5)
  31. };
  32. };
  33. };
  34. class CfgMagazineWells
  35. {
  36. class macro_new_magwell(GL_Mags)
  37. {
  38. macro_new_magwell(GL_flare)[]=
  39. {
  40. GL_flare_rounds
  41. };
  42. macro_new_magwell(GL_AP)[]=
  43. {
  44. macro_new_mag(AT_GL,2),
  45. macro_new_mag(UGL_AP,2)
  46. };
  47. macro_new_magwell(GL_HE)[]=
  48. {
  49. macro_new_mag(HE_GL,3),
  50. macro_new_mag(UGL_EMP,1),
  51. macro_new_mag(UGL_HE,3)
  52. };
  53. macro_new_magwell(smoke)[]=
  54. {
  55. "3Rnd_Smoke_Grenade_shell",
  56. "3Rnd_SmokeRed_Grenade_shell",
  57. "3Rnd_SmokeGreen_Grenade_shell",
  58. "3Rnd_SmokeYellow_Grenade_shell",
  59. "3Rnd_SmokePurple_Grenade_shell",
  60. "3Rnd_SmokeBlue_Grenade_shell",
  61. "3Rnd_SmokeOrange_Grenade_shell",
  62. "ACE_HuntIR_M203",
  63. "1Rnd_Leaflets_Civ_F",
  64. macro_new_mag(UGL_Supersmoke,6)
  65. };
  66. };
  67. class macro_new_magwell(DC17_GL_Mags)
  68. {
  69. macro_new_magwell(1rnd_GL_flare)[]=
  70. {
  71. MACRO_GL_flare_rounds_1rnd
  72. };
  73. macro_new_magwell(1rnd_smoke)[]=
  74. {
  75. "1Rnd_Smoke_Grenade_shell",
  76. "1Rnd_SmokeRed_Grenade_shell",
  77. "1Rnd_SmokeGreen_Grenade_shell",
  78. "1Rnd_SmokeYellow_Grenade_shell",
  79. "1Rnd_SmokePurple_Grenade_shell",
  80. "1Rnd_SmokeBlue_Grenade_shell",
  81. "1Rnd_SmokeOrange_Grenade_shell",
  82. "ACE_HuntIR_M203"
  83. };
  84. }
  85. class macro_new_magwell(DC15C_Shotgun)
  86. {
  87. macro_new_magwell(shotgun)[]=
  88. {
  89. macro_new_mag(shotgun_scatter,6),
  90. macro_new_mag(shotgun_HE,6),
  91. macro_new_mag(shotgun_EMP,2)
  92. };
  93. };
  94. class macro_new_magwell(DC_15a_energy)
  95. {
  96. macro_new_magwell(DC_15a_energy)[]=
  97. {
  98. macro_new_mag(DC15a_Med,30),
  99. macro_new_mag(DC15a_High,15),
  100. macro_new_mag(DC15a_Low,60)
  101. };
  102. };
  103. class macro_new_magwell(rocket_RPS)
  104. {
  105. macro_new_magwell(rocket_RPS)[]=
  106. {
  107. macro_new_mag(RPS_AT,1),
  108. macro_new_mag(RPS_AA,1)
  109. };
  110. };
  111. };
  112. class CfgMagazines
  113. {
  114. class CA_Magazine;
  115. class UGL_FlareWhite_F;
  116. class 1Rnd_HE_Grenade_shell;
  117. class macro_new_mag(AT_GL,2): CA_Magazine
  118. {
  119. author = "RD501";
  120. scope = 2;
  121. type = 16;
  122. displayName = "2 Rnd LR AP DC-15A Grenades";
  123. displayNameShort = "2 Rnd LR AP DC-15A";
  124. picture = "\A3\Weapons_f\Data\ui\gear_UGL_slug_CA.paa";
  125. ammo = macro_new_ammo(GL_AT)
  126. initSpeed = 220;//120;
  127. count = 2;
  128. nameSound = "";
  129. descriptionShort = "2Rnd LR AP DC-15A Grenade";
  130. //mass = 30;
  131. mass = 15;
  132. };
  133. class macro_new_mag(HE_GL,3): macro_new_mag(AT_GL,2)
  134. {
  135. displayName = "3 Rnd LR HE DC-15A Grenades";
  136. displayNameShort = "3 RndLR HE DC-15A";
  137. count=3;
  138. ammo = macro_new_ammo(GL_HE)
  139. descriptionShort = "3Rnd LR HE DC-15A Grenade";
  140. initSpeed = 120;
  141. };
  142. class Titan_AA;
  143. class CA_LauncherMagazine;
  144. class Titan_AT;
  145. class macro_new_mag(RPS_AT,1): Titan_AT
  146. {
  147. scope = 2;
  148. displayName = "RPS 6 AT Rocket";
  149. ammo = macro_new_ammo(RPS_AT);
  150. type = "2 * 256";
  151. count = 1;
  152. initSpeed = 60;
  153. maxLeadSpeed = 60;
  154. mass = 70;
  155. };
  156. class macro_new_mag(RPS_AA,1): Titan_AA
  157. {
  158. author = "Bohemia Interactive";
  159. scope = 2;
  160. displayName = "RPS 6 AA Rocket";
  161. displayNameShort = "AA";
  162. ammo = macro_new_ammo(RPS_AA);
  163. type = "6 * 256";
  164. picture = "\A3\Weapons_F_beta\Launchers\titan\Data\UI\gear_titan_missile_atl_CA.paa";
  165. model = "\A3\Weapons_F_beta\Launchers\titan\titan_missile_atl";
  166. initSpeed = 18;
  167. maxLeadSpeed = 277.778;
  168. descriptionShort = "Type: Anti-Air<br />Rounds: 1<br />Used in: Titan MPRL";
  169. mass = 100;
  170. };
  171. class SmokeShell;
  172. class smoke_meme_mag: SmokeShell
  173. {
  174. author = "Bohemia Interactive";
  175. displayNameShort = "Yeet Smoke";
  176. ammo = "smoke_meme";
  177. picture = "\A3\Weapons_f\data\ui\gear_smokegrenade_blue_ca.paa";
  178. model = "\A3\Weapons_f\ammo\smokegrenade_blue";
  179. descriptionShort = "Type: Smoke Grenade - Blue<br />Rounds: 1<br />Used in: Hand";
  180. displayName = "[]M18 Smoke Grenade (Yeet)";
  181. };
  182. class 3AS_Chaingun_Drum_Mag;
  183. class macro_new_mag(z1000,3000) : 3AS_Chaingun_Drum_Mag
  184. {
  185. count = 3000;
  186. tracersEvery=1;
  187. ammo = macro_new_ammo(z1000)
  188. displayName="3000Rnd Z1000 Chaingun Drum";
  189. initSpeed=860;
  190. weight=1;
  191. scope=1;
  192. };
  193. };
  194. class CfgAmmo
  195. {
  196. class GrenadeHand;
  197. class M_Titan_AT;
  198. class R_PG32V_F;
  199. class R_TBG32V_F;
  200. class LaserAmmo_Minigun;
  201. class FlareBase;
  202. class G_40mm_HE;
  203. class ATMine_Range_Ammo;
  204. class PipeBombBase;
  205. class A_RocketHH15Clone_HEAT_FireForget;
  206. class M_Titan_AA;
  207. class DH17_Blaster_Ammo;
  208. class 3AS_Chaingun_Ammo;
  209. class M_Titan_AT;
  210. class macro_new_ammo(GL_AT): G_40mm_HE
  211. {
  212. hit = 350;
  213. indirectHit = 0;
  214. indirectHitRange = .1;
  215. timeToLive =30;
  216. model="\3AS\3AS_Equipment\model\3AS_coredetonator.p3d";
  217. fuseDistance = 3;
  218. explosive = 0.0001;
  219. deflecting = 5;
  220. caliber = 5;
  221. ace_frag_enabled = 0;
  222. ace_frag_force = 0;
  223. ace_frag_classes[] = {""};
  224. ace_frag_metal = 0;
  225. ace_frag_charge = 0;
  226. ace_frag_gurney_c = 0;
  227. ace_frag_gurney_k = "0";
  228. ace_rearm_caliber = 0;
  229. };
  230. class macro_new_ammo(GL_HE): G_40mm_HE
  231. {
  232. hit = 60;
  233. indirectHit = 50;
  234. indirectHitRange = 5;
  235. timeToLive =30;
  236. model="\3AS\3AS_Equipment\model\3AS_thermaldet.p3d";
  237. fuseDistance = 3;
  238. };
  239. class UNSC_Mine_Ammo: ATMine_Range_Ammo
  240. {
  241. hit = 2500;
  242. indirectHit = 2500;
  243. indirectHitRange = 20;
  244. };
  245. class TermMineA: PipeBombBase
  246. {
  247. hit = 400;
  248. indirectHit = 400;
  249. indirectHitRange = 25;
  250. };
  251. class TermMineC: PipeBombBase
  252. {
  253. hit = 2500;
  254. indirectHit = 2500;
  255. indirectHitRange = 15;
  256. };
  257. class macro_new_ammo(RPS_AT):M_Titan_AT
  258. {
  259. aiAmmoUsageFlags = "128 + 256 +512";
  260. hit = 95;
  261. thrust = 130;//130;
  262. thrustTime = 3.5;
  263. timeToLive = 20;
  264. indirectHit = 20;
  265. indirectHitRange = 2;
  266. };
  267. class macro_new_ammo(RPS_AA) : M_Titan_AA
  268. {
  269. hit = 800;
  270. indirectHit = 400;
  271. indirectHitRange = 1;
  272. };
  273. //212th stuff
  274. class SCI_PLX1_R : M_Titan_AT
  275. {
  276. hit = 95;
  277. indirectHit = 20;
  278. indirectHitRange = 2;
  279. };
  280. class SCI_RPS6_HEAA_R : R_PG32V_F
  281. {
  282. hit = 800;
  283. indirectHit = 400;
  284. indirectHitRange = 1;
  285. };
  286. class SCI_RPS6_HEDP_R : R_TBG32V_F
  287. {
  288. hit = 50;
  289. indirectHit = 60;
  290. indirectHitRange = 8;
  291. };
  292. class B_127x108_APDS;
  293. class SmokeShell;
  294. class smoke_meme: SmokeShell
  295. {
  296. model = "\A3\Weapons_f\ammo\smokegrenade_blue_throw";
  297. smokeColor[] = {0.1183, 0.1867, 1, 1};
  298. effectsSmoke = "smoke_yeet";
  299. };
  300. //LOOK HERE $$$
  301. class macro_new_ammo(z1000) : 3AS_Chaingun_Ammo
  302. {
  303. hit=57.45;
  304. caliber=3.5999999;
  305. indirectHit = 3;
  306. indirectHitRange = 0.5;
  307. explosive = 0.4;
  308. ACE_caliber=1;
  309. typicalSpeed=860;
  310. model="RD501_Vehicle_Weapons\_ammo\data\laser_small_blue.p3d";
  311. };
  312. };
  313. class smoke_yeet
  314. {
  315. class SmokeShell
  316. {
  317. simulation = "particles";
  318. type = "SMOKEEFFECT_MEME";
  319. position[] = {0, 0, 0};
  320. intensity = 1;
  321. interval = 1;
  322. };
  323. class SmokeShell2
  324. {
  325. simulation = "particles";
  326. type = "SmokeShellWhite2";
  327. position[] = {0, 0, 0};
  328. intensity = 1;
  329. interval = 1;
  330. };
  331. class SmokeShellUW
  332. {
  333. simulation = "particles";
  334. type = "SmokeShellWhiteUW";
  335. position[] = {0, 0, 0};
  336. intensity = 1;
  337. interval = 1;
  338. };
  339. class SmokeShell2UW
  340. {
  341. simulation = "particles";
  342. type = "SmokeShellWhite2UW";
  343. position[] = {0, 0, 0};
  344. intensity = 1;
  345. interval = 1;
  346. };
  347. };
  348. class CfgCloudlets
  349. {
  350. class Default;
  351. class SMOKEEFFECT_MEME: Default
  352. {
  353. animationSpeedCoef = 1;
  354. colorCoef[] = {"colorR", "colorG", "colorB", "colorA"};
  355. sizeCoef = 1;
  356. position[] = {0, 0, 0};
  357. interval = 0.03;
  358. circleRadius = 0;
  359. circleVelocity[] = {0, 0, 0};
  360. particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
  361. particleFSNtieth = 16;
  362. particleFSIndex = 7;
  363. particleFSFrameCount = 48;
  364. particleFSLoop = 1;
  365. angleVar = 0.1;
  366. animationName = "";
  367. particleType = "Billboard";
  368. timerPeriod = 1;
  369. lifeTime = 20;
  370. moveVelocity[] = {0.0, 0.0, 0.0};//{0.2, 0.1, 0.1};
  371. rotationVelocity = 1;
  372. weight = 1.2777;
  373. volume = 1;
  374. rubbing = 0.05;
  375. size[] = {6, 16};//{0.1, 2, 6};
  376. color[] = {{0.6, 0.6, 0.6, 0.2}, {0.6, 0.6, 0.6, 0.05}, {0.6, 0.6, 0.6, 0}};
  377. animationSpeed[] = {1.5, 0.5};
  378. randomDirectionPeriod = 1;
  379. randomDirectionIntensity = 0.04;
  380. onTimerScript = "";
  381. beforeDestroyScript = "";
  382. destroyOnWaterSurface = 1;
  383. destroyOnWaterSurfaceOffset = -0.6;
  384. lifeTimeVar = 2;
  385. positionVar[] = {0, 0, 0};
  386. MoveVelocityVar[] = {0.25, 0.25, 0.25};
  387. rotationVelocityVar = 20;
  388. sizeVar = 0.5;
  389. colorVar[] = {0, 0, 0, 0.35};
  390. randomDirectionPeriodVar = 0;
  391. randomDirectionIntensityVar = 0;
  392. };
  393. };
  394. class CfgRecoils
  395. {
  396. class recoil_default;
  397. class Default;
  398. class macro_new_recoil(westar_pistol): recoil_default
  399. {
  400. muzzleOuter[] = {"0.05", ".5", "0.1", "0.2"};
  401. kickBack[] = {"0.04", "0.08"};
  402. temporary = "0.06";
  403. };
  404. class macro_new_recoil(dc15_rb): Default
  405. {
  406. muzzleOuter[] = {"0.3*0.2", "6", "0.3*1", ".6"};
  407. muzzleInner[] = {0, 0, 0.1, 0.1};
  408. kickBack[] = {"0.03*2", "0.06*2.5"};
  409. permanent = "0.1*1.8";
  410. temporary = "0.01*1.2";
  411. };
  412. class Valken_Super_auto_recoil: Default
  413. {
  414. muzzleOuter[] = {".08*0.25", ".08*0.25", "0.3*0.25", ".1*0.25"};
  415. muzzleInner[] = {0, 0, 0.1, 0.1};
  416. kickBack[] = {"0.03*0.25", "0.03*0.25"};
  417. permanent = "0.1*0.25";
  418. temporary = "0.01*0.25";
  419. };
  420. };