config.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. magazines[]=
  40. {
  41. macro_new_mag(40mw,5),
  42. macro_new_mag(40mwemp,1)
  43. };
  44. class Single:Single
  45. {
  46. reloadTime=1.5;
  47. dispersion=0.0003;
  48. };
  49. class WeaponSlotsInfo: WeaponSlotsInfo
  50. {
  51. class CowsSlot: CowsSlot
  52. {
  53. compatibleItems[]=
  54. {
  55. "RD501_LRPS"
  56. };
  57. };
  58. class UnderBarrelSlot
  59. {
  60. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  61. compatibleItems[]=
  62. {
  63. "bipod_01_F_blk",
  64. };
  65. };
  66. };
  67. };
  68. };