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_MP5
4 {
5 units[]=
6 {
7 "MP5K"
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 MP5K_Base: Rifle_Base
27 {
28 scope=0;
29 weight=1840;
30 absorbency=0;
31 repairableWithKits[]={1};
32 repairCosts[]={25};
33 PPDOFProperties[]={1,0.75,40,180,4,10};
34 ironsightsExcludingOptics[]=
35 {
36 "M4_CarryHandleOptic",
37 "BUISOptic",
38 "M68Optic",
39 "M4_T3NRDSOptic",
40 "ReflexOptic"
41 };
42 WeaponLength=0.56;
43 ObstructionDistance=0.45100001;
44 barrelArmor=1.25;
45 initSpeedMultiplier=1.05;
46 chamberSize=1;
47 chamberedRound="";
48 chamberableFrom[]=
49 {
50 "Ammo_9x19"
51 };
52 magazines[]=
53 {
54 "Mag_MP5_15Rnd",
55 "Mag_MP5_30Rnd"
56 };
57 magazineSwitchTime=0.5;
58 ejectType=1;
59 recoilModifier[]={1,1,1};
60 swayModifier[]={1.2,1.2,0.69999999};
61 simpleHiddenSelections[]=
62 {
63 "hide_barrel"
64 };
65 hiddenSelections[]=
66 {
67 "camo"
68 };
69 class NoiseShoot
70 {
71 strength=60;
72 type="shot";
73 };
74 modes[]=
75 {
76 "SemiAuto",
77 "Burst",
78 "FullAuto"
79 };
80 class SemiAuto: Mode_SemiAuto
81 {
82 soundSetShot[]=
83 {
84 "MP5K_Shot_1st_SoundSet",
85 "MP5K_Shot_1st_iterior_SoundSet",
86 "MP5K_Tail_SoundSet",
87 "MP5K_InteriorTail_SoundSet",
88 "MP5K_Slapback_SoundSet",
89 "MP5K_Tail_2D_SoundSet"
90 };
91 soundSetShotExt[]=
92 {
93
94 {
95 "MP5K_1st_silencer_SoundSet",
96 "MP5K_silencerTail_SoundSet",
97 "MP5K_silencerInteriorTail_SoundSet"
98 },
99
100 {
101 "MP5K_1st_silencerHomeMade_SoundSet",
102 "MP5K_silencerHomeMadeTail_SoundSet",
103 "MP5K_silencerInteriorHomeMadeTail_SoundSet"
104 }
105 };
106 reloadTime=0.12;
107 recoil="recoil_mp5";
108 recoilProne="recoil_mp5_prone";
109 dispersion=0.003;
110 magazineSlot="magazine";
111 };
112 class Burst: Mode_Burst
113 {
114 soundSetShot1st[]=
115 {
116 "MP5K_Shot_1st_SoundSet",
117 "MP5K_Shot_1st_iterior_SoundSet"
118 };
119 soundSetShot[]=
120 {
121 "MP5K_Shot_SoundSet",
122 "MP5K_Shot_iterior_SoundSet",
123 "MP5K_Tail_SoundSet",
124 "MP5K_InteriorTail_SoundSet",
125 "MP5K_Slapback_SoundSet",
126 "MP5K_Tail_2D_SoundSet"
127 };
128 soundSetShotExt1st[]=
129 {
130
131 {
132 "MP5K_1st_silencer_SoundSet"
133 },
134
135 {
136 "MP5K_1st_silencerHomeMade_SoundSet"
137 }
138 };
139 soundSetShotExt[]=
140 {
141
142 {
143 "MP5K_silencer_SoundSet",
144 "MP5K_silencerTail_SoundSet",
145 "MP5K_silencerInteriorTail_SoundSet"
146 },
147
148 {
149 "MP5K_silencerHomeMade_SoundSet",
150 "MP5K_silencerHomeMadeTail_SoundSet",
151 "MP5K_silencerInteriorHomeMadeTail_SoundSet"
152 }
153 };
154 burst=3;
155 reloadTime=0.064999998;
156 recoil="recoil_mp5";
157 recoilProne="recoil_mp5_prone";
158 dispersion=0.003;
159 magazineSlot="magazine";
160 };
161 class FullAuto: Mode_FullAuto
162 {
163 soundSetShot1st[]=
164 {
165 "MP5K_Shot_1st_SoundSet",
166 "MP5K_Shot_1st_iterior_SoundSet"
167 };
168 soundSetShot[]=
169 {
170 "MP5K_Shot_SoundSet",
171 "MP5K_Shot_iterior_SoundSet",
172 "MP5K_Tail_SoundSet",
173 "MP5K_InteriorTail_SoundSet",
174 "MP5K_Slapback_SoundSet",
175 "MP5K_Tail_2D_SoundSet"
176 };
177 soundSetShotExt1st[]=
178 {
179
180 {
181 "MP5K_1st_silencer_SoundSet"
182 },
183
184 {
185 "MP5K_1st_silencerHomeMade_SoundSet"
186 }
187 };
188 soundSetShotExt[]=
189 {
190
191 {
192 "MP5K_silencer_SoundSet",
193 "MP5K_silencerTail_SoundSet",
194 "MP5K_silencerInteriorTail_SoundSet"
195 },
196
197 {
198 "MP5K_silencerHomeMade_SoundSet",
199 "MP5K_silencerHomeMadeTail_SoundSet",
200 "MP5K_silencerInteriorHomeMadeTail_SoundSet"
201 }
202 };
203 reloadTime=0.064999998;
204 recoil="recoil_mp5";
205 recoilProne="recoil_mp5_prone";
206 dispersion=0.003;
207 magazineSlot="magazine";
208 };
209 class OpticsInfo: OpticsInfoRifle
210 {
211 memoryPointCamera="eye";
212 modelOptics="-";
213 distanceZoomMin=100;
214 distanceZoomMax=100;
215 discreteDistance[]={25};
216 discreteDistanceInitIndex=0;
217 };
218 class InventorySlotsOffsets
219 {
220 class Shoulder
221 {
222 position[]={-0.1,0.0099999998,0};
223 orientation[]={0,-8,0};
224 };
225 class Melee
226 {
227 position[]={-0.1,0.0099999998,-0.02};
228 orientation[]={0,0,0};
229 };
230 };
231 class Particles
232 {
233 class OnFire
234 {
235 class SmokeCloud
236 {
237 overrideParticle="weapon_shot_winded_smoke";
238 };
239 class MuzzleFlash
240 {
241 overrideParticle="weapon_shot_ump45_01";
242 ignoreIfSuppressed=1;
243 illuminateWorld=1;
244 positionOffset[]={0,0,0};
245 };
246 class ChamberSmoke
247 {
248 overrideParticle="weapon_shot_chamber_smoke";
249 overridePoint="Nabojnicestart";
250 overrideDirectionPoint="Nabojniceend";
251 };
252 };
253 class OnOverheating
254 {
255 maxOverheatingValue=10;
256 shotsToStartOverheating=2;
257 overheatingDecayInterval=1;
258 class SmokingBarrel1
259 {
260 overrideParticle="smoking_barrel_small";
261 onlyWithinOverheatLimits[]={0,1};
262 positionOffset[]={0.1,0,0};
263 onlyWithinRainLimits[]={0,0.2};
264 };
265 class SmokingBarrelHotSteamSmall
266 {
267 overrideParticle="smoking_barrel_steam_small";
268 positionOffset[]={0.1,0,0};
269 onlyWithinRainLimits[]={0.2,1};
270 };
271 class OpenChamberSmoke
272 {
273 onlyIfBoltIsOpen=1;
274 overrideParticle="smoking_barrel_small";
275 overridePoint="Nabojnicestart";
276 };
277 };
278 class OnBulletCasingEject
279 {
280 class ChamberSmokeRaise
281 {
282 overrideParticle="weapon_shot_chamber_smoke";
283 overridePoint="Nabojnicestart";
284 };
285 };
286 };
287 weaponStateAnim="dz\anims\anm\player\reloads\MP5\w_mp5k_states.anm";
288 };
289 class MP5K: MP5K_Base
290 {
291 scope=2;
292 displayName="$STR_cfgWeapons_MP5K0";
293 descriptionShort="$STR_cfgWeapons_MP5K1";
294 model="\dz\weapons\firearms\MP5\MP5K.p3d";
295 attachments[]=
296 {
297 "weaponButtstockMP5",
298 "WeaponHandguardMP5",
299 "weaponOptics",
300 "weaponFlashlight",
301 "weaponMuzzleMP5",
302 "pistolMuzzle"
303 };
304 itemSize[]={5,3};
305 hiddenSelectionsTextures[]=
306 {
307 "dz\weapons\firearms\MP5\data\mp5k_body_CO.paa"
308 };
309 hiddenSelectionsMaterials[]=
310 {
311 "DZ\weapons\firearms\MP5\data\mp5k_body.rvmat"
312 };
313 class DamageSystem
314 {
315 class GlobalHealth
316 {
317 class Health
318 {
319 hitpoints=200;
320 healthLevels[]=
321 {
322
323 {
324 1,
325
326 {
327 "DZ\weapons\firearms\MP5\data\mp5k_body.rvmat"
328 }
329 },
330
331 {
332 0.69999999,
333
334 {
335 "DZ\weapons\firearms\MP5\data\mp5k_body.rvmat"
336 }
337 },
338
339 {
340 0.5,
341
342 {
343 "DZ\weapons\firearms\MP5\data\mp5k_body_damage.rvmat"
344 }
345 },
346
347 {
348 0.30000001,
349
350 {
351 "DZ\weapons\firearms\MP5\data\mp5k_body_damage.rvmat"
352 }
353 },
354
355 {
356 0,
357
358 {
359 "DZ\weapons\firearms\MP5\data\mp5k_body_destruct.rvmat"
360 }
361 }
362 };
363 };
364 };
365 };
366 };
367};