config.cpp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. };
  20. };
  21. };
  22. class cfgWeapons
  23. {
  24. class SWOP_B2gun;
  25. class Rifle_Long_Base_F;
  26. class SWOP_BlasterRifle_Base:Rifle_Long_Base_F
  27. {
  28. class WeaponSlotsInfo;
  29. };
  30. class SWOP_DC15: SWOP_BlasterRifle_Base
  31. {
  32. class Single;
  33. class Burst;
  34. class FullAuto;
  35. class WeaponSlotsInfo: WeaponSlotsInfo
  36. {
  37. class CowsSlot;
  38. };
  39. };
  40. class macro_new_weapon(DC,15s):SWOP_DC15
  41. {
  42. DC_Family_Flashlight
  43. displayName="DC-15s Carbine";
  44. scope=2;
  45. scopeArsenal=2;
  46. weaponPoolAvailable = 1;
  47. dlc = "RD501";
  48. author= "RD501";
  49. baseWeapon = macro_new_weapon(DC,15s);
  50. magazines[]={macro_new_mag(DC15s,60),macro_new_mag(DC15_underwater,40)};
  51. ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
  52. ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
  53. ACE_Overheating_JamChance = DC15a_Overheat_JamChance
  54. ACE_overheating_mrbs = DC15a_Overheat_mrbs
  55. ACE_overheating_allowSwapBarrel = 1;
  56. ACE_clearJamAction = "ReloadMagazine";
  57. modes[] = {"Single","FullAuto", "close", "short", "medium"};
  58. class FullAuto:FullAuto
  59. {
  60. reloadTime = DC15s_reloadtime_full
  61. dispersion = DC15s_accuracy
  62. };
  63. class Single:Single
  64. {
  65. reloadTime = DC15s_reloadtime_full*2;
  66. dispersion = DC15s_accuracy*0.8;
  67. };
  68. class WeaponSlotsInfo: WeaponSlotsInfo
  69. {
  70. mass = 30;
  71. class CowsSlot: CowsSlot
  72. {
  73. access = 1;
  74. compatibleItems[] =
  75. {
  76. macro_new_weapon(scope,dc_15a_acog)
  77. };
  78. };
  79. };
  80. };
  81. class Pistol;
  82. class Pistol_Base_F:Pistol
  83. {
  84. class WeaponSlotsInfo;
  85. };
  86. class SWOP_DC15_sh: Pistol_Base_F
  87. {
  88. class FullAuto;
  89. class WeaponSlotsInfo: WeaponSlotsInfo
  90. {
  91. class CowsSlot;
  92. }
  93. };
  94. class macro_new_weapon(DC,15s_shield):SWOP_DC15_sh
  95. {
  96. DC_Family_Flashlight
  97. weaponPoolAvailable = 1;
  98. displayName="DC-15s Carbine Shield";
  99. scope=2;
  100. scopeArsenal=2;
  101. canShootInWater = 1;
  102. magazines[]={macro_new_mag(DC15s,60)};
  103. dlc = "RD501";
  104. author= "RD501";
  105. baseWeapon = macro_new_weapon(DC,15s_shield);
  106. ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
  107. ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
  108. ACE_Overheating_JamChance = DC15a_Overheat_JamChance
  109. ACE_overheating_mrbs = DC15a_Overheat_mrbs
  110. ACE_overheating_allowSwapBarrel = 1;
  111. ACE_clearJamAction = "ReloadMagazine";
  112. modes[] = {"FullAuto", "close", "short", "medium"};
  113. class FullAuto:FullAuto
  114. {
  115. reloadTime = DC15s_reloadtime_full
  116. dispersion = DC15s_accuracy
  117. };
  118. class WeaponSlotsInfo: WeaponSlotsInfo
  119. {
  120. mass = 30;
  121. class CowsSlot: CowsSlot
  122. {
  123. access = 1;
  124. compatibleItems[] =
  125. {
  126. macro_new_weapon(scope,dc_15a_acog)
  127. };
  128. };
  129. };
  130. };
  131. class macro_new_weapon(DC,15s_shield_212):macro_new_weapon(DC,15s_shield)
  132. {
  133. displayname = "DC-15s Carbine Shield (212th Battalion)";
  134. hiddenSelections[] = {"Camo"};
  135. hiddenSelectionsTextures[] = {"\SW_CloneWarsWeapons\DCrifles\textures\sh212.paa"};
  136. baseWeapon = macro_new_weapon(DC,15s_shield_212);
  137. };
  138. class macro_new_weapon(DC,15s_shield_cg):macro_new_weapon(DC,15s_shield)
  139. {
  140. displayname = "DC-15s Carbine Shield (Corusant Guard)";
  141. hiddenSelections[] = {"Camo"};
  142. hiddenSelectionsTextures[] = {"\SW_CloneWarsWeapons\DCrifles\textures\shCG.paa"};
  143. baseWeapon = macro_new_weapon(DC,15s_shield_cg);
  144. };
  145. };