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