config.cpp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. class CfgPatches
  2. {
  3. class 3AS_Weapons_DC17S
  4. {
  5. addonRootClass="3AS_Weapons";
  6. requiredAddons[]=
  7. {
  8. "3AS_Weapons"
  9. };
  10. requiredVersion=0.1;
  11. units[]={};
  12. weapons[]=
  13. {
  14. "3AS_DC17S_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 Pistol;
  29. class Pistol_Base_F: Pistol
  30. {
  31. class WeaponSlotsInfo;
  32. class GunParticles;
  33. };
  34. class 3AS_DC17S_Base_F: Pistol_Base_F
  35. {
  36. author="The Clone Wars Mod Team";
  37. magazines[]=
  38. {
  39. "3AS_16Rnd_EC20_Mag"
  40. };
  41. drySound[]=
  42. {
  43. "\3AS\3AS_Main\Sounds\Blaster_empty",
  44. 0.39810717,
  45. 1,
  46. 20
  47. };
  48. reloadMagazineSound[]=
  49. {
  50. "\3AS\3AS_Main\Sounds\Old\Blaster_reload.wss",
  51. 0.56234133,
  52. 1,
  53. 30
  54. };
  55. modes[]=
  56. {
  57. "Single"
  58. };
  59. class Single: Mode_SemiAuto
  60. {
  61. sounds[]=
  62. {
  63. "StandardSound",
  64. "SilencedSound"
  65. };
  66. class BaseSoundModeType;
  67. class StandardSound: BaseSoundModeType
  68. {
  69. soundSetShot[]=
  70. {
  71. "3AS_DC15S_Shot_SoundSet"
  72. };
  73. };
  74. class SilencedSound: BaseSoundModeType
  75. {
  76. soundSetShot[]=
  77. {
  78. "3AS_DC15S_Shot_SoundSet"
  79. };
  80. };
  81. recoil="recoil_pistol_heavy";
  82. recoilProne="recoil_prone_pistol_heavy";
  83. reloadTime=0.1;
  84. dispersion=0.0043500001;
  85. minRange=5;
  86. minRangeProbab=0.30000001;
  87. midRange=25;
  88. midRangeProbab=0.60000002;
  89. maxRange=50;
  90. maxRangeProbab=0.1;
  91. aiRateOfFire=2;
  92. aiRateOfFireDistance=25;
  93. };
  94. inertia=0.30000001;
  95. aimTransitionSpeed=1.5;
  96. dexterity=1.7;
  97. initSpeed=-1;
  98. recoil="recoil_pistol_4five";
  99. maxZeroing=100;
  100. class WeaponSlotsInfo: WeaponSlotsInfo
  101. {
  102. mass=30;
  103. holsterScale=0.94999999;
  104. class CowsSlot: CowsSlot
  105. {
  106. compatibleItems[]={};
  107. iconPosition[]={0.60000002,0.27000001};
  108. iconScale=0.15000001;
  109. };
  110. class MuzzleSlot: MuzzleSlot
  111. {
  112. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  113. compatibleItems[]={};
  114. iconPosition[]={0.23999999,0.34999999};
  115. iconScale=0.2;
  116. };
  117. class PointerSlot: PointerSlot
  118. {
  119. linkProxy="\A3\data_f\proxies\weapon_slots\SIDE";
  120. compatibleItems[]=
  121. {
  122. "acc_flashlight_pistol"
  123. };
  124. iconPosition[]={0.47,0.55000001};
  125. iconScale=0.30000001;
  126. };
  127. };
  128. };
  129. /*class 3AS_DC17S_base_F: Pistol_Base_F
  130. {
  131. author="The Clone Wars Mod Team";
  132. magazines[]=
  133. {
  134. "3AS_16Rnd_MK12_Mag"
  135. };
  136. reloadAction="3AS_GestureReloadDC15S";
  137. magazineReloadSwitchPhase=0.40000001;
  138. discreteDistanceInitIndex=0;
  139. recoil="recoil_pistol_4five";
  140. maxRecoilSway=0.0125;
  141. swayDecaySpeed=1.25;
  142. inertia=0.4;
  143. dexterity=1.6;
  144. initSpeed=-1;
  145. maxZeroing=100;
  146. class GunParticles: GunParticles
  147. {
  148. class SecondEffect
  149. {
  150. positionName="Nabojnicestart";
  151. directionName="Nabojniceend";
  152. effectName="CaselessAmmoCloud";
  153. };
  154. };
  155. class WeaponSlotsInfo: WeaponSlotsInfo
  156. {
  157. class CowsSlot: CowsSlot
  158. {
  159. //linkProxy="\A3\data_f_mark\proxies\weapon_slots\TOP";
  160. compatibleItems[]={};
  161. };
  162. class PointerSlot: PointerSlot
  163. {
  164. linkProxy="\A3\data_f\proxies\weapon_slots\SIDE";
  165. compatibleItems[]=
  166. {
  167. "acc_flashlight",
  168. "acc_pointer_IR"
  169. };
  170. };
  171. class UnderBarrelSlot: UnderBarrelSlot
  172. {
  173. linkProxy="\A3\data_f_mark\proxies\weapon_slots\UNDERBARREL";
  174. compatibleItems[]={};
  175. };
  176. };
  177. opticsZoomMin=0.25;
  178. opticsZoomMax=1.25;
  179. opticsZoomInit=0.75;
  180. distanceZoomMin=400;
  181. distanceZoomMax=400;
  182. descriptionShort="DC-17S, The Clone Wars Mod";
  183. handAnim[]=
  184. {
  185. "OFP2_ManSkeleton",
  186. "\3AS\3AS_Weapons\DC17S\Data\Anim\DC17S_handanim.rtm"
  187. //"\A3\Weapons_F_epa\LongRangeRifles\DMR_01\Data\Anim\dmr_01.rtm"
  188. };
  189. selectionFireAnim="zasleh";
  190. flash="gunfire";
  191. flashSize=3;
  192. modes[]=
  193. {
  194. "Single"
  195. };
  196. class Single: Mode_SemiAuto
  197. {
  198. reloadTime=0.1;
  199. dispersion=0.00116;
  200. minRange=0;
  201. minRangeProbab=0.3;
  202. midRange=50;
  203. midRangeProbab=0.7;
  204. maxRange=100;
  205. maxRangeProbab=0.1;
  206. ///Sounds
  207. soundContinuous=0;
  208. soundBurst=0;
  209. sounds[]=
  210. {
  211. "StandardSound",
  212. "SilencedSound"
  213. };
  214. class BaseSoundModeType;
  215. class StandardSound: BaseSoundModeType
  216. {
  217. soundSetShot[]=
  218. {
  219. "3AS_DC15S_Shot_SoundSet"
  220. };
  221. };
  222. class SilencedSound: BaseSoundModeType
  223. {
  224. soundSetShot[]=
  225. {
  226. "3AS_Plasma_Shot_SoundSet"
  227. };
  228. };
  229. };
  230. aiDispersionCoefY=6;
  231. aiDispersionCoefX=4;
  232. ///Sounds
  233. caseless[]=
  234. {
  235. "",
  236. 1,
  237. 1,
  238. 1
  239. };
  240. soundBullet[]=
  241. {
  242. "caseless",
  243. 1
  244. };
  245. drySound[]=
  246. {
  247. "\3AS\3AS_Main\Sounds\Blaster_empty",
  248. 2,
  249. 1,
  250. 20
  251. };
  252. reloadMagazineSound[]=
  253. {
  254. //"\3AS\3AS_Main\Sounds\Blaster_reload.wss",
  255. "\3AS\3AS_Main\Sounds\Old\Blaster_reload.wss",
  256. 1,
  257. 1,
  258. 30
  259. };
  260. };*/
  261. class 3AS_DC17S_F: 3AS_DC17S_Base_F
  262. {
  263. scope=2;
  264. displayName="[3AS] DC-17S Sidearm";
  265. model="3AS\3AS_Weapons\DC17S\3AS_DC17S_F.p3d";
  266. picture="\3AS\3AS_Weapons\DC15S\Data\Textures\DC15S_Arsenal.paa";
  267. weaponInfoType="RscWeaponZeroing";
  268. class WeaponSlotsInfo: WeaponSlotsInfo
  269. {
  270. mass=60;
  271. };
  272. };
  273. };