Dayz Explorer CPP 1.28.160049
Loading...
Searching...
No Matches
config.cpp
Go to the documentation of this file.
1class CfgPatches
2{
3 class DZ_Weapons_Firearms_groza
4 {
5 units[]=
6 {
7 "Groza"
8 };
9 weapons[]={};
10 requiredVersion=0.1;
11 requiredAddons[]=
12 {
13 "DZ_Data",
14 "DZ_Weapons_Firearms"
15 };
16 };
17};
18class Mode_Safe;
19class Mode_SemiAuto;
20class Mode_Burst;
21class Mode_FullAuto;
22class OpticsInfoRifle;
23class cfgWeapons
24{
25 class Rifle_Base;
26 class Groza_Base: Rifle_Base
27 {
28 scope=0;
29 weight=2700;
30 absorbency=0;
31 repairableWithKits[]={1};
32 repairCosts[]={25};
33 chamberSize=1;
34 chamberedRound="";
35 chamberableFrom[]=
36 {
37 "Ammo_9x39",
38 "Ammo_9x39AP"
39 };
40 magazines[]=
41 {
42 "Mag_Groza_20Rnd",
43 "Mag_VSS_10Rnd"
44 };
45 magazineSwitchTime=0.38;
46 ejectType=1;
47 recoilModifier[]={1,1,1};
48 hiddenSelections[]=
49 {
50 "camo"
51 };
52 modes[]=
53 {
54 "FullAuto",
55 "SemiAuto"
56 };
57 class SemiAuto: Mode_SemiAuto
58 {
59 soundSetShot[]=
60 {
61 "ots14_Shot_SoundSet",
62 "ots14_Tail_SoundSet",
63 "ots14_InteriorTail_SoundSet"
64 };
65 soundSetShotExt[]=
66 {
67
68 {
69 "ots14_silencerPro_SoundSet",
70 "ots14_silencerTail_SoundSet",
71 "ots14_silencerInteriorTail_SoundSet"
72 },
73
74 {
75 "ots14_silencerHomeMade_SoundSet",
76 "ots14_silencerHomeMadeTail_SoundSet",
77 "ots14_silencerInteriorTail_SoundSet"
78 }
79 };
80 reloadTime=0.1;
81 recoil="recoil_VSS";
82 recoilProne="recoil_VSS_prone";
83 dispersion=0.0020999999;
84 magazineSlot="magazine";
85 };
86 class FullAuto: Mode_FullAuto
87 {
88 soundSetShot[]=
89 {
90 "ots14_Shot_SoundSet",
91 "ots14_Tail_SoundSet",
92 "ots14_InteriorTail_SoundSet"
93 };
94 soundSetShotExt[]=
95 {
96
97 {
98 "ots14_silencerPro_SoundSet",
99 "ots14_silencerTail_SoundSet",
100 "ots14_silencerInteriorTail_SoundSet"
101 },
102
103 {
104 "ots14_silencerHomeMade_SoundSet",
105 "ots14_silencerHomeMadeTail_SoundSet",
106 "ots14_silencerInteriorTail_SoundSet"
107 }
108 };
109 reloadTime=0.085000001;
110 recoil="recoil_VSS";
111 recoilProne="recoil_VSS_prone";
112 dispersion=0.0020999999;
113 magazineSlot="magazine";
114 };
115 class OpticsInfo: OpticsInfoRifle
116 {
117 };
118 };
119 class Groza: Groza_Base
120 {
121 scope=2;
122 displayName="$STR_cfgWeapons_Groza0";
123 descriptionShort="$STR_cfgWeapons_Groza1";
124 model="\dz\weapons\firearms\ots14\ots14.p3d";
125 hiddenSelectionsTextures[]=
126 {
127 "dz\weapons\firearms\ots14\data\ots14_co.paa"
128 };
129 attachments[]=
130 {
131 "weaponButtstockAK",
132 "weaponOpticsAK",
133 "weaponMuzzleAK"
134 };
135 itemSize[]={5,3};
136 spawnDamageRange[]={0,0.60000002};
137 class DamageSystem
138 {
139 class GlobalHealth
140 {
141 class Health
142 {
143 hitpoints=100;
144 healthLevels[]=
145 {
146
147 {
148 1,
149
150 {
151 "DZ\weapons\firearms\ots14\Data\ots14.rvmat"
152 }
153 },
154
155 {
156 0.69999999,
157
158 {
159 "DZ\weapons\firearms\ots14\Data\ots14.rvmat"
160 }
161 },
162
163 {
164 0.5,
165
166 {
167 "DZ\weapons\firearms\ots14\Data\ots14_damage.rvmat"
168 }
169 },
170
171 {
172 0.30000001,
173
174 {
175 "DZ\weapons\firearms\ots14\Data\ots14_damage.rvmat"
176 }
177 },
178
179 {
180 0,
181
182 {
183 "DZ\weapons\firearms\ots14\Data\ots14_destruct.rvmat"
184 }
185 }
186 };
187 };
188 };
189 };
190 };
191};