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_SKS
4 {
5 units[]=
6 {
7 "SKS",
8 "SKS_Black",
9 "SKS_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_Burst;
23class Mode_FullAuto;
24class OpticsInfoRifle;
25class cfgWeapons
26{
27 class Rifle_Base;
28 class SKS_Base: Rifle_Base
29 {
30 scope=0;
31 weight=3850;
32 absorbency=0;
33 repairableWithKits[]={1};
34 repairCosts[]={25};
35 PPDOFProperties[]={1,0.60000002,50,160,4,10};
36 DisplayMagazine=0;
37 WeaponLength=1.0599999;
38 ObstructionDistance=0.87599999;
39 barrelArmor=1.6670001;
40 initSpeedMultiplier=1.1;
41 chamberSize=10;
42 chamberedRound="";
43 chamberableFrom[]=
44 {
45 "Ammo_762x39",
46 "Mag_CLIP762x39_10Rnd",
47 "Ammo_762x39Tracer"
48 };
49 magazines[]={};
50 ejectType=1;
51 recoilModifier[]={1,1,1};
52 swayModifier[]={2.4000001,2.4000001,0.89999998};
53 simpleHiddenSelections[]=
54 {
55 "hide_barrel"
56 };
57 cursor="aimBowGhost";
58 hiddenSelections[]=
59 {
60 "camoGround",
61 "Clip_rounds",
62 "clip"
63 };
64 class NoiseShoot
65 {
66 strength=100;
67 type="shot";
68 };
69 modes[]=
70 {
71 "SemiAuto"
72 };
73 class SemiAuto: Mode_SemiAuto
74 {
75 soundSetShot[]=
76 {
77 "SKS_Shot_SoundSet",
78 "SKS_Shot_iterior_SoundSet",
79 "SKS_Tail_SoundSet",
80 "SKS_InteriorTail_SoundSet",
81 "SKS_Tail_2D_SoundSet"
82 };
83 soundSetShotExt[]=
84 {
85
86 {
87 "SKS_silencerHomeMade_SoundSet",
88 "SKS_silencerHomeMadeTail_SoundSet",
89 "SKS_silencerInteriorHomeMadeTail_SoundSet"
90 }
91 };
92 envShootingDecrease=0.80000001;
93 envShootingDecreaseExt[]={0.050000001,0.050000001};
94 reloadTime=0.12;
95 recoil="recoil_sks";
96 recoilProne="recoil_sks_prone";
97 dispersion=0.0015;
98 magazineSlot="magazine";
99 };
100 class OpticsInfo: OpticsInfoRifle
101 {
102 modelOptics="-";
103 distanceZoomMin=100;
104 distanceZoomMax=100;
105 };
106 class InventorySlotsOffsets
107 {
108 class Shoulder
109 {
110 position[]={0,0,-0.050000001};
111 orientation[]={0,-40,0};
112 };
113 class Melee
114 {
115 position[]={0,0,0.050000001};
116 orientation[]={0,40,0};
117 };
118 };
119 class AnimationSources
120 {
121 class Clip_rounds
122 {
123 source="user";
124 animPeriod=0.0099999998;
125 initPhase=1;
126 };
127 class Clip
128 {
129 source="user";
130 animPeriod=0.0099999998;
131 initPhase=1;
132 };
133 };
134 class Particles
135 {
136 class OnFire
137 {
138 class SmokeCloud
139 {
140 overrideParticle="weapon_shot_winded_smoke";
141 };
142 class MuzzleFlash
143 {
144 overrideParticle="weapon_shot_sks_01";
145 ignoreIfSuppressed=1;
146 illuminateWorld=1;
147 positionOffset[]={-0.050000001,0,0};
148 };
149 class ChamberSmoke
150 {
151 overrideParticle="weapon_shot_chamber_smoke";
152 overridePoint="Nabojnicestart";
153 overrideDirectionPoint="Nabojniceend";
154 };
155 };
156 class OnOverheating
157 {
158 maxOverheatingValue=8;
159 shotsToStartOverheating=4;
160 overheatingDecayInterval=1;
161 class SmokingBarrel1
162 {
163 overrideParticle="smoking_barrel_small";
164 onlyWithinOverheatLimits[]={0,0.60000002};
165 positionOffset[]={0.1,0,0};
166 onlyWithinRainLimits[]={0,0.2};
167 };
168 class SmokingBarrel2
169 {
170 overrideParticle="smoking_barrel";
171 onlyWithinOverheatLimits[]={0.60000002,1};
172 positionOffset[]={0.1,0,0};
173 onlyWithinRainLimits[]={0,0.2};
174 };
175 class SmokingBarrelHotSteamSmall
176 {
177 overrideParticle="smoking_barrel_steam_small";
178 positionOffset[]={0.30000001,0,0};
179 onlyWithinRainLimits[]={0.2,0.5};
180 };
181 class SmokingBarrelHotSteam
182 {
183 overrideParticle="smoking_barrel_steam";
184 positionOffset[]={0.30000001,0,0};
185 onlyWithinRainLimits[]={0.5,1};
186 };
187 class OpenChamberSmoke
188 {
189 onlyIfBoltIsOpen=1;
190 overrideParticle="smoking_barrel_small";
191 overridePoint="Nabojnicestart";
192 };
193 };
194 class OnBulletCasingEject
195 {
196 class ChamberSmokeRaise
197 {
198 overrideParticle="weapon_shot_chamber_smoke";
199 overridePoint="Nabojnicestart";
200 };
201 };
202 };
203 weaponStateAnim="dz\anims\anm\player\reloads\SKS\w_SKS_states.anm";
204 boneRemap[]=
205 {
206 "bolt",
207 "Weapon_Bolt",
208 "trigger",
209 "Weapon_Trigger",
210 "bullet",
211 "Weapon_Bullet",
212 "follower",
213 "Weapon_Bone_02",
214 "clip",
215 "Weapon_Magazine",
216 "cliprounds",
217 "Weapon_Bone_01"
218 };
219 };
220 class SKS: SKS_Base
221 {
222 scope=2;
223 displayName="$STR_cfgWeapons_SKS0";
224 descriptionShort="$STR_cfgWeapons_SKS1";
225 model="\dz\weapons\firearms\SKS\SKS.p3d";
226 attachments[]=
227 {
228 "weaponWrap",
229 "weaponOpticsMosin",
230 "suppressorImpro",
231 "weaponBayonetSKS"
232 };
233 itemSize[]={9,3};
234 hiddenSelectionsTextures[]=
235 {
236 "dz\weapons\firearms\SKS\data\sks_co.paa",
237 "",
238 ""
239 };
240 hiddenSelectionsMaterials[]=
241 {
242 "dz\weapons\firearms\SKS\data\sks.rvmat",
243 "",
244 ""
245 };
246 class DamageSystem
247 {
248 class GlobalHealth
249 {
250 class Health
251 {
252 hitpoints=300;
253 healthLevels[]=
254 {
255
256 {
257 1,
258
259 {
260 "DZ\weapons\firearms\SKS\data\sks.rvmat"
261 }
262 },
263
264 {
265 0.69999999,
266
267 {
268 "DZ\weapons\firearms\SKS\data\sks.rvmat"
269 }
270 },
271
272 {
273 0.5,
274
275 {
276 "DZ\weapons\firearms\SKS\data\sks_damage.rvmat"
277 }
278 },
279
280 {
281 0.30000001,
282
283 {
284 "DZ\weapons\firearms\SKS\data\sks_damage.rvmat"
285 }
286 },
287
288 {
289 0,
290
291 {
292 "DZ\weapons\firearms\SKS\data\sks_destruct.rvmat"
293 }
294 }
295 };
296 };
297 };
298 };
299 };
300 class SKS_Black: SKS
301 {
302 scope=2;
303 descriptionShort="$STR_cfgWeapons_SKS_Black0";
304 color="Black";
305 hiddenSelectionsTextures[]=
306 {
307 "dz\weapons\firearms\SKS\data\sks_black_co.paa",
308 "",
309 ""
310 };
311 hiddenSelectionsMaterials[]=
312 {
313 "dz\weapons\firearms\SKS\data\sks_painted.rvmat",
314 "",
315 ""
316 };
317 };
318 class SKS_Green: SKS
319 {
320 scope=2;
321 descriptionShort="$STR_cfgWeapons_SKS_Green0";
322 color="Green";
323 hiddenSelectionsTextures[]=
324 {
325 "dz\weapons\firearms\SKS\data\sks_green_co.paa",
326 "",
327 ""
328 };
329 hiddenSelectionsMaterials[]=
330 {
331 "dz\weapons\firearms\SKS\data\sks_painted.rvmat",
332 "",
333 ""
334 };
335 };
336};