config.cpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #define COMPONENT DC_15gl
  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,15gl),
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class RD501_stun_muzzle;
  24. class JLTS_DC15A_ugl;
  25. class JLTS_DC15A_ugl_plastic:JLTS_DC15A_ugl
  26. {
  27. class Single;
  28. class EGLM;
  29. class WeaponSlotsInfo
  30. {
  31. class CowsSlot;
  32. class PointerSlot;
  33. class MuzzleSlot;
  34. };
  35. };
  36. class macro_new_weapon(DC,15gl):JLTS_DC15A_ugl_plastic
  37. {
  38. displayName="Republic DC-15A UGL";
  39. JLTS_hasElectronics=0;
  40. magazines[]=
  41. {
  42. macro_new_mag(10mw,30)
  43. };
  44. modes[] = {"Single", "Burst"};
  45. muzzles[]=
  46. {
  47. "this",
  48. "Stun",
  49. "EGLM"
  50. };
  51. class Stun: RD501_stun_muzzle
  52. {
  53. displayName="High Energy StunMode";
  54. };
  55. class Single:Single
  56. {
  57. reloadTime=0.1;
  58. };
  59. class Burst : Single
  60. {
  61. reloadTime=0.1;
  62. burst=3;
  63. textureType="burst";
  64. };
  65. class EGLM:EGLM
  66. {
  67. magazines[] = {};
  68. magazineWell[] += {macro_new_magwell(GL_Mags)};
  69. };
  70. class WeaponSlotsInfo: WeaponSlotsInfo
  71. {
  72. mass = 30;
  73. class CowsSlot: CowsSlot
  74. {
  75. displayName = "Optics Slot";
  76. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  77. iconPinpoint = "Bottom";
  78. iconPosition[] = {0.5,0.35};
  79. iconScale = 0.2;
  80. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  81. scope = 0;
  82. compatibleItems[] =
  83. {
  84. macro_new_weapon(scope,dc_15a_acog),
  85. "RD501_MRCO"
  86. };
  87. };
  88. class MuzzleSlot: MuzzleSlot
  89. {
  90. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  91. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  92. compatibleItems[]=
  93. {
  94. "RD501_muzzle_flash"
  95. };
  96. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  97. iconPinpoint="Center";
  98. };
  99. class PointerSlot : PointerSlot
  100. {
  101. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  102. displayName = "Pointer Slot";
  103. compatibleItems[] = {"acc_flashlight","acc_pointer_IR","ace_acc_pointer_green"};
  104. };
  105. };
  106. };
  107. };