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_Melee_Powered
4 {
5 units[]={};
6 weapons[]={};
7 requiredVersion=0.1;
8 requiredAddons[]=
9 {
10 "DZ_Weapons_Melee"
11 };
12 };
13};
14class CfgVehicles
15{
16 class Inventory_Base;
17 class Powered_Base;
18 class Switchable_Base;
19 class Chainsaw: Switchable_Base
20 {
21 scope=2;
22 displayName="$STR_CfgVehicles_Chainsaw0";
23 descriptionShort="$STR_CfgVehicles_Chainsaw1";
24 model="\dz\weapons\melee\powered\chainsaw.p3d";
25 animClass="Chainsaw";
26 weight=5800;
27 itemSize[]={10,5};
28 absorbency=0;
29 openItemSpillRange[]={40,60};
30 repairableWithKits[]={7};
31 repairCosts[]={25};
32 hiddenSelections[]=
33 {
34 "flame"
35 };
36 hiddenSelectionsTextures[]=
37 {
38 ""
39 };
40 class DamageSystem
41 {
42 class GlobalHealth
43 {
44 class Health
45 {
46 hitpoints=300;
47 healthLevels[]=
48 {
49
50 {
51 1,
52
53 {
54 "DZ\weapons\melee\powered\Data\chainsaw.rvmat"
55 }
56 },
57
58 {
59 0.69999999,
60
61 {
62 "DZ\weapons\melee\powered\Data\chainsaw.rvmat"
63 }
64 },
65
66 {
67 0.5,
68
69 {
70 "DZ\weapons\melee\powered\Data\chainsaw_damage.rvmat"
71 }
72 },
73
74 {
75 0.30000001,
76
77 {
78 "DZ\weapons\melee\powered\Data\chainsaw_damage.rvmat"
79 }
80 },
81
82 {
83 0,
84
85 {
86 "DZ\weapons\melee\powered\Data\chainsaw_destruct.rvmat"
87 }
88 }
89 };
90 };
91 };
92 };
93 class EnergyManager
94 {
95 hasIcon=1;
96 energyAtSpawn=0;
97 energyUsagePerSecond=1;
98 energyStorageMax=600;
99 };
100 class flame
101 {
102 sound="Sound_FlareFlame";
103 texture="dz\gear\consumables\data\flame_red_ca.paa";
104 };
105 };
106 class CattleProd: Powered_Base
107 {
108 scope=2;
109 displayName="$STR_CfgVehicles_CattleProd0";
110 descriptionShort="$STR_CfgVehicles_CattleProd1";
111 model="\dz\gear\tools\Catle_Prod.p3d";
112 inventorySlot[]=
113 {
114 "Shoulder",
115 "Melee"
116 };
117 rotationFlags=1;
118 weight=2700;
119 itemSize[]={1,6};
120 itemBehaviour=1;
121 fragility=0.0080000004;
122 lootTag[]=
123 {
124 "Farm"
125 };
126 lootCategory="Tools";
127 energyResources[]=
128 {
129
130 {
131 "power",
132 0.1
133 }
134 };
135 class DamageSystem
136 {
137 class GlobalHealth
138 {
139 class Health
140 {
141 hitpoints=150;
142 healthLevels[]=
143 {
144
145 {
146 1,
147
148 {
149 "DZ\weapons\melee\powered\Data\chainsaw.rvmat"
150 }
151 },
152
153 {
154 0.69999999,
155
156 {
157 "DZ\weapons\melee\powered\Data\chainsaw.rvmat"
158 }
159 },
160
161 {
162 0.5,
163
164 {
165 "DZ\weapons\melee\powered\Data\chainsaw_damage.rvmat"
166 }
167 },
168
169 {
170 0.30000001,
171
172 {
173 "DZ\weapons\melee\powered\Data\chainsaw_damage.rvmat"
174 }
175 },
176
177 {
178 0,
179
180 {
181 "DZ\weapons\melee\powered\Data\chainsaw_destruct.rvmat"
182 }
183 }
184 };
185 };
186 };
187 };
188 repairableWithKits[]={7};
189 repairCosts[]={25};
190 class EnergyManager
191 {
192 hasIcon=1;
193 plugType=1;
194 energyUsagePerSecond=1.5;
195 attachmentAction=1;
196 wetnessExposure=0.1;
197 };
198 isMeleeWeapon=1;
199 class MeleeModes
200 {
201 class Default
202 {
203 ammo="MeleeLightBlunt";
204 range=1.6;
205 };
206 class Heavy
207 {
208 ammo="MeleeLightBlunt_Heavy";
209 range=1.6;
210 };
211 class Sprint
212 {
213 ammo="MeleeLightBlunt_Heavy";
214 range=2.2;
215 };
216 class Default_SwitchedOn
217 {
218 ammo="MeleeLightBluntShock";
219 range=1.6;
220 };
221 class Heavy_SwitchedOn
222 {
223 ammo="MeleeLightBluntShock_Heavy";
224 range=1.6;
225 };
226 class Sprint_SwitchedOn
227 {
228 ammo="MeleeLightBluntShock_Heavy";
229 range=2.2;
230 };
231 };
232 };
233 class StunBaton: Powered_Base
234 {
235 scope=2;
236 displayName="$STR_CfgVehicles_StunBaton0";
237 descriptionShort="$STR_CfgVehicles_StunBaton1";
238 model="\dz\weapons\melee\powered\Stun_Baton.p3d";
239 inventorySlot[]=
240 {
241 "Shoulder",
242 "Melee"
243 };
244 rotationFlags=1;
245 weight=800;
246 itemSize[]={1,4};
247 itemBehaviour=1;
248 fragility=0.0080000004;
249 lootTag[]=
250 {
251 "Police"
252 };
253 lootCategory="Tools";
254 energyResources[]=
255 {
256
257 {
258 "power",
259 0.1
260 }
261 };
262 class DamageSystem
263 {
264 class GlobalHealth
265 {
266 class Health
267 {
268 hitpoints=200;
269 healthLevels[]=
270 {
271
272 {
273 1,
274
275 {
276 "DZ\weapons\melee\powered\Data\Stun_Baton.rvmat"
277 }
278 },
279
280 {
281 0.69999999,
282
283 {
284 "DZ\weapons\melee\powered\Data\Stun_Baton.rvmat"
285 }
286 },
287
288 {
289 0.5,
290
291 {
292 "DZ\weapons\melee\powered\Data\Stun_Baton_damage.rvmat"
293 }
294 },
295
296 {
297 0.30000001,
298
299 {
300 "DZ\weapons\melee\powered\Data\Stun_Baton_damage.rvmat"
301 }
302 },
303
304 {
305 0,
306
307 {
308 "DZ\weapons\melee\powered\Data\Stun_Baton_destruct.rvmat"
309 }
310 }
311 };
312 };
313 };
314 };
315 repairableWithKits[]={7};
316 repairCosts[]={25};
317 class EnergyManager
318 {
319 hasIcon=1;
320 plugType=1;
321 energyUsagePerSecond=3;
322 attachmentAction=1;
323 wetnessExposure=0.1;
324 };
325 isMeleeWeapon=1;
326 class MeleeModes
327 {
328 class Default
329 {
330 ammo="MeleeLightBlunt";
331 range=1.5;
332 };
333 class Heavy
334 {
335 ammo="MeleeLightBlunt_Heavy";
336 range=1.5;
337 };
338 class Sprint
339 {
340 ammo="MeleeLightBlunt_Heavy";
341 range=2;
342 };
343 class Default_SwitchedOn
344 {
345 ammo="MeleeLightBluntShock";
346 range=1.5;
347 };
348 class Heavy_SwitchedOn
349 {
350 ammo="MeleeLightBluntShock_Heavy";
351 range=1.5;
352 };
353 class Sprint_SwitchedOn
354 {
355 ammo="MeleeLightBluntShock_Heavy";
356 range=2;
357 };
358 };
359 };
360};