Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.55 KB | None | 0 0
  1. class Rifle; // External class reference
  2.  
  3. class Rifle_Base_F : Rifle {
  4. class WeaponSlotsInfo; // External class reference
  5. class GunParticles; // External class reference
  6. dexterity = 1.41;
  7. };
  8.  
  9. class Rifle_Long_Base_F : Rifle_Base_F {
  10. class WeaponSlotsInfo; // External class reference
  11. class GunParticles; // External class reference
  12. };
  13.  
  14.  
  15. class KA_SCAR_H_Base : Rifle_Long_Base_F {
  16. initSpeed = -0.89;
  17. ACE_barrelTwist = 178;
  18. ACE_barrelLength = 406;
  19. scope = 0;
  20. dexterity = 1.61;
  21. UiPicture = "\A3\weapons_f\data\UI\icon_regular_CA.paa";
  22. magazines[] = {"KA_SCAR_H_20rnd_Mk319_SOST_mag", "KA_SCAR_H_20rnd_M59_Ball_mag", "KA_SCAR_H_20rnd_M80_Ball_mag", "KA_SCAR_H_20rnd_M80A1_Ball_mag", "KA_SCAR_H_20rnd_M118_SPR_mag", "KA_SCAR_H_20rnd_M118LR_OTM_mag", "KA_SCAR_H_20rnd_Mk316_SPR_mag", "KA_SCAR_H_20rnd_M852_OTM_mag", "KA_SCAR_H_20rnd_M62_Tracer_Red_mag", "KA_SCAR_H_20rnd_M276_Dim_Tracer_mag", "KA_SCAR_H_20rnd_M61_AP_mag", "KA_SCAR_H_20rnd_M993_AP_mag", "KA_SCAR_H_20rnd_M948_SLAP_mag", "KA_SCAR_H_20rnd_Subsonic_mag", "KA_SCAR_H_20rnd_M973_SRTA_mag", "KA_SCAR_H_20rnd_M974_SRTA_T_mag", "KA_SCAR_H_20rnd_M82_Blank_mag", "20Rnd_762x51_Mag"};
  23. reloadAction = "GestureReloadSCAR";
  24. recoil = "recoil_ebr";
  25. maxZeroing = 1600;
  26. handAnim[] = {"OFP2_ManSkeleton", "\KA_SCAR_H\Anim\SCAR_hand.rtm"};
  27. cursor = "srifle";
  28. bullet1[] = {"A3\sounds_f\weapons\shells\7_62\metal_762_01", 0.398107, 1, 15};
  29. bullet2[] = {"A3\sounds_f\weapons\shells\7_62\metal_762_02", 0.398107, 1, 15};
  30. bullet3[] = {"A3\sounds_f\weapons\shells\7_62\metal_762_03", 0.398107, 1, 15};
  31. bullet4[] = {"A3\sounds_f\weapons\shells\7_62\metal_762_04", 0.398107, 1, 15};
  32. bullet5[] = {"A3\sounds_f\weapons\shells\7_62\dirt_762_01", 0.281838, 1, 15};
  33. bullet6[] = {"A3\sounds_f\weapons\shells\7_62\dirt_762_02", 0.281838, 1, 15};
  34. bullet7[] = {"A3\sounds_f\weapons\shells\7_62\dirt_762_03", 0.281838, 1, 15};
  35. bullet8[] = {"A3\sounds_f\weapons\shells\7_62\dirt_762_04", 0.281838, 1, 15};
  36. bullet9[] = {"A3\sounds_f\weapons\shells\7_62\grass_762_01", 0.281838, 1, 15};
  37. bullet10[] = {"A3\sounds_f\weapons\shells\7_62\grass_762_02", 0.281838, 1, 15};
  38. bullet11[] = {"A3\sounds_f\weapons\shells\7_62\grass_762_03", 0.281838, 1, 15};
  39. bullet12[] = {"A3\sounds_f\weapons\shells\7_62\grass_762_04", 0.281838, 1, 15};
  40. soundBullet[] = {"bullet1", 0.083, "bullet2", 0.083, "bullet3", 0.083, "bullet4", 0.083, "bullet5", 0.083, "bullet6", 0.083, "bullet7", 0.083, "bullet8", 0.083, "bullet9", 0.083, "bullet10", 0.083, "bullet11", 0.083, "bullet12", 0.083};
  41.  
  42. class WeaponSlotsInfo : WeaponSlotsInfo {
  43. class MuzzleSlot : MuzzleSlot {
  44. linkProxy = "\A3\data_f\proxies\weapon_slots\MUZZLE";
  45. compatibleItems[] = {"SCAR_13_Inches_Barrel", "SCAR_13_Inches_Barrel_Flash_Hider", "SCAR_13_Inches_Barrel_Silencer", "SCAR_16_Inches_Barrel", "SCAR_16_Inches_Barrel_Flash_Hider", "SCAR_16_Inches_Barrel_Silencer", "SCAR_20_Inches_Barrel", "SCAR_20_Inches_Barrel_Flash_Hider", "SCAR_20_Inches_Barrel_Silencer"};
  46. iconPicture = "\KA_SCAR_H\ui\attachment_muzzle.paa";
  47. iconPosition[] = {0.1, 0.43};
  48. iconPinpoint = "Center";
  49. iconScale = 0.2;
  50. };
  51.  
  52. class CowsSlot : asdg_OpticRail1913 {
  53. linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
  54. iconPicture = "\KA_SCAR_H\ui\attachment_top2.paa";
  55. iconPosition[] = {0.5, 0.3};
  56. iconPinpoint = "Bottom";
  57. iconScale = 0.2;
  58. };
  59.  
  60. class PointerSlot : PointerSlot {
  61. linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
  62. compatibleItems[] = {"KA_Rail_Covers_Black", "KA_Rail_Covers_Tan", "KA_Rail_Covers_Black_Single", "KA_Rail_Covers_Tan_Single", "KA_SCAR_H_Flashlight_Black", "KA_SCAR_H_Flashlight_Sand", "KA_SCAR_H_Laser_Black_IR", "KA_SCAR_H_Laser_Black_RED", "KA_SCAR_H_Laser_Black_GREEN", "KA_SCAR_H_Laser_Sand_IR", "KA_SCAR_H_Laser_Sand_RED", "KA_SCAR_H_Laser_Sand_GREEN", "KA_SCAR_H_Laser_Flashlight_Black_IR", "KA_SCAR_H_Laser_Flashlight_Black_RED", "KA_SCAR_H_Laser_Flashlight_Black_GREEN", "KA_SCAR_H_Flashlight_Laser_Black", "KA_SCAR_H_Laser_Flashlight_Sand_IR", "KA_SCAR_H_Laser_Flashlight_Sand_RED", "KA_SCAR_H_Laser_Flashlight_Sand_GREEN", "KA_SCAR_H_Flashlight_Laser_Sand", "KA_SCAR_H_Laser_Flashlight_Black_UP_IR", "KA_SCAR_H_Laser_Flashlight_Black_UP_RED", "KA_SCAR_H_Laser_Flashlight_Black_UP_GREEN", "KA_SCAR_H_Flashlight_Laser_Black_UP", "KA_SCAR_H_Laser_Flashlight_Sand_UP_IR", "KA_SCAR_H_Laser_Flashlight_Sand_UP_RED", "KA_SCAR_H_Laser_Flashlight_Sand_UP_GREEN", "KA_SCAR_H_Flashlight_Laser_Sand_UP"};
  63. iconPicture = "\KA_SCAR_H\ui\attachment_side.paa";
  64. iconPinpoint = "Center";
  65. iconPosition[] = {0.3, 0.4};
  66. iconScale = 0.2;
  67. };
  68.  
  69. class UnderBarrelSlot : asdg_UnderSlot {
  70. linkProxy = "\A3\Data_f_Mark\proxies\weapon_slots\UNDERBARREL";
  71. iconPicture = "\KA_SCAR_H\ui\attachment_bipod.paa";
  72. iconPinpoint = "Center";
  73. iconPosition[] = {0.3, 0.54};
  74. iconScale = 0.2;
  75. };
  76. mass = 120;
  77. allowedSlots[] = {801, 701, 901};
  78. };
  79.  
  80. class GunParticles : GunParticles {
  81. class RifleAmmoCloud {
  82. positionName = "Nabojnicestart";
  83. directionName = "Nabojniceend";
  84. effectName = "KA_RifleAmmoCloud";
  85. };
  86.  
  87. class SmokeEffect {
  88. positionName = "usti hlavne";
  89. directionName = "usti hlavne";
  90. effectName = "KA_RifleSmokeTrail";
  91. };
  92.  
  93. class BarrelRefract {
  94. positionName = "usti hlavne";
  95. directionName = "usti hlavne up";
  96. effectName = "KA_BarrelRefract";
  97. };
  98. };
  99.  
  100. class ItemInfo {
  101. priority = 1;
  102. };
  103. distanceZoomMin = 300;
  104. distanceZoomMax = 300;
  105. changeFiremodeSound[] = {"KA_SCAR_H\sounds\SCAR_L_selector.wss", 1.4122, 1, 5};
  106. drySound[] = {"KA_SCAR_H\sounds\SCAR_L_dryfire.wss", 1.55119, 1, 20};
  107. reloadMagazineSound[] = {"KA_SCAR_H\sounds\reload", 2, 1, 10};
  108. modes[] = {"Single", "FullAuto", "single_close_optics1", "single_medium_optics1", "single_far_optics1", "fullauto_medium"};
  109.  
  110. class Single : Mode_SemiAuto {
  111. sounds[] = {"StandardSound", "SilencedSound"};
  112.  
  113. class BaseSoundModeType {
  114. closure1[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_closure_01", 0.398107, 1, 30};
  115. closure2[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_closure_02", 0.398107, 1, 30};
  116. soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
  117. };
  118.  
  119. class StandardSound : BaseSoundModeType {
  120. begin1[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_short_01", 1.77828, 1, 1800};
  121. begin2[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_short_02", 1.77828, 1, 1800};
  122. begin3[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_short_03", 1.77828, 1, 1800};
  123. soundBegin[] = {"begin1", 0.34, "begin2", 0.33, "begin3", 0.33};
  124.  
  125. class SoundTails {
  126. class TailInterior {
  127. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_interior", 1.99526, 1, 1800};
  128. frequency = 1;
  129. volume = "interior";
  130. };
  131.  
  132. class TailTrees {
  133. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_trees", 1, 1, 1800};
  134. frequency = 1;
  135. volume = "(1-interior/1.4)*trees";
  136. };
  137.  
  138. class TailForest {
  139. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_forest", 1, 1, 1800};
  140. frequency = 1;
  141. volume = "(1-interior/1.4)*forest";
  142. };
  143.  
  144. class TailMeadows {
  145. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_meadows", 1, 1, 1800};
  146. frequency = 1;
  147. volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
  148. };
  149.  
  150. class TailHouses {
  151. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_houses", 1, 1, 1800};
  152. frequency = 1;
  153. volume = "(1-interior/1.4)*houses";
  154. };
  155. };
  156. };
  157.  
  158. class SilencedSound : BaseSoundModeType {
  159. begin1[] = {"\KA_SCAR_H\sounds\fal_silenced", 0.9, 1, 200};
  160. begin2[] = {"\KA_SCAR_H\sounds\fal_silenced", 0.9, 1, 200};
  161. begin3[] = {"\KA_SCAR_H\sounds\fal_silenced", 0.9, 1, 200};
  162. soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
  163.  
  164. class SoundTails {
  165. class TailInterior {
  166. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_interior", 1.99526, 1, 400};
  167. frequency = 1;
  168. volume = "interior";
  169. };
  170.  
  171. class TailTrees {
  172. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_trees", 1, 1, 400};
  173. frequency = 1;
  174. volume = "(1-interior/1.4)*trees";
  175. };
  176.  
  177. class TailForest {
  178. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_forest", 1, 1, 400};
  179. frequency = 1;
  180. volume = "(1-interior/1.4)*forest";
  181. };
  182.  
  183. class TailMeadows {
  184. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_meadows", 1, 1, 400};
  185. frequency = 1;
  186. volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
  187. };
  188.  
  189. class TailHouses {
  190. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_houses", 1, 1, 400};
  191. frequency = 1;
  192. volume = "(1-interior/1.4)*houses";
  193. };
  194. };
  195. };
  196. reloadTime = 0.1;
  197. dispersion = 0.00033;
  198. recoil = "recoil_single_ebr";
  199. recoilProne = "recoil_single_prone_ebr";
  200. minRange = 2;
  201. minRangeProbab = 0.3;
  202. midRange = 350;
  203. midRangeProbab = 0.7;
  204. maxRange = 500;
  205. maxRangeProbab = 0.05;
  206. };
  207.  
  208. class FullAuto : Mode_FullAuto {
  209. sounds[] = {"StandardSound", "SilencedSound"};
  210.  
  211. class BaseSoundModeType {
  212. closure1[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_closure_01", 0.398107, 1, 30};
  213. closure2[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_closure_02", 0.398107, 1, 30};
  214. soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
  215. };
  216.  
  217. class StandardSound : BaseSoundModeType {
  218. begin1[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_short_01", 1.77828, 1, 1800};
  219. begin2[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_short_02", 1.77828, 1, 1800};
  220. begin3[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_short_03", 1.77828, 1, 1800};
  221. soundBegin[] = {"begin1", 0.34, "begin2", 0.33, "begin3", 0.33};
  222.  
  223. class SoundTails {
  224. class TailInterior {
  225. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_interior", 1.99526, 1, 1800};
  226. frequency = 1;
  227. volume = "interior";
  228. };
  229.  
  230. class TailTrees {
  231. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_trees", 1, 1, 1800};
  232. frequency = 1;
  233. volume = "(1-interior/1.4)*trees";
  234. };
  235.  
  236. class TailForest {
  237. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_forest", 1, 1, 1800};
  238. frequency = 1;
  239. volume = "(1-interior/1.4)*forest";
  240. };
  241.  
  242. class TailMeadows {
  243. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_meadows", 1, 1, 1800};
  244. frequency = 1;
  245. volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
  246. };
  247.  
  248. class TailHouses {
  249. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\DMR_03_tail_houses", 1, 1, 1800};
  250. frequency = 1;
  251. volume = "(1-interior/1.4)*houses";
  252. };
  253. };
  254. };
  255.  
  256. class SilencedSound : BaseSoundModeType {
  257. begin1[] = {"\KA_SCAR_H\sounds\fal_silenced", 0.9, 1, 200};
  258. begin2[] = {"\KA_SCAR_H\sounds\fal_silenced", 0.9, 1, 200};
  259. begin3[] = {"\KA_SCAR_H\sounds\fal_silenced", 0.9, 1, 200};
  260. soundBegin[] = {"begin1", 0.33, "begin2", 0.33, "begin3", 0.34};
  261.  
  262. class SoundTails {
  263. class TailInterior {
  264. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_interior", 1.99526, 1, 400};
  265. frequency = 1;
  266. volume = "interior";
  267. };
  268.  
  269. class TailTrees {
  270. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_trees", 1, 1, 400};
  271. frequency = 1;
  272. volume = "(1-interior/1.4)*trees";
  273. };
  274.  
  275. class TailForest {
  276. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_forest", 1, 1, 400};
  277. frequency = 1;
  278. volume = "(1-interior/1.4)*forest";
  279. };
  280.  
  281. class TailMeadows {
  282. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_meadows", 1, 1, 400};
  283. frequency = 1;
  284. volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
  285. };
  286.  
  287. class TailHouses {
  288. sound[] = {"A3\Sounds_F_Mark\arsenal\weapons\LongRangeRifles\DMR_03_MkI_EMR\silencer_DMR_03_tail_houses", 1, 1, 400};
  289. frequency = 1;
  290. volume = "(1-interior/1.4)*houses";
  291. };
  292. };
  293. };
  294. reloadTime = 0.096;
  295. dispersion = 0.00033;
  296. recoil = "recoil_auto_ebr";
  297. recoilProne = "recoil_auto_prone_ebr";
  298. minRange = 0;
  299. minRangeProbab = 0.9;
  300. midRange = 15;
  301. midRangeProbab = 0.7;
  302. maxRange = 30;
  303. maxRangeProbab = 0.05;
  304. aiRateOfFire = 1e-006;
  305. };
  306.  
  307. class single_close_optics1 : Single {
  308. requiredOpticType = 1;
  309. showToPlayer = 0;
  310. minRange = 2;
  311. minRangeProbab = 0.05;
  312. midRange = 300;
  313. midRangeProbab = 0.8;
  314. maxRange = 500;
  315. maxRangeProbab = 0.01;
  316. aiRateOfFire = 2;
  317. aiRateOfFireDistance = 300;
  318. };
  319.  
  320. class single_medium_optics1 : single_close_optics1 {
  321. minRange = 300;
  322. minRangeProbab = 0.05;
  323. midRange = 500;
  324. midRangeProbab = 0.7;
  325. maxRange = 700;
  326. maxRangeProbab = 0.05;
  327. aiRateOfFire = 2;
  328. aiRateOfFireDistance = 500;
  329. };
  330.  
  331. class single_far_optics1 : single_medium_optics1 {
  332. requiredOpticType = 2;
  333. minRange = 300;
  334. minRangeProbab = 0.05;
  335. midRange = 700;
  336. midRangeProbab = 0.5;
  337. maxRange = 1000;
  338. maxRangeProbab = 0.05;
  339. aiRateOfFire = 4;
  340. aiRateOfFireDistance = 600;
  341. };
  342.  
  343. class fullauto_medium : FullAuto {
  344. showToPlayer = 0;
  345. burst = 3;
  346. minRange = 2;
  347. minRangeProbab = 0.5;
  348. midRange = 50;
  349. midRangeProbab = 0.7;
  350. maxRange = 100;
  351. maxRangeProbab = 0.05;
  352. aiRateOfFire = 2;
  353. };
  354.  
  355. class MK13_EGLM : UGL_F {
  356. displayName = "MK13 EGLM grenade launcher";
  357. descriptionShort = EGLM;
  358. useModelOptics = 0;
  359. useExternalOptic = 0;
  360. magazines[] = {"1Rnd_HE_Grenade_shell", "KA_40mm_M7A3", "KA_40mm_MKnKJ", "KA_40mm_M14", "KA_40mm_M814", "1Rnd_Flechette_Cartridge_Grenade_shell", "UGL_FlareWhite_F", "UGL_FlareGreen_F", "UGL_FlareRed_F", "UGL_FlareYellow_F", "UGL_FlareCIR_F", "1Rnd_Smoke_Grenade_shell", "1Rnd_SmokeRed_Grenade_shell", "1Rnd_SmokeGreen_Grenade_shell", "1Rnd_SmokeYellow_Grenade_shell", "1Rnd_SmokePurple_Grenade_shell", "1Rnd_SmokeBlue_Grenade_shell", "1Rnd_SmokeOrange_Grenade_shell"};
  361. cameraDir = "OP_look";
  362. discreteDistance[] = {50, 100, 150, 200, 250, 300, 350, 400};
  363. discreteDistanceCameraPoint[] = {"OP_eye50", "OP_eye100", "OP_eye150", "OP_eye200", "OP_eye250", "OP_eye300", "OP_eye350", "OP_eye400"};
  364. discreteDistanceInitIndex = 1;
  365. reloadAction = "GestureReloadMk20UGL";
  366. reloadMagazineSound[] = {"A3\Sounds_F\arsenal\weapons\Rifles\Mk20\MK20_UGL_reload", 1.2, 1, 10};
  367. };
  368. aiDispersionCoefY = 3;
  369. aiDispersionCoefX = 2;
  370. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement