config.cpp 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. class MuzzleSlot;
  92. class PointerSlot;
  93. };
  94. };
  95. class macro_new_weapon(DC,r15a):3AS_DC15A_F
  96. {
  97. displayName="Republic DC-15A";
  98. reloadTime=0.1;
  99. ACE_overheating_mrbs = 3000000000;
  100. recoil="recoil_mx";
  101. magazines[]=
  102. {
  103. macro_new_mag(20mwup,20),
  104. macro_new_mag(20mwdp,20)
  105. };
  106. muzzles[]=
  107. {
  108. "this",
  109. "Stun"
  110. };
  111. class Stun: RD501_stun_muzzle
  112. {
  113. displayName="High Energy StunMode";
  114. };
  115. class Single:Single
  116. {
  117. reloadTime=0.1;
  118. dispersion=0.0006;
  119. };
  120. class Burst:Burst
  121. {
  122. reloadTime=0.1;
  123. dispersion=0.0006;
  124. };
  125. class WeaponSlotsInfo: WeaponSlotsInfo
  126. {
  127. mass = 30;
  128. class CowsSlot: CowsSlot
  129. {
  130. access = 1;
  131. compatibleItems[] =
  132. {
  133. macro_new_weapon(scope,dc_r15a_acog)
  134. };
  135. };
  136. class MuzzleSlot: MuzzleSlot
  137. {
  138. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  139. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  140. compatibleItems[]=
  141. {
  142. "RD501_muzzle_flash"
  143. };
  144. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  145. iconPinpoint="Center";
  146. };
  147. class PointerSlot : PointerSlot
  148. {
  149. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  150. displayName = "Pointer Slot";
  151. compatibleItems[] = {"acc_flashlight","acc_pointer_IR"};
  152. };
  153. };
  154. };
  155. //#include "DC_15a__LE_rifle.hpp"
  156. //#include "DC_15a__GL_rifle.hpp"
  157. //#include "DC_15a__mod0_rifle.hpp"
  158. //#include "DC_15a_rifle.hpp"
  159. };