config.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_15c)
  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,15c),
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class RD501_stun_muzzle;
  24. class 3AS_DC15C_Base_F;
  25. class 3AS_DC15C_F:3AS_DC15C_Base_F
  26. {
  27. class FullAuto;
  28. class Single;
  29. class WeaponSlotsInfo
  30. {
  31. class CowsSlot;
  32. };
  33. };
  34. class macro_new_weapon(DC,15c):3AS_DC15C_F
  35. {
  36. displayName="Republic DC-15C";
  37. magazines[]=
  38. {
  39. macro_new_mag(10mw,30)
  40. };
  41. muzzles[]=
  42. {
  43. "this",
  44. "Stun"
  45. };
  46. class Stun: RD501_stun_muzzle
  47. {
  48. displayName="High Energy StunMode";
  49. };
  50. class FullAuto:FullAuto
  51. {
  52. reloadTime=0.08;
  53. };
  54. class Single : Single
  55. {
  56. reloadTime=0.08;
  57. };
  58. class WeaponSlotsInfo: WeaponSlotsInfo
  59. {
  60. mass = 30;
  61. class CowsSlot: CowsSlot
  62. {
  63. access = 1;
  64. compatibleItems[] =
  65. {
  66. macro_new_weapon(scope,dc_15a_acogtcw)
  67. };
  68. };
  69. };
  70. };
  71. };