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_CZ527
4 {
5 units[]=
6 {
7 "cz527",
8 "cz527_Black",
9 "cz527_Green",
10 "cz527_Green_Black",
11 "cz527_Black_Green"
12 };
13 weapons[]={};
14 requiredVersion=0.1;
15 requiredAddons[]=
16 {
17 "DZ_Data",
18 "DZ_Weapons_Firearms"
19 };
20 };
21};
22class Mode_Safe;
23class Mode_SemiAuto;
24class Mode_Single;
25class Mode_Burst;
26class Mode_FullAuto;
27class OpticsInfoRifle;
28class cfgWeapons
29{
30 class BoltActionRifle_ExternalMagazine_Base;
31 class CZ527_Base: BoltActionRifle_ExternalMagazine_Base
32 {
33 scope=0;
34 animName="cz527";
35 weight=2720;
36 absorbency=0;
37 repairableWithKits[]={1};
38 repairCosts[]={25};
39 modelOptics="-";
40 distanceZoomMin=100;
41 distanceZoomMax=100;
42 PPDOFProperties[]={1,0.5,50,160,4,10};
43 opticsFlare=0;
44 winchesterTypeOpticsMount=1;
45 ironsightsExcludingOptics[]=
46 {
47 "HuntingOptic"
48 };
49 WeaponLength=0.94999999;
50 ObstructionDistance=0.70899999;
51 barrelArmor=1.1109999;
52 initSpeedMultiplier=1.2;
53 chamberSize=1;
54 chamberedRound="";
55 chamberableFrom[]=
56 {
57 "Ammo_762x39",
58 "Ammo_762x39Tracer"
59 };
60 magazines[]=
61 {
62 "Mag_CZ527_5rnd"
63 };
64 magazineSwitchTime=0.38;
65 ejectType=0;
66 recoilModifier[]={1,1,1};
67 swayModifier[]={2.2,2.2,0.85000002};
68 simpleHiddenSelections[]=
69 {
70 "hide_barrel"
71 };
72 hiddenSelections[]=
73 {
74 "camo"
75 };
76 class NoiseShoot
77 {
78 strength=100;
79 type="shot";
80 };
81 modes[]=
82 {
83 "Single"
84 };
85 class Single: Mode_Single
86 {
87 soundSetShot[]=
88 {
89 "CR527_Shot_SoundSet",
90 "CR527_Shot_iterior_SoundSet",
91 "CR527_Tail_SoundSet",
92 "CR527_InteriorTail_SoundSet",
93 "CR527_Tail_2D_SoundSet"
94 };
95 soundSetShotExt[]=
96 {
97
98 {
99 "CR527_silencerHomeMade_SoundSet",
100 "CR527_silencerHomeMadeTail_SoundSet",
101 "CR527_silencerInteriorHomeMadeTail_SoundSet"
102 }
103 };
104 reloadTime=1;
105 recoil="recoil_cz527";
106 recoilProne="recoil_cz527_prone";
107 dispersion=0.001;
108 magazineSlot="magazine";
109 };
110 class OpticsInfo: OpticsInfoRifle
111 {
112 memoryPointCamera="eye";
113 modelOptics="-";
114 distanceZoomMin=200;
115 distanceZoomMax=200;
116 discreteDistance[]={200};
117 discreteDistanceInitIndex=0;
118 };
119 class InventorySlotsOffsets
120 {
121 class Shoulder
122 {
123 position[]={-0.07,0,-0.07};
124 orientation[]={-7,-55,5};
125 };
126 class Melee
127 {
128 position[]={-0.07,0,0.050000001};
129 orientation[]={2,55,-5};
130 };
131 };
132 class Particles
133 {
134 class OnFire
135 {
136 class MuzzleFlash
137 {
138 overrideParticle="weapon_shot_cz527_01";
139 ignoreIfSuppressed=1;
140 illuminateWorld=1;
141 positionOffset[]={-0.050000001,0,0};
142 };
143 class ChamberSmoke
144 {
145 overrideParticle="weapon_shot_chamber_smoke";
146 overridePoint="Nabojnicestart";
147 overrideDirectionPoint="Nabojniceend";
148 };
149 };
150 class OnOverheating
151 {
152 maxOverheatingValue=1;
153 shotsToStartOverheating=1;
154 overheatingDecayInterval=0.5;
155 class SmokingBarrel1
156 {
157 overrideParticle="smoking_barrel_small";
158 onlyWithinOverheatLimits[]={0.1,1};
159 positionOffset[]={0,0,0};
160 onlyWithinRainLimits[]={0,0.2};
161 };
162 class OpenChamberSmoke
163 {
164 onlyIfBoltIsOpen=1;
165 overrideParticle="smoking_barrel_small";
166 overridePoint="Nabojnicestart";
167 };
168 };
169 class OnBulletCasingEject
170 {
171 class ChamberSmokeRaise
172 {
173 overrideParticle="weapon_shot_chamber_smoke";
174 overridePoint="Nabojnicestart";
175 };
176 };
177 };
178 weaponStateAnim="dz\anims\anm\player\reloads\cz527\w_cz527_states.anm";
179 };
180 class CZ527: CZ527_Base
181 {
182 scope=2;
183 displayName="$STR_cfgWeapons_CZ5270";
184 descriptionShort="$STR_cfgWeapons_CZ5271";
185 model="\dz\weapons\firearms\cz527\cz527.p3d";
186 attachments[]=
187 {
188 "weaponWrap",
189 "weaponOpticsHunting",
190 "suppressorImpro"
191 };
192 itemSize[]={9,3};
193 hiddenSelectionsTextures[]=
194 {
195 "dz\weapons\firearms\cz527\data\cz527_co.paa"
196 };
197 hiddenSelectionsMaterials[]=
198 {
199 "dz\weapons\firearms\cz527\data\cz527.rvmat"
200 };
201 class DamageSystem
202 {
203 class GlobalHealth
204 {
205 class Health
206 {
207 hitpoints=300;
208 healthLevels[]=
209 {
210
211 {
212 1,
213
214 {
215 "DZ\weapons\firearms\cz527\Data\cz527.rvmat"
216 }
217 },
218
219 {
220 0.69999999,
221
222 {
223 "DZ\weapons\firearms\cz527\Data\cz527.rvmat"
224 }
225 },
226
227 {
228 0.5,
229
230 {
231 "DZ\weapons\firearms\cz527\Data\cz527_damage.rvmat"
232 }
233 },
234
235 {
236 0.30000001,
237
238 {
239 "DZ\weapons\firearms\cz527\Data\cz527_damage.rvmat"
240 }
241 },
242
243 {
244 0,
245
246 {
247 "DZ\weapons\firearms\cz527\Data\cz527_destruct.rvmat"
248 }
249 }
250 };
251 };
252 };
253 };
254 };
255 class CZ527_Black: CZ527
256 {
257 scope=2;
258 descriptionShort="$STR_cfgWeapons_CZ527_Black0";
259 color="Black";
260 hiddenSelectionsTextures[]=
261 {
262 "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)"
263 };
264 };
265 class CZ527_Green: CZ527
266 {
267 scope=2;
268 descriptionShort="$STR_cfgWeapons_CZ527_Green0";
269 color="Green";
270 hiddenSelectionsTextures[]=
271 {
272 "#(argb,8,8,3)color(0.35,0.36,0.28,1.0,CO)"
273 };
274 };
275 class CZ527_Camo: CZ527
276 {
277 scope=2;
278 descriptionShort="$STR_cfgWeapons_CZ527_Camo0";
279 color="Camo";
280 hiddenSelectionsTextures[]=
281 {
282 "dz\weapons\firearms\cz527\data\cz527_camo_co.paa"
283 };
284 };
285};