config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. #define COMPONENT DC_15a
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(dc_15a)
  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,15a_base),
  18. macro_new_weapon(DC,15a),
  19. macro_new_weapon(DC,15a_gl_rifle),
  20. macro_new_weapon(DC,15a_LE),
  21. macro_new_weapon(DC,15a_mod_0_rifle),
  22. macro_new_weapon(DC,r15a)
  23. };
  24. };
  25. };
  26. class cfgWeapons
  27. {
  28. class Rifle_Long_Base_F;
  29. class SWOP_BlasterRifle_Base:Rifle_Long_Base_F
  30. {
  31. class WeaponSlotsInfo;
  32. };
  33. class SWOP_DC15ABlasterRifle:SWOP_BlasterRifle_Base
  34. {
  35. class FlashLight;
  36. class Single;
  37. class Burst;
  38. class FullAuto;
  39. class Secondary;
  40. class WeaponSlotsInfo: WeaponSlotsInfo
  41. {
  42. class CowsSlot;
  43. };
  44. };
  45. class SWOP_DC15ABlasterRifle_mod0:SWOP_DC15ABlasterRifle
  46. {
  47. class FullAuto:FullAuto
  48. {
  49. };
  50. class WeaponSlotsInfo: WeaponSlotsInfo
  51. {
  52. class CowsSlot;
  53. };
  54. };
  55. class SWOP_DC15AGL:SWOP_DC15ABlasterRifle
  56. {
  57. class Single:Single
  58. {
  59. };
  60. class Burst:Burst
  61. {
  62. };
  63. class FullAuto:FullAuto
  64. {
  65. };
  66. class EGLM;
  67. class WeaponSlotsInfo: WeaponSlotsInfo
  68. {
  69. class CowsSlot;
  70. };
  71. };
  72. class SWOP_DC15ABlasterRifle_mod1: SWOP_DC15ABlasterRifle
  73. {
  74. class Single:Single
  75. {
  76. };
  77. class WeaponSlotsInfo: WeaponSlotsInfo
  78. {
  79. class CowsSlot;
  80. };
  81. }
  82. class 3AS_DC15A_Base_F;
  83. class RD501_stun_muzzle;
  84. class 3AS_DC15A_F:3AS_DC15A_Base_F
  85. {
  86. class Single;
  87. class Burst;
  88. class WeaponSlotsInfo
  89. {
  90. class CowsSlot;
  91. };
  92. };
  93. class macro_new_weapon(DC,r15a):3AS_DC15A_F
  94. {
  95. displayName="Republic DC-15A";
  96. reloadTime=0.1;
  97. magazines[]=
  98. {
  99. macro_new_mag(20mwup,20),
  100. macro_new_mag(20mwdp,20)
  101. };
  102. muzzles[]=
  103. {
  104. "this",
  105. "Stun"
  106. };
  107. class Stun: RD501_stun_muzzle
  108. {
  109. displayName="High Energy StunMode";
  110. };
  111. class Single:Single
  112. {
  113. reloadTime=0.1;
  114. };
  115. class Burst:Burst
  116. {
  117. reloadTime=0.1;
  118. };
  119. class WeaponSlotsInfo: WeaponSlotsInfo
  120. {
  121. mass = 30;
  122. class CowsSlot: CowsSlot
  123. {
  124. access = 1;
  125. compatibleItems[] =
  126. {
  127. macro_new_weapon(scope,dc_r15a_acog)
  128. };
  129. };
  130. };
  131. };
  132. #include "DC_15a__LE_rifle.hpp"
  133. #include "DC_15a__GL_rifle.hpp"
  134. #include "DC_15a__mod0_rifle.hpp"
  135. #include "DC_15a_rifle.hpp"
  136. };