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_Gear_Optics
4 {
5 units[]={};
6 weapons[]={};
7 requiredVersion=0.1;
8 requiredAddons[]=
9 {
10 "DZ_Data",
11 "DZ_Pistols"
12 };
13 };
14};
15class CfgVehicles
16{
17 class ItemOptics;
18 class Rangefinder: ItemOptics
19 {
20 scope=2;
21 displayName="$STR_CfgVehicles_Rangefinder0";
22 descriptionShort="$STR_CfgVehicles_Rangefinder1";
23 model="\dz\gear\optics\Rangefinder.p3d";
24 simulation="itemoptics";
25 animClass="Binoculars";
26 itemSize[]={2,1};
27 weight=270;
28 rotationFlags=17;
29 memoryPointCamera="eyeScope";
30 cameraDir="cameraDir";
31 rangeFinderLayout="Gui/layouts/gameplay/rangefinder_hud_2.layout";
32 class OpticsInfo
33 {
34 memoryPointCamera="eyeScope";
35 cameraDir="cameraDir";
36 modelOptics="\dz\gear\optics\opticview_rangefinder_new.p3d";
37 distanceZoomMin=500;
38 distanceZoomMax=500;
39 opticsZoomMin="0.3926/4";
40 opticsZoomMax="0.3926/4";
41 opticsZoomInit="0.3926/4";
42 PPLensProperties[]={0.075000003,0.15000001,0,0};
43 PPMaskProperties[]={0.5,0.5,0.33000001,0.1};
44 PPBlurProperties=0.40000001;
45 };
46 inventorySlot[]=
47 {
48 "WalkieTalkie",
49 "Chemlight"
50 };
51 attachments[]=
52 {
53 "BatteryD"
54 };
55 class DamageSystem
56 {
57 class GlobalHealth
58 {
59 class Health
60 {
61 hitpoints=70;
62 healthLevels[]=
63 {
64
65 {
66 1,
67
68 {
69 "DZ\gear\optics\data\Rangefinder.rvmat"
70 }
71 },
72
73 {
74 0.69999999,
75
76 {
77 "DZ\gear\optics\data\Rangefinder.rvmat"
78 }
79 },
80
81 {
82 0.5,
83
84 {
85 "DZ\gear\optics\data\Rangefinder_damage.rvmat"
86 }
87 },
88
89 {
90 0.30000001,
91
92 {
93 "DZ\gear\optics\data\Rangefinder_damage.rvmat"
94 }
95 },
96
97 {
98 0,
99
100 {
101 "DZ\gear\optics\data\Rangefinder_destruct.rvmat"
102 }
103 }
104 };
105 };
106 };
107 };
108 repairableWithKits[]={7};
109 repairCosts[]={25};
110 class EnergyManager
111 {
112 hasIcon=1;
113 energyUsagePerSecond=0.0099999998;
114 plugType=1;
115 attachmentAction=1;
116 };
117 class MeleeModes
118 {
119 class Default
120 {
121 ammo="MeleeLightBlunt";
122 range=1;
123 };
124 class Heavy
125 {
126 ammo="MeleeLightBlunt_Heavy";
127 range=1;
128 };
129 class Sprint
130 {
131 ammo="MeleeLightBlunt_Heavy";
132 range=2.8;
133 };
134 };
135 class InventorySlotsOffsets
136 {
137 class Chemlight
138 {
139 position[]={-0.02,0.059999999,0};
140 orientation[]={90,10,0};
141 };
142 class WalkieTalkie
143 {
144 position[]={0,0.059999999,0};
145 orientation[]={0,0,0};
146 };
147 };
148 class OpticsModelInfo
149 {
150 healthLevels[]=
151 {
152
153 {
154 1,
155
156 {
157 "dz\weapons\attachments\optics\data\lensglass_ca.paa"
158 }
159 },
160
161 {
162 0.69999999,
163 {}
164 },
165
166 {
167 0.5,
168
169 {
170 "dz\weapons\attachments\optics\data\lensglass_damage_ca.paa"
171 }
172 },
173
174 {
175 0.30000001,
176 {}
177 },
178
179 {
180 0,
181
182 {
183 "dz\weapons\attachments\optics\data\lensglass_destruct_ca.paa"
184 }
185 }
186 };
187 };
188 soundImpactType="plastic";
189 };
190 class Binoculars: ItemOptics
191 {
192 scope=2;
193 displayName="$STR_cfgvehicles_optics_binoculars0";
194 descriptionShort="$STR_cfgvehicles_optics_binoculars1";
195 model="\dz\gear\optics\binoculars.p3d";
196 simulation="itemoptics";
197 animClass="Binoculars";
198 itemSize[]={2,2};
199 weight=980;
200 rotationFlags=17;
201 memoryPointCamera="eyeScope";
202 cameraDir="cameraDir";
203 class OpticsInfo
204 {
205 memoryPointCamera="eyeScope";
206 cameraDir="cameraDir";
207 modelOptics="\DZ\gear\optics\binoculars_view.p3d";
208 distanceZoomMin=100;
209 distanceZoomMax=100;
210 opticsZoomMin=0.050000001;
211 opticsZoomMax=0.050000001;
212 opticsZoomInit=0.050000001;
213 PPMaskProperties[]={0.34999999,0.5,0.72000003,0.1};
214 PPLensProperties[]={0.075000003,0.15000001,0,0};
215 PPBlurProperties=0.30000001;
216 };
217 class DamageSystem
218 {
219 class GlobalHealth
220 {
221 class Health
222 {
223 hitpoints=70;
224 healthLevels[]=
225 {
226
227 {
228 1,
229
230 {
231 "DZ\gear\optics\data\binoculars.rvmat"
232 }
233 },
234
235 {
236 0.69999999,
237
238 {
239 "DZ\gear\optics\data\binoculars.rvmat"
240 }
241 },
242
243 {
244 0.5,
245
246 {
247 "DZ\gear\optics\data\binoculars_damage.rvmat"
248 }
249 },
250
251 {
252 0.30000001,
253
254 {
255 "DZ\gear\optics\data\binoculars_damage.rvmat"
256 }
257 },
258
259 {
260 0,
261
262 {
263 "DZ\gear\optics\data\binoculars_destruct.rvmat"
264 }
265 }
266 };
267 };
268 };
269 };
270 repairableWithKits[]={7};
271 repairCosts[]={25};
272 class MeleeModes
273 {
274 class Default
275 {
276 ammo="MeleeLightBlunt";
277 range=1;
278 };
279 class Heavy
280 {
281 ammo="MeleeLightBlunt_Heavy";
282 range=1;
283 };
284 class Sprint
285 {
286 ammo="MeleeLightBlunt_Heavy";
287 range=2.8;
288 };
289 };
290 class OpticsModelInfo
291 {
292 healthLevels[]=
293 {
294
295 {
296 1,
297
298 {
299 "dz\gear\optics\data\binoculars_reticledirty_ca.paa"
300 }
301 },
302
303 {
304 0.69999999,
305 {}
306 },
307
308 {
309 0.5,
310
311 {
312 "dz\gear\optics\data\binoculars_reticledirty_damage_ca.paa"
313 }
314 },
315
316 {
317 0.30000001,
318 {}
319 },
320
321 {
322 0,
323
324 {
325 "dz\gear\optics\data\binoculars_reticledirty_destruct_ca.paa"
326 }
327 }
328 };
329 };
330 soundImpactType="glass";
331 };
332};
334{
335 class ProxyAttachment;
336 class ProxyEncore: ProxyAttachment
337 {
338 scope=2;
339 inventorySlot[]=
340 {
341 "Pistol"
342 };
343 model="\dz\gear\optics\binoculars.p3d";
344 };
345};