config.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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,15gl),
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class RD501_stun_muzzle;
  24. class JLTS_DC15A_ugl;
  25. class JLTS_DC15A_ugl_plastic:JLTS_DC15A_ugl
  26. {
  27. class Single;
  28. class EGLM;
  29. class WeaponSlotsInfo
  30. {
  31. class CowsSlot;
  32. };
  33. };
  34. class macro_new_weapon(DC,15gl):JLTS_DC15A_ugl_plastic
  35. {
  36. displayName="Republic DC-15A UGL";
  37. magazines[]=
  38. {
  39. macro_new_mag(10mw,30)
  40. };
  41. modes[] = {"Single", "Burst"};
  42. muzzles[]=
  43. {
  44. "this",
  45. "Stun"
  46. };
  47. class Stun: RD501_stun_muzzle
  48. {
  49. displayName="High Energy StunMode";
  50. };
  51. class Single:Single
  52. {
  53. reloadTime=0.1;
  54. };
  55. class Burst : Single
  56. {
  57. reloadTime=0.1;
  58. burst=3;
  59. textureType="burst";
  60. };
  61. class EGLM:EGLM
  62. {
  63. magazines[] = {};
  64. magazineWell[] += {macro_new_magwell(GL_Mags)};
  65. };
  66. class WeaponSlotsInfo: WeaponSlotsInfo
  67. {
  68. mass = 30;
  69. class CowsSlot: CowsSlot
  70. {
  71. access = 1;
  72. compatibleItems[] =
  73. {
  74. macro_new_weapon(scope,dc_15a_acogtcw)
  75. };
  76. };
  77. };
  78. };
  79. };