config.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #define COMPONENT DC_15x
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(dc_15x)
  7. {
  8. author=DANKAUTHORS;
  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(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_new_weapon(DC,r15x)
  38. canShootInWater=1;
  39. JLTS_hasElectronics=0;
  40. magazines[]=
  41. {
  42. macro_new_mag(40mw,5),
  43. macro_new_mag(40mwemp,1)
  44. };
  45. class Single:Single
  46. {
  47. reloadTime=1.5;
  48. dispersion=0.0003;
  49. };
  50. class WeaponSlotsInfo: WeaponSlotsInfo
  51. {
  52. class CowsSlot: CowsSlot
  53. {
  54. compatibleItems[]=
  55. {
  56. "RD501_LRPS"
  57. };
  58. };
  59. class UnderBarrelSlot
  60. {
  61. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  62. compatibleItems[]=
  63. {
  64. "bipod_01_F_blk",
  65. };
  66. };
  67. };
  68. };
  69. };