config.cpp 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. class CfgPatches
  2. {
  3. class 3AS_Weapons_WestarM5
  4. {
  5. addonRootClass="3AS_Weapons";
  6. requiredAddons[]=
  7. {
  8. "3AS_Weapons"
  9. };
  10. requiredVersion=0.1;
  11. units[]={};
  12. weapons[]=
  13. {
  14. "3AS_WestarM5_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_WestarM5_Base_F: Rifle_Base_F
  35. {
  36. author="The Clone Wars Mod Team";
  37. magazines[]=
  38. {
  39. "3AS_45Rnd_EC50_Mag"
  40. };
  41. reloadAction="GestureReloadMX"; //GestureReloadMX
  42. magazineReloadSwitchPhase=0.40000001;
  43. discreteDistanceInitIndex=0;
  44. recoil="3AS_recoil_dc15a";
  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="Westar-M5, The Clone Wars Mod";
  88. handAnim[]=
  89. {
  90. "OFP2_ManSkeleton",
  91. "\A3\Weapons_F\Rifles\MX\data\Anim\MX_gl.rtm"
  92. };
  93. selectionFireAnim="zasleh";
  94. flash="gunfire";
  95. flashSize=3;
  96. modes[]=
  97. {
  98. "Single",
  99. "Burst",
  100. "FullAuto"
  101. };
  102. class Burst: Mode_Burst
  103. {
  104. reloadTime=0.05;
  105. dispersion=0.00087;
  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_DC15A_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.2;
  139. dispersion=0.00087;
  140. minRange=2;
  141. minRangeProbab=0.5;
  142. midRange=200;
  143. midRangeProbab=0.7;
  144. maxRange=400;
  145. maxRangeProbab=0.3;
  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_DC15A_Shot_SoundSet"
  160. };
  161. };
  162. class SilencedSound: BaseSoundModeType
  163. {
  164. soundSetShot[]=
  165. {
  166. "3AS_Plasma_Shot_SoundSet"
  167. };
  168. };
  169. };
  170. class FullAuto: Mode_FullAuto
  171. {
  172. reloadTime=0.08;
  173. dispersion=0.00087;
  174. minRange=0;
  175. minRangeProbab=0.89999998;
  176. midRange=15;
  177. midRangeProbab=0.69999999;
  178. maxRange=30;
  179. maxRangeProbab=0.1;
  180. aiRateOfFire=1e-006;
  181. sounds[]=
  182. {
  183. "StandardSound",
  184. "SilencedSound"
  185. };
  186. class BaseSoundModeType;
  187. class StandardSound: BaseSoundModeType
  188. {
  189. soundSetShot[]=
  190. {
  191. "3AS_DC15A_Shot_SoundSet"
  192. };
  193. };
  194. class SilencedSound: BaseSoundModeType
  195. {
  196. soundSetShot[]=
  197. {
  198. "3AS_Plasma_Shot_SoundSet"
  199. };
  200. };
  201. };
  202. aiDispersionCoefY=6;
  203. aiDispersionCoefX=4;
  204. ///Sounds
  205. caseless[]=
  206. {
  207. "",
  208. 1,
  209. 1,
  210. 1
  211. };
  212. soundBullet[]=
  213. {
  214. "caseless",
  215. 1
  216. };
  217. drySound[]=
  218. {
  219. "\3AS\3AS_Main\Sounds\Blaster_empty",
  220. 2,
  221. 1,
  222. 20
  223. };
  224. reloadMagazineSound[]=
  225. {
  226. //"\3AS\3AS_Main\Sounds\Blaster_reload.wss",
  227. "\3AS\3AS_Main\Sounds\Old\Blaster_reload.wss",
  228. 1,
  229. 1,
  230. 30
  231. };
  232. };
  233. class 3AS_WestarM5_F: 3AS_WestarM5_Base_F
  234. {
  235. scope=2;
  236. displayName="[3AS] Westar-M5 Rifle";
  237. model="3AS\3AS_Weapons\WestarM5\3AS_Westar_M5_F.p3d";
  238. picture="\3AS\3AS_Weapons\DC15A\Data\Textures\DC15A_Arsenal.paa";
  239. weaponInfoType="RscWeaponZeroing";
  240. modelOptics="3AS\3AS_Weapons\Data\3AS_2D_Optic.p3d";
  241. class OpticsModes
  242. {
  243. class Ironsights
  244. {
  245. opticsID=1;
  246. useModelOptics=0;
  247. opticsFlare="true";
  248. opticsPPEffects[] = {"OpticsCHAbera5", "OpticsBlur5"};
  249. opticsDisablePeripherialVision = 0.67;
  250. opticsZoomMin=0.375;
  251. opticsZoomMax=1.1;
  252. opticsZoomInit=0.75;
  253. memoryPointCamera="eye";
  254. visionMode[]={};
  255. distanceZoomMin=100;
  256. distanceZoomMax=100;
  257. };
  258. class Scope: Ironsights
  259. {
  260. opticsID=2;
  261. useModelOptics=1;
  262. opticsPPEffects[] = {"OpticsCHAbera5", "OpticsBlur5"};
  263. opticsDisablePeripherialVision = 0.67;
  264. opticsZoomMin = 0.122173;
  265. opticsZoomMax = 0.122173;
  266. opticsZoomInit = 0.122173;
  267. memoryPointCamera="opticView";
  268. visionMode[] = {"Normal","NVG"};
  269. opticsFlare="true";
  270. distanceZoomMin=100;
  271. distanceZoomMax=100;
  272. cameraDir="";
  273. };
  274. };
  275. class WeaponSlotsInfo: WeaponSlotsInfo
  276. {
  277. mass=60;
  278. };
  279. ace_overheating_mrbs = 3000; //Mean Rounds Between Stoppages (this will be scaled based on the barrel temp)
  280. ace_overheating_slowdownFactor = 1; //Slowdown Factor (this will be scaled based on the barrel temp)
  281. ace_overheating_allowSwapBarrel = 0; // 1 to enable barrel swap. 0 to disable. Meant for machine guns where you can easily swap the barrel without dismantling the whole weapon.
  282. ace_overheating_dispersion = 0.75; //Dispersion Factor (this will be scaled based on the barrel temp)
  283. };
  284. };