config.cpp 2.0 KB

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