1+ // IFA - CfgWeapons.hpp
2+
3+ // Fun weapons for finding in lootcrates or on SF
4+ class Mode_SemiAuto ;
5+ class CfgWeapons
6+ {
7+ class ItemCore ;
8+ class LIB_M1918A2_BAR_Bipod : ItemCore{
9+ picture = " \WW2\Assets_t\Weapons\Equipment_t\Weapons\MuzzleItem\Gear_ACC_BAR_Bipod_ca.paa" ;
10+ };
11+ class LIB_M1918A2_BAR_Handle : ItemCore{
12+ picture = " \WW2\Assets_t\Weapons\Equipment_t\Weapons\MuzzleItem\Gear_ACC_BAR_Handle_ca.paa" ;
13+ };
14+ class LIB_RIFLE ;
15+ class LIB_PISTOL ;
16+ class LIB_M1_Carbine : LIB_RIFLE {
17+ class Short ;
18+ };
19+ class LIB_SVT_40 : LIB_RIFLE {
20+ class Short ;
21+ };
22+ class LIB_M1896 : LIB_PISTOL{
23+ class Single ;
24+ };
25+ class a3a_lib_M712 : LIB_M1896{
26+ displayName = " M712 Mauser" ;
27+ descriptionShort = " 9x19mm machine pistol" ;
28+ recoil = " recoil_pistol_4five" ;
29+ recoilProne = " recoil_pistol_4five" ;
30+ changeFiremodeSound[] = {" A3\sounds_f\weapons\closure\f iremode_changer_2.wss" ,0.1778 ,1 ,5 };
31+ class Full : Single{
32+ aiDispersionCoefX = 2 ;
33+ aiDispersionCoefY = 3 ;
34+ displayName = " Full" ;
35+ autoFire = 1 ;
36+ textureType = " fullAuto" ;
37+ reloadTime = 0.066 ;
38+ maxRange = 25 ;
39+ maxRangeProbab = 0.05 ;
40+ midRange = 12.5 ;
41+ midRangeProbab = 0.5 ;
42+ minRange = 0 ;
43+ minRangeProbab = 1.0 ;
44+ showToPlayer = 1 ;
45+ };
46+ modes[] = {" Single" , " Full" };
47+ };
48+ class a3a_lib_AVT_40 : LIB_SVT_40 {
49+ displayName = " AVT-40" ;
50+ descriptionShort = " AVT-40 Automatic rifle" ;
51+ changeFiremodeSound[] = {" A3\sounds_f\weapons\closure\f iremode_changer_2.wss" ,0.1778 ,1 ,5 };
52+ class Full : Short{
53+ aiDispersionCoefX = 2 ;
54+ aiDispersionCoefY = 3 ;
55+ displayName = " Full" ;
56+ autoFire = 1 ;
57+ textureType = " fullAuto" ;
58+ reloadTime = 0.08 ;
59+ maxRangeProbab = 0.05 ;
60+ midRangeProbab = 0.2 ;
61+ minRangeProbab = 0.7 ;
62+ minRange = 0 ;
63+ showToPlayer = 1 ;
64+ };
65+ modes[] = {" Single" ," Full" ," Far" ," Medium" ," Short" };
66+ };
67+ class a3a_lib_M2_Carbine : LIB_M1_Carbine{
68+ displayName = " M2 Carbine" ;
69+ descriptionShort = " M2 Carbine .30 Automatic rifle" ;
70+ changeFiremodeSound[] = {" A3\sounds_f\weapons\closure\f iremode_changer_2.wss" ,0.1778 ,1 ,5 };
71+ class Full : Short{
72+ aiDispersionCoefX = 2 ;
73+ aiDispersionCoefY = 3 ;
74+ displayName = " Full" ;
75+ autoFire = 1 ;
76+ textureType = " fullAuto" ;
77+ reloadTime = 0.08 ;
78+ maxRangeProbab = 0.05 ;
79+ midRangeProbab = 0.2 ;
80+ minRangeProbab = 0.7 ;
81+ minRange = 0 ;
82+ showToPlayer = 1 ;
83+ };
84+ modes[] = {" Single" ," Full" ," Far" ," Medium" ," Short" };
85+ };
86+
87+ // Adjust so that the mortars aren't wildly inaccurate at longer ranges
88+ class LIB_MortarCannon_base ;
89+ class LIB_GRWR34 : LIB_MortarCannon_base {
90+ class Single1 : Mode_SemiAuto {
91+ artilleryDispersion = 4 ;
92+ };
93+ class Single2 : Single1 {
94+ artilleryDispersion = 4 ;
95+ };
96+ class Single3 : Single1 {
97+ artilleryDispersion = 4 ;
98+ };
99+ };
100+ class LIB_BM37 : LIB_MortarCannon_base {
101+ class Single1 : Mode_SemiAuto {
102+ artilleryDispersion = 4 ;
103+ };
104+ class Single2 : Single1 {
105+ artilleryDispersion = 4 ;
106+ };
107+ class Single3 : Single1 {
108+ artilleryDispersion = 4 ;
109+ };
110+ };
111+ class LIB_M2_60 : LIB_MortarCannon_base {
112+ class Single1 : Mode_SemiAuto {
113+ artilleryDispersion = 4 ;
114+ };
115+ class Single2 : Single1 {
116+ artilleryDispersion = 4 ;
117+ };
118+ class Single3 : Single1 {
119+ artilleryDispersion = 4 ;
120+ };
121+ };
122+ };
0 commit comments