config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #include "config_macros.hpp" // my config macro lib
  2. #include "../RD501_main/config_macros.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(weapon_prototypes)
  6. {
  7. author=macro_authors_ppl
  8. requiredAddons[]=
  9. {
  10. //"A3_Data_F_Enoch_Loadorder",//Load all of arma first
  11. "sci_dc15a",
  12. "sci_dc15gl",
  13. "sci_dc15s",
  14. "sci_z6",
  15. "sci_valken38a",
  16. macro_lvl1_req
  17. };
  18. requiredVersion=0.1;
  19. units[]={};
  20. weapons[]={
  21. macro_new_scope(x4_dc15_acog),
  22. macro_new_scope(x4_x12_dc15_le),
  23. macro_new_scope(x4_dc15_mod0_acog)
  24. };
  25. };
  26. };
  27. class CfgRecoils
  28. {
  29. class recoil_SMG_03;
  30. class Default;
  31. class recoil_default;
  32. class macro_new_recoil(z6): recoil_default
  33. {
  34. muzzleOuter[] = {0.04, 1, 0.24, 0.3};
  35. kickBack[] = {0.024, 0.048};
  36. temporary = 0.02;
  37. };
  38. class macro_new_recoil(dc15a_rifle)
  39. {
  40. kickBack[] = {0.012,0.02};
  41. muzzleInner[] = {0,0,0.04,0.04};
  42. muzzleOuter[] = {.07,.4,.04,.10};
  43. permanent = 0.12;
  44. temporary = 0.03;
  45. };
  46. class macro_new_recoil(dc15a_mod_0_prone): recoil_default
  47. {
  48. muzzleOuter[] = {0.04, 0.2, 0.15, 0.2};
  49. kickBack[] = {0.01, 0.03};
  50. temporary = 0.004;
  51. };
  52. class macro_new_recoil(dc15a_mod_0): recoil_default
  53. {
  54. muzzleOuter[] = {0.10, 0.24, 0.20,0.24};
  55. kickBack[] = {0.015, 0.045};
  56. temporary = 0.005;
  57. prone = 1.25;
  58. };
  59. class macro_new_recoil(dc15s): Default
  60. {
  61. muzzleInner[]={0,0,0.07,0.11};
  62. permanent=0.2;
  63. muzzleOuter[]={0.01,0.12,0.08,0.12};
  64. kickBack[]={0.003,0.012};
  65. temporary=0.002;
  66. };
  67. };
  68. class CfgMagazineWells
  69. {
  70. #include "_magwell/magwell.hpp"
  71. };
  72. class CfgMagazines
  73. {
  74. class CA_Magazine;
  75. class 1Rnd_HE_Grenade_shell;
  76. #include "_mags/core_mags.hpp"
  77. #include "_mags/flares.hpp"
  78. class 2Rnd_12Gauge_Pellets;
  79. #include "_mags/shotgun.hpp"
  80. };
  81. class CfgAmmo
  82. {
  83. class SWOP_DC15ABlasterRifle_L_Ammo;
  84. class SCI_B_bluePlasma_762;
  85. class FlareBase;
  86. class G_40mm_HE;
  87. #include "_ammo/core_ammo.hpp"
  88. // class macro_new_ammo(DC_15a):macro_new_ammo(Republic_Universal_Ammo)
  89. // {
  90. // hit = 16;
  91. // //caliber = 3.8;
  92. // };
  93. #include "_ammo/flares.hpp"
  94. // class macro_new_ammo(test_sub_deplopy):G_40mm_HE
  95. // {
  96. // model = "\SWOP_Main\Effects\Tracer\LaserBlue";
  97. // effectFly = "SWOP_BlueLaserEffect";
  98. // airFriction = -0.0067;
  99. // hit = 90;
  100. // indirectHit = 0;
  101. // indirectHitRange = 0;
  102. // typicalSpeed = 360;
  103. // deflecting = 35;
  104. // indirectHit = 15;
  105. // indirectHitRange = 1;
  106. // deflecting = 0;
  107. // fuseDistance = 0;
  108. // };
  109. class B_12Gauge_Pellets_Submunition_Deploy;
  110. #include "_ammo/shotgun.hpp"
  111. };