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_Vehicles_Water
4 {
5 units[]={};
6 weapons[]={};
7 requiredVersion=0.1;
8 requiredAddons[]=
9 {
10 "DZ_Data"
11 };
12 };
13};
14class CfgVehicles
15{
16 class Boat;
17 class BoatScript: Boat
18 {
19 debug_ItemCategory=8;
20 storageCategory=4;
21 class Crew
22 {
23 class Driver
24 {
25 actionSel="seat_driver";
26 proxyPos="crewDriver";
27 getInPos="pos_driver";
28 getInDir="pos_driver_dir";
29 isDriver=1;
30 };
31 };
32 class Buoyancy
33 {
34 linearDampeningCoefficient=0;
35 angularDampeningCoefficient=0;
36 linearDragCoefficient=0.2;
37 quadraticDragCoefficient=0.2;
38 falloffPower=0.80000001;
39 sinkRate=0.050000001;
40 };
41 };
42 class Boat_01_ColorBase: BoatScript
43 {
44 scope=1;
45 displayName="$STR_cfgvehicle_Boat010";
46 descriptionShort="$STR_cfgvehicle_Boat011";
47 model="\DZ\vehicles\water\Boat_01\Boat_01.p3d";
48 fuelCapacity=25;
49 fuelConsumption=5.5;
50 animPhysDetachSpeed=5;
51 attachments[]=
52 {
53 "SparkPlug"
54 };
55 hiddenSelections[]=
56 {
57 "Camo1",
58 "damage_unhide"
59 };
60 hiddenSelectionsTextures[]=
61 {
62 "DZ\vehicles\water\Boat_01\data\boat_01_orange_co.paa",
63 "DZ\vehicles\water\Boat_01\data\boat_01_orange_co.paa"
64 };
65 class AnimationSources
66 {
67 class FoldingEngine
68 {
69 source="user";
70 animPeriod=2;
71 initPhase=0;
72 };
73 class ShowDamage
74 {
75 source="user";
76 animPeriod=9.9999997e-05;
77 initPhase=0;
78 };
79 class HideDamage
80 {
81 source="user";
82 animPeriod=9.9999997e-05;
83 initPhase=1;
84 };
85 class HideAntiwater
86 {
87 source="user";
88 animPeriod=9.9999997e-05;
89 initPhase=0;
90 };
91 };
92 class Crew: Crew
93 {
94 class Driver: Driver
95 {
96 };
97 class Cargo1
98 {
99 actionSel="seat_cargo1";
100 proxyPos="crewCargo1";
101 getInPos="pos_cargo1";
102 getInDir="pos_cargo1_dir";
103 };
104 class Cargo2
105 {
106 actionSel="seat_cargo2";
107 proxyPos="crewCargo2";
108 getInPos="pos_cargo2";
109 getInDir="pos_cargo2_dir";
110 };
111 class Cargo3
112 {
113 actionSel="seat_Cargo3";
114 proxyPos="crewCargo3";
115 getInPos="pos_cargo3";
116 getInDir="pos_cargo3_dir";
117 };
118 };
119 class SimulationModule
120 {
121 class Engine
122 {
123 torqueCurve[]={500,50,1000,90,1500,130,2500,220,3500,310,4800,220,6500,50,7000,0};
124 inertia=1.1;
125 frictionTorque=200;
126 rollingFriction=1.5;
127 viscousFriction=0.80000001;
128 rpmIdle=700;
129 rpmMin=750;
130 rpmClutch=1250;
131 rpmRedline=6500;
132 };
133 class Clutch
134 {
135 maxTorqueTransfer=500;
136 uncoupleTime=0.69999999;
137 coupleTime=0.69999999;
138 };
139 class Gearbox
140 {
141 reverse=1.2;
142 ratios[]={0.88};
143 };
144 class Throttle
145 {
146 defaultThrust=0.75;
147 turboIncrease=2.4000001;
148 regularIncrease=1.35;
149 slowIncrease=1.12;
150 turboDecrease=1.5;
151 regularDecrease=1.5;
152 slowDecrease=1;
153 autoDecrease=1;
154 };
155 class Steering
156 {
157 maxSteeringAngle=21;
158 increaseSpeed[]={0,12,30,8,50,4};
159 decreaseSpeed[]={0,24,30,16,50,8};
160 centeringSpeed[]={0,12,30,8,50,4};
161 };
162 class Propeller
163 {
164 position[]={0,-0.11,-2.0999999};
165 radius=0.1245;
166 outerRadius=0.134;
167 innerRadius=0.094999999;
168 efficiency=0.87;
169 cavitationThreshold=0.5;
170 pitch=40;
171 width=0.1;
172 numberOfBlades=3;
173 mass=0.52999997;
174 };
175 };
176 class DamageSystem
177 {
178 class GlobalHealth
179 {
180 class Health
181 {
182 hitpoints=600;
183 healthLevels[]=
184 {
185
186 {
187 1,
188 {}
189 },
190
191 {
192 0.69999999,
193 {}
194 },
195
196 {
197 0.5,
198 {}
199 },
200
201 {
202 0.30000001,
203 {}
204 },
205
206 {
207 0,
208 {}
209 }
210 };
211 };
212 };
213 class DamageZones
214 {
215 class Chassis
216 {
217 displayName="$STR_CfgVehicleDmg_Chassis0";
218 fatalInjuryCoef=0;
219 componentNames[]=
220 {
221 "dmgZone_chassis"
222 };
223 class Health
224 {
225 hitpoints=600;
226 transferToGlobalCoef=1;
227 };
228 inventorySlots[]={};
229 inventorySlotsCoefs[]={};
230 };
231 class Engine
232 {
233 displayName="$STR_CfgVehicleDmg_Engine0";
234 fatalInjuryCoef=0.001;
235 memoryPoints[]=
236 {
237 "dmgZone_engine",
238 "dmgZone_propeller"
239 };
240 componentNames[]=
241 {
242 "dmgZone_engine",
243 "dmgZone_propeller"
244 };
245 class Health
246 {
247 hitpoints=300;
248 transferToGlobalCoef=0;
249 healthLevels[]=
250 {
251
252 {
253 1,
254
255 {
256 "dz\vehicles\water\Boat_01\data\Boat_01.rvmat"
257 }
258 },
259
260 {
261 0.69999999,
262
263 {
264 "dz\vehicles\water\Boat_01\data\Boat_01.rvmat"
265 }
266 },
267
268 {
269 0.5,
270
271 {
272 "dz\vehicles\water\Boat_01\data\Boat_01_damage.rvmat"
273 }
274 },
275
276 {
277 0.30000001,
278
279 {
280 "dz\vehicles\water\Boat_01\data\Boat_01_damage.rvmat"
281 }
282 },
283
284 {
285 0,
286
287 {
288 "dz\vehicles\water\Boat_01\data\Boat_01_destruct.rvmat"
289 }
290 }
291 };
292 };
293 inventorySlots[]=
294 {
295 "Sparkplug"
296 };
297 inventorySlotsCoefs[]={0.5};
298 };
299 class LeftFloat
300 {
301 displayName="$STR_cfgvehicleDmg_Floater0";
302 fatalInjuryCoef=0;
303 memoryPoints[]=
304 {
305 "dmgZone_leftFloat"
306 };
307 componentNames[]=
308 {
309 "dmgZone_leftFloat"
310 };
311 class Health
312 {
313 hitpoints=200;
314 transferToGlobalCoef=1.05;
315 healthLevels[]=
316 {
317
318 {
319 1,
320
321 {
322 "dz\vehicles\water\Boat_01\data\Boat_01.rvmat"
323 }
324 },
325
326 {
327 0.69999999,
328
329 {
330 "dz\vehicles\water\Boat_01\data\Boat_01.rvmat"
331 }
332 },
333
334 {
335 0.5,
336
337 {
338 "dz\vehicles\water\Boat_01\data\Boat_01_damage.rvmat"
339 }
340 },
341
342 {
343 0.30000001,
344
345 {
346 "dz\vehicles\water\Boat_01\data\Boat_01_damage.rvmat"
347 }
348 },
349
350 {
351 0,
352
353 {
354 "dz\vehicles\water\Boat_01\data\Boat_01_destruct.rvmat"
355 }
356 }
357 };
358 };
359 inventorySlots[]={};
360 inventorySlotsCoefs[]={};
361 };
362 class RightFloat
363 {
364 displayName="$STR_cfgvehicleDmg_Floater1";
365 fatalInjuryCoef=0;
366 memoryPoints[]=
367 {
368 "dmgZone_rightFloat"
369 };
370 componentNames[]=
371 {
372 "dmgZone_rightFloat"
373 };
374 class Health
375 {
376 hitpoints=200;
377 transferToGlobalCoef=1.05;
378 healthLevels[]=
379 {
380
381 {
382 1,
383
384 {
385 "dz\vehicles\water\Boat_01\data\Boat_01.rvmat"
386 }
387 },
388
389 {
390 0.69999999,
391
392 {
393 "dz\vehicles\water\Boat_01\data\Boat_01.rvmat"
394 }
395 },
396
397 {
398 0.5,
399
400 {
401 "dz\vehicles\water\Boat_01\data\Boat_01_damage.rvmat"
402 }
403 },
404
405 {
406 0.30000001,
407
408 {
409 "dz\vehicles\water\Boat_01\data\Boat_01_damage.rvmat"
410 }
411 },
412
413 {
414 0,
415
416 {
417 "dz\vehicles\water\Boat_01\data\Boat_01_destruct.rvmat"
418 }
419 }
420 };
421 };
422 inventorySlots[]={};
423 inventorySlotsCoefs[]={};
424 };
425 class FrontFloat
426 {
427 displayName="$STR_cfgvehicleDmg_Floater2";
428 fatalInjuryCoef=0;
429 memoryPoints[]=
430 {
431 "dmgZone_frontFloat"
432 };
433 componentNames[]=
434 {
435 "dmgZone_frontFloat"
436 };
437 class Health
438 {
439 hitpoints=200;
440 transferToGlobalCoef=1.05;
441 healthLevels[]=
442 {
443
444 {
445 1,
446
447 {
448 "dz\vehicles\water\Boat_01\data\Boat_01.rvmat"
449 }
450 },
451
452 {
453 0.69999999,
454
455 {
456 "dz\vehicles\water\Boat_01\data\Boat_01.rvmat"
457 }
458 },
459
460 {
461 0.5,
462
463 {
464 "dz\vehicles\water\Boat_01\data\Boat_01_damage.rvmat"
465 }
466 },
467
468 {
469 0.30000001,
470
471 {
472 "dz\vehicles\water\Boat_01\data\Boat_01_damage.rvmat"
473 }
474 },
475
476 {
477 0,
478
479 {
480 "dz\vehicles\water\Boat_01\data\Boat_01_destruct.rvmat"
481 }
482 }
483 };
484 };
485 inventorySlots[]={};
486 inventorySlotsCoefs[]={};
487 };
488 };
489 };
490 class GUIInventoryAttachmentsProps
491 {
492 class Engine
493 {
494 name="$STR_attachment_Engine0";
495 description="";
496 icon="set:dayz_inventory image:cat_vehicle_engine";
497 attachmentSlots[]=
498 {
499 "SparkPlug"
500 };
501 };
502 };
503 };
504 class Boat_01_Orange: Boat_01_ColorBase
505 {
506 scope=2;
507 hiddenSelectionsTextures[]=
508 {
509 "DZ\vehicles\water\Boat_01\data\boat_01_orange_co.paa",
510 "DZ\vehicles\water\Boat_01\data\boat_01_orange_co.paa"
511 };
512 };
513 class Boat_01_Blue: Boat_01_ColorBase
514 {
515 scope=2;
516 hiddenSelectionsTextures[]=
517 {
518 "DZ\vehicles\water\Boat_01\data\boat_01_blue_co.paa",
519 "DZ\vehicles\water\Boat_01\data\boat_01_blue_co.paa"
520 };
521 };
522 class Boat_01_Black: Boat_01_ColorBase
523 {
524 scope=2;
525 hiddenSelectionsTextures[]=
526 {
527 "DZ\vehicles\water\Boat_01\data\boat_01_co.paa",
528 "DZ\vehicles\water\Boat_01\data\boat_01_co.paa"
529 };
530 };
531 class Boat_01_Camo: Boat_01_ColorBase
532 {
533 scope=2;
534 hiddenSelectionsTextures[]=
535 {
536 "DZ\vehicles\water\Boat_01\data\Boat_01_OMK_CO.paa",
537 "DZ\vehicles\water\Boat_01\data\Boat_01_OMK_CO.paa"
538 };
539 };
540};