DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
consumables.c
Go to the documentation of this file.
1class Bait: ItemBase {};
3{
4 override void SetActions()
5 {
6 super.SetActions();
7
11 }
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 {
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 zone here
47 break;
48
49 default:
50 ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
51 break;
52 }
53 return ret;
54 }
55};
64
67{
68 override void SetActions()
69 {
70 super.SetActions();
71
74 }
75};
81{
82 override void SetActions()
83 {
84 super.SetActions();
85
88 //AddAction(ActionRepairPart);
91 }
92};
94class Hook: ItemBase {};
96{
97 override bool CanSwitchDuringAttach(EntityAI parent)
98 {
99 return true;
100 }
101
102 override string GetDestructionBehaviour()
103 {
104 return "DestructionEffectGasCanister";
105 }
106
108 {
109
110 if (GetQuantity() > 0)
111 {
112 return true;
113 }
114
115 else
116 {
117 return false;
118 }
119 }
120};
121
123{
124 override bool CanSwitchDuringAttach(EntityAI parent)
125 {
126 return true;
127 }
128
129 override string GetDestructionBehaviour()
130 {
131 return "DestructionEffectGasCanister";
132 }
133
135 {
136
137 if (GetQuantity() > 0)
138 {
139 return true;
140 }
141
142 else
143 {
144 return false;
145 }
146 }
147};
148
152{
153 override bool CanSwitchDuringAttach(EntityAI parent)
154 {
155 return true;
156 }
157
158 override string GetDestructionBehaviour()
159 {
160 return "DestructionEffectGasCanister";
161 }
162
164 {
165
166 if (GetQuantity() > 0)
167 {
168 return true;
169 }
170
171 else
172 {
173 return false;
174 }
175 }
176};
178{
179 override void SetActions()
180 {
181 super.SetActions();
182
184 }
185};
190{
191 override void SetActions()
192 {
193 super.SetActions();
194
196 }
197};
void AddAction(typename actionName)
int m_Cleanness
Definition ItemBase.c:4671
override float GetQuantity()
Definition ItemBase.c:7967
override protected set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Definition consumables.c:40
void Bandana_ColorBase()
Definition consumables.c:13
override float GetInfectionChance(int system=0, Param param=null)
Definition consumables.c:28
override bool CanBeDisinfected()
Definition consumables.c:18
override float GetBandagingEffectivity()
Definition consumables.c:23
override void SetActions()
Definition consumables.c:4
override void SetActions()
Definition consumables.c:68
override void SetActions()
Definition consumables.c:82
provides access to slot configuration
override bool CanSwitchDuringAttach(EntityAI parent)
Definition consumables.c:97
override bool IsDestructionBehaviour()
override string GetDestructionBehaviour()
override bool CanSwitchDuringAttach(EntityAI parent)
override bool IsDestructionBehaviour()
override string GetDestructionBehaviour()
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 bool IsDestructionBehaviour()
override string GetDestructionBehaviour()
override void SetActions()
override void SetActions()