config.cpp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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 JLTS_DP23;
  34. class macro_new_weapon_nofam(drexl): Rifle_Base_F
  35. {
  36. ACE_Overheating_JamChance = 0;
  37. ACE_overheating_mrbs = 3e+009;
  38. selectionFireAnim="zasleh";
  39. flash="gunfire";
  40. author="RD501";
  41. scope=2;
  42. model="RD501_weapons\Drexi\Drexl.p3d";
  43. picture="101st_Aux_Mod\Addons\DBA_Weapons\effects\icons\Boma_CA.paa";
  44. handAnim[] = {"OFP2_ManSkeleton","\A3\Weapons_F_beta\Rifles\MK20\Data\Anim\mk20G.rtm"};
  45. magazines[] =
  46. {
  47. macro_new_mag(shotgun_scatter,12),
  48. macro_new_mag(shotgun_HE,12),
  49. macro_new_mag(shotgun_EMP,2),
  50. macro_new_mag(shotgun_slug,15)
  51. };
  52. reloadAction = "ReloadMagazine";
  53. displayName = "Republic SX17 Drexl";
  54. descriptionShort = "Republic Automatic shotgun";
  55. soundBullet[]={""};
  56. modes[]=
  57. {
  58. "Single",
  59. "FullAuto"
  60. };
  61. simulation = "Weapon";
  62. fireLightDuration=0.050000001;
  63. fireLightIntensity=0.2;
  64. fireLightDiffuse[] = {0,1,0};
  65. fireLightAmbient[] = {0,1,0};
  66. class Single: Mode_SemiAuto
  67. {
  68. sounds[]=
  69. {
  70. "StandardSound"
  71. };
  72. class StandardSound
  73. {
  74. soundSetShot[] = {"Msbs65_01_Shotgun_Shot_SoundSet","Msbs65_01_Shotgun_Tail_SoundSet"};
  75. };
  76. recoil = "recoil_MSBS65_ubs";
  77. recoilProne = "assaultRifleBase";
  78. reloadTime = 0.35;
  79. dispersion = "5*0.00087";
  80. minRange = 2;
  81. minRangeProbab = 0.5;
  82. midRange = 400;
  83. midRangeProbab = 0.7;
  84. maxRange = 800;
  85. maxRangeProbab = 0.3;
  86. };
  87. class FullAuto: Mode_FullAuto
  88. {
  89. sounds[]=
  90. {
  91. "StandardSound"
  92. };
  93. class StandardSound
  94. {
  95. soundSetShot[] = {"Msbs65_01_Shotgun_Shot_SoundSet","Msbs65_01_Shotgun_Tail_SoundSet"};
  96. };
  97. recoil = "recoil_MSBS65_ubs";
  98. recoilProne = "assaultRifleBase";
  99. reloadTime = 0.275;
  100. dispersion = "5*0.00087";
  101. minRange = 2;
  102. minRangeProbab = 0.5;
  103. midRange = 400;
  104. midRangeProbab = 0.7;
  105. maxRange = 800;
  106. maxRangeProbab = 0.3;
  107. aiRateOfFire=2;
  108. aiRateOfFireDistance=500;
  109. };
  110. inertia = 1.4;
  111. dexterity=1.7;
  112. initSpeed=300;
  113. maxRecoilSway=0.0125;
  114. reloadMagazineSound[] = {"A3\Sounds_F_Enoch\Assets\Arsenal\Msbs65_01\Shotgun\Msbs65_Shotgun_Reload_01",3.98107,1,10};
  115. class ItemInfo
  116. {
  117. priority=1;
  118. };
  119. class WeaponSlotsInfo: WeaponSlotsInfo
  120. {
  121. mass=100;
  122. class MuzzleSlot: MuzzleSlot
  123. {
  124. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  125. iconPosition[]={0,0.44999999};
  126. iconScale=0.2;
  127. };
  128. class CowsSlot: CowsSlot
  129. {
  130. iconPosition[]={0.5,0.34999999};
  131. iconScale=0.2;
  132. compatibleItems[] =
  133. {
  134. "RD501_Holosight",
  135. "RD501_Holosight_2",
  136. "RD501_Holosight_3",
  137. "3AS_optic_reflex_DC15C"
  138. };
  139. };
  140. class PointerSlot: PointerSlot
  141. {
  142. iconPosition[]={0.2,0.44999999};
  143. iconScale=0.25;
  144. };
  145. };
  146. /*class WeaponSlotsInfo
  147. {
  148. mass = 30;
  149. class CowsSlot
  150. {
  151. displayName = "Optics Slot";
  152. iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
  153. iconPinpoint = "Bottom";
  154. iconPosition[] = {0.5,0.35};
  155. iconScale = 0.2;
  156. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  157. scope = 0;
  158. compatibleItems[] =
  159. {
  160. "RD501_Holosight",
  161. "RD501_Holosight_2",
  162. "RD501_Holosight_3"
  163. };
  164. };
  165. };*/
  166. };
  167. class macro_new_weapon(republic,dp23): JLTS_DP23
  168. {
  169. scope=2;
  170. scopeArsenal=2;
  171. JLTS_hasElectronics=0;
  172. JLTS_canHaveShield=1;
  173. JLTS_shieldedWeapon=MACRO_QUOTE(macro_new_weapon(dp23,shield));
  174. baseWeapon=MACRO_QUOTE(macro_new_weapon(republic,dp23));
  175. displayName="Republic DP23";
  176. ACE_Overheating_mrbs = 450000;
  177. magazines[]=
  178. {
  179. macro_new_mag(shotgun_scatter,12)
  180. };
  181. };
  182. class macro_new_weapon(dp23,shield): macro_new_weapon(republic,dp23)
  183. {
  184. displayName="Republic DP23 Shield";
  185. baseWeapon=MACRO_QUOTE(macro_new_weapon(DC,r17_shield));
  186. scope=1;
  187. JLTS_isShielded=1;
  188. JLTS_baseWeapon=MACRO_QUOTE(macro_new_weapon(republic,dp23));
  189. model="\MRC\JLTS\weapons\DP23\DP23_shielded.p3d";
  190. handAnim[]=
  191. {
  192. "OFP2_ManSkeleton",
  193. "\MRC\JLTS\weapons\DP23\anims\DP23_shielded_handanim.rtm"
  194. };
  195. inertia=0.80000001;
  196. recoil="recoil_pdw";
  197. canShootInWater=1;
  198. class WeaponSlotsInfo
  199. {
  200. mass=110;
  201. class UnderBarrelSlot
  202. {
  203. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  204. iconPicture="\A3\Weapons_F_Mark\Data\UI\attachment_under.paa";
  205. iconPinpoint="Bottom";
  206. compatibleItems[]=
  207. {
  208. "JLTS_riot_shield_attachment",
  209. "JLTS_riot_shield_212_attachment",
  210. "JLTS_riot_shield_501_attachment",
  211. "JLTS_riot_shield_101_attachment",
  212. "JLTS_riot_shield_CG_attachment",
  213. "JLTS_riot_shield_GD_attachment",
  214. "JLTS_riot_shield_droid_attachment"
  215. };
  216. };
  217. };
  218. };
  219. };