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_cz61
4 {
5 units[]=
6 {
7 "cz61"
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 CZ61_Base: Rifle_Base
27 {
28 scope=0;
29 weight=1280;
30 absorbency=0;
31 repairableWithKits[]={1};
32 repairCosts[]={25};
33 PPDOFProperties[]={1,0.5,10,190,4,10};
34 WeaponLength=0.55000001;
35 ObstructionDistance=0.27500001;
36 barrelArmor=1.9;
37 chamberSize=1;
38 chamberedRound="";
39 chamberableFrom[]=
40 {
41 "Ammo_380"
42 };
43 magazines[]=
44 {
45 "Mag_CZ61_20Rnd"
46 };
47 magazineSwitchTime=0.30000001;
48 initSpeedMultiplier=1.15;
49 ejectType=1;
50 recoilModifier[]={1,1,1};
51 swayModifier[]={0.94999999,0.94999999,0.69999999};
52 hiddenSelections[]=
53 {
54 "camo"
55 };
56 class NoiseShoot
57 {
58 strength=60;
59 type="shot";
60 };
61 modes[]=
62 {
63 "SemiAuto",
64 "FullAuto"
65 };
66 class SemiAuto: Mode_SemiAuto
67 {
68 soundSetShot[]=
69 {
70 "CZ61_Shot_1st_SoundSet",
71 "CZ61_Shot_1st_iterior_SoundSet",
72 "CZ61_Tail_SoundSet",
73 "CZ61_InteriorTail_SoundSet",
74 "CZ61_Slapback_SoundSet",
75 "CZ61_Tail_2D_SoundSet"
76 };
77 soundSetShotExt[]=
78 {
79
80 {
81 "CZ61_1st_silencer_SoundSet",
82 "CZ61_silencerTail_SoundSet",
83 "CZ61_silencerInteriorTail_SoundSet"
84 },
85
86 {
87 "CZ61_1st_silencerHomeMade_SoundSet",
88 "CZ61_silencerHomeMadeTail_SoundSet",
89 "CZ61_silencerHomeMadeInteriorTail_SoundSet"
90 }
91 };
92 reloadTime=0.12;
93 recoil="recoil_cz61";
94 recoilProne="recoil_cz61_prone";
95 dispersion=0.0044999998;
96 magazineSlot="magazine";
97 };
98 class FullAuto: Mode_FullAuto
99 {
100 soundSetShot1st[]=
101 {
102 "CZ61_Shot_1st_SoundSet",
103 "CZ61_Shot_1st_iterior_SoundSet"
104 };
105 soundSetShot[]=
106 {
107 "CZ61_Shot_SoundSet",
108 "CZ61_Shot_iterior_SoundSet",
109 "CZ61_Tail_SoundSet",
110 "CZ61_InteriorTail_SoundSet",
111 "CZ61_Slapback_SoundSet",
112 "CZ61_Tail_2D_SoundSet"
113 };
114 soundSetShotExt1st[]=
115 {
116
117 {
118 "CZ61_1st_silencer_SoundSet"
119 },
120
121 {
122 "CZ61_1st_silencerHomeMade_SoundSet"
123 }
124 };
125 soundSetShotExt[]=
126 {
127
128 {
129 "CZ61_silencer_SoundSet",
130 "CZ61_silencerTail_SoundSet",
131 "CZ61_silencerInteriorTail_SoundSet"
132 },
133
134 {
135 "CZ61_silencerHomeMade_SoundSet",
136 "CZ61_silencerHomeMadeTail_SoundSet",
137 "CZ61_silencerHomeMadeInteriorTail_SoundSet"
138 }
139 };
140 reloadTime=0.064999998;
141 recoil="recoil_cz61";
142 recoilProne="recoil_cz61_prone";
143 dispersion=0.0044999998;
144 magazineSlot="magazine";
145 };
146 class OpticsInfo: OpticsInfoRifle
147 {
148 memoryPointCamera="eye";
149 discreteDistance[]={75,150};
150 discreteDistanceInitIndex=0;
151 modelOptics="-";
152 distanceZoomMin=100;
153 distanceZoomMax=100;
154 };
155 class InventorySlotsOffsets
156 {
157 class Shoulder
158 {
159 position[]={-0.15000001,-0.02,0};
160 orientation[]={0,0,-13};
161 };
162 class Melee
163 {
164 position[]={-0.15000001,0,-0.02};
165 orientation[]={0,0,-13};
166 };
167 };
168 class Particles
169 {
170 class OnFire
171 {
172 class SmokeCloud
173 {
174 overrideParticle="weapon_shot_winded_smoke";
175 };
176 class MuzzleFlash
177 {
178 overrideParticle="weapon_shot_fnx_01";
179 ignoreIfSuppressed=1;
180 illuminateWorld=1;
181 positionOffset[]={0,0,0};
182 };
183 class ChamberSmoke
184 {
185 overrideParticle="weapon_shot_chamber_smoke";
186 overridePoint="Nabojnicestart";
187 overrideDirectionPoint="Nabojniceend";
188 };
189 };
190 class OnOverheating
191 {
192 maxOverheatingValue=10;
193 shotsToStartOverheating=2;
194 overheatingDecayInterval=1;
195 class SmokingBarrel1
196 {
197 overrideParticle="smoking_barrel_small";
198 onlyWithinOverheatLimits[]={0,1};
199 positionOffset[]={0,0,0};
200 onlyWithinRainLimits[]={0,0.2};
201 };
202 class SmokingBarrelHotSteamSmall
203 {
204 overrideParticle="smoking_barrel_steam_small";
205 positionOffset[]={0.1,0,0};
206 onlyWithinRainLimits[]={0.2,1};
207 };
208 class OpenChamberSmoke
209 {
210 onlyIfBoltIsOpen=1;
211 overrideParticle="smoking_barrel_small";
212 overridePoint="Nabojnicestart";
213 };
214 };
215 class OnBulletCasingEject
216 {
217 class ChamberSmokeRaise
218 {
219 overrideParticle="weapon_shot_chamber_smoke";
220 overridePoint="Nabojnicestart";
221 };
222 };
223 };
224 weaponStateAnim="dz\anims\anm\player\reloads\CZ61\w_CZ61_states.anm";
225 };
226 class CZ61: CZ61_Base
227 {
228 scope=2;
229 displayName="$STR_CfgWeapons_CZ610";
230 descriptionShort="$STR_CfgWeapons_CZ611";
231 model="\dz\weapons\firearms\cz61\CZ61.p3d";
232 attachments[]=
233 {
234 "pistolMuzzle"
235 };
236 itemSize[]={4,3};
237 hiddenSelectionsTextures[]=
238 {
239 "dz\weapons\firearms\cz61\data\cz61_main_co.paa"
240 };
241 hiddenSelectionsMaterials[]=
242 {
243 "dz\weapons\firearms\cz61\data\cz61.rvmat"
244 };
245 class DamageSystem
246 {
247 class GlobalHealth
248 {
249 class Health
250 {
251 hitpoints=200;
252 healthLevels[]=
253 {
254
255 {
256 1,
257
258 {
259 "DZ\weapons\firearms\cz61\data\cz61.rvmat"
260 }
261 },
262
263 {
264 0.69999999,
265
266 {
267 "DZ\weapons\firearms\cz61\data\cz61.rvmat"
268 }
269 },
270
271 {
272 0.5,
273
274 {
275 "DZ\weapons\firearms\cz61\data\cz61_damage.rvmat"
276 }
277 },
278
279 {
280 0.30000001,
281
282 {
283 "DZ\weapons\firearms\cz61\data\cz61_damage.rvmat"
284 }
285 },
286
287 {
288 0,
289
290 {
291 "DZ\weapons\firearms\cz61\data\cz61_destruct.rvmat"
292 }
293 }
294 };
295 };
296 };
297 };
298 };
299};