DayZ 1.24
Loading...
Searching...
No Matches
SambucusBerry.c
Go to the documentation of this file.
1class SambucusBerry extends Edible_Base
2{
3 override bool CanBeCooked()
4 {
5 return true;
6 }
7
8 override bool CanBeCookedOnStick()
9 {
10 return false;
11 }
12
13 override bool IsFruit()
14 {
15 return true;
16 }
17
18 override bool CanDecay()
19 {
20 return true;
21 }
22
24 {
25 //if Barrel_ColorBase
26 if (parent.IsInherited(Barrel_ColorBase))
27 {
29
30 if (barrel.IsOpen() && !barrel.FindAttachmentBySlotName("Nails") && !barrel.FindAttachmentBySlotName("OakBark") && !barrel.FindAttachmentBySlotName("BirchBark") && !barrel.FindAttachmentBySlotName("Lime") && !barrel.FindAttachmentBySlotName("Disinfectant") && !barrel.FindAttachmentBySlotName("Guts"))
31 return true;
32 }
33
34 return false;
35 }
36
38 {
39 //if Barrel_ColorBase
40 if (parent.IsInherited(Barrel_ColorBase))
41 {
43
44 if (!barrel.IsOpen())
45 return false;
46 }
47
48 return true;
49 }
50
51 override void SetActions()
52 {
53 super.SetActions();
54
55 AddAction(ActionForceFeed);
57 }
58}
void AddAction(typename actionName)
bool ConditionAttach(EntityAI parent)
override bool CanBeCookedOnStick()
override bool IsFruit()
override bool CanDecay()
override bool CanBeCooked()
override void SetActions()
bool ConditionDetach(EntityAI parent)