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_B95
4 {
5 units[]=
6 {
7 "b95",
8 "b95_Black",
9 "b95_Green"
10 };
11 weapons[]={};
12 requiredVersion=0.1;
13 requiredAddons[]=
14 {
15 "DZ_Data",
16 "DZ_Weapons_Firearms"
17 };
18 };
19};
20class Mode_Safe;
21class Mode_SemiAuto;
22class Mode_Single;
23class Mode_Burst;
24class Mode_Double;
25class Mode_FullAuto;
26class Muzzle_Base;
27class OpticsInfoRifle;
28class cfgWeapons
29{
30 class Rifle_Base;
31 class B95_Base: Rifle_Base
32 {
33 scope=0;
34 weight=2820;
35 itemSize[]={9,3};
36 absorbency=0;
37 repairableWithKits[]={1};
38 repairCosts[]={25};
39 chamberSize=1;
40 chamberedRound="";
41 chamberableFrom[]=
42 {
43 "Ammo_308Win",
44 "Ammo_308WinTracer",
45 "Mag_308WinSnaploader_2Rnd"
46 };
47 magazines[]={};
48 DisplayMagazine=0;
49 winchesterTypeOpticsMount=1;
50 PPDOFProperties[]={1,0.5,50,160,4,10};
51 WeaponLength=1.05;
52 ObstructionDistance=0.70700002;
53 barrelArmor=1.6;
54 initSpeedMultiplier=1.05;
55 muzzles[]=
56 {
57 "this",
58 "SecondMuzzle"
59 };
60 ejectType=3;
61 recoilModifier[]={1,1,1};
62 swayModifier[]={2.2,2.2,0.69999999};
63 hiddenSelections[]=
64 {
65 "camoGround"
66 };
67 simpleHiddenSelections[]=
68 {
69 "bullet",
70 "bullet2",
71 "hide_barrel"
72 };
73 class NoiseShoot
74 {
75 strength=100;
76 type="shot";
77 };
78 modes[]=
79 {
80 "Single",
81 "Double"
82 };
83 class Single: Mode_Single
84 {
85 soundSetShot[]=
86 {
87 "B95_Shot_SoundSet",
88 "B95_Shot_iterior_SoundSet",
89 "B95_Tail_SoundSet",
90 "B95_InteriorTail_SoundSet",
91 "B95_Tail_2D_SoundSet"
92 };
93 reloadTime=0.1;
94 dispersion=0.00075000001;
95 magazineSlot="magazine";
96 };
97 class Double: Mode_Double
98 {
99 soundSetShot[]=
100 {
101 "B95_Shot_double_SoundSet",
102 "B95_Shot_iterior_double_SoundSet",
103 "B95_Tail_double_SoundSet",
104 "B95_InteriorTail_double_SoundSet",
105 "B95_Tail_2D_double_SoundSet"
106 };
107 reloadTime=0.1;
108 dispersion=0.0015;
109 magazineSlot="magazine";
110 };
111 class SecondMuzzle: Muzzle_Base
112 {
113 chamberSize=1;
114 muzzlePos="usti hlavne_2";
115 muzzleEnd="konec hlavne_2";
116 cartridgePos="nabojnicestart_2";
117 cartridgeVel="nabojniceend_2";
118 magazines[]={};
119 chamberableFrom[]=
120 {
121 "Ammo_308Win",
122 "Ammo_308WinTracer",
123 "Mag_308WinSnaploader_2Rnd"
124 };
125 barrelArmor=1.6;
126 initSpeedMultiplier=1.05;
127 irDistance=0;
128 irLaserPos="laser pos";
129 irLaserEnd="laser dir";
130 modes[]=
131 {
132 "Single",
133 "Double"
134 };
135 class Single: Mode_Single
136 {
137 soundSetShot[]=
138 {
139 "B95_Shot_SoundSet",
140 "B95_Shot_iterior_SoundSet",
141 "B95_Tail_SoundSet",
142 "B95_InteriorTail_SoundSet",
143 "B95_Tail_2D_SoundSet"
144 };
145 reloadTime=0.1;
146 dispersion=0.00075000001;
147 magazineSlot="magazine";
148 };
149 class Double: Mode_Double
150 {
151 soundSetShot[]=
152 {
153 "B95_Shot_SoundSet",
154 "B95_Shot_iterior_SoundSet",
155 "B95_Tail_SoundSet",
156 "B95_InteriorTail_SoundSet",
157 "B95_Tail_2D_SoundSet"
158 };
159 reloadTime=0.1;
160 dispersion=0.0015;
161 magazineSlot="magazine";
162 };
163 class OpticsInfo: OpticsInfoRifle
164 {
165 memoryPointCamera="eye";
166 modelOptics="-";
167 distanceZoomMin=50;
168 distanceZoomMax=200;
169 discreteDistance[]={50,100,200};
170 discreteDistanceInitIndex=0;
171 };
172 };
173 class OpticsInfo: OpticsInfoRifle
174 {
175 memoryPointCamera="eye";
176 modelOptics="-";
177 distanceZoomMin=50;
178 distanceZoomMax=200;
179 discreteDistance[]={50,100,200};
180 discreteDistanceInitIndex=0;
181 };
182 class Particles
183 {
184 class OnFire
185 {
186 class SmokeCloud
187 {
188 overrideParticle="weapon_shot_winded_smoke";
189 };
190 class MuzzleFlash
191 {
192 overrideParticle="weapon_shot_winch70_01";
193 ignoreIfSuppressed=1;
194 illuminateWorld=1;
195 positionOffset[]={0,0,0};
196 };
197 class MuzzleFlash2
198 {
199 overrideParticle="weapon_shot_winch70_01";
200 overridePoint="Usti hlavne_2";
201 ignoreIfSuppressed=1;
202 illuminateWorld=1;
203 positionOffset[]={0,0,0};
204 muzzleIndex=1;
205 };
206 };
207 class OnBulletCasingEject
208 {
209 class ChamberSmokeRaise
210 {
211 overrideParticle="weapon_shot_chamber_smoke";
212 overridePoint="Nabojnicestart";
213 };
214 };
215 };
216 weaponStateAnim="dz\anims\anm\player\reloads\B95\w_B95_states.anm";
217 boneRemap[]=
218 {
219 "release",
220 "Weapon_Bone_02",
221 "barrel",
222 "Weapon_Bone_01",
223 "trigger",
224 "Weapon_Trigger",
225 "ejector",
226 "Weapon_Bone_03",
227 "bullet",
228 "Weapon_Bullet",
229 "bullet2",
230 "Weapon_Bone_04",
231 "snaploader",
232 "Weapon_Bone_05"
233 };
234 };
235 class B95: B95_Base
236 {
237 scope=2;
238 displayName="$STR_cfgWeapons_B950";
239 descriptionShort="$STR_cfgWeapons_B951";
240 model="\dz\weapons\firearms\B95\b95.p3d";
241 attachments[]=
242 {
243 "weaponWrap",
244 "weaponOpticsHunting"
245 };
246 hiddenSelectionsTextures[]=
247 {
248 "dz\weapons\firearms\B95\data\b95_co.paa"
249 };
250 hiddenSelectionsMaterials[]=
251 {
252 "dz\weapons\firearms\B95\data\b95.rvmat"
253 };
254 class DamageSystem
255 {
256 class GlobalHealth
257 {
258 class Health
259 {
260 hitpoints=250;
261 healthLevels[]=
262 {
263
264 {
265 1,
266
267 {
268 "DZ\weapons\firearms\B95\Data\b95.rvmat"
269 }
270 },
271
272 {
273 0.69999999,
274
275 {
276 "DZ\weapons\firearms\B95\Data\b95.rvmat"
277 }
278 },
279
280 {
281 0.5,
282
283 {
284 "DZ\weapons\firearms\B95\Data\b95_damage.rvmat"
285 }
286 },
287
288 {
289 0.30000001,
290
291 {
292 "DZ\weapons\firearms\B95\Data\b95_damage.rvmat"
293 }
294 },
295
296 {
297 0,
298
299 {
300 "DZ\weapons\firearms\B95\Data\b95_destruct.rvmat"
301 }
302 }
303 };
304 };
305 };
306 };
307 class InventorySlotsOffsets
308 {
309 class Shoulder
310 {
311 position[]={0,0.0099999998,-0.029999999};
312 orientation[]={0,-30,0};
313 };
314 class Melee
315 {
316 position[]={0,0,0};
317 orientation[]={0,30,0};
318 };
319 };
320 };
321 class B95_Black: B95
322 {
323 scope=2;
324 color="Black";
325 hiddenSelectionsTextures[]=
326 {
327 "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)"
328 };
329 hiddenSelectionsMaterials[]=
330 {
331 "dz\weapons\firearms\B95\data\b95_painted.rvmat"
332 };
333 };
334 class B95_Green: B95
335 {
336 scope=2;
337 color="Green";
338 hiddenSelectionsTextures[]=
339 {
340 "#(argb,8,8,3)color(0.35,0.36,0.28,1.0,CO)"
341 };
342 hiddenSelectionsMaterials[]=
343 {
344 "dz\weapons\firearms\B95\data\b95_painted.rvmat"
345 };
346 };
347 class SawedoffB95: B95_Base
348 {
349 scope=2;
350 displayName="$STR_SawedoffB950";
351 descriptionShort="$STR_SawedoffB951";
352 model="\dz\weapons\firearms\B95\b95_sawn.p3d";
353 weight=2000;
354 itemSize[]={5,2};
355 initSpeedMultiplier=0.75;
356 WeaponLength=0.66000003;
357 ObstructionDistance=0.41800001;
358 class DamageSystem
359 {
360 class GlobalHealth
361 {
362 class Health
363 {
364 hitpoints=250;
365 healthLevels[]=
366 {
367
368 {
369 1,
370
371 {
372 "DZ\weapons\firearms\B95\Data\b95.rvmat"
373 }
374 },
375
376 {
377 0.69999999,
378
379 {
380 "DZ\weapons\firearms\B95\Data\b95.rvmat"
381 }
382 },
383
384 {
385 0.5,
386
387 {
388 "DZ\weapons\firearms\B95\Data\b95_damage.rvmat"
389 }
390 },
391
392 {
393 0.30000001,
394
395 {
396 "DZ\weapons\firearms\B95\Data\b95_damage.rvmat"
397 }
398 },
399
400 {
401 0,
402
403 {
404 "DZ\weapons\firearms\B95\Data\b95_destruct.rvmat"
405 }
406 }
407 };
408 };
409 };
410 };
411 class Single: Single
412 {
413 soundSetShot[]=
414 {
415 "B95Sawedoff_Shot_SoundSet",
416 "B95_Shot_iterior_SoundSet",
417 "B95Sawedoff_Tail_SoundSet",
418 "B95_InteriorTail_SoundSet",
419 "B95Sawedoff_Tail_2D_SoundSet"
420 };
421 dispersion=0.0024999999;
422 };
423 class Double: Double
424 {
425 soundSetShot[]=
426 {
427 "B95Sawedoff_Shot_double_SoundSet",
428 "B95_Shot_iterior_double_SoundSet",
429 "B95_Tail_double_SoundSet",
430 "B95_InteriorTail_double_SoundSet",
431 "B95_Tail_2D_double_SoundSet"
432 };
433 dispersion=0.003;
434 };
435 class SecondMuzzle: SecondMuzzle
436 {
437 initSpeedMultiplier=0.75;
438 class Single: Single
439 {
440 soundSetShot[]=
441 {
442 "B95Sawedoff_Shot_SoundSet",
443 "B95_Shot_iterior_SoundSet",
444 "B95Sawedoff_Tail_SoundSet",
445 "B95_InteriorTail_SoundSet",
446 "B95Sawedoff_Tail_2D_SoundSet"
447 };
448 dispersion=0.0024999999;
449 };
450 class Double: Double
451 {
452 soundSetShot[]=
453 {
454 "B95Sawedoff_Shot_SoundSet",
455 "B95_Shot_iterior_SoundSet",
456 "B95Sawedoff_Tail_SoundSet",
457 "B95_InteriorTail_SoundSet",
458 "B95Sawedoff_Tail_2D_SoundSet"
459 };
460 dispersion=0.003;
461 };
462 };
463 attachments[]=
464 {
465 "weaponOpticsHunting"
466 };
467 class InventorySlotsOffsets
468 {
469 class Shoulder
470 {
471 position[]={-0.050000001,-0.0099999998,0.0099999998};
472 orientation[]={0,0,-10};
473 };
474 class Melee
475 {
476 position[]={-0.050000001,-0.0099999998,-0.029999999};
477 orientation[]={0,0,-10};
478 };
479 };
480 };
481};