config.cpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #define COMPONENT DC_15s
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(dc_15c)
  7. {
  8. author="RD501";
  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,15c),
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class RD501_stun_muzzle;
  24. class 3AS_DC15C_Base_F;
  25. class 3AS_DC15C_F:3AS_DC15C_Base_F
  26. {
  27. class FullAuto;
  28. class Single;
  29. class WeaponSlotsInfo
  30. {
  31. class CowsSlot;
  32. class MuzzleSlot;
  33. class PointerSlot;
  34. };
  35. };
  36. class macro_new_weapon(DC,15c):3AS_DC15C_F
  37. {
  38. displayName="Republic DC-15C";
  39. dispersion=0.00116;
  40. magazines[]=
  41. {
  42. macro_new_mag(10mw,30)
  43. };
  44. muzzles[]=
  45. {
  46. "this",
  47. "Stun"
  48. };
  49. class Stun: RD501_stun_muzzle
  50. {
  51. displayName="High Energy StunMode";
  52. };
  53. class FullAuto:FullAuto
  54. {
  55. reloadTime=0.08;
  56. dispersion=0.00116;
  57. };
  58. class Single : Single
  59. {
  60. reloadTime=0.08;
  61. dispersion=0.00116;
  62. };
  63. class WeaponSlotsInfo: WeaponSlotsInfo
  64. {
  65. mass = 30;
  66. class CowsSlot: CowsSlot
  67. {
  68. displayName = "Optics Slot";
  69. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  70. iconPinpoint = "Bottom";
  71. iconPosition[] = {0.5,0.35};
  72. iconScale = 0.2;
  73. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  74. scope = 0;
  75. compatibleItems[] =
  76. {
  77. macro_new_weapon(scope,dc_15a_acogtcw)
  78. };
  79. };
  80. class MuzzleSlot: MuzzleSlot
  81. {
  82. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  83. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  84. compatibleItems[]=
  85. {
  86. "RD501_muzzle_flash"
  87. };
  88. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  89. iconPinpoint="Center";
  90. };
  91. class PointerSlot : PointerSlot
  92. {
  93. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  94. displayName = "Pointer Slot";
  95. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  96. };
  97. };
  98. };
  99. };