1
0

config.cpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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(valken38x)
  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_nofam(valken38x),
  18. macro_new_weapon_nofam(valken38y)
  19. };
  20. };
  21. };
  22. class CfgWeapons
  23. {
  24. class 3AS_Valken38X_Base_F;
  25. class 3AS_Valken38X_F:3AS_Valken38X_Base_F
  26. {
  27. class Single;
  28. class WeaponSlotsInfo;
  29. };
  30. class macro_new_weapon_nofam(valken38x):3AS_Valken38X_F
  31. {
  32. displayName="Republic Valken 38X";
  33. dispersion=0.00045;
  34. ACE_Overheating_JamChance = 0;
  35. ace_overheating_allowSwapBarrel = 1;
  36. canShootInWater=1;
  37. weaponInfoType="RscOpticsRangeFinderNLAW";
  38. magazines[]=
  39. {
  40. macro_new_mag(20mwdp,20),
  41. macro_new_mag(30mw,10)
  42. };
  43. class Single : Single
  44. {
  45. reloadTime=0.2;
  46. dispersion=0.00045;
  47. };
  48. class WeaponSlotsInfo: WeaponSlotsInfo
  49. {
  50. mass = 80;
  51. class CowsSlot
  52. {
  53. displayName = "Optics Slot";
  54. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  55. iconPinpoint = "Bottom";
  56. iconPosition[] = {0.5,0.35};
  57. iconScale = 0.2;
  58. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  59. scope = 0;
  60. access=1;
  61. compatibleItems[] =
  62. {
  63. "RD501_RCO",
  64. "RD501_RCO_2",
  65. "RD501_RCO_3",
  66. "RD501_Holosight",
  67. "RD501_Holosight_2",
  68. "RD501_Holosight_3",
  69. "RD501_DMS_TI",
  70. "RD501_DMS_2_TI",
  71. "RD501_DMS_3_TI",
  72. "RD501_DMS_4_TI",
  73. "RD501_MRCO",
  74. "RD501_MRCO_2",
  75. "RD501_MRCO_3"
  76. };
  77. };
  78. class MuzzleSlot
  79. {
  80. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  81. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  82. compatibleItems[]=
  83. {
  84. "RD501_muzzle_flash",
  85. "RD501_acc_particle_condenser",
  86. "RD501_acc_particle_accelerator"
  87. };
  88. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  89. iconPinpoint="Center";
  90. };
  91. };
  92. };
  93. };