Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
consumables.c
Go to the documentation of this file.
1 class Bait: ItemBase {};
3 {
4  override void SetActions()
5  {
6  super.SetActions();
7 
11  }
12 
13  void Bandana_ColorBase()
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  {
32  return 0.00;
33  }
34  else
35  {
36  return 0.15;
37  }
38  }
39 
40  override protected set<int> GetAttachmentExclusionInitSlotValue(int slotId)
41  {
42  set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
43  switch (slotId)
44  {
45  case InventorySlots.HEADGEAR:
46  return ret;//no discernable conflict here
47  break;
48 
49  default:
50  ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
51 
52  ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
53  break;
54  }
55  return ret;
56  }
57 };
66 
67 class BatteryD: ItemBase {};
68 class Bone: ItemBase
69 {
70  override void SetActions()
71  {
72  super.SetActions();
73 
76  }
77 };
78 class BoneBait: ItemBase {};
79 class BoneHook: ItemBase {};
83 {
84  override void SetActions()
85  {
86  super.SetActions();
87 
90  //AddAction(ActionRepairPart);
93  }
94 };
95 class Flashbang: ItemBase {};
96 class Hook: ItemBase {};
98 {
99  override bool CanSwitchDuringAttach(EntityAI parent)
100  {
101  return true;
102  }
103 
104  override string GetDestructionBehaviour()
105  {
106  return "DestructionEffectGasCanister";
107  }
108 
109  override bool IsDestructionBehaviour()
110  {
111 
112  if (GetQuantity() > 0)
113  {
114  return true;
115  }
116 
117  else
118  {
119  return false;
120  }
121  }
122 };
123 
125 {
126  override bool CanSwitchDuringAttach(EntityAI parent)
127  {
128  return true;
129  }
130 
131  override string GetDestructionBehaviour()
132  {
133  return "DestructionEffectGasCanister";
134  }
135 
136  override bool IsDestructionBehaviour()
137  {
138 
139  if (GetQuantity() > 0)
140  {
141  return true;
142  }
143 
144  else
145  {
146  return false;
147  }
148  }
149 };
150 
151 class NailBox: Box_Base {};
152 class Netting: ItemBase {};
154 {
155  override bool CanSwitchDuringAttach(EntityAI parent)
156  {
157  return true;
158  }
159 
160  override string GetDestructionBehaviour()
161  {
162  return "DestructionEffectGasCanister";
163  }
164 
165  override bool IsDestructionBehaviour()
166  {
167 
168  if (GetQuantity() > 0)
169  {
170  return true;
171  }
172 
173  else
174  {
175  return false;
176  }
177  }
178 };
180 {
181  override void SetActions()
182  {
183  super.SetActions();
184 
186  }
187 };
192 {
193  override void SetActions()
194  {
195  super.SetActions();
196 
198  }
199 };
ItemBase
Definition: inventoryitem.c:730
TannedLeather
Definition: consumables.c:191
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition: param.c:11
InventorySlots
provides access to slot configuration
Definition: inventoryslots.c:5
ActionCraftStoneKnifeEnv
Definition: actioncraftstoneknifeenv.c:11
Spraycan_Green
Definition: consumables.c:190
Spraycan_Black
Definition: consumables.c:189
Bandana_PolkaPattern
Definition: consumables.c:60
ActionAttachToConstruction
Definition: actionattachtoconstruction.c:1
m_Cleanness
int m_Cleanness
Definition: itembase.c:36
MediumGasCanister
Definition: consumables.c:124
ButaneCanister
Definition: consumables.c:81
Box_Base
Definition: inventoryitem.c:780
ActionRestrainTarget
Definition: actionrestraintarget.c:23
ActionRepairTent
Definition: actionrepairtent.c:19
GetQuantity
override float GetQuantity()
Definition: itembase.c:3316
Bandana_RedPattern
Definition: consumables.c:58
BoneHook
Definition: consumables.c:79
BurlapStrip
Definition: consumables.c:80
ActionBandageSelf
ActionBandageSelfCB ActionContinuousBaseCB ActionBandageSelf()
Definition: actionbandageself.c:17
ActionCraftBoneKnife
Definition: actioncraftboneknife.c:10
BoneBait
Definition: consumables.c:78
DuctTape
Definition: consumables.c:82
Netting
Definition: consumables.c:152
Spraycan_ColorBase
Definition: consumables.c:188
Bandana_Blue
Definition: consumables.c:63
Flashbang
Definition: consumables.c:95
Bone
Definition: consumables.c:68
SmallStone
Definition: consumables.c:179
Clothing
Definition: armband_colorbase.c:1
Bandana_Greenpattern
Definition: consumables.c:61
Hook
Definition: consumables.c:96
Bandana_BlackPattern
Definition: consumables.c:59
Bait
Definition: consumables.c:1
AddAction
void AddAction(typename actionName)
Definition: advancedcommunication.c:86
BatteryD
Definition: consumables.c:67
ActionCraftBoneKnifeEnv
Definition: actioncraftboneknifeenv.c:11
Bandana_Pink
Definition: consumables.c:64
ActionBandageTarget
ActionBurnSewSelfCB ActionBandageTarget
LargeGasCanister
Definition: consumables.c:97
ActionRestrainSelf
Definition: actionrestrainself.c:23
Bandana_ColorBase
Definition: consumables.c:2
NailBox
Definition: consumables.c:151
ActionRepairShelter
Definition: actionrepairshelter.c:2
ActionWringClothes
Definition: actionwringclothes.c:12
EntityAI
Definition: building.c:5
SmallGasCanister
Definition: consumables.c:153
Bandana_CamoPattern
Definition: consumables.c:62
Bandana_Yellow
Definition: consumables.c:65