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_AKM
4 {
5 units[]=
6 {
7 "AKM"
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 AKM_Base: Rifle_Base
27 {
28 scope=0;
29 weight=2140;
30 absorbency=0;
31 repairableWithKits[]={1};
32 repairCosts[]={25};
33 PPDOFProperties[]={1,0.5,50,160,4,10};
34 ironsightsExcludingOptics[]=
35 {
36 "KashtanOptic",
37 "GrozaOptic",
38 "KobraOptic"
39 };
40 WeaponLength=0.89999998;
41 ObstructionDistance=0.61199999;
42 barrelArmor=4.4439998;
43 initSpeedMultiplier=0.89999998;
44 chamberSize=1;
45 chamberedRound="";
46 chamberableFrom[]=
47 {
48 "Ammo_762x39",
49 "Ammo_762x39Tracer"
50 };
51 magazines[]=
52 {
53 "Mag_AKM_30Rnd",
54 "Mag_AKM_Palm30Rnd",
55 "Mag_AKM_Palm30Rnd_Black",
56 "Mag_AKM_Palm30Rnd_Green",
57 "Mag_AKM_Drum75Rnd",
58 "Mag_AKM_Drum75Rnd_Green",
59 "Mag_AKM_Drum75Rnd_Black",
60 "Mag_AKM_Drum_TEST"
61 };
62 magazineSwitchTime=0.2;
63 ejectType=1;
64 recoilModifier[]={1,1,1};
65 swayModifier[]={2,2,0.85000002};
66 simpleHiddenSelections[]=
67 {
68 "hide_barrel"
69 };
70 hiddenSelections[]=
71 {
72 "camo"
73 };
74 modes[]=
75 {
76 "SemiAuto",
77 "FullAuto"
78 };
79 class NoiseShoot
80 {
81 strength=80;
82 type="shot";
83 };
84 class SemiAuto: Mode_SemiAuto
85 {
86 soundSetShot[]=
87 {
88 "AK_Shot_SoundSet",
89 "AK_Tail_SoundSet",
90 "AK_InteriorTail_SoundSet"
91 };
92 soundSetShotExt[]=
93 {
94
95 {
96 "AK_silencer_SoundSet",
97 "AK_silencerTail_SoundSet",
98 "AK_silencerInteriorTail_SoundSet"
99 },
100
101 {
102 "AK_silencerHomeMade_SoundSet",
103 "AK_silencerHomeMadeTail_SoundSet",
104 "AK_silencerInteriorHomeMadeTail_SoundSet"
105 }
106 };
107 reloadTime=0.12;
108 recoil="recoil_AKM";
109 recoilProne="recoil_AKM_prone";
110 dispersion=0.0020000001;
111 magazineSlot="magazine";
112 };
113 class FullAuto: Mode_FullAuto
114 {
115 soundSetShot[]=
116 {
117 "AK_Shot_SoundSet",
118 "AK_Tail_SoundSet",
119 "AK_InteriorTail_SoundSet"
120 };
121 soundSetShotExt[]=
122 {
123
124 {
125 "AK_silencer_SoundSet",
126 "AK_silencerTail_SoundSet",
127 "AK_silencerInteriorTail_SoundSet"
128 },
129
130 {
131 "AK_silencerHomeMade_SoundSet",
132 "AK_silencerHomeMadeTail_SoundSet",
133 "AK_silencerInteriorHomeMadeTail_SoundSet"
134 }
135 };
136 reloadTime=0.097999997;
137 recoil="recoil_AKM";
138 recoilProne="recoil_AKM_prone";
139 dispersion=0.0020000001;
140 magazineSlot="magazine";
141 };
142 class OpticsInfo: OpticsInfoRifle
143 {
144 memoryPointCamera="eye";
145 discreteDistance[]={100,200,300,400,500,600,700,800,900,1000};
146 discreteDistanceInitIndex=0;
147 modelOptics="-";
148 distanceZoomMin=100;
149 distanceZoomMax=1000;
150 };
151 class InventorySlotsOffsets
152 {
153 class Shoulder
154 {
155 position[]={0,0,0.1};
156 orientation[]={0,45,0};
157 };
158 class Melee
159 {
160 position[]={0,0,-0.1};
161 orientation[]={0,-45,0};
162 };
163 };
164 weaponStateAnim="dz\anims\anm\player\reloads\AKM\w_AKM_states.anm";
165 };
166 class AKM: AKM_Base
167 {
168 scope=2;
169 displayName="$STR_cfgWeapons_AKM0";
170 descriptionShort="$STR_cfgWeapons_AKM1";
171 model="\dz\weapons\firearms\AKM\AKM.p3d";
172 attachments[]=
173 {
174 "weaponButtstockAK",
175 "WeaponHandguardAK",
176 "weaponWrap",
177 "weaponOpticsAK",
178 "weaponFlashlight",
179 "weaponMuzzleAK",
180 "weaponBayonetAK"
181 };
182 itemSize[]={8,3};
183 hiddenSelectionsTextures[]=
184 {
185 "dz\weapons\firearms\AKM\data\akm_co.paa"
186 };
187 hiddenSelectionsMaterials[]=
188 {
189 "dz\weapons\firearms\AKM\data\AKM.rvmat"
190 };
191 class Particles
192 {
193 class OnFire
194 {
195 class SmokeCloud
196 {
197 overrideParticle="weapon_shot_winded_smoke";
198 };
199 class MuzzleFlash
200 {
201 overrideParticle="weapon_shot_akm_01";
202 ignoreIfSuppressed=1;
203 illuminateWorld=1;
204 positionOffset[]={-0.050000001,0,0};
205 };
206 class ChamberSmoke
207 {
208 overrideParticle="weapon_shot_chamber_smoke";
209 overridePoint="Nabojnicestart";
210 overrideDirectionPoint="Nabojniceend";
211 };
212 };
213 class OnOverheating
214 {
215 maxOverheatingValue=12;
216 shotsToStartOverheating=4;
217 overheatingDecayInterval=0.69999999;
218 class SmokingBarrel1
219 {
220 overrideParticle="smoking_barrel_small";
221 onlyWithinOverheatLimits[]={0,0.5};
222 positionOffset[]={0.1,0,0};
223 onlyWithinRainLimits[]={0,0.2};
224 };
225 class SmokingBarrel2
226 {
227 overrideParticle="smoking_barrel";
228 onlyWithinOverheatLimits[]={0.5,0.69999999};
229 positionOffset[]={0.1,0,0};
230 onlyWithinRainLimits[]={0,0.2};
231 };
232 class SmokingBarrel3
233 {
234 overrideParticle="smoking_barrel_heavy";
235 onlyWithinOverheatLimits[]={0.69999999,1};
236 positionOffset[]={0.1,0,0};
237 onlyWithinRainLimits[]={0,0.2};
238 };
239 class SmokingBarrelHotSteamSmall
240 {
241 overrideParticle="smoking_barrel_steam_small";
242 positionOffset[]={0.1,0,0};
243 onlyWithinRainLimits[]={0.2,0.5};
244 };
245 class SmokingBarrelHotSteam
246 {
247 overrideParticle="smoking_barrel_steam";
248 positionOffset[]={0.1,0,0};
249 onlyWithinRainLimits[]={0.5,1};
250 };
251 class OpenChamberSmoke
252 {
253 onlyIfBoltIsOpen=1;
254 overrideParticle="smoking_barrel_small";
255 overridePoint="Nabojnicestart";
256 };
257 };
258 class OnBulletCasingEject
259 {
260 class ChamberSmokeRaise
261 {
262 overrideParticle="weapon_shot_chamber_smoke";
263 overridePoint="Nabojnicestart";
264 };
265 };
266 };
267 class DamageSystem
268 {
269 class GlobalHealth
270 {
271 class Health
272 {
273 hitpoints=300;
274 healthLevels[]=
275 {
276
277 {
278 1,
279
280 {
281 "DZ\weapons\firearms\AKM\data\AKM.rvmat"
282 }
283 },
284
285 {
286 0.69999999,
287
288 {
289 "DZ\weapons\firearms\AKM\data\AKM.rvmat"
290 }
291 },
292
293 {
294 0.5,
295
296 {
297 "DZ\weapons\firearms\AKM\data\AKM_damage.rvmat"
298 }
299 },
300
301 {
302 0.30000001,
303
304 {
305 "DZ\weapons\firearms\AKM\data\AKM_damage.rvmat"
306 }
307 },
308
309 {
310 0,
311
312 {
313 "DZ\weapons\firearms\AKM\data\AKM_destruct.rvmat"
314 }
315 }
316 };
317 };
318 };
319 };
320 };
321 class AKM_TESTBED: AKM
322 {
323 displayName="testing AKM";
324 descriptionShort="you should not be reading this";
325 model="\dz\weapons\firearms\AKM\akm_TESTBED.p3d";
326 };
327};