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 RD501_patch_valken38x
  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_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. 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. };