config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #define COMPONENT DC_15a
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(dc_15a)
  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,15a_base),
  18. macro_new_weapon(DC,15a),
  19. macro_new_weapon(DC,15a_gl_rifle),
  20. macro_new_weapon(DC,15a_LE),
  21. macro_new_weapon(DC,15a_mod_0_rifle),
  22. macro_new_weapon(DC,r15a)
  23. };
  24. };
  25. };
  26. class cfgWeapons
  27. {
  28. class 3AS_DC15A_Base_F;
  29. class RD501_stun_muzzle;
  30. class 3AS_DC15A_F:3AS_DC15A_Base_F
  31. {
  32. class Single;
  33. class Burst;
  34. class WeaponSlotsInfo;
  35. };
  36. class macro_new_weapon(DC,15a):3AS_DC15A_F
  37. {
  38. displayName="Republic DC-15A";
  39. reloadTime=0.1;
  40. ACE_Overheating_mrbs = 300000;
  41. recoil="recoil_mx";
  42. magazines[]=
  43. {
  44. macro_new_mag(20mwup,20),
  45. macro_new_mag(20mwdp,20)
  46. };
  47. muzzles[]=
  48. {
  49. "this",
  50. "Stun"
  51. };
  52. class Stun: RD501_stun_muzzle
  53. {
  54. displayName="High Energy StunMode";
  55. };
  56. class Single:Single
  57. {
  58. reloadTime=0.1;
  59. dispersion=0.0006;
  60. };
  61. class Burst:Burst
  62. {
  63. reloadTime=0.1;
  64. dispersion=0.0006;
  65. };
  66. class WeaponSlotsInfo: WeaponSlotsInfo
  67. {
  68. mass = 30;
  69. class CowsSlot
  70. {
  71. displayName = "Optics Slot";
  72. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  73. iconPinpoint = "Bottom";
  74. iconPosition[] = {0.5,0.35};
  75. iconScale = 0.2;
  76. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  77. scope = 0;
  78. compatibleItems[] =
  79. {
  80. "RD501_RCO",
  81. "RD501_RCO_2",
  82. "RD501_RCO_3",
  83. "RD501_Holosight",
  84. "RD501_Holosight_2",
  85. "RD501_Holosight_3",
  86. "RD501_DMS",
  87. "RD501_DMS_2",
  88. "RD501_DMS_3",
  89. "RD501_DMS_4",
  90. "RD501_MRCO",
  91. "RD501_MRCO_2",
  92. "RD501_MRCO_3"
  93. };
  94. };
  95. class MuzzleSlot
  96. {
  97. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  98. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  99. compatibleItems[]=
  100. {
  101. "RD501_muzzle_flash",
  102. "RD501_acc_particle_condenser",
  103. "RD501_acc_particle_accelerator"
  104. };
  105. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  106. iconPinpoint="Center";
  107. };
  108. class PointerSlot
  109. {
  110. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  111. displayName = "Pointer Slot";
  112. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  113. };
  114. };
  115. };
  116. //#include "DC_15a__LE_rifle.hpp"
  117. //#include "DC_15a__GL_rifle.hpp"
  118. //#include "DC_15a__mod0_rifle.hpp"
  119. //#include "DC_15a_rifle.hpp"
  120. };