DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
consumables.c
См. документацию.
2{
3 override void SetActions()
4 {
5 super.SetActions();
6
10 }
11
13 {
14
15 }
16
17 override bool CanBeDisinfected()
18 {
19 return true;
20 }
21
22 override float GetBandagingEffectivity()
23 {
24 return 0.5;
25 };
26
27 override float GetInfectionChance(int system = 0, Param param = null)
28 {
29 if(m_Cleanness == 1)
30 {
31 return 0.00;
32 }
33 else
34 {
35 return 0.15;
36 }
37 }
38
39 override protected set<int> GetAttachmentExclusionInitSlotValue(int slotId)
40 {
41 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
42 switch (slotId)
43 {
44 case InventorySlots.HEADGEAR:
45 return ret;//no discernable conflict here
46 break;
47
48 default:
49 ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
50
51 ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
52 break;
53 }
54 return ret;
55 }
56};
66{
67 override void SetActions()
68 {
69 super.SetActions();
70
74 }
75
76 override bool CanBeDisinfected()
77 {
78 return true;
79 }
80
81 override float GetBandagingEffectivity()
82 {
83 return 0.5;
84 }
85
86 override float GetInfectionChance(int system = 0, Param param = null)
87 {
88 if (m_Cleanness == 1)
89 return 0.00;
90
91 return 0.15;
92 }
93
98
99 override float GetProtectionLevel(int type, bool consider_filter = false, int system = 0)
100 {
101 if (IsDamageDestroyed())
102 return 0.0;
103
104 InventoryLocation inventoryLocation = new InventoryLocation();
105 GetInventory().GetCurrentInventoryLocation(inventoryLocation);
106
107 if (inventoryLocation.GetSlot() == InventorySlots.MASK)
108 {
109 switch (type)
110 {
112 return 0.65;
114 return 0.0;
115 }
116 }
117
118 return super.GetProtectionLevel(type, consider_filter, system);
119 }
120
121 override protected set<int> GetAttachmentExclusionInitSlotValue(int slotId)
122 {
123 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
124
125 switch (slotId)
126 {
127 case InventorySlots.HEADGEAR:
128 ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
129 break;
130
131 default:
132 ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
133 ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
134
135 ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
136 break;
137 }
138 return ret;
139 }
140}
141
142class Shemag_Brown: Shemag_ColorBase {}
143class Shemag_Green: Shemag_ColorBase {}
144class Shemag_Red: Shemag_ColorBase {}
145class Shemag_White: Shemag_ColorBase {}
146
148{
149 override void SetActions()
150 {
151 super.SetActions();
152
155 AddAction(ActionWringClothes);
156 }
157
160
161 }
162
163 override bool CanBeDisinfected()
165 return true;
166 }
167
168 override float GetBandagingEffectivity()
170 return 0.5;
171 };
172
173 override float GetInfectionChance(int system = 0, Param param = null)
174 {
175 if(m_Cleanness == 1)
176 {
177 return 0.00;
178 }
179 else
180 {
181 return 0.15;
183 }
184
186 {
188 }
189
190 override float GetProtectionLevel(int type, bool consider_filter = false, int system = 0)
191 {
192 if (IsDamageDestroyed())
193 return 0.0;
194
195 InventoryLocation inventoryLocation = new InventoryLocation();
196 GetInventory().GetCurrentInventoryLocation(inventoryLocation);
197
198 if (inventoryLocation.GetSlot() == InventorySlots.MASK)
199 {
200 switch (type)
201 {
203 return 0.65;
205 return 0.0;
206 }
207 }
208
209 return super.GetProtectionLevel(type, consider_filter, system);
210 }
211
212 override protected set<int> GetAttachmentExclusionInitSlotValue(int slotId)
213 {
214 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
215 switch (slotId)
216 {
217 case InventorySlots.HEADGEAR:
218 return ret;//no discernable conflict here
219 break;
220
221 default:
222 ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
223
224 ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
225 break;
226 }
227 return ret;
228 }
229};
238
241{
242 override void SetActions()
243 {
244 super.SetActions();
245
248 }
249};
253{
254 override void SetActions()
255 {
256 super.SetActions();
257
260 //AddAction(ActionRepairPart);
263 }
264};
267{
268 override bool CanSwitchDuringAttach(EntityAI parent)
269 {
270 return true;
271 }
272
273 override string GetDestructionBehaviour()
274 {
275 return "DestructionEffectGasCanister";
276 }
277
279 {
280
281 if (GetQuantity() > 0)
282 {
283 return true;
284 }
285
286 else
287 {
288 return false;
289 }
290 }
291};
292
294{
295 override bool CanSwitchDuringAttach(EntityAI parent)
296 {
297 return true;
298 }
299
300 override string GetDestructionBehaviour()
301 {
302 return "DestructionEffectGasCanister";
303 }
304
306 {
307
308 if (GetQuantity() > 0)
309 {
310 return true;
311 }
312
313 else
314 {
315 return false;
316 }
317 }
318};
319
323{
324 override bool CanSwitchDuringAttach(EntityAI parent)
325 {
326 return true;
327 }
328
329 override string GetDestructionBehaviour()
330 {
331 return "DestructionEffectGasCanister";
332 }
333
335 {
336
337 if (GetQuantity() > 0)
338 {
339 return true;
340 }
341
342 else
343 {
344 return false;
345 }
346 }
347};
349{
350 override void SetActions()
351 {
352 super.SetActions();
353
355 }
356};
361{
362 override void SetActions()
363 {
364 super.SetActions();
365
367 }
368};
ActionBandageSelfCB ActionContinuousBaseCB ActionBandageSelf()
Определения ActionBandageSelf.c:17
ActionBandageTargetCB ActionContinuousBaseCB ActionBandageTarget()
Определения ActionBandageTarget.c:17
bool IsDamageDestroyed(ActionTarget target)
Определения ActionBase.c:1275
void AddAction(typename actionName)
Определения AdvancedCommunication.c:220
ECachedEquipmentItemCategory
Определения ECachedEquipmentItemCategory.c:2
int m_Cleanness
Определения ItemBase.c:46
override float GetQuantity()
Определения ItemBase.c:3486
float GetProtectionLevel(int type, bool consider_filter=false, int system=0)
Определения ItemBase.c:4073
float GetInfectionChance(int system=0, Param param=null)
Infection chance while/after using this item, originally used for wound infection after bandaging,...
Определения ItemBase.c:602
bool CanBeDisinfected()
Определения ItemBase.c:3247
float GetBandagingEffectivity()
Определения ItemBase.c:4512
Определения consumables.c:62
override bool CanBeDisinfected()
Определения consumables.c:17
void Bandana_ColorBase()
Определения consumables.c:12
override void SetActions()
Определения consumables.c:3
override float GetInfectionChance(int system=0, Param param=null)
Определения consumables.c:27
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Определения consumables.c:39
override float GetBandagingEffectivity()
Определения consumables.c:22
Определения consumables.c:63
Определения consumables.c:57
Определения consumables.c:64
Определения consumables.c:239
override void SetActions()
Определения consumables.c:242
Определения consumables.c:241
Определения consumables.c:250
Определения consumables.c:251
Определения Armband_ColorBase.c:2
override void SetActions()
Определения consumables.c:254
Определения consumables.c:253
Определения consumables.c:265
proto native int GetSlot()
returns slot id if current type is Attachment
InventoryLocation.
Определения InventoryLocation.c:30
provides access to slot configuration
Определения InventorySlots.c:6
Определения consumables.c:237
Определения consumables.c:236
Определения consumables.c:232
Определения consumables.c:233
Определения consumables.c:231
Определения consumables.c:235
override bool CanSwitchDuringAttach(EntityAI parent)
Определения consumables.c:268
override bool IsDestructionBehaviour()
Определения consumables.c:278
override string GetDestructionBehaviour()
Определения consumables.c:273
Определения consumables.c:267
override string GetDestructionBehaviour()
Определения consumables.c:300
override bool CanSwitchDuringAttach(EntityAI parent)
Определения consumables.c:295
override bool IsDestructionBehaviour()
Определения consumables.c:305
Определения consumables.c:294
Определения consumables.c:320
Определения consumables.c:321
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Определения param.c:12
override ECachedEquipmentItemCategory GetCachedEquipmentCategory()
Определения consumables.c:94
override float GetInfectionChance(int system=0, Param param=null)
Определения consumables.c:86
override void SetActions()
Определения consumables.c:67
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Определения consumables.c:121
override float GetProtectionLevel(int type, bool consider_filter=false, int system=0)
Определения consumables.c:99
override bool CanBeDisinfected()
Определения consumables.c:76
override float GetBandagingEffectivity()
Определения consumables.c:81
Определения consumables.c:66
override bool CanSwitchDuringAttach(EntityAI parent)
Определения consumables.c:324
override string GetDestructionBehaviour()
Определения consumables.c:329
override bool IsDestructionBehaviour()
Определения consumables.c:334
Определения consumables.c:323
override void SetActions()
Определения consumables.c:350
Определения consumables.c:349
Определения consumables.c:358
Определения consumables.c:359
override void SetActions()
Определения consumables.c:362
Определения consumables.c:361
void Keffiyeh_ColorBase()
Определения consumables.c:158
override ECachedEquipmentItemCategory GetCachedEquipmentCategory()
Определения consumables.c:177
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Определения consumables.c:204
Keffiyeh_LightBlue SetActions
Определения consumables.c:149
const int DEF_DUST_PARTICLE_BREATH
Определения 3_Game/DayZ/constants.c:549
const int DEF_DUST_PARTICLE_EYES
Определения 3_Game/DayZ/constants.c:550