DayZ 1.27
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
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()
Определения ActionBandageSelf.c:17
ActionBandageTargetCB ActionContinuousBaseCB ActionBandageTarget()
Определения ActionBandageTarget.c:17
void AddAction(typename actionName)
Определения AdvancedCommunication.c:220
override float GetQuantity()
Определения ItemBase.c:8154
int m_Cleanness
Определения ItemBase.c:4812
Определения 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:128
override void SetActions()
Определения consumables.c:131
Определения consumables.c:130
Определения InventoryItem.c:788
Определения consumables.c:139
Определения consumables.c:140
Определения Armband_ColorBase.c:2
override void SetActions()
Определения consumables.c:143
Определения consumables.c:142
Определения Building.c:6
Определения consumables.c:154
provides access to slot configuration
Определения InventorySlots.c:6
Определения InventoryItem.c:731
override bool CanSwitchDuringAttach(EntityAI parent)
Определения consumables.c:157
override bool IsDestructionBehaviour()
Определения consumables.c:167
override string GetDestructionBehaviour()
Определения consumables.c:162
Определения consumables.c:156
override string GetDestructionBehaviour()
Определения consumables.c:189
override bool CanSwitchDuringAttach(EntityAI parent)
Определения consumables.c:184
override bool IsDestructionBehaviour()
Определения consumables.c:194
Определения consumables.c:183
Определения consumables.c:209
Определения consumables.c:210
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Определения param.c:12
Определения consumables.c:123
override float GetInfectionChance(int system=0, Param param=null)
Определения consumables.c:91
override void SetActions()
Определения consumables.c:67
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Определения consumables.c:103
override bool CanBeDisinfected()
Определения consumables.c:81
override float GetBandagingEffectivity()
Определения consumables.c:86
void Shemag_ColorBase()
Определения consumables.c:76
Определения consumables.c:124
Определения consumables.c:125
Определения consumables.c:126
override bool CanSwitchDuringAttach(EntityAI parent)
Определения consumables.c:213
override string GetDestructionBehaviour()
Определения consumables.c:218
override bool IsDestructionBehaviour()
Определения consumables.c:223
Определения consumables.c:212
override void SetActions()
Определения consumables.c:239
Определения consumables.c:238
Определения consumables.c:247
Определения consumables.c:248
override void SetActions()
Определения consumables.c:251
Определения consumables.c:250