DayZ 1.24
Loading...
Searching...
No Matches
Cauldron.c
Go to the documentation of this file.
1class Cauldron extends Bottle_Base
2{
3 void Cauldron()
4 {
5
6 }
7
8 void ~Cauldron()
9 {
10
11 }
12
13 override bool IsContainer()
14 {
15 return true;
16 }
17
18 override string GetPouringSoundset()
19 {
20 return "emptyVessle_Pot_SoundSet";
21 }
22
24 {
25 return "pour_HardGround_Pot_SoundSet";
26 }
27
29 {
30 return "pour_SoftGround_Pot_SoundSet";
31 }
32
34 {
35 return "pour_Water_Pot_SoundSet";
36 }
37
39 {
40 return "pour_End_HardGround_Pot_SoundSet";
41 }
42
44 {
45 return "pour_End_SoftGround_Pot_SoundSet";
46 }
47
49 {
50 return "pour_End_Water_Pot_SoundSet";
51 }
52
53 override bool CanPutInCargo(EntityAI parent)
54 {
55 if (!super.CanPutInCargo(parent))
56 return false;
57
58 if (parent && IsCargoException4x3(parent))
59 return false;
60
61 //is 'parent' somewhere in cargo?
62 if (parent && parent.GetInventory().IsCargoInHiearchy())
63 return false;
64
65 return true;
66 }
67
69 {
70 if (!super.CanReceiveItemIntoCargo(item))
71 return false;
72
74 return false;
75
76 //is 'this' somewhere in cargo?
77 if (GetInventory().IsCargoInHiearchy())
78 return false;
79
80 return true;
81 }
82
84 {
85 if (!super.CanLoadItemIntoCargo(item))
86 return false;
87
89 return false;
90
91 return true;
92 }
93
94 override bool IsOpen()
95 {
96 return true;
97 }
98
99 override bool CanHaveWetness()
100 {
101 return true;
102 }
103
113}
void AddAction(typename actionName)
void RemoveAction(typename actionName)
bool IsCargoException4x3(EntityAI item)
Definition ItemBase.c:9270
override string GetEmptyingEndSoundsetWater()
Definition Cauldron.c:48
override bool CanHaveWetness()
Definition Cauldron.c:99
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition Cauldron.c:68
override void SetActions()
Definition Cauldron.c:104
override string GetEmptyingLoopSoundsetWater()
Definition Cauldron.c:33
override string GetEmptyingLoopSoundsetHard()
Definition Cauldron.c:23
override string GetEmptyingEndSoundsetSoft()
Definition Cauldron.c:43
void Cauldron()
Definition Cauldron.c:3
override bool CanPutInCargo(EntityAI parent)
Definition Cauldron.c:53
override bool CanLoadItemIntoCargo(EntityAI item)
Definition Cauldron.c:83
void ~Cauldron()
Definition Cauldron.c:8
override string GetEmptyingLoopSoundsetSoft()
Definition Cauldron.c:28
override bool IsContainer()
Definition Cauldron.c:13
override string GetEmptyingEndSoundsetHard()
Definition Cauldron.c:38
override string GetPouringSoundset()
Definition Cauldron.c:18
override bool IsOpen()
Definition Cauldron.c:94