config.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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(dc_15l)
  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(DC,15l),
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class 3AS_DC15L_Base_F;
  24. class 3AS_DC15L_F:3AS_DC15L_Base_F
  25. {
  26. class FullAuto;
  27. class Single;
  28. class WeaponSlotsInfo
  29. {
  30. class CowsSlot;
  31. };
  32. };
  33. class macro_new_weapon(DC,15l):3AS_DC15L_F
  34. {
  35. displayName="Republic DC-15L";
  36. recoil="recoil_mk200";
  37. magazines[]=
  38. {
  39. macro_new_mag(20mw,240)
  40. };
  41. class FullAuto:FullAuto
  42. {
  43. reloadTime=0.08;
  44. };
  45. class Single : Single
  46. {
  47. reloadTime=0.08;
  48. };
  49. class WeaponSlotsInfo: WeaponSlotsInfo
  50. {
  51. mass = 30;
  52. class CowsSlot: CowsSlot
  53. {
  54. access = 1;
  55. compatibleItems[] =
  56. {
  57. macro_new_weapon(scope,dc_15a_acogtcw)
  58. };
  59. };
  60. };
  61. };
  62. };