config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. canShootInWater=1;
  43. magazines[]=
  44. {
  45. macro_new_mag(20mwup,20),
  46. macro_new_mag(20mwdp,20)
  47. };
  48. muzzles[]=
  49. {
  50. "this",
  51. "Stun"
  52. };
  53. class Stun: RD501_stun_muzzle
  54. {
  55. displayName="High Energy StunMode";
  56. };
  57. class Single:Single
  58. {
  59. reloadTime=0.1;
  60. dispersion=0.0006;
  61. };
  62. class Burst:Burst
  63. {
  64. reloadTime=0.1;
  65. dispersion=0.0006;
  66. };
  67. class WeaponSlotsInfo: WeaponSlotsInfo
  68. {
  69. mass = 30;
  70. class CowsSlot
  71. {
  72. displayName = "Optics Slot";
  73. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  74. iconPinpoint = "Bottom";
  75. iconPosition[] = {0.5,0.35};
  76. iconScale = 0.2;
  77. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  78. scope = 0;
  79. compatibleItems[] =
  80. {
  81. "RD501_RCO",
  82. "RD501_RCO_2",
  83. "RD501_RCO_3",
  84. "RD501_Holosight",
  85. "RD501_Holosight_2",
  86. "RD501_Holosight_3",
  87. "RD501_DMS",
  88. "RD501_DMS_2",
  89. "RD501_DMS_3",
  90. "RD501_DMS_4",
  91. "RD501_MRCO",
  92. "RD501_MRCO_2",
  93. "RD501_MRCO_3"
  94. };
  95. };
  96. class MuzzleSlot
  97. {
  98. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  99. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  100. compatibleItems[]=
  101. {
  102. "RD501_muzzle_flash",
  103. "RD501_acc_particle_condenser",
  104. "RD501_acc_particle_accelerator"
  105. };
  106. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  107. iconPinpoint="Center";
  108. };
  109. class PointerSlot
  110. {
  111. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  112. displayName = "Pointer Slot";
  113. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  114. };
  115. };
  116. };
  117. };