config.cpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. magazines[]=
  36. {
  37. macro_new_mag(20mwdp,20),
  38. macro_new_mag(30mw,10)
  39. };
  40. class Single : Single
  41. {
  42. reloadTime=0.24;
  43. dispersion=0.00045;
  44. };
  45. class WeaponSlotsInfo: WeaponSlotsInfo
  46. {
  47. mass = 80;
  48. class CowsSlot
  49. {
  50. displayName = "Optics Slot";
  51. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  52. iconPinpoint = "Bottom";
  53. iconPosition[] = {0.5,0.35};
  54. iconScale = 0.2;
  55. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  56. scope = 0;
  57. access=1;
  58. compatibleItems[] =
  59. {
  60. "RD501_RCO",
  61. "RD501_RCO_2",
  62. "RD501_RCO_3",
  63. "RD501_Holosight",
  64. "RD501_Holosight_2",
  65. "RD501_Holosight_3",
  66. "RD501_DMS",
  67. "RD501_DMS_2",
  68. "RD501_DMS_3",
  69. "RD501_DMS_4",
  70. "RD501_MRCO",
  71. "RD501_MRCO_2",
  72. "RD501_MRCO_3"
  73. };
  74. };
  75. class MuzzleSlot
  76. {
  77. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  78. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  79. compatibleItems[]=
  80. {
  81. "RD501_muzzle_flash",
  82. "RD501_acc_particle_condenser",
  83. "RD501_acc_particle_accelerator"
  84. };
  85. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  86. iconPinpoint="Center";
  87. };
  88. };
  89. };
  90. };