config.cpp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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_15s)
  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,15s),
  18. macro_new_weapon(DC,15s_shield),
  19. macro_new_weapon(DC,r15s)
  20. };
  21. };
  22. };
  23. class cfgWeapons
  24. {
  25. class SWOP_B2gun;
  26. class Rifle_Long_Base_F;
  27. class SWOP_BlasterRifle_Base:Rifle_Long_Base_F
  28. {
  29. class WeaponSlotsInfo;
  30. };
  31. class SWOP_DC15: SWOP_BlasterRifle_Base
  32. {
  33. class Single;
  34. class Burst;
  35. class FullAuto;
  36. class WeaponSlotsInfo: WeaponSlotsInfo
  37. {
  38. class CowsSlot;
  39. };
  40. };
  41. class macro_new_weapon(DC,15s):SWOP_DC15
  42. {
  43. DC_Family_Flashlight
  44. displayName="DC-15s Carbine";
  45. scope=2;
  46. scopeArsenal=2;
  47. weaponPoolAvailable = 1;
  48. dlc = "RD501";
  49. author= "RD501";
  50. baseWeapon = macro_new_weapon(DC,15s);
  51. magazines[]={macro_new_mag(DC15s,60),macro_new_mag(DC15_underwater,40)};
  52. ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
  53. ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
  54. ACE_Overheating_JamChance = DC15a_Overheat_JamChance
  55. ACE_overheating_mrbs = DC15a_Overheat_mrbs
  56. ACE_overheating_allowSwapBarrel = 1;
  57. ACE_clearJamAction = "ReloadMagazine";
  58. modes[] = {"Single","FullAuto", "close", "short", "medium"};
  59. class FullAuto:FullAuto
  60. {
  61. reloadTime = DC15s_reloadtime_full
  62. dispersion = DC15s_accuracy
  63. };
  64. class Single:Single
  65. {
  66. reloadTime = DC15s_reloadtime_full*2;
  67. dispersion = DC15s_accuracy*0.8;
  68. };
  69. class WeaponSlotsInfo: WeaponSlotsInfo
  70. {
  71. mass = 30;
  72. class CowsSlot: CowsSlot
  73. {
  74. access = 1;
  75. compatibleItems[] =
  76. {
  77. macro_new_weapon(scope,dc_15a_acog)
  78. };
  79. };
  80. };
  81. };
  82. class Pistol;
  83. class Pistol_Base_F:Pistol
  84. {
  85. class WeaponSlotsInfo;
  86. };
  87. class SWOP_DC15_sh: Pistol_Base_F
  88. {
  89. class FullAuto;
  90. class WeaponSlotsInfo: WeaponSlotsInfo
  91. {
  92. class CowsSlot;
  93. }
  94. };
  95. class macro_new_weapon(DC,15s_shield):SWOP_DC15_sh
  96. {
  97. DC_Family_Flashlight
  98. weaponPoolAvailable = 1;
  99. displayName="DC-15s Carbine Shield";
  100. scope=2;
  101. scopeArsenal=2;
  102. canShootInWater = 1;
  103. magazines[]={macro_new_mag(DC15s,60)};
  104. dlc = "RD501";
  105. author= "RD501";
  106. baseWeapon = macro_new_weapon(DC,15s_shield);
  107. ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
  108. ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
  109. ACE_Overheating_JamChance = DC15a_Overheat_JamChance
  110. ACE_overheating_mrbs = DC15a_Overheat_mrbs
  111. ACE_overheating_allowSwapBarrel = 1;
  112. ACE_clearJamAction = "ReloadMagazine";
  113. modes[] = {"FullAuto", "close", "short", "medium"};
  114. class FullAuto:FullAuto
  115. {
  116. reloadTime = DC15s_reloadtime_full
  117. dispersion = DC15s_accuracy
  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_15a_acog)
  128. };
  129. };
  130. };
  131. };
  132. class macro_new_weapon(DC,15s_shield_212):macro_new_weapon(DC,15s_shield)
  133. {
  134. displayname = "DC-15s Carbine Shield (212th Battalion)";
  135. hiddenSelections[] = {"Camo"};
  136. hiddenSelectionsTextures[] = {"\SW_CloneWarsWeapons\DCrifles\textures\sh212.paa"};
  137. baseWeapon = macro_new_weapon(DC,15s_shield_212);
  138. };
  139. class macro_new_weapon(DC,15s_shield_cg):macro_new_weapon(DC,15s_shield)
  140. {
  141. displayname = "DC-15s Carbine Shield (Corusant Guard)";
  142. hiddenSelections[] = {"Camo"};
  143. hiddenSelectionsTextures[] = {"\SW_CloneWarsWeapons\DCrifles\textures\shCG.paa"};
  144. baseWeapon = macro_new_weapon(DC,15s_shield_cg);
  145. };
  146. class RD501_stun_muzzle;
  147. class 3AS_DC15S_Base_F;
  148. class 3AS_DC15S_F:3AS_DC15S_Base_F
  149. {
  150. class Single;
  151. class FullAuto;
  152. };
  153. class macro_new_weapon(DC,r15s):3AS_DC15S_F
  154. {
  155. displayName="Republic DC-15S";
  156. reloadTime=0.66;
  157. magazines[]=
  158. {
  159. macro_new_mag(5mw,60)
  160. };
  161. muzzles[]=
  162. {
  163. "this",
  164. "Stun"
  165. };
  166. class Stun: RD501_stun_muzzle
  167. {
  168. displayName="High Energy StunMode";
  169. };
  170. class Single:Single
  171. {
  172. reloadTime=0.066;
  173. };
  174. class FullAuto:FullAuto
  175. {
  176. reloadTime=0.066;
  177. };
  178. };
  179. };
  180. };