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_Lights
4 {
5 units[]={};
6 weapons[]={};
7 requiredVersion=0.1;
8 requiredAddons[]=
9 {
10 "DZ_Data"
11 };
12 };
13};
14class cfgVehicles
15{
16 class Inventory_Base;
17 class Switchable_Base;
18 class UniversalLight: Switchable_Base
19 {
20 scope=2;
21 displayName="$STR_cfgVehicles_UniversalLight0";
22 descriptionShort="$STR_cfgVehicles_UniversalLight1";
23 model="\DZ\weapons\attachments\light\weaponlight_universal.p3d";
24 debug_ItemCategory=3;
25 rotationFlags=17;
26 reversed=1;
27 weight=80;
28 itemSize[]={2,1};
29 inventorySlot[]=
30 {
31 "weaponFlashlight",
32 "helmetFlashlight"
33 };
34 class DamageSystem
35 {
36 class GlobalHealth
37 {
38 class Health
39 {
40 hitpoints=70;
41 healthLevels[]=
42 {
43
44 {
45 1,
46
47 {
48 "DZ\weapons\attachments\data\m4_flashlight.rvmat",
49 "dz\gear\tools\data\flashlight_glass.rvmat"
50 }
51 },
52
53 {
54 0.69999999,
55 {}
56 },
57
58 {
59 0.5,
60
61 {
62 "DZ\weapons\attachments\data\m4_flashlight_damage.rvmat",
63 "dz\gear\tools\data\flashlight_glass_damage.rvmat"
64 }
65 },
66
67 {
68 0.30000001,
69 {}
70 },
71
72 {
73 0,
74
75 {
76 "DZ\weapons\attachments\data\m4_flashlight_destruct.rvmat",
77 "dz\gear\tools\data\flashlight_glass_destruct.rvmat"
78 }
79 }
80 };
81 };
82 };
83 };
84 repairableWithKits[]={7};
85 repairCosts[]={25};
86 hiddenSelections[]=
87 {
88 "zbytek",
89 "reflector",
90 "glass",
91 "reflector_far"
92 };
93 hiddenSelectionsTextures[]=
94 {
95 "dz\weapons\attachments\data\m4_flashlight_co.paa",
96 "dz\weapons\attachments\data\m4_flashlight_co.paa",
97 "dz\gear\tools\data\flashlight_glass.paa",
98 "dz\weapons\attachments\data\m4_flashlight_co.paa"
99 };
100 hiddenSelectionsMaterials[]=
101 {
102 "dz\weapons\attachments\data\m4_flashlight.rvmat",
103 "dz\weapons\attachments\data\m4_flashlight.rvmat",
104 "dz\gear\tools\data\flashlight_glass.rvmat",
105 "dz\weapons\attachments\data\m4_flashlight.rvmat"
106 };
107 class EnergyManager
108 {
109 hasIcon=1;
110 autoSwitchOffWhenInCargo=1;
111 energyUsagePerSecond=0.0099999998;
112 plugType=1;
113 attachmentAction=1;
114 updateInterval=40;
115 };
116 soundImpactType="plastic";
117 };
118 class TLRLight: Switchable_Base
119 {
120 scope=2;
121 displayName="$STR_cfgVehicles_TLRLight0";
122 descriptionShort="$STR_cfgVehicles_TLRLight1";
123 model="\DZ\weapons\attachments\light\weaponlight_TLR.p3d";
124 debug_ItemCategory=3;
125 rotationFlags=17;
126 reversed=1;
127 weight=118;
128 itemSize[]={1,1};
129 inventorySlot[]=
130 {
131 "pistolFlashlight"
132 };
133 class DamageSystem
134 {
135 class GlobalHealth
136 {
137 class Health
138 {
139 hitpoints=70;
140 healthLevels[]=
141 {
142
143 {
144 1,
145
146 {
147 "DZ\weapons\attachments\data\tls3.rvmat"
148 }
149 },
150
151 {
152 0.69999999,
153
154 {
155 "DZ\weapons\attachments\data\tls3.rvmat"
156 }
157 },
158
159 {
160 0.5,
161
162 {
163 "DZ\weapons\attachments\data\tls3_damage.rvmat"
164 }
165 },
166
167 {
168 0.30000001,
169
170 {
171 "DZ\weapons\attachments\data\tls3_damage.rvmat"
172 }
173 },
174
175 {
176 0,
177
178 {
179 "DZ\weapons\attachments\data\tls3_destruct.rvmat"
180 }
181 }
182 };
183 };
184 };
185 };
186 repairableWithKits[]={7};
187 repairCosts[]={25};
188 hiddenSelections[]=
189 {
190 "glass",
191 "reflector"
192 };
193 hiddenSelectionsTextures[]=
194 {
195 "dz\gear\tools\data\flashlight_glass.paa",
196 "dz\gear\tools\data\flashlight_old_co.paa"
197 };
198 hiddenSelectionsMaterials[]=
199 {
200 "dz\gear\tools\data\flashlight_glass.rvmat"
201 };
202 class EnergyManager
203 {
204 hasIcon=1;
205 autoSwitchOffWhenInCargo=1;
206 energyUsagePerSecond=0.0099999998;
207 plugType=1;
208 attachmentAction=1;
209 updateInterval=40;
210 };
211 soundImpactType="plastic";
212 };
213};
215{
216 class ProxyAttachment;
217 class ProxyWeaponlight_universal: ProxyAttachment
218 {
219 scope=2;
220 inventorySlot="weaponFlashlight";
221 model="\dz\weapons\attachments\light\weaponlight_universal.p3d";
222 };
223 class ProxyWeaponlight_TLR: ProxyAttachment
224 {
225 scope=2;
226 inventorySlot="pistolFlashlight";
227 model="\dz\weapons\attachments\light\weaponlight_TLR.p3d";
228 };
229};