config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. #define COMPONENT DC_15x
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(dc_15x)
  7. {
  8. author=DANKAUTHORS;
  9. addonRootClass= macro_patch_name(weapons)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(weapons)
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. macro_new_weapon(DC,15x),
  18. macro_new_weapon(DC,r15x)
  19. };
  20. };
  21. };
  22. class cfgWeapons
  23. {
  24. class SWOP_BlasterRifle_Base;
  25. class SWOP_dc15xBlasterRifle: SWOP_BlasterRifle_Base
  26. {
  27. class OpticsModes;
  28. class Single;
  29. };
  30. class macro_new_weapon(DC,15x_base):SWOP_dc15xBlasterRifle
  31. {
  32. class OpticsModes:OpticsModes
  33. {
  34. class Snip;
  35. class Iron;
  36. };
  37. class Single:Single
  38. {
  39. dispersion = DC15x_accuracy
  40. reloadTime = DC15x_reloadtime
  41. };
  42. DC_Family_Flashlight
  43. ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
  44. ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
  45. ACE_Overheating_JamChance = DC15a_Overheat_JamChance
  46. ACE_overheating_mrbs = DC15a_Overheat_mrbs
  47. ACE_overheating_allowSwapBarrel = 1;
  48. ACE_clearJamAction = "ReloadMagazine";
  49. };
  50. class macro_new_weapon(DC,15x):macro_new_weapon(DC,15x_base)
  51. {
  52. displayName="DC-15 Xtreme Engagement";
  53. scope=2;
  54. scopeArsenal=2;
  55. weaponPoolAvailable = 1;
  56. dlc = "RD501";
  57. author= "RD501";
  58. baseWeapon = macro_new_weapon(DC,15x);
  59. modelOptics = "\scope\DLT19XL.p3d";
  60. magazines[]={macro_new_mag(DC15x,6)};
  61. class OpticsModes:OpticsModes
  62. {
  63. class Snip:Snip
  64. {
  65. opticsZoomMin = scope_magnification(24);
  66. opticsZoomMax = 1.25;
  67. opticsZoomInit = 0.75;
  68. discretefov[] = {scope_magnification(12),scope_magnification(24)};
  69. modelOptics = "\scope\DLT19XL.p3d";
  70. visionMode[] = {"Normal", "NVG", "TI"};
  71. thermalMode[] = {1,7};
  72. };
  73. class Iron:Iron
  74. {
  75. };
  76. };
  77. };
  78. class arifle_MX_Base_F;
  79. class JLTS_DC15X: arifle_MX_Base_F
  80. {
  81. class Single;
  82. class WeaponSlotsInfo
  83. {
  84. class CowsSlot;
  85. };
  86. };
  87. class macro_new_weapon(DC,r15x):JLTS_DC15X
  88. {
  89. displayName="Republic DC-15X";
  90. baseWeapon=macro_new_weapon(DC,r15x)
  91. magazines[]=
  92. {
  93. macro_new_mag(40mw,5)
  94. };
  95. class Single:Single
  96. {
  97. reloadTime=1.5;
  98. dispersion=0.0003;
  99. };
  100. class WeaponSlotsInfo: WeaponSlotsInfo
  101. {
  102. class CowsSlot: CowsSlot
  103. {
  104. compatibleItems[]=
  105. {
  106. macro_new_weapon(scope,dc15x_12_20x_scope)
  107. };
  108. };
  109. };
  110. };
  111. };