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_AK74
4 {
5 units[]=
6 {
7 "AK74",
8 "AK74_Black",
9 "AK74_Green",
10 "AKS74U",
11 "AKS74U_Black",
12 "AKS74U_Green"
13 };
14 weapons[]={};
15 requiredVersion=0.1;
16 requiredAddons[]=
17 {
18 "DZ_Data",
19 "DZ_Weapons_Firearms"
20 };
21 };
22};
23class Mode_Safe;
24class Mode_SemiAuto;
25class Mode_Burst;
26class Mode_FullAuto;
27class OpticsInfoRifle;
28class cfgWeapons
29{
30 class Rifle_Base;
31 class AK74_Base: Rifle_Base
32 {
33 scope=0;
34 weight=3070;
35 absorbency=0;
36 repairableWithKits[]={1};
37 repairCosts[]={25};
38 PPDOFProperties[]={1,0.5,50,160,4,10};
39 WeaponLength=0.85000002;
40 ObstructionDistance=0.72500002;
41 barrelArmor=2.743;
42 initSpeedMultiplier=0.69999999;
43 chamberSize=1;
44 chamberedRound="";
45 chamberableFrom[]=
46 {
47 "Ammo_545x39",
48 "Ammo_545x39Tracer"
49 };
50 magazines[]=
51 {
52 "Mag_AK74_30Rnd",
53 "Mag_AK74_30Rnd_Black",
54 "Mag_AK74_30Rnd_Green",
55 "Mag_AK74_45Rnd"
56 };
57 magazineSwitchTime=0.2;
58 ejectType=1;
59 recoilModifier[]={1,1,1};
60 swayModifier[]={2.2,2.2,0.85000002};
61 simpleHiddenSelections[]=
62 {
63 "hide_barrel",
64 "magazine"
65 };
66 hiddenSelections[]=
67 {
68 "camo",
69 "magazine"
70 };
71 class NoiseShoot
72 {
73 strength=80;
74 type="shot";
75 };
76 modes[]=
77 {
78 "SemiAuto",
79 "FullAuto"
80 };
81 class SemiAuto: Mode_SemiAuto
82 {
83 soundSetShot[]=
84 {
85 "AK_Shot_SoundSet",
86 "AK_Tail_SoundSet",
87 "AK_InteriorTail_SoundSet"
88 };
89 soundSetShotExt[]=
90 {
91
92 {
93 "AK_silencer_SoundSet",
94 "AK_silencerTail_SoundSet",
95 "AK_silencerInteriorTail_SoundSet"
96 },
97
98 {
99 "AK_silencerHomeMade_SoundSet",
100 "AK_silencerHomeMadeTail_SoundSet",
101 "AK_silencerInteriorHomeMadeTail_SoundSet"
102 }
103 };
104 reloadTime=0.12;
105 recoil="recoil_AK74";
106 recoilProne="recoil_AK74_prone";
107 dispersion=0.0020000001;
108 magazineSlot="magazine";
109 };
110 class FullAuto: Mode_FullAuto
111 {
112 soundSetShot[]=
113 {
114 "AK_Shot_SoundSet",
115 "AK_Tail_SoundSet",
116 "AK_InteriorTail_SoundSet"
117 };
118 soundSetShotExt[]=
119 {
120
121 {
122 "AK_silencer_SoundSet",
123 "AK_silencerTail_SoundSet",
124 "AK_silencerInteriorTail_SoundSet"
125 },
126
127 {
128 "AK_silencerHomeMade_SoundSet",
129 "AK_silencerHomeMadeTail_SoundSet",
130 "AK_silencerInteriorHomeMadeTail_SoundSet"
131 }
132 };
133 reloadTime=0.097999997;
134 recoil="recoil_AK74";
135 recoilProne="recoil_AK74_prone";
136 dispersion=0.0020000001;
137 magazineSlot="magazine";
138 };
139 class OpticsInfo: OpticsInfoRifle
140 {
141 };
142 weaponStateAnim="dz\anims\anm\player\reloads\AK74U\w_AKS74U_states.anm";
143 };
144 class AK74: AK74_Base
145 {
146 scope=2;
147 displayName="$STR_cfgWeapons_AK740";
148 descriptionShort="$STR_cfgWeapons_AK741";
149 model="\dz\weapons\firearms\AK101\ak101.p3d";
150 attachments[]=
151 {
152 "weaponButtstockAK",
153 "WeaponHandguardAK",
154 "weaponWrap",
155 "weaponOpticsAK",
156 "weaponFlashlight",
157 "weaponMuzzleAK",
158 "weaponBayonetAK"
159 };
160 itemSize[]={8,3};
161 hiddenSelectionsTextures[]=
162 {
163 "dz\weapons\firearms\AK101\data\ak101_co.paa",
164 "DZ\weapons\attachments\magazine\data\magazine_ak74_tan_co.paa"
165 };
166 hiddenSelectionsMaterials[]=
167 {
168 "dz\weapons\firearms\AK101\data\ak101.rvmat",
169 "DZ\weapons\attachments\magazine\data\magazine_ak74_tan.rvmat"
170 };
171 weaponStateAnim="dz/anims/anm/player/reloads/AK101/w_AK101_states.anm";
172 class DamageSystem
173 {
174 class GlobalHealth
175 {
176 class Health
177 {
178 hitpoints=250;
179 healthLevels[]=
180 {
181
182 {
183 1,
184
185 {
186 "DZ\weapons\firearms\AK101\Data\ak101.rvmat"
187 }
188 },
189
190 {
191 0.69999999,
192
193 {
194 "DZ\weapons\firearms\AK101\Data\ak101.rvmat"
195 }
196 },
197
198 {
199 0.5,
200
201 {
202 "DZ\weapons\firearms\AK101\Data\ak101_damage.rvmat"
203 }
204 },
205
206 {
207 0.30000001,
208
209 {
210 "DZ\weapons\firearms\AK101\Data\ak101_damage.rvmat"
211 }
212 },
213
214 {
215 0,
216
217 {
218 "DZ\weapons\firearms\AK101\Data\ak101_destruct.rvmat"
219 }
220 }
221 };
222 };
223 };
224 };
225 class Particles
226 {
227 class OnFire
228 {
229 class SmokeCloud
230 {
231 overrideParticle="weapon_shot_winded_smoke";
232 };
233 class MuzzleFlash
234 {
235 overrideParticle="weapon_shot_ak74_01";
236 ignoreIfSuppressed=1;
237 illuminateWorld=1;
238 positionOffset[]={0,0,0};
239 };
240 class ChamberSmoke
241 {
242 overrideParticle="weapon_shot_chamber_smoke";
243 overridePoint="Nabojnicestart";
244 overrideDirectionPoint="Nabojniceend";
245 };
246 };
247 class OnOverheating
248 {
249 maxOverheatingValue=8;
250 shotsToStartOverheating=4;
251 overheatingDecayInterval=0.69999999;
252 class SmokingBarrel1
253 {
254 overrideParticle="smoking_barrel_small";
255 onlyWithinOverheatLimits[]={0,0.69999999};
256 positionOffset[]={0.1,0,0};
257 onlyWithinRainLimits[]={0,0.2};
258 };
259 class SmokingBarrel2
260 {
261 overrideParticle="smoking_barrel";
262 onlyWithinOverheatLimits[]={0.69999999,1};
263 positionOffset[]={0.1,0,0};
264 onlyWithinRainLimits[]={0,0.2};
265 };
266 class SmokingBarrelHotSteamSmall
267 {
268 overrideParticle="smoking_barrel_steam_small";
269 positionOffset[]={0.1,0,0};
270 onlyWithinRainLimits[]={0.2,1};
271 };
272 class OpenChamberSmoke
273 {
274 onlyIfBoltIsOpen=1;
275 overrideParticle="smoking_barrel_small";
276 overridePoint="Nabojnicestart";
277 };
278 };
279 class OnBulletCasingEject
280 {
281 class ChamberSmokeRaise
282 {
283 overrideParticle="weapon_shot_chamber_smoke";
284 overridePoint="Nabojnicestart";
285 };
286 };
287 };
288 };
289 class AK74_Black: AK74
290 {
291 scope=2;
292 color="Black";
293 hiddenSelectionsTextures[]=
294 {
295 "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)",
296 "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)"
297 };
298 };
299 class AK74_Green: AK74
300 {
301 scope=2;
302 color="Green";
303 hiddenSelectionsTextures[]=
304 {
305 "#(argb,8,8,3)color(0.35,0.36,0.28,1.0,CO)",
306 "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)"
307 };
308 };
309 class AKS74U: AK74_Base
310 {
311 scope=2;
312 displayName="$STR_cfgWeapons_AKS74U0";
313 descriptionShort="$STR_cfgWeapons_AKS74U1";
314 model="\dz\weapons\firearms\AK74\aks74u.p3d";
315 attachments[]=
316 {
317 "weaponButtstockAK",
318 "weaponWrap",
319 "weaponMuzzleAK"
320 };
321 weight=2700;
322 itemSize[]={6,3};
323 PPDOFProperties[]={1,0.5,50,175,4,10};
324 WeaponLength=0.70999998;
325 ObstructionDistance=0.48800001;
326 initSpeedMultiplier=0.56999999;
327 recoilModifier[]={1,1,1};
328 swayModifier[]={1.8,1.8,0.69999999};
329 hiddenSelectionsTextures[]=
330 {
331 "dz\weapons\firearms\AK74\data\aks74u_co.paa"
332 };
333 hiddenSelectionsMaterials[]=
334 {
335 "dz\weapons\firearms\AK74\data\aks74u.rvmat"
336 };
337 class DamageSystem
338 {
339 class GlobalHealth
340 {
341 class Health
342 {
343 hitpoints=250;
344 healthLevels[]=
345 {
346
347 {
348 1,
349
350 {
351 "DZ\weapons\firearms\ak74\Data\aks74u.rvmat"
352 }
353 },
354
355 {
356 0.69999999,
357
358 {
359 "DZ\weapons\firearms\ak74\Data\aks74u.rvmat"
360 }
361 },
362
363 {
364 0.5,
365
366 {
367 "DZ\weapons\firearms\ak74\Data\aks74u_damage.rvmat"
368 }
369 },
370
371 {
372 0.30000001,
373
374 {
375 "DZ\weapons\firearms\ak74\Data\aks74u_damage.rvmat"
376 }
377 },
378
379 {
380 0,
381
382 {
383 "DZ\weapons\firearms\ak74\Data\aks74u_destruct.rvmat"
384 }
385 }
386 };
387 };
388 };
389 };
390 class FullAuto: Mode_FullAuto
391 {
392 soundSetShot[]=
393 {
394 "AK_Shot_SoundSet",
395 "AK_Tail_SoundSet",
396 "AK_InteriorTail_SoundSet"
397 };
398 soundSetShotExt[]=
399 {
400
401 {
402 "AK_silencer_SoundSet",
403 "AK_silencerTail_SoundSet",
404 "AK_silencerInteriorTail_SoundSet"
405 },
406
407 {
408 "AK_silencerHomeMade_SoundSet",
409 "AK_silencerHomeMadeTail_SoundSet",
410 "AK_silencerInteriorHomeMadeTail_SoundSet"
411 }
412 };
413 reloadTime=0.097999997;
414 recoil="recoil_AK74";
415 recoilProne="recoil_AK74_prone";
416 dispersion=0.003;
417 magazineSlot="magazine";
418 };
419 class SemiAuto: Mode_SemiAuto
420 {
421 soundSetShot[]=
422 {
423 "AK_Shot_SoundSet",
424 "AK_Tail_SoundSet",
425 "AK_InteriorTail_SoundSet"
426 };
427 soundSetShotExt[]=
428 {
429
430 {
431 "AK_silencer_SoundSet",
432 "AK_silencerTail_SoundSet",
433 "AK_silencerInteriorTail_SoundSet"
434 },
435
436 {
437 "AK_silencerHomeMade_SoundSet",
438 "AK_silencerHomeMadeTail_SoundSet",
439 "AK_silencerInteriorHomeMadeTail_SoundSet"
440 }
441 };
442 reloadTime=0.12;
443 recoil="recoil_AK74";
444 recoilProne="recoil_AK74_prone";
445 dispersion=0.003;
446 magazineSlot="magazine";
447 };
448 class Particles
449 {
450 class OnFire
451 {
452 class SmokeCloud
453 {
454 overrideParticle="weapon_shot_winded_smoke";
455 };
456 class MuzzleFlash
457 {
458 overrideParticle="weapon_shot_ak74_01";
459 ignoreIfSuppressed=1;
460 illuminateWorld=1;
461 positionOffset[]={-0.1,0,0};
462 };
463 class ChamberSmoke
464 {
465 overrideParticle="weapon_shot_chamber_smoke";
466 overridePoint="Nabojnicestart";
467 overrideDirectionPoint="Nabojniceend";
468 };
469 };
470 class OnOverheating
471 {
472 maxOverheatingValue=8;
473 shotsToStartOverheating=4;
474 overheatingDecayInterval=0.69999999;
475 class SmokingBarrel1
476 {
477 overrideParticle="smoking_barrel_small";
478 onlyWithinOverheatLimits[]={0,0.69999999};
479 positionOffset[]={0.0099999998,0,0};
480 onlyWithinRainLimits[]={0,0.2};
481 };
482 class SmokingBarrel2
483 {
484 overrideParticle="smoking_barrel";
485 onlyWithinOverheatLimits[]={0.69999999,1};
486 positionOffset[]={0.0099999998,0,0};
487 onlyWithinRainLimits[]={0,0.2};
488 };
489 class SmokingBarrelHotSteamSmall
490 {
491 overrideParticle="smoking_barrel_steam_small";
492 positionOffset[]={0.1,0,0};
493 onlyWithinRainLimits[]={0.2,1};
494 };
495 class OpenChamberSmoke
496 {
497 onlyIfBoltIsOpen=1;
498 overrideParticle="smoking_barrel_small";
499 overridePoint="Nabojnicestart";
500 };
501 };
502 class OnBulletCasingEject
503 {
504 class ChamberSmokeRaise
505 {
506 overrideParticle="weapon_shot_chamber_smoke";
507 overridePoint="Nabojnicestart";
508 };
509 };
510 };
511 weaponStateAnim="dz\anims\anm\player\reloads\AK74U\w_AKS74U_states.anm";
512 };
513 class AKS74U_Black: AKS74U
514 {
515 scope=2;
516 descriptionShort="$STR_cfgWeapons_AKS74U_Black0";
517 color="Black";
518 hiddenSelectionsTextures[]=
519 {
520 "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)"
521 };
522 };
523 class AKS74U_Green: AKS74U
524 {
525 scope=2;
526 descriptionShort="$STR_cfgWeapons_AKS74U_Green0";
527 color="Green";
528 hiddenSelectionsTextures[]=
529 {
530 "#(argb,8,8,3)color(0.35,0.37,0.28,1.0,CO)"
531 };
532 };
533};