Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
consumables.c
Go to the documentation of this file.
1
class
Bandana_ColorBase
:
Clothing
2
{
3
override
void
SetActions
()
4
{
5
super.SetActions();
6
7
AddAction
(
ActionBandageTarget
);
8
AddAction
(
ActionBandageSelf
);
9
AddAction
(
ActionWringClothes
);
10
}
11
12
void
Bandana_ColorBase
()
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
};
57
class
Bandana_RedPattern
:
Bandana_ColorBase
{};
58
class
Bandana_BlackPattern
:
Bandana_ColorBase
{};
59
class
Bandana_PolkaPattern
:
Bandana_ColorBase
{};
60
class
Bandana_Greenpattern
:
Bandana_ColorBase
{};
61
class
Bandana_CamoPattern
:
Bandana_ColorBase
{};
62
class
Bandana_Blue
:
Bandana_ColorBase
{};
63
class
Bandana_Pink
:
Bandana_ColorBase
{};
64
class
Bandana_Yellow
:
Bandana_ColorBase
{};
65
class
Shemag_ColorBase
:
Clothing
66
{
67
override
void
SetActions
()
68
{
69
super.SetActions();
70
71
AddAction
(
ActionBandageTarget
);
72
AddAction
(
ActionBandageSelf
);
73
AddAction
(
ActionWringClothes
);
74
}
75
76
void
Shemag_ColorBase
()
77
{
78
79
}
80
81
override
bool
CanBeDisinfected
()
82
{
83
return
true
;
84
}
85
86
override
float
GetBandagingEffectivity
()
87
{
88
return
0.5;
89
};
90
91
override
float
GetInfectionChance
(
int
system = 0,
Param
param = null)
92
{
93
if
(
m_Cleanness
== 1)
94
{
95
return
0.00;
96
}
97
else
98
{
99
return
0.15;
100
}
101
}
102
103
override
protected
set<int>
GetAttachmentExclusionInitSlotValue
(
int
slotId)
104
{
105
set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
106
107
switch
(slotId)
108
{
109
case
InventorySlots
.HEADGEAR:
110
ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
111
break
;
112
113
default
:
114
ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
115
ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
116
117
ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
118
break
;
119
}
120
return
ret;
121
}
122
};
123
class
Shemag_Brown
:
Shemag_ColorBase
{};
124
class
Shemag_Green
:
Shemag_ColorBase
{};
125
class
Shemag_Red
:
Shemag_ColorBase
{};
126
class
Shemag_White
:
Shemag_ColorBase
{};
127
128
class
BatteryD
:
ItemBase
{};
129
class
Bone
:
ItemBase
130
{
131
override
void
SetActions
()
132
{
133
super.SetActions();
134
135
AddAction
(
ActionCraftBoneKnife
);
136
AddAction
(
ActionCraftBoneKnifeEnv
);
137
}
138
};
139
class
BurlapStrip
:
ItemBase
{};
140
class
ButaneCanister
:
ItemBase
{};
141
class
DuctTape
:
ItemBase
142
{
143
override
void
SetActions
()
144
{
145
super.SetActions();
146
147
AddAction
(
ActionRepairTent
);
148
AddAction
(
ActionRepairShelter
);
149
//AddAction(ActionRepairPart);
150
AddAction
(
ActionRestrainTarget
);
151
AddAction
(
ActionRestrainSelf
);
152
}
153
};
154
class
Flashbang
:
ItemBase
{};
155
class
LargeGasCanister
:
ItemBase
156
{
157
override
bool
CanSwitchDuringAttach
(
EntityAI
parent)
158
{
159
return
true
;
160
}
161
162
override
string
GetDestructionBehaviour
()
163
{
164
return
"DestructionEffectGasCanister"
;
165
}
166
167
override
bool
IsDestructionBehaviour
()
168
{
169
170
if
(
GetQuantity
() > 0)
171
{
172
return
true
;
173
}
174
175
else
176
{
177
return
false
;
178
}
179
}
180
};
181
182
class
MediumGasCanister
:
ItemBase
183
{
184
override
bool
CanSwitchDuringAttach
(
EntityAI
parent)
185
{
186
return
true
;
187
}
188
189
override
string
GetDestructionBehaviour
()
190
{
191
return
"DestructionEffectGasCanister"
;
192
}
193
194
override
bool
IsDestructionBehaviour
()
195
{
196
197
if
(
GetQuantity
() > 0)
198
{
199
return
true
;
200
}
201
202
else
203
{
204
return
false
;
205
}
206
}
207
};
208
209
class
NailBox
:
Box_Base
{};
210
class
Netting
:
ItemBase
{};
211
class
SmallGasCanister
:
ItemBase
212
{
213
override
bool
CanSwitchDuringAttach
(
EntityAI
parent)
214
{
215
return
true
;
216
}
217
218
override
string
GetDestructionBehaviour
()
219
{
220
return
"DestructionEffectGasCanister"
;
221
}
222
223
override
bool
IsDestructionBehaviour
()
224
{
225
226
if
(
GetQuantity
() > 0)
227
{
228
return
true
;
229
}
230
231
else
232
{
233
return
false
;
234
}
235
}
236
};
237
class
SmallStone
:
ItemBase
238
{
239
override
void
SetActions
()
240
{
241
super.SetActions();
242
243
AddAction
(
ActionCraftStoneKnifeEnv
);
244
}
245
};
246
class
Spraycan_ColorBase
:
ItemBase
{};
247
class
Spraycan_Black
:
Spraycan_ColorBase
{};
248
class
Spraycan_Green
:
Spraycan_ColorBase
{};
249
class
TannedLeather
:
ItemBase
250
{
251
override
void
SetActions
()
252
{
253
super.SetActions();
254
255
AddAction
(
ActionAttachToConstruction
);
256
}
257
};
ActionBandageSelf
ActionBandageSelfCB ActionContinuousBaseCB ActionBandageSelf()
Definition
actionbandageself.c:17
ActionBandageTarget
ActionBandageTargetCB ActionContinuousBaseCB ActionBandageTarget()
Definition
actionbandagetarget.c:17
AddAction
void AddAction(typename actionName)
Definition
advancedcommunication.c:220
ActionAttachToConstruction
Definition
actionattachtoconstruction.c:2
ActionCraftBoneKnifeEnv
Definition
actioncraftboneknifeenv.c:12
ActionCraftBoneKnife
Definition
actioncraftboneknife.c:10
ActionCraftStoneKnifeEnv
Definition
actioncraftstoneknifeenv.c:12
ActionRepairShelter
Definition
actionrepairshelter.c:3
ActionRepairTent
Definition
actionrepairtent.c:20
ActionRestrainSelf
Definition
actionrestrainself.c:24
ActionRestrainTarget
Definition
actionrestraintarget.c:24
ActionWringClothes
Definition
actionwringclothes.c:13
Bandana_BlackPattern
Definition
consumables.c:58
Bandana_Blue
Definition
consumables.c:62
Bandana_CamoPattern
Definition
consumables.c:61
Bandana_ColorBase::Bandana_ColorBase
void Bandana_ColorBase()
Definition
consumables.c:12
Bandana_ColorBase::GetInfectionChance
override float GetInfectionChance(int system=0, Param param=null)
Definition
consumables.c:27
Bandana_ColorBase::GetAttachmentExclusionInitSlotValue
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Definition
consumables.c:39
Bandana_ColorBase::CanBeDisinfected
override bool CanBeDisinfected()
Definition
consumables.c:17
Bandana_ColorBase::GetBandagingEffectivity
override float GetBandagingEffectivity()
Definition
consumables.c:22
Bandana_ColorBase::SetActions
override void SetActions()
Definition
consumables.c:3
Bandana_Greenpattern
Definition
consumables.c:60
Bandana_Pink
Definition
consumables.c:63
Bandana_PolkaPattern
Definition
consumables.c:59
Bandana_RedPattern
Definition
consumables.c:57
Bandana_Yellow
Definition
consumables.c:64
BatteryD
Definition
consumables.c:128
Bone
Definition
consumables.c:130
Bone::SetActions
override void SetActions()
Definition
consumables.c:131
Box_Base
Definition
inventoryitem.c:799
BurlapStrip
Definition
consumables.c:139
ButaneCanister
Definition
consumables.c:140
Clothing
Definition
armband_colorbase.c:2
DuctTape
Definition
consumables.c:142
DuctTape::SetActions
override void SetActions()
Definition
consumables.c:143
EntityAI
Definition
inventoryitem.c:2
Flashbang
Definition
consumables.c:154
InventorySlots
provides access to slot configuration
Definition
inventoryslots.c:6
ItemBase
Definition
inventoryitem.c:742
LargeGasCanister
Definition
consumables.c:156
LargeGasCanister::CanSwitchDuringAttach
override bool CanSwitchDuringAttach(EntityAI parent)
Definition
consumables.c:157
LargeGasCanister::IsDestructionBehaviour
override bool IsDestructionBehaviour()
Definition
consumables.c:167
LargeGasCanister::GetDestructionBehaviour
override string GetDestructionBehaviour()
Definition
consumables.c:162
MediumGasCanister
Definition
consumables.c:183
MediumGasCanister::CanSwitchDuringAttach
override bool CanSwitchDuringAttach(EntityAI parent)
Definition
consumables.c:184
MediumGasCanister::IsDestructionBehaviour
override bool IsDestructionBehaviour()
Definition
consumables.c:194
MediumGasCanister::GetDestructionBehaviour
override string GetDestructionBehaviour()
Definition
consumables.c:189
NailBox
Definition
consumables.c:209
Netting
Definition
consumables.c:210
Param
Base Param Class with no parameters.
Definition
param.c:12
Shemag_Brown
Definition
consumables.c:123
Shemag_ColorBase::Shemag_ColorBase
void Shemag_ColorBase()
Definition
consumables.c:76
Shemag_ColorBase::GetInfectionChance
override float GetInfectionChance(int system=0, Param param=null)
Definition
consumables.c:91
Shemag_ColorBase::GetAttachmentExclusionInitSlotValue
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Definition
consumables.c:103
Shemag_ColorBase::CanBeDisinfected
override bool CanBeDisinfected()
Definition
consumables.c:81
Shemag_ColorBase::GetBandagingEffectivity
override float GetBandagingEffectivity()
Definition
consumables.c:86
Shemag_ColorBase::SetActions
override void SetActions()
Definition
consumables.c:67
Shemag_Green
Definition
consumables.c:124
Shemag_Red
Definition
consumables.c:125
Shemag_White
Definition
consumables.c:126
SmallGasCanister
Definition
consumables.c:212
SmallGasCanister::CanSwitchDuringAttach
override bool CanSwitchDuringAttach(EntityAI parent)
Definition
consumables.c:213
SmallGasCanister::IsDestructionBehaviour
override bool IsDestructionBehaviour()
Definition
consumables.c:223
SmallGasCanister::GetDestructionBehaviour
override string GetDestructionBehaviour()
Definition
consumables.c:218
SmallStone
Definition
consumables.c:238
SmallStone::SetActions
override void SetActions()
Definition
consumables.c:239
Spraycan_Black
Definition
consumables.c:247
Spraycan_ColorBase
Definition
consumables.c:246
Spraycan_Green
Definition
consumables.c:248
TannedLeather
Definition
consumables.c:250
TannedLeather::SetActions
override void SetActions()
Definition
consumables.c:251
m_Cleanness
int m_Cleanness
Definition
itembase.c:4940
GetQuantity
override float GetQuantity()
Definition
itembase.c:8398
Games
Dayz
scripts
4_world
entities
itembase
gear
consumables
consumables.c
Generated by
1.17.0