config.cpp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. class CfgPatches
  2. {
  3. class 3AS_Weapons_DC15L
  4. {
  5. addonRootClass="3AS_Weapons";
  6. requiredAddons[]=
  7. {
  8. "3AS_Weapons"
  9. };
  10. requiredVersion=0.1;
  11. units[]={};
  12. weapons[]=
  13. {
  14. "3AS_DC15L_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_DC15L_Base_F: Rifle_Base_F
  35. {
  36. author="The Clone Wars Mod Team";
  37. magazines[]=
  38. {
  39. "3AS_200Rnd_EC40_Mag"
  40. };
  41. reloadAction="GestureReloadMX"; //GestureReloadMX
  42. magazineReloadSwitchPhase=0.40000001;
  43. discreteDistanceInitIndex=0;
  44. recoil="3AS_recoil_DC15L";
  45. maxRecoilSway=0.0125;
  46. swayDecaySpeed=1.25;
  47. inertia=0.5;
  48. dexterity=1.5;
  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-15L, The Clone Wars Mod";
  88. handAnim[]=
  89. {
  90. "OFP2_ManSkeleton",
  91. "\3AS\3AS_Weapons\DC15L\Data\Anim\DC15L_handanim.rtm"
  92. //"\A3\Weapons_F\Rifles\MX\data\Anim\MX_gl.rtm"
  93. };
  94. selectionFireAnim="zasleh";
  95. flash="gunfire";
  96. flashSize=3;
  97. modes[]=
  98. {
  99. "FullAuto"
  100. };
  101. class FullAuto: Mode_FullAuto
  102. {
  103. reloadTime=0.1; //0.075
  104. dispersion=0.00145;
  105. minRange=0;
  106. minRangeProbab=0.9;
  107. midRange=15;
  108. midRangeProbab=0.7;
  109. maxRange=30;
  110. maxRangeProbab=0.1;
  111. ///Sounds
  112. soundContinuous=0;
  113. soundBurst=0;
  114. sounds[]=
  115. {
  116. "StandardSound",
  117. "SilencedSound"
  118. };
  119. class BaseSoundModeType;
  120. class StandardSound: BaseSoundModeType
  121. {
  122. soundSetShot[]=
  123. {
  124. "3AS_DC15A_Shot_SoundSet"
  125. };
  126. };
  127. class SilencedSound: BaseSoundModeType
  128. {
  129. soundSetShot[]=
  130. {
  131. ""
  132. };
  133. };
  134. };
  135. aiDispersionCoefY=6;
  136. aiDispersionCoefX=4;
  137. ///Sounds
  138. caseless[]=
  139. {
  140. "",
  141. 1,
  142. 1,
  143. 1
  144. };
  145. soundBullet[]=
  146. {
  147. "caseless",
  148. 1
  149. };
  150. drySound[]=
  151. {
  152. "\3AS\3AS_Main\Sounds\Blaster_empty",
  153. 2,
  154. 1,
  155. 20
  156. };
  157. reloadMagazineSound[]=
  158. {
  159. //"\3AS\3AS_Main\Sounds\Blaster_reload.wss",
  160. "\3AS\3AS_Main\Sounds\Old\Blaster_reload.wss",
  161. 1,
  162. 1,
  163. 30
  164. };
  165. };
  166. class 3AS_DC15L_F: 3AS_DC15L_Base_F
  167. {
  168. scope=2;
  169. displayName="[3AS] DC-15L Rifle";
  170. model="3AS\3AS_Weapons\DC15L\3AS_DC15L_f.p3d";
  171. picture="\3AS\3AS_Weapons\DC15A\Data\Textures\DC15A_Arsenal.paa";
  172. weaponInfoType="RscWeaponZeroing";
  173. class WeaponSlotsInfo: WeaponSlotsInfo
  174. {
  175. mass=60;
  176. };
  177. ace_overheating_mrbs = 3000; //Mean Rounds Between Stoppages (this will be scaled based on the barrel temp)
  178. ace_overheating_slowdownFactor = 1; //Slowdown Factor (this will be scaled based on the barrel temp)
  179. 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.
  180. ace_overheating_dispersion = 0.75; //Dispersion Factor (this will be scaled based on the barrel temp)
  181. };
  182. };