Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
consumables.c
Go to the documentation of this file.
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
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};
127
130{
131 override void SetActions()
132 {
133 super.SetActions();
134
137 }
138};
142{
143 override void SetActions()
144 {
145 super.SetActions();
146
149 //AddAction(ActionRepairPart);
152 }
153};
156{
157 override bool CanSwitchDuringAttach(EntityAI parent)
158 {
159 return true;
160 }
161
162 override string GetDestructionBehaviour()
163 {
164 return "DestructionEffectGasCanister";
165 }
166
168 {
169
170 if (GetQuantity() > 0)
171 {
172 return true;
173 }
174
175 else
176 {
177 return false;
178 }
179 }
180};
181
183{
184 override bool CanSwitchDuringAttach(EntityAI parent)
185 {
186 return true;
187 }
188
189 override string GetDestructionBehaviour()
190 {
191 return "DestructionEffectGasCanister";
192 }
193
195 {
196
197 if (GetQuantity() > 0)
198 {
199 return true;
200 }
201
202 else
203 {
204 return false;
205 }
206 }
207};
208
212{
213 override bool CanSwitchDuringAttach(EntityAI parent)
214 {
215 return true;
216 }
217
218 override string GetDestructionBehaviour()
219 {
220 return "DestructionEffectGasCanister";
221 }
222
224 {
225
226 if (GetQuantity() > 0)
227 {
228 return true;
229 }
230
231 else
232 {
233 return false;
234 }
235 }
236};
238{
239 override void SetActions()
240 {
241 super.SetActions();
242
244 }
245};
250{
251 override void SetActions()
252 {
253 super.SetActions();
254
256 }
257};
ActionBandageSelfCB ActionContinuousBaseCB ActionBandageSelf()
ActionBandageTargetCB ActionContinuousBaseCB ActionBandageTarget()
void AddAction(typename actionName)
void Bandana_ColorBase()
Definition consumables.c:12
override float GetInfectionChance(int system=0, Param param=null)
Definition consumables.c:27
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Definition consumables.c:39
override bool CanBeDisinfected()
Definition consumables.c:17
override float GetBandagingEffectivity()
Definition consumables.c:22
override void SetActions()
Definition consumables.c:3
override void SetActions()
override void SetActions()
provides access to slot configuration
override bool CanSwitchDuringAttach(EntityAI parent)
override bool IsDestructionBehaviour()
override string GetDestructionBehaviour()
override bool CanSwitchDuringAttach(EntityAI parent)
override bool IsDestructionBehaviour()
override string GetDestructionBehaviour()
Base Param Class with no parameters.
Definition param.c:12
void Shemag_ColorBase()
Definition consumables.c:76
override float GetInfectionChance(int system=0, Param param=null)
Definition consumables.c:91
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
override bool CanBeDisinfected()
Definition consumables.c:81
override float GetBandagingEffectivity()
Definition consumables.c:86
override void SetActions()
Definition consumables.c:67
override bool CanSwitchDuringAttach(EntityAI parent)
override bool IsDestructionBehaviour()
override string GetDestructionBehaviour()
override void SetActions()
override void SetActions()
int m_Cleanness
Definition itembase.c:4940
override float GetQuantity()
Definition itembase.c:8398