config.cpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #define COMPONENT Westar
  2. #include "../../RD501_main/config_macros.hpp"
  3. #include "../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class RD501_patch_Westar
  7. {
  8. author=RD501;
  9. addonRootClass = MACRO_QUOTE(RD501_patch_weapons);
  10. requiredAddons[]=
  11. {
  12. RD501_patch_weapons
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. macro_new_weapon(westar,m5),
  18. macro_new_weapon(westar,m5_gl),
  19. macro_new_weapon(westar,35),
  20. macro_new_weapon(westar,rm5)
  21. };
  22. };
  23. };
  24. class cfgWeapons
  25. {
  26. class 3AS_WestarM5_Base_F;
  27. class 3AS_WestarM5_F:3AS_WestarM5_Base_F
  28. {
  29. class Single;
  30. class FullAuto;
  31. class WeaponSlotsInfo;
  32. };
  33. class macro_new_weapon(westar,rm5):3AS_WestarM5_F
  34. {
  35. scope=2;
  36. displayName="Republic Westar M5";
  37. magazines[]=
  38. {
  39. macro_new_mag(10mws,30),
  40. "ACE_HuntIR_M203"
  41. };
  42. modes[] = {"Single","FullAuto"};
  43. class Single:Single
  44. {
  45. reloadTime=0.1;
  46. };
  47. class FullAuto:FullAuto
  48. {
  49. reloadTime=0.1;
  50. };
  51. class WeaponSlotsInfo: WeaponSlotsInfo
  52. {
  53. mass = 30;
  54. class CowsSlot
  55. {
  56. displayName = "Optics Slot";
  57. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  58. iconPinpoint = "Bottom";
  59. iconPosition[] = {0.5,0.35};
  60. iconScale = 0.2;
  61. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  62. scope = 0;
  63. compatibleItems[] =
  64. {
  65. "RD501_RCO",
  66. "RD501_RCO_2",
  67. "RD501_RCO_3",
  68. "RD501_Holosight",
  69. "RD501_Holosight_2",
  70. "RD501_Holosight_3",
  71. "RD501_DMS",
  72. "RD501_DMS_2",
  73. "RD501_DMS_3",
  74. "RD501_DMS_4",
  75. "RD501_MRCO",
  76. "RD501_MRCO_2",
  77. "RD501_MRCO_3",
  78. "3AS_Optic_Scope_WestarM5"
  79. };
  80. };
  81. class MuzzleSlot
  82. {
  83. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  84. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  85. compatibleItems[]=
  86. {
  87. "RD501_muzzle_flash"
  88. };
  89. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  90. iconPinpoint="Center";
  91. };
  92. class PointerSlot
  93. {
  94. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  95. displayName = "Pointer Slot";
  96. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  97. };
  98. };
  99. };
  100. };