config.cpp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. class CfgPatches
  2. {
  3. class 3AS_Weapons_E5
  4. {
  5. addonRootClass="3AS_Weapons";
  6. requiredAddons[]=
  7. {
  8. "3AS_Weapons"
  9. };
  10. requiredVersion=0.1;
  11. units[]={};
  12. weapons[]=
  13. {
  14. "3AS_E5_F"
  15. };
  16. };
  17. };
  18. class Mode_SemiAuto;
  19. class Mode_Burst;
  20. class Mode_FullAuto;
  21. class SlotInfo;
  22. class CowsSlot;
  23. class MuzzleSlot;
  24. class PointerSlot;
  25. class UnderBarrelSlot;
  26. class CfgWeapons
  27. {
  28. class Rifle;
  29. class Rifle_Base_F: Rifle
  30. {
  31. class WeaponSlotsInfo;
  32. class GunParticles;
  33. };
  34. class 3AS_E5_Base_F: Rifle_Base_F
  35. {
  36. author="The Clone Wars Mod Team";
  37. magazines[]=
  38. {
  39. "3AS_60Rnd_EM50_RedPlasma"
  40. };
  41. reloadAction="3AS_GestureReloadDC15S";
  42. magazineReloadSwitchPhase=0.40000001;
  43. discreteDistanceInitIndex=0;
  44. recoil="3AS_recoil_dc15s";
  45. maxRecoilSway=0.0125;
  46. swayDecaySpeed=1.25;
  47. inertia=0.4;
  48. dexterity=1.6;
  49. initSpeed=-1;
  50. maxZeroing=100;
  51. class GunParticles: GunParticles
  52. {
  53. class SecondEffect
  54. {
  55. positionName="Nabojnicestart";
  56. directionName="Nabojniceend";
  57. effectName="CaselessAmmoCloud";
  58. };
  59. };
  60. class WeaponSlotsInfo: WeaponSlotsInfo
  61. {
  62. class CowsSlot: CowsSlot
  63. {
  64. //linkProxy="\A3\data_f_mark\proxies\weapon_slots\TOP";
  65. compatibleItems[]={};
  66. };
  67. class PointerSlot: PointerSlot
  68. {
  69. linkProxy="\A3\data_f\proxies\weapon_slots\SIDE";
  70. compatibleItems[]=
  71. {
  72. "acc_flashlight",
  73. "acc_pointer_IR"
  74. };
  75. };
  76. class UnderBarrelSlot: UnderBarrelSlot
  77. {
  78. linkProxy="\A3\data_f_mark\proxies\weapon_slots\UNDERBARREL";
  79. compatibleItems[]={};
  80. };
  81. };
  82. opticsZoomMin=0.25;
  83. opticsZoomMax=1.25;
  84. opticsZoomInit=0.75;
  85. distanceZoomMin=400;
  86. distanceZoomMax=400;
  87. descriptionShort="DC-15S, The Clone Wars Mod";
  88. handAnim[]=
  89. {
  90. "OFP2_ManSkeleton",
  91. "\A3\Weapons_F\Rifles\TRG20\Data\Anim\TRG_21.rtm"
  92. //"\A3\Weapons_F_epa\LongRangeRifles\DMR_01\Data\Anim\dmr_01.rtm"
  93. };
  94. selectionFireAnim="zasleh";
  95. flash="gunfire";
  96. flashSize=3;
  97. modes[]=
  98. {
  99. "FullAuto",
  100. "Single"
  101. };
  102. class FullAuto: Mode_FullAuto
  103. {
  104. reloadTime=0.1;
  105. dispersion=0.00116;
  106. minRange=0;
  107. minRangeProbab=0.9;
  108. midRange=15;
  109. midRangeProbab=0.7;
  110. maxRange=30;
  111. maxRangeProbab=0.1;
  112. ///Sounds
  113. soundContinuous=0;
  114. soundBurst=0;
  115. sounds[]=
  116. {
  117. "StandardSound",
  118. "SilencedSound"
  119. };
  120. class BaseSoundModeType;
  121. class StandardSound: BaseSoundModeType
  122. {
  123. soundSetShot[]=
  124. {
  125. "3AS_DC15S_Shot_SoundSet"
  126. };
  127. };
  128. class SilencedSound: BaseSoundModeType
  129. {
  130. soundSetShot[]=
  131. {
  132. ""
  133. };
  134. };
  135. };
  136. class Single: Mode_SemiAuto
  137. {
  138. reloadTime=0.1;
  139. dispersion=0.00116;
  140. minRange=2;
  141. minRangeProbab=0.3;
  142. midRange=150;
  143. midRangeProbab=0.7;
  144. maxRange=350;
  145. maxRangeProbab=0.1;
  146. ///Sounds
  147. soundContinuous=0;
  148. soundBurst=0;
  149. sounds[]=
  150. {
  151. "StandardSound",
  152. "SilencedSound"
  153. };
  154. class BaseSoundModeType;
  155. class StandardSound: BaseSoundModeType
  156. {
  157. soundSetShot[]=
  158. {
  159. "3AS_DC15S_Shot_SoundSet"
  160. };
  161. };
  162. class SilencedSound: BaseSoundModeType
  163. {
  164. soundSetShot[]=
  165. {
  166. "3AS_DC15S_Shot_SoundSet"
  167. };
  168. };
  169. };
  170. aiDispersionCoefY=6;
  171. aiDispersionCoefX=4;
  172. ///Sounds
  173. caseless[]=
  174. {
  175. "",
  176. 1,
  177. 1,
  178. 1
  179. };
  180. soundBullet[]=
  181. {
  182. "caseless",
  183. 1
  184. };
  185. drySound[]=
  186. {
  187. "\3AS\3AS_Main\Sounds\Blaster_empty",
  188. 2,
  189. 1,
  190. 20
  191. };
  192. //reloadAction= "3AS_GestureReloadE-5";
  193. reloadMagazineSound[]=
  194. {
  195. //"\3AS\3AS_Main\Sounds\Blaster_reload.wss",
  196. "\3AS\3AS_Main\Sounds\Old\Blaster_reload.wss",
  197. 1,
  198. 1,
  199. 30
  200. };
  201. };
  202. class 3AS_E5_F: 3AS_E5_Base_F
  203. {
  204. scope=2;
  205. displayName="[3AS] E-5 Carbine";
  206. model="3AS\3AS_Weapons\E5\3AS_E5_F";
  207. picture="\3AS\3AS_Weapons\DC15A\Data\Textures\DC15A_Arsenal.paa";
  208. weaponInfoType="RscWeaponZeroing";
  209. class WeaponSlotsInfo: WeaponSlotsInfo
  210. {
  211. mass=60;
  212. };
  213. ace_overheating_mrbs = 3000; //Mean Rounds Between Stoppages (this will be scaled based on the barrel temp)
  214. ace_overheating_slowdownFactor = 1; //Slowdown Factor (this will be scaled based on the barrel temp)
  215. ace_overheating_allowSwapBarrel = 1; // 1 to enable barrel swap. 0 to disable. Meant for machine guns where you can easily swap the barrel without dismantling the whole weapon.
  216. ace_overheating_dispersion = 0.75; //Dispersion Factor (this will be scaled based on the barrel temp)
  217. };
  218. };