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_Shotguns_Izh43
4 {
5 units[]=
6 {
7 "ShotgunIzh43",
8 "ShotgunIzh43_Sawedoff"
9 };
10 weapons[]={};
11 requiredVersion=0.1;
12 requiredAddons[]=
13 {
14 "DZ_Data",
15 "DZ_Sounds_Weapons"
16 };
17 };
18};
19class Mode_Single;
20class Mode_Double;
21class Muzzle_Base;
23class cfgWeapons
24{
25 class Shotgun_Base;
26 class Izh43Shotgun_Base: Shotgun_Base
27 {
28 scope=0;
29 absorbency=0;
30 repairableWithKits[]={1};
31 repairCosts[]={25};
32 chamberSize=1;
33 chamberedRound="";
34 chamberableFrom[]=
35 {
36 "Ammo_12gaPellets",
37 "Ammo_12gaSlug",
38 "Ammo_12gaRubberSlug",
39 "Ammo_12gaBeanbag",
40 "Mag_12gaSnaploader_2Rnd"
41 };
42 DisplayMagazine=0;
43 magazines[]={};
44 PPDOFProperties[]={1,0.5,10,175,4,10};
45 WeaponLength=1.1;
46 ObstructionDistance=0.79000002;
47 barrelArmor=1.3329999;
48 initSpeedMultiplier=1.25;
49 ejectType=3;
50 muzzles[]=
51 {
52 "this",
53 "SecondMuzzle"
54 };
55 hiddenSelections[]=
56 {
57 "camo"
58 };
59 simpleHiddenSelections[]=
60 {
61 "bullet",
62 "bullet2"
63 };
64 modes[]=
65 {
66 "Single",
67 "Double"
68 };
69 class NoiseShoot
70 {
71 strength=100;
72 type="shot";
73 };
74 class Single: Mode_Single
75 {
76 soundSetShot[]=
77 {
78 "IZH43_Shot_SoundSet",
79 "IZH43_Tail_SoundSet",
80 "IZH43_InteriorTail_SoundSet",
81 "IZH43_Slapback_SoundSet",
82 "IZH43_Tail_2D_SoundSet",
83 "IZH43_Shot_Interior_SoundSet"
84 };
85 reloadTime=1;
86 dispersion=0.0099999998;
87 firespreadangle=1.5;
88 magazineSlot="magazine";
89 };
90 class Double: Mode_Double
91 {
92 soundSetShot[]=
93 {
94 "IZH43Double_Shot_SoundSet",
95 "IZH43dDouble_Tail_SoundSet",
96 "IZH43Double_InteriorTail_SoundSet",
97 "IZH43Double_Slapback_SoundSet",
98 "IZH43Double_Tail_2D_SoundSet",
99 "IZH43double_Shot_Interior_SoundSet"
100 };
101 reloadTime=0.1;
102 dispersion=0.02;
103 magazineSlot="magazine";
104 firespreadangle=1.5;
105 };
106 class OpticsInfo: OpticsInfoShotgun
107 {
108 };
109 class InventorySlotsOffsets
110 {
111 class Shoulder
112 {
113 position[]={-0.029999999,0,0.0099999998};
114 orientation[]={0,0,0};
115 };
116 class Melee
117 {
118 position[]={-0.029999999,0,-0.029999999};
119 orientation[]={0,0,0};
120 };
121 };
122 class SecondMuzzle: Muzzle_Base
123 {
124 chamberSize=1;
125 muzzlePos="usti hlavne_2";
126 muzzleEnd="konec hlavne_2";
127 cartridgePos="nabojnicestart_2";
128 cartridgeVel="nabojniceend_2";
129 magazines[]={};
130 chamberableFrom[]=
131 {
132 "Ammo_12gaPellets",
133 "Ammo_12gaSlug",
134 "Ammo_12gaRubberSlug",
135 "Mag_12gaSnaploader_2Rnd"
136 };
137 barrelArmor=1.3329999;
138 initSpeedMultiplier=1.25;
139 irDistance=0;
140 irLaserPos="laser pos";
141 irLaserEnd="laser dir";
142 modes[]=
143 {
144 "Single",
145 "Double"
146 };
147 class Single: Mode_Single
148 {
149 soundSetShot[]=
150 {
151 "IZH43_Shot_SoundSet",
152 "IZH43_Tail_SoundSet",
153 "IZH43_InteriorTail_SoundSet",
154 "IZH43_Slapback_SoundSet",
155 "IZH43_Tail_2D_SoundSet",
156 "IZH43_Shot_Interior_SoundSet"
157 };
158 reloadTime=1;
159 dispersion=0.0099999998;
160 firespreadangle=1.5;
161 magazineSlot="magazine";
162 };
163 class Double: Mode_Double
164 {
165 soundSetShot[]=
166 {
167 "IZH43Double_Shot_SoundSet",
168 "IZH43dDouble_Tail_SoundSet",
169 "IZH43Double_InteriorTail_SoundSet",
170 "IZH43Double_Slapback_SoundSet",
171 "IZH43Double_Tail_2D_SoundSet",
172 "IZH43double_Shot_Interior_SoundSet"
173 };
174 reloadTime=0.1;
175 dispersion=0.02;
176 magazineSlot="magazine";
177 firespreadangle=1.5;
178 };
179 class OpticsInfo: OpticsInfoShotgun
180 {
181 };
182 };
183 class Particles
184 {
185 class OnFire
186 {
187 class SmokeCloud
188 {
189 overrideParticle="weapon_shot_winded_smoke";
190 muzzleIndex=0;
191 };
192 class MuzzleFlash
193 {
194 overrideParticle="weapon_shot_mp133_01";
195 illuminateWorld=1;
196 muzzleIndex=0;
197 };
198 class BadlyDamagedChamberSmoke
199 {
200 overrideParticle="weapon_shot_chamber_smoke";
201 overridePoint="Nabojnicestart";
202 overrideDirectionPoint="Nabojniceend";
203 onlyWithinHealthLabel[]={3,4};
204 muzzleIndex=0;
205 };
206 class BadlyDamagedChamberSmokeRaise
207 {
208 overrideParticle="weapon_shot_chamber_smoke_raise";
209 overridePoint="Nabojnicestart";
210 onlyWithinHealthLabel[]={3,4};
211 muzzleIndex=0;
212 };
213 class SmokeCloud_2: SmokeCloud
214 {
215 overridePoint="Usti hlavne_2";
216 muzzleIndex=1;
217 };
218 class MuzzleFlash_2: MuzzleFlash
219 {
220 overridePoint="Usti hlavne_2";
221 muzzleIndex=1;
222 };
223 class BadlyDamagedChamberSmoke_2: BadlyDamagedChamberSmoke
224 {
225 overridePoint="Nabojnicestart_2";
226 muzzleIndex=1;
227 };
228 class BadlyDamagedChamberSmokeRaise_2: BadlyDamagedChamberSmokeRaise
229 {
230 overridePoint="Nabojnicestart_2";
231 muzzleIndex=1;
232 };
233 };
234 class OnBulletCasingEject
235 {
236 class ChamberSmokeRaise
237 {
238 overrideParticle="weapon_shot_chamber_smoke";
239 overridePoint="Nabojnicestart";
240 };
241 };
242 };
243 weaponStateAnim="dz\anims\anm\player\reloads\IZH43\w_IZH43_states.anm";
244 boneRemap[]=
245 {
246 "release",
247 "Weapon_Bone_02",
248 "barrel",
249 "Weapon_Bone_01",
250 "trigger",
251 "Weapon_Trigger",
252 "ejector",
253 "Weapon_Bone_03",
254 "bullet",
255 "Weapon_Bullet",
256 "bullet2",
257 "Weapon_Bone_04",
258 "snaploader",
259 "Weapon_Bone_05",
260 "trigger2",
261 "Weapon_Bone_06"
262 };
263 };
264 class Izh43Shotgun: Izh43Shotgun_Base
265 {
266 scope=2;
267 displayName="$STR_cfgWeapons_Izh43Shotgun0";
268 descriptionShort="$STR_cfgWeapons_Izh43Shotgun1";
269 model="\dz\weapons\shotguns\Izh43\izh43.p3d";
270 attachments[]=
271 {
272 "weaponWrap"
273 };
274 itemSize[]={9,3};
275 weight=3100;
276 recoilModifier[]={1,1,1};
277 swayModifier[]={2.2,2.2,0.85000002};
278 initSpeedMultiplier=1.25;
279 hiddenSelectionsTextures[]=
280 {
281 "dz\weapons\shotguns\Izh43\data\izh43_co.paa"
282 };
283 hiddenSelectionsMaterials[]=
284 {
285 "dz\weapons\shotguns\Izh43\data\izh43.rvmat"
286 };
287 class DamageSystem
288 {
289 class GlobalHealth
290 {
291 class Health
292 {
293 hitpoints=300;
294 healthLevels[]=
295 {
296
297 {
298 1,
299
300 {
301 "DZ\weapons\shotguns\Izh43\data\izh43.rvmat"
302 }
303 },
304
305 {
306 0.69999999,
307
308 {
309 "DZ\weapons\shotguns\Izh43\data\izh43.rvmat"
310 }
311 },
312
313 {
314 0.5,
315
316 {
317 "DZ\weapons\shotguns\Izh43\data\izh43_damage.rvmat"
318 }
319 },
320
321 {
322 0.30000001,
323
324 {
325 "DZ\weapons\shotguns\Izh43\data\izh43_damage.rvmat"
326 }
327 },
328
329 {
330 0,
331
332 {
333 "DZ\weapons\shotguns\Izh43\data\izh43_destruct.rvmat"
334 }
335 }
336 };
337 };
338 };
339 };
340 };
341 class SawedoffIzh43Shotgun: Izh43Shotgun_Base
342 {
343 scope=2;
344 displayName="$STR_cfgWeapons_SawedoffIzh43Shotgun0";
345 descriptionShort="$STR_cfgWeapons_SawedoffIzh43Shotgun1";
346 model="\dz\weapons\shotguns\Izh43\izh43_sawedoff.p3d";
347 itemSize[]={5,2};
348 weight=2600;
349 firespreadangle=3;
350 recoilModifier[]={2,2,1};
351 swayModifier[]={1.5,1.5,0.69999999};
352 WeaponLength=0.41999999;
353 ObstructionDistance=0.44499999;
354 ShoulderDistance=0.31999999;
355 initSpeedMultiplier=0.89999998;
356 hiddenSelectionsTextures[]=
357 {
358 "dz\weapons\shotguns\Izh43\data\izh43_co.paa"
359 };
360 hiddenSelectionsMaterials[]=
361 {
362 "dz\weapons\shotguns\Izh43\data\izh43.rvmat"
363 };
364 class DamageSystem
365 {
366 class GlobalHealth
367 {
368 class Health
369 {
370 hitpoints=300;
371 healthLevels[]=
372 {
373
374 {
375 1,
376
377 {
378 "DZ\weapons\shotguns\Izh43\data\izh43.rvmat"
379 }
380 },
381
382 {
383 0.69999999,
384
385 {
386 "DZ\weapons\shotguns\Izh43\data\izh43.rvmat"
387 }
388 },
389
390 {
391 0.5,
392
393 {
394 "DZ\weapons\shotguns\Izh43\data\izh43_damage.rvmat"
395 }
396 },
397
398 {
399 0.30000001,
400
401 {
402 "DZ\weapons\shotguns\Izh43\data\izh43_damage.rvmat"
403 }
404 },
405
406 {
407 0,
408
409 {
410 "DZ\weapons\shotguns\Izh43\data\izh43_destruct.rvmat"
411 }
412 }
413 };
414 };
415 };
416 };
417 class Single: Mode_Single
418 {
419 soundSetShot[]=
420 {
421 "IZH43sawed_Shot_SoundSet",
422 "IZH43sawed_Tail_SoundSet",
423 "IZH43_InteriorTail_SoundSet",
424 "IZH43_Slapback_SoundSet",
425 "IZH43sawed_Tail_2D_SoundSet",
426 "IZH43sawed_Shot_Interior_SoundSet"
427 };
428 reloadTime=1;
429 dispersion=0.079999998;
430 firespreadangle=1.5;
431 };
432 class Double: Mode_Double
433 {
434 soundSetShot[]=
435 {
436 "IZH43sawedDouble_Shot_SoundSet",
437 "IZH43sawedDouble_Tail_SoundSet",
438 "IZH43Double_InteriorTail_SoundSet",
439 "IZH43Double_Slapback_SoundSet",
440 "IZH43sawed3Double_Tail_2D_SoundSet",
441 "IZH43sawedDouble_Shot_Interior_SoundSet"
442 };
443 reloadTime=0.1;
444 dispersion=0.090000004;
445 firespreadangle=1.5;
446 };
447 class SecondMuzzle: SecondMuzzle
448 {
449 chamberSize=1;
450 muzzlePos="usti hlavne_2";
451 muzzleEnd="konec hlavne_2";
452 cartridgePos="nabojnicestart_2";
453 cartridgeVel="nabojniceend_2";
454 magazines[]={};
455 chamberableFrom[]=
456 {
457 "Ammo_12gaPellets",
458 "Ammo_12gaSlug",
459 "Ammo_12gaRubberSlug",
460 "Mag_12gaSnaploader_2Rnd"
461 };
462 barrelArmor=1.3329999;
463 initSpeedMultiplier=0.89999998;
464 irDistance=0;
465 irLaserPos="laser pos";
466 irLaserEnd="laser dir";
467 modes[]=
468 {
469 "Single",
470 "Double"
471 };
472 class Single: Mode_Single
473 {
474 soundSetShot[]=
475 {
476 "IZH43sawed_Shot_SoundSet",
477 "IZH43sawed_Tail_SoundSet",
478 "IZH43_InteriorTail_SoundSet",
479 "IZH43_Slapback_SoundSet",
480 "IZH43sawed_Tail_2D_SoundSet",
481 "IZH43sawed_Shot_Interior_SoundSet"
482 };
483 reloadTime=1;
484 dispersion=0.079999998;
485 firespreadangle=1.5;
486 magazineSlot="magazine";
487 };
488 class Double: Mode_Double
489 {
490 soundSetShot[]=
491 {
492 "IZH43Double_Shot_SoundSet",
493 "IZH43dDouble_Tail_SoundSet",
494 "IZH43Double_InteriorTail_SoundSet",
495 "IZH43Double_Slapback_SoundSet",
496 "IZH43Double_Tail_2D_SoundSet",
497 "IZH43double_Shot_Interior_SoundSet"
498 };
499 reloadTime=0.1;
500 dispersion=0.090000004;
501 magazineSlot="magazine";
502 firespreadangle=1.5;
503 };
504 };
505 class InventorySlotsOffsets
506 {
507 class Shoulder
508 {
509 position[]={-0.15000001,-0.02,0};
510 orientation[]={0,0,-13};
511 };
512 class Melee
513 {
514 position[]={-0.15000001,0,-0.02};
515 orientation[]={0,0,-13};
516 };
517 };
518 };
519};