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_SVD
4 {
5 units[]=
6 {
7 "SVD"
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 SVD_Base: Rifle_Base
27 {
28 scope=0;
29 weight=3700;
30 absorbency=0;
31 repairableWithKits[]={1};
32 repairCosts[]={25};
33 PPDOFProperties[]={1,0.5,50,180,4,10};
34 ironsightsExcludingOptics[]=
35 {
36 "GrozaOptic",
37 "KobraOptic"
38 };
39 WeaponLength=1.15;
40 ObstructionDistance=0.92000002;
41 barrelArmor=1.6;
42 initSpeedMultiplier=1;
43 chamberedRound="";
44 chamberSize=1;
45 chamberableFrom[]=
46 {
47 "Ammo_762x54",
48 "Ammo_762x54Tracer"
49 };
50 magazines[]=
51 {
52 "Mag_SVD_10Rnd"
53 };
54 magazineSwitchTime=0.25;
55 ejectType=1;
56 recoilModifier[]={1,1,1};
57 swayModifier[]={2,2,0.69999999};
58 simpleHiddenSelections[]=
59 {
60 "hide_barrel"
61 };
62 class NoiseShoot
63 {
64 strength=100;
65 type="shot";
66 };
67 modes[]=
68 {
69 "SemiAuto"
70 };
71 class SemiAuto: Mode_SemiAuto
72 {
73 soundSetShot[]=
74 {
75 "SVD_Shot_SoundSet",
76 "SVD_Shot_iterior_SoundSet",
77 "SVD_Tail_SoundSet",
78 "SVD_InteriorTail_SoundSet",
79 "SVD_Tail_2D_SoundSet"
80 };
81 soundSetShotExt[]=
82 {
83
84 {
85 "SVD_silencer_SoundSet",
86 "SVD_silencerTail_SoundSet",
87 "SVD_silencerInteriorTail_SoundSet"
88 },
89
90 {
91 "SVD_silencerHomeMade_SoundSet",
92 "SVD_silencerHomeMadeTail_SoundSet",
93 "SVD_silencerInteriorHomeMadeTail_SoundSet"
94 }
95 };
96 envShootingDecrease=0.80000001;
97 envShootingDecreaseExt[]={0.050000001,0.050000001};
98 reloadTime=0.12;
99 recoil="recoil_svd";
100 recoilProne="recoil_svd_prone";
101 dispersion=0.00085000001;
102 magazineSlot="magazine";
103 };
104 class OpticsInfo: OpticsInfoRifle
105 {
106 memoryPointCamera="eye";
107 modelOptics="-";
108 distanceZoomMin=100;
109 distanceZoomMax=100;
110 discreteDistance[]={100,200,300,400,500,600,700,800,900,1000};
111 discreteDistanceInitIndex=0;
112 };
113 class InventorySlotsOffsets
114 {
115 class Shoulder
116 {
117 position[]={0,-0.02,-0.02};
118 orientation[]={0,-30,0};
119 };
120 class Melee
121 {
122 position[]={0,-0.02,0};
123 orientation[]={0,30,0};
124 };
125 };
126 class AnimEvents
127 {
128 class SoundWeapon
129 {
130 class walkErc_L
131 {
132 soundSet="Weapon_Movement_HRifle_walkErc_L_SoundSet";
133 id=1;
134 };
135 class walkErc_R
136 {
137 soundSet="Weapon_Movement_HRifle_walkErc_R_SoundSet";
138 id=2;
139 };
140 class runErc_L
141 {
142 soundSet="Weapon_Movement_HRifle_runErc_L_SoundSet";
143 id=3;
144 };
145 class runErc_R
146 {
147 soundSet="Weapon_Movement_HRifle_runErc_R_SoundSet";
148 id=4;
149 };
150 class sprintErc_L
151 {
152 soundSet="Weapon_Movement_HRifle_sprintErc_SoundSet";
153 id=5;
154 };
155 class sprintErc_R
156 {
157 soundSet="Weapon_Movement_HRifle_sprintErc_SoundSet";
158 id=6;
159 };
160 class walkCro_L
161 {
162 soundSet="Weapon_Movement_HRifle_walkCro_SoundSet";
163 id=21;
164 };
165 class walkCro_R
166 {
167 soundSet="Weapon_Movement_HRifle_walkCro_SoundSet";
168 id=22;
169 };
170 class runCro_L
171 {
172 soundSet="Weapon_Movement_HRifle_runCro_SoundSet";
173 id=23;
174 };
175 class runCro_R
176 {
177 soundSet="Weapon_Movement_HRifle_runCro_SoundSet";
178 id=24;
179 };
180 class walkProne_L
181 {
182 soundSet="Weapon_Movement_HRifle_walkCro_SoundSet";
183 id=31;
184 };
185 class walkProne_R
186 {
187 soundSet="Weapon_Movement_HRifle_walkCro_SoundSet";
188 id=32;
189 };
190 class runProne_L
191 {
192 soundSet="Weapon_Movement_HRifle_runCro_SoundSet";
193 id=33;
194 };
195 class runProne_R
196 {
197 soundSet="Weapon_Movement_HRifle_runCro_SoundSet";
198 id=34;
199 };
200 class jumpErc_L
201 {
202 soundSet="Weapon_Movement_HRifle_runErc_L_SoundSet";
203 id=35;
204 };
205 class jumpErc_R
206 {
207 soundSet="Weapon_Movement_HRifle_runErc_L_SoundSet";
208 id=36;
209 };
210 class landFootErc_L
211 {
212 soundSet="Weapon_Movement_HRifle_landFootErc_SoundSet";
213 id=37;
214 };
215 class landFootErc_R
216 {
217 soundSet="Weapon_Movement_HRifle_landFootErc_SoundSet";
218 id=38;
219 };
220 class walkRasErc_L
221 {
222 soundSet="Weapon_Movement_HRifle_walkRasErc_SoundSet";
223 id=51;
224 };
225 class walkRasErc_R
226 {
227 soundSet="Weapon_Movement_HRifle_walkRasErc_SoundSet";
228 id=52;
229 };
230 class runRasErc_L
231 {
232 soundSet="Weapon_Movement_HRifle_runRasErc_SoundSet";
233 id=53;
234 };
235 class runRasErc_R
236 {
237 soundSet="Weapon_Movement_HRifle_runRasErc_SoundSet";
238 id=54;
239 };
240 class HandStep_L
241 {
242 soundSet="Weapon_Movement_HRifle_walkErc_L_SoundSet";
243 id=61;
244 };
245 class HandStep_R
246 {
247 soundSet="Weapon_Movement_HRifle_walkErc_L_SoundSet";
248 id=62;
249 };
250 class HandStep_Hard_L
251 {
252 soundSet="Weapon_Movement_HRifle_runErc_L_SoundSet";
253 id=63;
254 };
255 class HandStep_Hard_R
256 {
257 soundSet="Weapon_Movement_HRifle_runErc_L_SoundSet";
258 id=64;
259 };
260 class landFeetErc
261 {
262 soundSet="Weapon_Movement_HRifle_landFeetErc_SoundSet";
263 id=100;
264 };
265 class Weapon_Movement_HRifle_Walk
266 {
267 soundSet="Weapon_Movement_HRifle_walkErc_L_SoundSet";
268 id=101;
269 };
270 class Weapon_Movement_HRifle_Run
271 {
272 soundSet="Weapon_Movement_HRifle_runErc_L_SoundSet";
273 id=102;
274 };
275 class Weapon_Movement_HRifle_Sprint
276 {
277 soundSet="Weapon_Movement_HRifle_sprintErc_SoundSet";
278 id=103;
279 };
280 class Weapon_Movement_HRifle_Land
281 {
282 soundSet="Weapon_Movement_HRifle_landFeetErc_SoundSet";
283 id=104;
284 };
285 class Char_Gestures_Hand_Grab_Rifle
286 {
287 soundSet="Char_Gestures_Hand_Grab_FabricRifle_SoundSet";
288 id=892;
289 };
290 };
291 };
292 class Particles
293 {
294 class OnFire
295 {
296 class SmokeCloud
297 {
298 overrideParticle="weapon_shot_winded_smoke";
299 };
300 class MuzzleFlash
301 {
302 overrideParticle="weapon_shot_mosin9130_01";
303 ignoreIfSuppressed=1;
304 illuminateWorld=1;
305 positionOffset[]={0,0,0};
306 };
307 class MuzzleFlashStar
308 {
309 overrideParticle="weapon_shot_Flame_3D_4star";
310 overridePoint="StarFlash";
311 ignoreIfSuppressed=1;
312 };
313 class GasPistonBurstR
314 {
315 overrideParticle="weapon_shot_chamber_smoke";
316 overridePoint="GasPiston";
317 overrideDirectionVector[]={0,0,0};
318 };
319 class GasPistonBurstL
320 {
321 overrideParticle="weapon_shot_chamber_smoke";
322 overridePoint="GasPiston";
323 overrideDirectionVector[]={180,0,0};
324 };
325 class GasPistonSmokeRaiseR
326 {
327 overrideParticle="weapon_shot_chamber_smoke_raise";
328 overridePoint="GasPiston";
329 overrideDirectionVector[]={0,0,0};
330 };
331 class GasPistonSmokeRaiseL
332 {
333 overrideParticle="weapon_shot_chamber_smoke_raise";
334 overridePoint="GasPiston";
335 overrideDirectionVector[]={180,0,0};
336 };
337 class ChamberSmoke
338 {
339 overrideParticle="weapon_shot_chamber_smoke";
340 overridePoint="Nabojnicestart";
341 overrideDirectionPoint="Nabojniceend";
342 };
343 };
344 class OnOverheating
345 {
346 maxOverheatingValue=8;
347 shotsToStartOverheating=4;
348 overheatingDecayInterval=1;
349 class SmokingBarrel1
350 {
351 overrideParticle="smoking_barrel_small";
352 onlyWithinOverheatLimits[]={0,0.40000001};
353 positionOffset[]={0.050000001,0,0};
354 onlyWithinRainLimits[]={0,0.2};
355 };
356 class SmokingBarrel2
357 {
358 overrideParticle="smoking_barrel";
359 onlyWithinOverheatLimits[]={0.40000001,0.80000001};
360 positionOffset[]={0.050000001,0,0};
361 onlyWithinRainLimits[]={0,0.2};
362 };
363 class SmokingBarrel3
364 {
365 overrideParticle="smoking_barrel_heavy";
366 onlyWithinOverheatLimits[]={0.80000001,1};
367 positionOffset[]={0.050000001,0,0};
368 onlyWithinRainLimits[]={0,0.2};
369 };
370 class SmokingBarrelHotSteamSmall
371 {
372 overrideParticle="smoking_barrel_steam_small";
373 positionOffset[]={0.44999999,0,0};
374 onlyWithinRainLimits[]={0.2,0.5};
375 };
376 class SmokingBarrelHotSteam
377 {
378 overrideParticle="smoking_barrel_steam";
379 positionOffset[]={0.44999999,0,0};
380 onlyWithinRainLimits[]={0.5,1};
381 };
382 class OpenChamberSmoke
383 {
384 onlyIfBoltIsOpen=1;
385 overrideParticle="smoking_barrel_small";
386 overridePoint="Nabojnicestart";
387 };
388 };
389 class OnBulletCasingEject
390 {
391 class ChamberSmokeRaise
392 {
393 overrideParticle="weapon_shot_chamber_smoke";
394 overridePoint="Nabojnicestart";
395 };
396 };
397 };
398 weaponStateAnim="dz\anims\anm\player\reloads\SVD\w_SVD_states.anm";
399 };
400 class SVD: SVD_Base
401 {
402 scope=2;
403 displayName="$STR_cfgWeapons_SVD0";
404 descriptionShort="$STR_cfgWeapons_SVD1";
405 model="\dz\weapons\firearms\svd\svd.p3d";
406 attachments[]=
407 {
408 "weaponWrap",
409 "weaponOpticsAK",
410 "weaponMuzzleAK"
411 };
412 itemSize[]={10,3};
413 class DamageSystem
414 {
415 class GlobalHealth
416 {
417 class Health
418 {
419 hitpoints=250;
420 healthLevels[]=
421 {
422
423 {
424 1,
425
426 {
427 "DZ\weapons\firearms\svd\data\SVD.rvmat"
428 }
429 },
430
431 {
432 0.69999999,
433
434 {
435 "DZ\weapons\firearms\svd\data\SVD.rvmat"
436 }
437 },
438
439 {
440 0.5,
441
442 {
443 "DZ\weapons\firearms\svd\data\SVD_damage.rvmat"
444 }
445 },
446
447 {
448 0.30000001,
449
450 {
451 "DZ\weapons\firearms\svd\data\SVD_damage.rvmat"
452 }
453 },
454
455 {
456 0,
457
458 {
459 "DZ\weapons\firearms\svd\data\SVD_destruct.rvmat"
460 }
461 }
462 };
463 };
464 };
465 };
466 };
467 class SVD_Wooden: SVD_Base
468 {
469 scope=2;
470 displayName="$STR_cfgWeapons_SVD0";
471 descriptionShort="$STR_cfgWeapons_SVD1";
472 model="\dz\weapons\firearms\svd\svd_old.p3d";
473 attachments[]=
474 {
475 "weaponWrap",
476 "weaponOpticsAK",
477 "weaponMuzzleAK"
478 };
479 itemSize[]={10,3};
480 class DamageSystem
481 {
482 class GlobalHealth
483 {
484 class Health
485 {
486 hitpoints=250;
487 healthLevels[]=
488 {
489
490 {
491 1,
492
493 {
494 "DZ\weapons\firearms\svd\data\SVD_old.rvmat"
495 }
496 },
497
498 {
499 0.69999999,
500
501 {
502 "DZ\weapons\firearms\svd\data\SVD_old.rvmat"
503 }
504 },
505
506 {
507 0.5,
508
509 {
510 "DZ\weapons\firearms\svd\data\SVD_old_damage.rvmat"
511 }
512 },
513
514 {
515 0.30000001,
516
517 {
518 "DZ\weapons\firearms\svd\data\SVD_old_damage.rvmat"
519 }
520 },
521
522 {
523 0,
524
525 {
526 "DZ\weapons\firearms\svd\data\SVD_old_destruct.rvmat"
527 }
528 }
529 };
530 };
531 };
532 };
533 };
534};