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_IZH18
4 {
5 units[]=
6 {
7 "ShotgunIzh43",
8 "ShotgunIzh43_Sawedoff"
9 };
10 weapons[]={};
11 requiredVersion=0.1;
12 requiredAddons[]=
13 {
14 "DZ_Data",
15 "DZ_Weapons_Firearms"
16 };
17 };
18};
19class Mode_Safe;
20class Mode_SemiAuto;
21class Mode_Single;
22class Mode_Burst;
23class Mode_FullAuto;
24class OpticsInfoRifle;
25class cfgWeapons
26{
27 class Rifle_Base;
28 class Izh18_Base: Rifle_Base
29 {
30 scope=0;
31 weight=3200;
32 absorbency=0;
33 repairableWithKits[]={1};
34 repairCosts[]={25};
35 PPDOFProperties[]={1,0.5,10,170,4,10};
36 ironsightsExcludingOptics[]=
37 {
38 "HuntingOptic"
39 };
40 DisplayMagazine=0;
41 WeaponLength=1;
42 ObstructionDistance=0.69999999;
43 barrelArmor=1.875;
44 initSpeedMultiplier=1.05;
45 chamberSize=1;
46 chamberedRound="";
47 chamberableFrom[]=
48 {
49 "Ammo_762x39",
50 "Ammo_762x39Tracer"
51 };
52 magazines[]={};
53 ejectType=3;
54 recoilModifier[]={1,1,1};
55 swayModifier[]={2.25,2.25,0.85000002};
56 hiddenSelections[]=
57 {
58 "camo"
59 };
60 class NoiseShoot
61 {
62 strength=100;
63 type="shot";
64 };
65 modes[]=
66 {
67 "Single"
68 };
69 class Single: Mode_Single
70 {
71 soundSetShot[]=
72 {
73 "IZH18_Shot_SoundSet",
74 "IZH18_Tail_SoundSet",
75 "IZH18_InteriorTail_SoundSet",
76 "IZH18_Slapback_SoundSet",
77 "IZH18_Tail_2D_SoundSet",
78 "IZH18_Shot_Interior_SoundSet"
79 };
80 soundSetShotExt[]=
81 {
82
83 {
84 "BK18_silencerHomeMade_SoundSet",
85 "BK18_silencerHomeMadeTail_SoundSet",
86 "BK18_silencerInteriorHomeMadeTail_SoundSet"
87 }
88 };
89 reloadTime=1;
90 recoil="recoil_izh18";
91 recoilProne="recoil_izh18_prone";
92 dispersion=0.0020000001;
93 magazineSlot="magazine";
94 };
95 class OpticsInfo: OpticsInfoRifle
96 {
97 memoryPointCamera="eye";
98 discreteDistance[]={200};
99 discreteDistanceInitIndex=0;
100 modelOptics="-";
101 distanceZoomMin=200;
102 distanceZoomMax=200;
103 };
104 class Particles
105 {
106 class OnFire
107 {
108 class MuzzleFlash
109 {
110 ignoreIfSuppressed=1;
111 illuminateWorld=1;
112 overridePoint="Usti hlavne";
113 };
114 class ChamberFlash
115 {
116 overridePoint="dust_point";
117 overrideParticle="weapon_dust_izh18_01";
118 };
119 };
120 };
121 weaponStateAnim="dz\anims\anm\player\reloads\IZH18\w_izh18_states.anm";
122 boneRemap[]=
123 {
124 "release",
125 "Weapon_Bone_02",
126 "barrel",
127 "Weapon_Bone_01",
128 "trigger",
129 "Weapon_Trigger",
130 "ejector",
131 "Weapon_Bone_03",
132 "bullet",
133 "Weapon_Bullet"
134 };
135 };
136 class Izh18: Izh18_Base
137 {
138 scope=2;
139 displayName="$STR_cfgWeapons_Izh180";
140 descriptionShort="$STR_cfgWeapons_Izh181";
141 model="\dz\weapons\firearms\Izh18\Izh18.p3d";
142 attachments[]=
143 {
144 "weaponWrap",
145 "suppressorImpro"
146 };
147 itemSize[]={9,3};
148 hiddenSelectionsTextures[]=
149 {
150 "dz\weapons\firearms\Izh18\data\Izh18_co.paa"
151 };
152 hiddenSelectionsMaterials[]=
153 {
154 "dz\weapons\firearms\Izh18\data\Izh18.rvmat"
155 };
156 class Particles
157 {
158 class OnFire
159 {
160 class MuzzleFlash
161 {
162 overrideParticle="weapon_shot_izh18_01";
163 illuminateWorld=1;
164 ignoreIfSuppressed=1;
165 };
166 };
167 };
168 class InventorySlotsOffsets
169 {
170 class Shoulder
171 {
172 position[]={-0.029999999,-0.02,0.015};
173 orientation[]={0,0,0};
174 };
175 class Melee
176 {
177 position[]={-0.029999999,0,-0.039999999};
178 orientation[]={0,0,0};
179 };
180 };
181 class DamageSystem
182 {
183 class GlobalHealth
184 {
185 class Health
186 {
187 hitpoints=200;
188 healthLevels[]=
189 {
190
191 {
192 1,
193
194 {
195 "DZ\weapons\firearms\Izh18\data\Izh18.rvmat"
196 }
197 },
198
199 {
200 0.69999999,
201
202 {
203 "DZ\weapons\firearms\Izh18\data\Izh18.rvmat"
204 }
205 },
206
207 {
208 0.5,
209
210 {
211 "DZ\weapons\firearms\Izh18\data\Izh18_damage.rvmat"
212 }
213 },
214
215 {
216 0.30000001,
217
218 {
219 "DZ\weapons\firearms\Izh18\data\Izh18_damage.rvmat"
220 }
221 },
222
223 {
224 0,
225
226 {
227 "DZ\weapons\firearms\Izh18\data\Izh18_destruct.rvmat"
228 }
229 }
230 };
231 };
232 };
233 };
234 };
235 class SawedoffIzh18: Izh18
236 {
237 scope=2;
238 displayName="$STR_cfgWeapons_SawedoffIzh180";
239 descriptionShort="$STR_cfgWeapons_SawedoffIzh181";
240 model="\dz\weapons\firearms\Izh18\Izh18_sawedoff.p3d";
241 itemSize[]={5,2};
242 weight=2800;
243 attachments[]={};
244 recoilModifier[]={1,1,1};
245 swayModifier[]={1.5,1.5,0.69999999};
246 firespreadangle=3;
247 WeaponLength=0.44999999;
248 ObstructionDistance=0.44499999;
249 ShoulderDistance=0.30000001;
250 initSpeedMultiplier=0.75;
251 class Single: Mode_SemiAuto
252 {
253 soundSetShot[]=
254 {
255 "IZH18sawed_Shot_SoundSet",
256 "IZH18sawed_Tail_SoundSet",
257 "IZH18_InteriorTail_SoundSet",
258 "IZH18_Slapback_SoundSet",
259 "IZH18sawed_Tail_2D_SoundSet",
260 "IZH18sawed_Shot_Interior_SoundSet"
261 };
262 soundSetShotExt[]=
263 {
264
265 {
266 "BK18_silencerHomeMade_SoundSet",
267 "BK18_silencerHomeMadeTail_SoundSet",
268 "BK18_silencerInteriorHomeMadeTail_SoundSet"
269 }
270 };
271 reloadTime=1;
272 dispersion=0.045000002;
273 recoil="recoil_izh18sawedoff";
274 recoilProne="recoil_izh18sawedoff";
275 };
276 class InventorySlotsOffsets
277 {
278 class Shoulder
279 {
280 position[]={-0.15000001,-0.02,0};
281 orientation[]={0,0,-13};
282 };
283 class Melee
284 {
285 position[]={-0.15000001,0,-0.02};
286 orientation[]={0,0,-13};
287 };
288 };
289 };
290};