config.cpp 1.9 KB

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