config.cpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. ACE_overheating_mrbs = 3000000000;
  41. recoil="recoil_mxc";
  42. magazines[]=
  43. {
  44. macro_new_mag(10mw,30)
  45. };
  46. muzzles[]=
  47. {
  48. "this",
  49. "Stun"
  50. };
  51. class Stun: RD501_stun_muzzle
  52. {
  53. displayName="High Energy StunMode";
  54. };
  55. class FullAuto:FullAuto
  56. {
  57. reloadTime=0.08;
  58. dispersion=0.00116;
  59. };
  60. class Single : Single
  61. {
  62. reloadTime=0.08;
  63. dispersion=0.00116;
  64. };
  65. class WeaponSlotsInfo: WeaponSlotsInfo
  66. {
  67. mass = 30;
  68. class CowsSlot: CowsSlot
  69. {
  70. displayName = "Optics Slot";
  71. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  72. iconPinpoint = "Bottom";
  73. iconPosition[] = {0.5,0.35};
  74. iconScale = 0.2;
  75. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  76. scope = 0;
  77. compatibleItems[] =
  78. {
  79. macro_new_weapon(scope,dc_15a_acogtcw)
  80. };
  81. };
  82. class MuzzleSlot: MuzzleSlot
  83. {
  84. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  85. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  86. compatibleItems[]=
  87. {
  88. "RD501_muzzle_flash"
  89. };
  90. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  91. iconPinpoint="Center";
  92. };
  93. class PointerSlot : PointerSlot
  94. {
  95. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  96. displayName = "Pointer Slot";
  97. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  98. };
  99. };
  100. };
  101. };