forked from toadie2k/NIArms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.cpp
801 lines (762 loc) · 30.1 KB
/
config.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
#include "\hlc_core\script_macros.hpp"
#include "cfgsoundshaders.hpp"
#include "cfgsoundset.hpp"
class CfgPatches {
class hlcweapons_FHAWCovert {
requiredaddons[] = {"hlcweapons_core"};
units[] = {"HLC_LRR_ammobox","Weapon_hlc_rifle_awcovert","Weapon_hlc_rifle_awcovert_BL","Weapon_hlc_rifle_awcovert_FDE","Weapon_hlc_rifle_awmagnum","Weapon_hlc_rifle_awmagnum_BL","Weapon_hlc_rifle_awmagnum_FDE","Weapon_hlc_rifle_awMagnum_OD_ghillie","Weapon_hlc_rifle_awMagnum_FDE_ghillie","Weapon_hlc_rifle_awMagnum_BL_ghillie"};
weapons[] = {};
magazines[] = {};
version="1.55";
author="toadie";
};
};
class cfgMods {
class Mod_Base;
class Niarms_AWC : Mod_Base {
name = "NIArsenal: AWM Rifles";
picture = "hlc_wp_fhawc\tex\ui\NIArms1_ca.paa";
dir = "@NIArsenal";
hideName = 1;
hidePicture = 0;
action = "http://credmo.updatedtuesdays.com/tier1";
author = "Toadie";
logo = "hlc_wp_fhawc\tex\ui\NIArms1_ca.paa";
logoOver = "hlc_wp_fhawc\tex\ui\NIArms1_ca.paa";
logoSmall = "hlc_wp_fhawc\tex\ui\NIArms1_ca.paa";
};
};
class Mode_SemiAuto;
class Mode_Burst;
class Mode_FullAuto;
class nia_charms_slot;
//class PointerSlot;
class asdg_OpticRail1913;
class CfgSounds {
class hlc_bolt_AWM {
name = "hlc_bolt_AWM";
Sound[] = { "\hlc_wp_fhawc\snd\AWM_rechamber", 1, 1, 15 };
titles[] = {};
};
};
class CfgMovesBasic {
class DefaultDie;
class ManActions {
HLC_GestureReloadAWM = "HLC_GestureReloadAWM"; // Would reccommend changing the naming convention, just so nothing overlaps
HLC_GestureRechamberAWM = "HLC_GestureRechamberAWM";
};
class Actions {
class RifleBaseStandActions;
class RifleAdjustProneBaseActions;
class NoActions : ManActions {
HLC_GestureReloadAWM[] = { "HLC_GestureReloadAWM", "Gesture" };
HLC_GestureRechamberAWM[] = { "HLC_GestureRechamberAWM", "Gesture" };
};
class RifleProneActions : RifleBaseStandActions {
HLC_GestureReloadAWM[] = { "HLC_GestureReloadAWM_Prone", "Gesture" };
HLC_GestureRechamberAWM[] = { "HLC_GestureRechamberAWM_Prone", "Gesture" };
};
/*
class RifleKneelActions : RifleBaseStandActions {
HLC_GestureReloadM249[] = { "HLC_GestureReloadM249_Crouch", "Gesture" };
};
*/
class RifleAdjustRProneActions : RifleAdjustProneBaseActions {
HLC_GestureReloadAWM[] = { "HLC_GestureReloadAWM_Context", "Gesture" };
HLC_GestureRechamberAWM[] = { "HLC_GestureRechamberAWM_Context", "Gesture" };
};
class RifleAdjustLProneActions : RifleAdjustProneBaseActions {
HLC_GestureReloadAWM[] = { "HLC_GestureReloadAWM_Context", "Gesture" };
HLC_GestureRechamberAWM[] = { "HLC_GestureRechamberAWM_Context", "Gesture" };
class RifleAdjustFProneActions : RifleAdjustProneBaseActions {
HLC_GestureReloadAWM[] = { "HLC_GestureReloadAWM_Context", "Gesture" };
HLC_GestureRechamberAWM[] = { "HLC_GestureRechamberAWM_Context", "Gesture" };
};
};
};
};
class CfgGesturesMale {
class Default;
class States {
class HLC_GestureReloadAWM : Default {
file = "hlc_wp_fhawc\anim\awc_reload_stand.rtm";
speed = 0.2189781021897810218978102189781;
looped = false;
mask = "handsWeapon";
headBobStrength = 0.3;
headBobMode = 2;
rightHandIKCurve[] = { 0, 1, 0.65693430, 1, 0.69343065, 0, 0.87591240, 0, 0.91240875, 1 };
leftHandIKBeg = true;
leftHandIKEnd = true;
leftHandIKCurve[] = { 0.0729927, 1, 0.10218978, 0, 0.91240875, 0, 0.94890510, 1 };
};
class HLC_GestureReloadAWM_Crouch : Default {
file = "hlc_wp_fhawc\anim\awc_reload_stand.rtm";
speed = 0.2189781021897810218978102189781;
looped = false;
mask = "handsWeapon";
headBobStrength = 0.45;
headBobMode = 2;
rightHandIKCurve[] = { 0, 1,1,1};
leftHandIKBeg = true;
leftHandIKEnd = true;
leftHandIKCurve[] = { 0, 1, 0.00986, 0, 0.92105, 0, 0.947368, 1 };
};
class HLC_GestureReloadAWM_Prone : Default {
file = "hlc_wp_fhawc\anim\awc_reload_prone.rtm";
speed = 0.2189781021897810218978102189781;
looped = false;
mask = "handsWeapon";
headBobStrength = 0.1;
headBobMode = 2;
rightHandIKCurve[] = { 0, 1, 0.65693430, 1, 0.69343065, 0, 0.87591240, 0, 0.91240875, 1 };
leftHandIKBeg = true;
leftHandIKEnd = true;
leftHandIKCurve[] = { 0.0729927, 1, 0.10218978, 0, 0.91240875, 0, 0.94890510, 1 };
};
class HLC_GestureReloadAWM_Context : HLC_GestureReloadAWM {
mask = "handsWeapon_context";
};
class HLC_GestureRechamberAWM : Default {
file = "hlc_wp_fhawc\anim\awc_rechamber_stand.rtm";
speed = 0.6;
looped = false;
mask = "handsWeapon";
headBobStrength = 0.1;
headBobMode = 2;
rightHandIKCurve[] = { 0.08, 1, 0.18, 0, 0.7, 0, 0.82, 1 };
leftHandIKBeg = true;
leftHandIKEnd = true;
leftHandIKCurve[] = { 0, 1, 1, 1 };
};
class HLC_GestureRechamberAWM_Prone : Default {
file = "hlc_wp_fhawc\anim\awc_rechamber_prone.rtm";
speed = 0.6;
looped = false;
mask = "handsWeapon";
headBobStrength = 0.1;
headBobMode = 2;
rightHandIKCurve[] = { 0.08, 1, 0.18, 0, 0.7, 0, 0.82, 1 };
leftHandIKBeg = true;
leftHandIKEnd = true;
leftHandIKCurve[] = { 0, 1,1, 1 };
};
class HLC_GestureRechamberAWM_Context : HLC_GestureRechamberAWM {
mask = "handsWeapon_context";
};
};
};
class CfgVehicles {
class B_supplyCrate_F;
class Weapon_Base_F;
class HLC_LRR_ammobox: B_supplyCrate_F {
dlc = "Niarms_AWC";
scope = 2;
vehicleClass = "Ammo";
displayName = "HLC LRR Box";
icon = "iconCrateWpns";
transportMaxWeapons = 25;
transportMaxMagazines = 250;
class TransportMagazines {
__M_MAG(hlc_5rnd_300WM_FMJ_AWM,30);
__M_MAG(hlc_5rnd_300WM_AP_AWM,30);
__M_MAG(hlc_5rnd_300WM_BTSP_AWM,30);
__M_MAG(hlc_5rnd_300WM_mk248_AWM,30);
__M_MAG(hlc_5rnd_300WM_SBT_AWM,30);
};
class TransportWeapons {
__M_WEP(hlc_rifle_awcovert,10);
__M_WEP(hlc_rifle_awcovert_BL,10);
__M_WEP(hlc_rifle_awcovert_FDE,10);
__M_WEP(hlc_rifle_awmagnum,10);
__M_WEP(hlc_rifle_awmagnum_BL,10);
__M_WEP(hlc_rifle_awmagnum_FDE,10);
__M_WEP(hlc_rifle_awMagnum_BL_ghillie,10);
__M_WEP(hlc_rifle_awMagnum_FDE_ghillie,10);
__M_WEP(hlc_rifle_awMagnum_OD_ghillie,10);
};
class TransportItems {
__M_ITM(optic_LRPS,10);
__M_ITM(optic_hamr,10);
__M_ITM(optic_NVS,10);
__M_ITM(optic_SOS,10);
};
};
class Weapon_hlc_rifle_awcovert : Weapon_Base_F {
dlc = "Niarms_AWC";
scope = 2;
scopeCurator = 2;
displayName = "AWC-M(OD)";
author = "Toadie";
vehicleClass = "WeaponsPrimary";
class TransportWeapons {
class srifle_EBR_F {
weapon = "hlc_rifle_awcovert";
count = 1;
};
};
class TransportMagazines {
class 20Rnd_762x51_Mag {
magazine = "hlc_5rnd_300WM_BTSP_AWM";
count = 1;
};
};
};
class Weapon_hlc_rifle_awcovert_BL : Weapon_Base_F {
dlc = "Niarms_AWC";
scope = 2;
scopeCurator = 2;
displayName = "AWC-M(Black)";
author = "Toadie";
vehicleClass = "WeaponsPrimary";
class TransportWeapons {
class srifle_EBR_F {
weapon = "hlc_rifle_awcovert_BL";
count = 1;
};
};
class TransportMagazines {
class 20Rnd_762x51_Mag {
magazine = "hlc_5rnd_300WM_BTSP_AWM";
count = 1;
};
};
};
class Weapon_hlc_rifle_awcovert_FDE : Weapon_Base_F {
dlc = "Niarms_AWC";
scope = 2;
scopeCurator = 2;
displayName = "AWC-M(FDE)";
author = "Toadie";
vehicleClass = "WeaponsPrimary";
class TransportWeapons {
class srifle_EBR_F {
weapon = "hlc_rifle_awcovert_FDE";
count = 1;
};
};
class TransportMagazines {
class 20Rnd_762x51_Mag {
magazine = "hlc_5rnd_300WM_BTSP_AWM";
count = 1;
};
};
};
class Weapon_hlc_rifle_awmagnum : Weapon_Base_F {
dlc = "Niarms_AWC";
scope = 2;
scopeCurator = 2;
displayName = "AWM(OD)";
author = "Toadie";
vehicleClass = "WeaponsPrimary";
class TransportWeapons {
class srifle_EBR_F {
weapon = "hlc_rifle_awmagnum";
count = 1;
};
};
class TransportMagazines {
class 20Rnd_762x51_Mag {
magazine = "hlc_5rnd_300WM_mk248_AWM";
count = 1;
};
};
};
class Weapon_hlc_rifle_awmagnum_BL : Weapon_Base_F {
dlc = "Niarms_AWC";
scope = 2;
scopeCurator = 2;
displayName = "AWM(Black)";
author = "Toadie";
vehicleClass = "WeaponsPrimary";
class TransportWeapons {
class srifle_EBR_F {
weapon = "hlc_rifle_awmagnum_BL";
count = 1;
};
};
class TransportMagazines {
class 20Rnd_762x51_Mag {
magazine = "hlc_5rnd_300WM_mk248_AWM";
count = 1;
};
};
};
class Weapon_hlc_rifle_awmagnum_FDE : Weapon_Base_F {
dlc = "Niarms_AWC";
scope = 2;
scopeCurator = 2;
displayName = "AWM(FDE)";
author = "Toadie";
vehicleClass = "WeaponsPrimary";
class TransportWeapons {
class srifle_EBR_F {
weapon = "hlc_rifle_awmagnum_FDE";
count = 1;
};
};
class TransportMagazines {
class 20Rnd_762x51_Mag {
magazine = "hlc_5rnd_300WM_mk248_AWM";
count = 1;
};
};
};
class Weapon_hlc_rifle_awMagnum_OD_ghillie : Weapon_Base_F {
dlc = "Niarms_AWC";
scope = 2;
scopeCurator = 2;
displayName = "AWM(OD)+Ghillie";
author = "Toadie";
vehicleClass = "WeaponsPrimary";
class TransportWeapons {
class srifle_EBR_F {
weapon = "hlc_rifle_awMagnum_OD_ghillie";
count = 1;
};
};
class TransportMagazines {
class 20Rnd_762x51_Mag {
magazine = "hlc_5rnd_300WM_mk248_AWM";
count = 1;
};
};
};
class Weapon_hlc_rifle_awMagnum_FDE_ghillie : Weapon_Base_F {
dlc = "Niarms_AWC";
scope = 2;
scopeCurator = 2;
displayName = "AWM(FDE)+Ghillie";
author = "Toadie";
vehicleClass = "WeaponsPrimary";
class TransportWeapons {
class srifle_EBR_F {
weapon = "hlc_rifle_awMagnum_FDE_ghillie";
count = 1;
};
};
class TransportMagazines {
class 20Rnd_762x51_Mag {
magazine = "hlc_5rnd_300WM_mk248_AWM";
count = 1;
};
};
};
class Weapon_hlc_rifle_awMagnum_BL_ghillie : Weapon_Base_F {
dlc = "Niarms_AWC";
scope = 2;
scopeCurator = 2;
displayName = "AWM(Black)+Ghillie";
author = "Toadie";
vehicleClass = "WeaponsPrimary";
class TransportWeapons {
class srifle_EBR_F {
weapon = "hlc_rifle_awMagnum_BL_ghillie";
count = 1;
};
};
class TransportMagazines {
class 20Rnd_762x51_Mag {
magazine = "hlc_5rnd_300WM_mk248_AWM";
count = 1;
};
};
};
};
class CfgMagazines {
class 30Rnd_556x45_Stanag;
class hlc_5rnd_300WM_FMJ_AWM : 30Rnd_556x45_Stanag {
dlc = "Niarms_AWC";
ammo = "HLC_300WM_FMJ";
count = 5;
descriptionshort = $STR_NIA_DESC_5rnd_300WM_FMJ_AWM;
displayname = $STR_NIA_5rnd_300WM_FMJ_AWM;
initspeed = 841.2;
lastroundstracer = 0;
picture = "\hlc_wp_fhawc\tex\ui\m_awm_FMJ_ca";
model = "\hlc_wp_fhAWC\mesh\magazine\magazine.p3d";
modelSpecial = \hlc_wp_fhAWC\mesh\magazine\proxy\5Rnd_300wm_AW.p3d;
modelSpecialIsProxy = 1;
scope = 2;
tracersevery = 0;
mass = 14;
displaynameshort = $STR_NIA_300WM_FMJ;
author = "toadie,Spartan0536";
};
class hlc_5rnd_300WM_AP_AWM : hlc_5rnd_300WM_FMJ_AWM {
dlc = "Niarms_AWC";
ammo = "HLC_300WM_AP";
count = 5;
descriptionshort = $STR_NIA_DESC_5rnd_300WM_AP_AWM;
displayname = $STR_NIA_5rnd_300WM_AP_AWM;
initspeed = 861;
lastroundstracer = 0;
picture = "\hlc_wp_fhawc\tex\ui\m_awm_AP_ca";
model = "\hlc_wp_fhAWC\mesh\magazine\magazine.p3d";
modelSpecial = \hlc_wp_fhAWC\mesh\magazine\proxy\5Rnd_300wm_AW.p3d;
modelSpecialIsProxy = 1;
scope = 2;
tracersevery = 0;
mass = 14;
displaynameshort = $STR_NIA_300WM_AP;
author = "toadie,Spartan0536";
};
class hlc_5rnd_300WM_T_AWM : hlc_5rnd_300WM_FMJ_AWM{
dlc = "Niarms_AWC";
ammo = "HLC_300WM_Tracer";
descriptionshort = $STR_NIA_DESC_5rnd_300WM_T_AWM;
displayname = $STR_NIA_5rnd_300WM_T_AWM;
initspeed = 861;
lastroundstracer = 0;
picture = "\hlc_wp_fhawc\tex\ui\m_awm_FMJ_ca";
tracersevery = 1;
mass = 14;
displaynameshort = $STR_NIA_300WM_T;
author = "toadie,Spartan0536";
};
class hlc_5rnd_300WM_BTSP_AWM : hlc_5rnd_300WM_FMJ_AWM {
dlc = "Niarms_AWC";
ammo = "HLC_300WM_BTSP";
descriptionshort = $STR_NIA_DESC_5rnd_300WM_btsp_AWM;
displayname = $STR_NIA_5rnd_300WM_BTSP_AWM;
initspeed = 935;
lastroundstracer = 0;
picture = "\hlc_wp_fhawc\tex\ui\m_awm_spbt_ca";
tracersevery = 0;
mass = 14;
displaynameshort = $STR_NIA_300WM_BTSP;
author = "toadie";
};
class hlc_5rnd_300WM_mk248_AWM : hlc_5rnd_300WM_FMJ_AWM {
dlc = "Niarms_AWC";
ammo = "HLC_300WM_BTHP";
descriptionshort = $STR_NIA_DESC_5rnd_300WM_mk248_AWM;
displayname = $STR_NIA_5rnd_300WM_mk248_AWM;
initspeed = 899;
lastroundstracer = 0;
picture = "\hlc_wp_fhawc\tex\ui\m_awm_hpbt_ca";
tracersevery = 0;
mass = 15;
displaynameshort = $STR_NIA_300WM_mk248;
author = "toadie,Spartan0536";
};
class hlc_5rnd_300WM_SBT_AWM : hlc_5rnd_300WM_FMJ_AWM {
dlc = "Niarms_AWC";
ammo = "HLC_300WM_S_BT";
descriptionshort = $STR_NIA_DESC_5rnd_300WM_sub_AWM;
displayname = $STR_NIA_5rnd_300WM_sbt_AWM;
initspeed = 380;
lastroundstracer = 0;
picture = "\hlc_wp_fhawc\tex\ui\m_awm_sub_ca";
tracersevery = 0;
mass = 14;
displaynameshort = $STR_NIA_300WM_Sub;
author = "toadie,Spartan0536";
};
};
class CfgMagazineWells {
class CBA_300WM_AI {
NIA_mags[] = { __300WM_MAGS };
};
};
class CfgRecoils
{
class recoil_default;
class recoil_awc : recoil_default {
muzzleOuter[] = { 0.2, 0.6, 0.5, 0.2 };
kickBack[] = { 0.02, 0.02 };
temporary = 0.01;
};
};
class CfgWeapons {
class Rifle;
class Rifle_Base_F: Rifle {
class WeaponSlotsInfo;
class GunParticles;
};
class hlc_AWC_base : Rifle_Base_F {
dlc = "Niarms_AWC";
author = "Toadie";
scope = protected;
magazines[] = { __300WM_MAGS };
magazineWell[] = {"CBA_300WM_AI"};
maxRecoilSway = 0.0125;
swayDecaySpeed = 1.25;
maxZeroing = 1600;
class GunParticles {
class FirstEffect {
effectName = "SniperCloud";
positionName = "Usti hlavne";
directionName = "Konec hlavne";
};
};
class WeaponSlotsInfo: WeaponSlotsInfo {
class MuzzleSlot {};
class PointerSlot {};
class CowsSlot : asdg_OpticRail1913 {
iconPosition[] = { 0.5, 0.35 };
iconScale = 0.2;
};
class Charmslot : nia_charms_slot {};
};
descriptionShort = "Long-Range Rifle<br/>Caliber: .300WM";
dexterity = 1.8;
bullet1[] = { "A3\sounds_f\weapons\shells\5_56\metal_556_01.wss", 0.1, 1, 15 };
bullet2[] = { "A3\sounds_f\weapons\shells\5_56\metal_556_02.wss", 0.1, 1, 15 };
bullet3[] = { "A3\sounds_f\weapons\shells\5_56\metal_556_03.wss", 0.177828, 1, 15 };
bullet4[] = { "A3\sounds_f\weapons\shells\5_56\metal_556_04.wss", 0.177828, 1, 15 };
bullet5[] = { "A3\sounds_f\weapons\shells\5_56\asphlat_556_01.wss", 0.1, 1, 15 };
bullet6[] = { "A3\sounds_f\weapons\shells\5_56\asphlat_556_02.wss", 0.1, 1, 15 };
bullet7[] = { "A3\sounds_f\weapons\shells\5_56\asphlat_556_03.wss", 0.1, 1, 15 };
bullet8[] = { "A3\sounds_f\weapons\shells\5_56\asphlat_556_04.wss", 0.1, 1, 15 };
bullet9[] = { "A3\sounds_f\weapons\shells\5_56\grass_556_01.wss", 0.01, 1, 15 };
bullet10[] = { "A3\sounds_f\weapons\shells\5_56\grass_556_02.wss", 0.01, 1, 15 };
bullet11[] = { "A3\sounds_f\weapons\shells\5_56\grass_556_03.wss", 0.01, 1, 15 };
bullet12[] = { "A3\sounds_f\weapons\shells\5_56\grass_556_04.wss", 0.01, 1, 15 };
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};
modes[] = { "Single", "far_optic1", "medium_optic2", "far_optic2" };
class Single : Mode_SemiAuto {
sounds[] = {"StandardSound","SilencedSound"};
class BaseSoundModeType { /// I am too lazy to copy this twice into both standard and silenced sounds, that is why there is a base class from which both inherit (and sound of closure stays the same no matter what muzzle accessory is used)
weaponSoundEffect = "DefaultRifle";
closure1[]={"\hlc_wp_fhawc\snd\AWC_first", 0.7, 1,10};
closure2[]={"\hlc_wp_fhawc\snd\AWC_first", 0.7, 1,10};
soundClosure[]={closure1,0.5, closure2,0.5};
};
class StandardSound : BaseSoundModeType { /// Sounds inside this class are used when soundTypeIndex = 0, according to sounds[]
soundSetShot[] = { "awm_Shot_SoundSet", "awm_Tail_SoundSet" };
};
class SilencedSound : BaseSoundModeType { /// Sounds inside this class are used when soundTypeIndex = 1, according to sounds[]
soundSetShot[] = { "awc_silencerShot_SoundSet", "awc_silencerTail_SoundSet" };
};
reloadTime = 1.6666666666666666666666666666667;
dispersion = 0.000111119;
__AI_ROF_338SNIPER_SEMI;
};
class far_optic1 : Single {
showToPlayer = 0;
requiredOpticType = 1;
__AI_ROF_338SNIPER_MSCOPE_SEMI;
};
class medium_optic2 : Single {
showToPlayer = 0;
__AI_ROF_338SNIPER_HSCOPE_SEMI;
requiredOpticType = 2;
};
class far_optic2 : far_optic1 {
__AI_ROF_338SNIPER_HSCOPE_SEMI;
requiredOpticType = 2;
};
aiDispersionCoefY = 10;
aiDispersionCoefX = 8;
drysound[] = { "\hlc_wp_fhawc\snd\AWC_dryfire", 1, 1, 10 };
reloadmagazinesound[] = { "\hlc_wp_fhawc\snd\AWC_reload", 0.5, 1, 20 };
class ItemInfo {
priority = 1;
RMBhint = "XMC";
onHoverText = "TODO XMC DSS";
};
UiPicture = "\A3\weapons_f\data\UI\icon_sniper_CA.paa";
};
/*
REMOVED
Reason - Alpha Sorting irrepariably fucked. Sigh.
Made "Ghillied Up" versions instead. Less cool or versatile, but at least I don't have to deal with BEARS.
class hlc_acc_Ghilliewrap : ItemCore {
descriptionshort = "Ghillie Wrap";
descriptionuse = "<t color='#9cf953'>Use: </t>Turn IR Laser ON/OFF";
displayname = "Ghillie Wrap (NATO)";
model = "\hlc_wp_fhAWC\mesh\GHillwrap\ghilliewrap.p3d";
picture = "\A3\weapons_F\Data\UI\gear_accv_pointer_CA.paa";
scope = 2;
class ItemInfo : InventoryFlashLightItem_Base_F {
mass = 8;
};
};
*/
class hlc_rifle_awcovert : hlc_AWC_base {
author = "toadie";
scope = public;
AB_barrelTwist = 8;
AB_barrelLength = 12;
agm_bipod = 1;
ACE_barrelTwist = 203;
ACE_barrelLength = 305;
AGM_Overheating_Dispersion[] = { 0, -0.001, 0.001, 0.003 };
AGM_Overheating_SlowdownFactor[] = { 1, 1, 1, 0.9 };
AGM_Overheating_JamChance[] = { 0, 0.0003, 0.0015, 0.0075 };
agm_overheating_allowbarrelswap = 1;
cse_bipod = 0;
tmr_autorest_deployable = 0;
TMR_acc_bipod = 0;
initspeed = -0.7434831461;
recoil = "recoil_awc";
deployedPivot = "deploypoint"; /// what point should be used to be on surface while unfolded
hasBipod = true; /// a weapon with bipod obviously has a bipod
soundBipodDown[] = { "A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_AAF_down", db - 3, 1, 20 }; /// sound of unfolding the bipod
soundBipodUp[] = { "A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_AAF_up", db - 3, 1, 20 }; /// sound of folding the bipod
magazineReloadSwitchPhase = 0.5;
class EventHandlers {
fired = "_this call CBA_fnc_weaponEvents";
};
class CBA_weaponEvents {
handAction = "HLC_GestureRechamberAWM";
sound = "hlc_bolt_AWM";
soundLocation = "RightHandMiddle1";
delay = 0.02;
onEmpty = 0;
};
cursor = "srifle";
cursorAim = "EmptyCursor";
model = "\hlc_wp_fhawc\mesh\awcovert\covert.p3d";
reloadaction = "HLC_GestureReloadAWM";
descriptionShort = $STR_NIA_AWCM_DESC;
inertia = 0.60;
__DEXTERITY(6.0, 0);
picture = "\hlc_wp_fhawc\tex\ui\gear_awcOD_ca";
displayName = $STR_NIA_rifle_AWC_OD;
discretedistance[] = { 100, 200, 300, 400, 500, 600, 700, 800 };
discretedistanceinitindex = 2;
bg_bipod = 1;
handanim[] = { "OFP2_ManSkeleton", "\hlc_wp_fhAWC\anim\awmhands.rtm" };
hiddenSelections[] = { "camo", "camo2"};
hiddenSelectionsTextures[] = { "\hlc_wp_fhAWC\tex\awcstock_OD_co.paa", "\hlc_wp_fhAWC\tex\AWC_Scope_co.paa"};
class WeaponSlotsInfo : WeaponSlotsInfo {
mass = 132;
};
class Single : Single {
sounds[] = {"StandardSound"};
class StandardSound : StandardSound { /// Sounds inside this class are used when soundTypeIndex = 0, according to sounds[]
soundSetShot[] = { "awc_silencerShot_SoundSet", "awc_silencerTail_SoundSet" };
};
dispersion = 0.00058;
};
class far_optic1 : Single {
showToPlayer = 0;
requiredOpticType = 1;
__AI_ROF_338SNIPER_MSCOPE_SEMI;
};
class medium_optic2 : Single {
showToPlayer = 0;
__AI_ROF_338SNIPER_HSCOPE_SEMI;
requiredOpticType = 2;
};
class far_optic2 : far_optic1 {
__AI_ROF_338SNIPER_HSCOPE_SEMI;
requiredOpticType = 2;
};
class Library {
libTextDesc = "Accuracy International Arctic Warfare Covert Magnum";
};
};
class hlc_rifle_awmagnum : hlc_AWC_base {
author = "toadie";
scope = public;
AB_barrelTwist = 1;
AB_barrelLength = 26;
agm_bipod = 1;
ACE_barrelTwist = 279.4;
ACE_barrelLength = 660;
AGM_Overheating_Dispersion[] = { 0, -0.001, 0.001, 0.003 };
AGM_Overheating_SlowdownFactor[] = { 1, 1, 1, 0.9 };
AGM_Overheating_JamChance[] = { 0, 0.0003, 0.0015, 0.0075 };
agm_overheating_allowbarrelswap = 1;
cse_bipod = 1;
tmr_autorest_deployable = 1;
TMR_acc_bipod = 1;
recoil = "recoil_awc";
deployedPivot = "deploypoint"; /// what point should be used to be on surface while unfolded
hasBipod = true; /// a weapon with bipod obviously has a bipod
soundBipodDown[] = { "A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_AAF_down", db - 3, 1, 20 }; /// sound of unfolding the bipod
soundBipodUp[] = { "A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_AAF_up", db - 3, 1, 20 }; /// sound of folding the bipod
magazineReloadSwitchPhase = 0.5;
hiddenSelections[] = { "camo", "camo2", "Camo3" };
hiddenSelectionsTextures[] = { "\hlc_wp_fhAWC\tex\awcstock_OD_co.paa","\hlc_wp_fhAWC\tex\AWC_Scope_co.paa","\hlc_wp_fhAWC\tex\Magnumbits_ca.paa" };
class EventHandlers {
fired = "_this call CBA_fnc_weaponEvents";
};
class CBA_weaponEvents {
handAction = "HLC_GestureRechamberAWM";
sound = "hlc_bolt_AWM";
soundLocation = "RightHandMiddle1";
delay = 0.02;
onEmpty = 0;
};
cursor = "srifle";
cursorAim = "EmptyCursor";
model = "\hlc_wp_fhawc\mesh\awmagnum\covert.p3d";
reloadaction = "HLC_GestureReloadAWM";
descriptionShort = $STR_NIA_AWM_DESC;
inertia = 0.65;
__DEXTERITY(6.5, 0);
picture = "\hlc_wp_fhawc\tex\ui\gear_awmOD_ca";
displayName = $STR_NIA_rifle_AWM_OD;
discretedistance[] = { 100, 200, 300, 400, 500, 600, 700, 800 };
discretedistanceinitindex = 2;
bg_bipod = 1;
handanim[] = { "OFP2_ManSkeleton", "\hlc_wp_fhAWC\anim\awmhands.rtm" };
class WeaponSlotsInfo : WeaponSlotsInfo {
mass = 143;
// class PointerSlot : PointerSlot {
// compatibleItems[] = {/* "hlc_acc_Ghilliewrap" */};
// };
};
class Library {
libTextDesc = "Accuracy International Arctic Warfare Magnum";
};
};
class hlc_rifle_awmagnum_BL : hlc_rifle_awmagnum {
author = "toadie";
displayName = $STR_NIA_rifle_AWM_Black;
hiddenSelections[] = { "camo", "camo2", "Camo3" };
picture = "\hlc_wp_fhawc\tex\ui\gear_awmBlack_ca";
hiddenSelectionsTextures[] = { "\hlc_wp_fhAWC\tex\AWCSTOCK_black_co.paa", "\hlc_wp_fhAWC\tex\AWC_Scope_co.paa", "\hlc_wp_fhAWC\tex\Magnumbits_ca.paa" };
};
class hlc_rifle_awmagnum_FDE : hlc_rifle_awmagnum {
author = "toadie";
displayName = $STR_NIA_rifle_AWM_FDE;
hiddenSelections[] = { "camo", "camo2", "Camo3" };
picture = "\hlc_wp_fhawc\tex\ui\gear_awmFDE_ca";
hiddenSelectionsTextures[] = { "\hlc_wp_fhAWC\tex\awcstock_FDE_co.paa", "\hlc_wp_fhAWC\tex\AWC_Scope_co.paa", "\hlc_wp_fhAWC\tex\Magnumbits_ca.paa" };
};
class hlc_rifle_awMagnum_OD_ghillie : hlc_rifle_awmagnum {
class WeaponSlotsInfo : WeaponSlotsInfo {
mass = 127;
};
author = "toadie";
displayName = $STR_NIA_rifle_AWM_OD_Ghillie;
picture = "\hlc_wp_fhawc\tex\ui\gear_awmghillieOD_ca";
model = "\hlc_wp_fhawc\mesh\awmagnum\awm_ghillie.p3d";
};
class hlc_rifle_awMagnum_FDE_ghillie : hlc_rifle_awmagnum_FDE {
class WeaponSlotsInfo : WeaponSlotsInfo {
mass = 127;
};
author = "toadie";
displayName = $STR_NIA_rifle_AWM_FDE_Ghillie;
picture = "\hlc_wp_fhawc\tex\ui\gear_awmghillieFDE_ca";
model = "\hlc_wp_fhawc\mesh\awmagnum\awm_ghillie.p3d";
};
class hlc_rifle_awMagnum_BL_ghillie : hlc_rifle_awmagnum_BL {
class WeaponSlotsInfo : WeaponSlotsInfo {
mass = 127;
};
author = "toadie";
displayName = $STR_NIA_rifle_AWM_Black_Ghillie;
picture = "\hlc_wp_fhawc\tex\ui\gear_awmghillieBlack_ca";
model = "\hlc_wp_fhawc\mesh\awmagnum\awm_ghillie.p3d";
};
class hlc_rifle_awcovert_BL : hlc_rifle_awcovert {
author = "toadie";
displayName = $STR_NIA_rifle_AWC_BLack;
hiddenSelections[] = { "camo", "camo2"};
picture = "\hlc_wp_fhawc\tex\ui\gear_awcBlack_ca";
hiddenSelectionsTextures[] = { "\hlc_wp_fhAWC\tex\AWCSTOCK_black_co.paa", "\hlc_wp_fhAWC\tex\AWC_Scope_co.paa"};
};
class hlc_rifle_awcovert_FDE : hlc_rifle_awcovert {
displayName = $STR_NIA_rifle_AWC_FDE;
hiddenSelections[] = { "camo", "camo2"};
picture = "\hlc_wp_fhawc\tex\ui\gear_awcFDE_ca";
hiddenSelectionsTextures[] = { "\hlc_wp_fhAWC\tex\awcstock_FDE_co.paa", "\hlc_wp_fhAWC\tex\AWC_Scope_co.paa"};
};
};