config.cpp 1.2 KB

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