config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #define COMPONENT Westar
  2. #include "../../RD501_main/config_macros.hpp"
  3. #include "../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(Westar)
  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(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 Rifle_Long_Base_F;
  27. class SWOP_BlasterRifle_Base :Rifle_Long_Base_F
  28. {
  29. };
  30. class SWOP_WESTARM5_rifle: SWOP_BlasterRifle_Base
  31. {
  32. class OpticsModes;
  33. class Single;
  34. class FullAuto;
  35. };
  36. class SWOP_WESTARM5_GL: SWOP_BlasterRifle_Base
  37. {
  38. class OpticsModes;
  39. class Single;
  40. class FullAuto;
  41. class EGLM;
  42. };
  43. #include "westar_rifle.hpp"
  44. class Pistol_Base_F;
  45. class SWOP_Westar35Pistol: Pistol_Base_F
  46. {
  47. class Single;
  48. };
  49. #include "westar_pistol.hpp"
  50. */
  51. class 3AS_WestarM5_Base_F;
  52. class 3AS_WestarM5_F:3AS_WestarM5_Base_F
  53. {
  54. class Single;
  55. class FullAuto;
  56. class WeaponSlotsInfo;
  57. };
  58. class macro_new_weapon(westar,rm5):3AS_WestarM5_F
  59. {
  60. scope=2;
  61. displayName="Republic Westar M5"
  62. magazines[]=
  63. {
  64. macro_new_mag(10mws,30),
  65. "ACE_HuntIR_M203"
  66. };
  67. modes[] = {"Single","FullAuto"};
  68. class Single:Single
  69. {
  70. reloadTime=0.1;
  71. };
  72. class FullAuto:FullAuto
  73. {
  74. reloadTime=0.1;
  75. };
  76. class WeaponSlotsInfo: WeaponSlotsInfo
  77. {
  78. mass = 30;
  79. class CowsSlot
  80. {
  81. displayName = "Optics Slot";
  82. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  83. iconPinpoint = "Bottom";
  84. iconPosition[] = {0.5,0.35};
  85. iconScale = 0.2;
  86. linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
  87. scope = 0;
  88. compatibleItems[] =
  89. {
  90. "RD501_RCO",
  91. "RD501_RCO_2",
  92. "RD501_RCO_3",
  93. "RD501_Holosight",
  94. "RD501_Holosight_2",
  95. "RD501_Holosight_3",
  96. "RD501_DMS",
  97. "RD501_DMS_2",
  98. "RD501_DMS_3",
  99. "RD501_DMS_4",
  100. "RD501_MRCO",
  101. "RD501_MRCO_2",
  102. "RD501_MRCO_3"
  103. };
  104. };
  105. class MuzzleSlot
  106. {
  107. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  108. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  109. compatibleItems[]=
  110. {
  111. "RD501_muzzle_flash"
  112. };
  113. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  114. iconPinpoint="Center";
  115. };
  116. class PointerSlot
  117. {
  118. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  119. displayName = "Pointer Slot";
  120. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  121. };
  122. };
  123. };
  124. };