config.cpp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. #include "../../RD501_main/config_macros.hpp"
  2. #include "../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class RD501_patch_drexl
  6. {
  7. author="RD501";
  8. addonRootClass="RD501_patch_weapons";
  9. requiredAddons[]=
  10. {
  11. "RD501_patch_weapons"
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]=
  16. {
  17. macro_new_weapon_nofam(drexl)
  18. };
  19. };
  20. };
  21. class Mode_SemiAuto;
  22. class Mode_FullAuto;
  23. class CowsSlot;
  24. class MuzzleSlot;
  25. class PointerSlot;
  26. class CfgWeapons
  27. {
  28. class Rifle;
  29. class Rifle_Base_F: Rifle
  30. {
  31. class WeaponSlotsInfo;
  32. };
  33. class macro_new_weapon_nofam(drexl): Rifle_Base_F
  34. {
  35. ACE_Overheating_JamChance = 0;
  36. ACE_overheating_mrbs = 3e+009;
  37. selectionFireAnim="zasleh";
  38. flash="gunfire";
  39. author="RD501";
  40. scope=2;
  41. model="101st_Aux_Mod\Addons\DBA_Weapons\Boma\Boma_Shotgun.p3d";
  42. picture="101st_Aux_Mod\Addons\DBA_Weapons\effects\icons\Boma_CA.paa";
  43. handAnim[] = {"OFP2_ManSkeleton","\A3\Weapons_F_beta\Rifles\MK20\Data\Anim\mk20G.rtm"};
  44. magazines[] =
  45. {
  46. macro_new_mag(shotgun_scatter,12),
  47. macro_new_mag(shotgun_HE,12),
  48. macro_new_mag(shotgun_EMP,2),
  49. macro_new_mag(shotgun_slug,15)
  50. };
  51. reloadAction = "ReloadMagazine";
  52. displayName = "Republic SX17 Drexl";
  53. descriptionShort = "Republic Automatic shotgun";
  54. soundBullet[]={""};
  55. modes[]=
  56. {
  57. "Single",
  58. "FullAuto"
  59. };
  60. simulation = "Weapon";
  61. fireLightDuration=0.050000001;
  62. fireLightIntensity=0.2;
  63. fireLightDiffuse[] = {0,1,0};
  64. fireLightAmbient[] = {0,1,0};
  65. class Single: Mode_SemiAuto
  66. {
  67. sounds[]=
  68. {
  69. "StandardSound"
  70. };
  71. class StandardSound
  72. {
  73. soundSetShot[] = {"Msbs65_01_Shotgun_Shot_SoundSet","Msbs65_01_Shotgun_Tail_SoundSet"};
  74. };
  75. recoil = "recoil_MSBS65_ubs";
  76. recoilProne = "assaultRifleBase";
  77. reloadTime = 0.35;
  78. dispersion = "5*0.00087";
  79. minRange = 2;
  80. minRangeProbab = 0.5;
  81. midRange = 400;
  82. midRangeProbab = 0.7;
  83. maxRange = 800;
  84. maxRangeProbab = 0.3;
  85. };
  86. class FullAuto: Mode_FullAuto
  87. {
  88. sounds[]=
  89. {
  90. "StandardSound"
  91. };
  92. class StandardSound
  93. {
  94. soundSetShot[] = {"Msbs65_01_Shotgun_Shot_SoundSet","Msbs65_01_Shotgun_Tail_SoundSet"};
  95. };
  96. recoil = "recoil_MSBS65_ubs";
  97. recoilProne = "assaultRifleBase";
  98. reloadTime = 0.275;
  99. dispersion = "5*0.00087";
  100. minRange = 2;
  101. minRangeProbab = 0.5;
  102. midRange = 400;
  103. midRangeProbab = 0.7;
  104. maxRange = 800;
  105. maxRangeProbab = 0.3;
  106. aiRateOfFire=2;
  107. aiRateOfFireDistance=500;
  108. };
  109. inertia = 1.4;
  110. dexterity=1.7;
  111. initSpeed=300;
  112. maxRecoilSway=0.0125;
  113. reloadMagazineSound[] = {"A3\Sounds_F_Enoch\Assets\Arsenal\Msbs65_01\Shotgun\Msbs65_Shotgun_Reload_01",3.98107,1,10};
  114. class ItemInfo
  115. {
  116. priority=1;
  117. };
  118. class WeaponSlotsInfo: WeaponSlotsInfo
  119. {
  120. mass=100;
  121. class MuzzleSlot: MuzzleSlot
  122. {
  123. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  124. iconPosition[]={0,0.44999999};
  125. iconScale=0.2;
  126. };
  127. class CowsSlot: CowsSlot
  128. {
  129. iconPosition[]={0.5,0.34999999};
  130. iconScale=0.2;
  131. compatibleItems[] =
  132. {
  133. "RD501_Holosight",
  134. "RD501_Holosight_2",
  135. "RD501_Holosight_3"
  136. };
  137. };
  138. class PointerSlot: PointerSlot
  139. {
  140. iconPosition[]={0.2,0.44999999};
  141. iconScale=0.25;
  142. };
  143. };
  144. /*class WeaponSlotsInfo
  145. {
  146. mass = 30;
  147. class CowsSlot
  148. {
  149. displayName = "Optics Slot";
  150. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  151. iconPinpoint = "Bottom";
  152. iconPosition[] = {0.5,0.35};
  153. iconScale = 0.2;
  154. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  155. scope = 0;
  156. compatibleItems[] =
  157. {
  158. "RD501_Holosight",
  159. "RD501_Holosight_2",
  160. "RD501_Holosight_3"
  161. };
  162. };
  163. };*/
  164. };
  165. };