DayZ 1.24
Loading...
Searching...
No Matches
consumables.c
Go to the documentation of this file.
1class Bait: ItemBase {};
3{
12
14 {
15
16 }
17
18 override bool CanBeDisinfected()
19 {
20 return true;
21 }
22
23 override float GetBandagingEffectivity()
24 {
25 return 0.5;
26 };
27
28 override float GetInfectionChance(int system = 0, Param param = null)
29 {
30 if (m_Cleanness == 1)
31 return 0.00;
32 else
33 return 0.15;
34 }
35
37 {
38 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
39 switch (slotId)
40 {
41 case InventorySlots.HEADGEAR:
42 return ret;//no discernable conflict here
43 break;
44
45 default:
46 ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
47
48 ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
49 break;
50 }
51 return ret;
52 }
53};
62
65{
66 override void SetActions()
67 {
68 super.SetActions();
69
72 }
73};
79{
80 override void SetActions()
81 {
82 super.SetActions();
83
86 //AddAction(ActionRepairPart);
89 }
90};
92class Hook: ItemBase {};
94{
95 override bool CanSwitchDuringAttach(EntityAI parent)
96 {
97 return true;
98 }
99
100 override string GetDestructionBehaviour()
101 {
102 return "DestructionEffectGasCanister";
103 }
104
106 {
107
108 if (GetQuantity() > 0)
109 return true;
110
111 else
112 return false;
113 }
114};
115
117{
118 override bool CanSwitchDuringAttach(EntityAI parent)
119 {
120 return true;
121 }
122
123 override string GetDestructionBehaviour()
124 {
125 return "DestructionEffectGasCanister";
126 }
127
129 {
130
131 if (GetQuantity() > 0)
132 return true;
133
134 else
135 return false;
136 }
137};
138
142{
143 override bool CanSwitchDuringAttach(EntityAI parent)
144 {
145 return true;
146 }
147
148 override string GetDestructionBehaviour()
149 {
150 return "DestructionEffectGasCanister";
151 }
152
154 {
155
156 if (GetQuantity() > 0)
157 return true;
158
159 else
160 return false;
161 }
162};
164{
165 override void SetActions()
166 {
167 super.SetActions();
168
170 }
171};
176{
177 override void SetActions()
178 {
179 super.SetActions();
180
182 }
183};
ActionBandageSelfCB ActionContinuousBaseCB ActionBandageSelf()
ActionBandageTargetCB ActionContinuousBaseCB ActionBandageTarget()
void AddAction(typename actionName)
override float GetQuantity()
Definition ItemBase.c:7995
int m_Cleanness
Definition ItemBase.c:4715
override bool CanBeDisinfected()
Definition consumables.c:18
void Bandana_ColorBase()
Definition consumables.c:13
override void SetActions()
Definition consumables.c:4
override float GetInfectionChance(int system=0, Param param=null)
Definition consumables.c:28
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Definition consumables.c:36
override float GetBandagingEffectivity()
Definition consumables.c:23
override void SetActions()
Definition consumables.c:66
override void SetActions()
Definition consumables.c:80
provides access to slot configuration
override bool CanSwitchDuringAttach(EntityAI parent)
Definition consumables.c:95
override bool IsDestructionBehaviour()
override string GetDestructionBehaviour()
override string GetDestructionBehaviour()
override bool CanSwitchDuringAttach(EntityAI parent)
override bool IsDestructionBehaviour()
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12
override bool CanSwitchDuringAttach(EntityAI parent)
override string GetDestructionBehaviour()
override bool IsDestructionBehaviour()
override void SetActions()
override void SetActions()