config.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #define COMPONENT DC_15x
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class RD501_patch_dc_15x
  7. {
  8. author=DANKAUTHORS;
  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(DC,15x),
  18. macro_new_weapon(DC,r15x)
  19. };
  20. };
  21. };
  22. class cfgWeapons
  23. {
  24. class arifle_MX_Base_F;
  25. class JLTS_DC15X: arifle_MX_Base_F
  26. {
  27. class Single;
  28. class WeaponSlotsInfo
  29. {
  30. class CowsSlot;
  31. };
  32. };
  33. class macro_new_weapon(DC,r15x):JLTS_DC15X
  34. {
  35. displayName="Republic DC-15X";
  36. descriptionShort = "DC-15X Scope (12-20x)";
  37. baseWeapon=MACRO_QUOTE(macro_new_weapon(DC,r15x));
  38. canShootInWater=1;
  39. ace_overheating_allowSwapBarrel = 1;
  40. JLTS_hasElectronics=0;
  41. magazines[]=
  42. {
  43. macro_new_mag(40mw,5),
  44. macro_new_mag(40mwemp,1)
  45. };
  46. class Single:Single
  47. {
  48. reloadTime=1.5;
  49. dispersion=0.0003;
  50. };
  51. class WeaponSlotsInfo: WeaponSlotsInfo
  52. {
  53. class CowsSlot: CowsSlot
  54. {
  55. compatibleItems[]=
  56. {
  57. "RD501_LRPS"
  58. };
  59. };
  60. class UnderBarrelSlot
  61. {
  62. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  63. compatibleItems[]=
  64. {
  65. "bipod_01_F_blk",
  66. };
  67. };
  68. };
  69. };
  70. };