Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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
19 {
20 return "pour_HardGround_Pot_SoundSet";
21 }
22
24 {
25 return "pour_SoftGround_Pot_SoundSet";
26 }
27
29 {
30 return "pour_Water_Pot_SoundSet";
31 }
32
34 {
35 return "pour_End_HardGround_Pot_SoundSet";
36 }
37
39 {
40 return "pour_End_SoftGround_Pot_SoundSet";
41 }
42
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
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
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)
override string GetEmptyingEndSoundsetSoft()
Definition cauldron.c:38
override bool IsOpen()
Definition cauldron.c:89
override string GetEmptyingEndSoundsetHard()
Definition cauldron.c:33
override bool CanHaveWetness()
Definition cauldron.c:94
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition cauldron.c:63
override bool CanLoadItemIntoCargo(EntityAI item)
Definition cauldron.c:78
override string GetPouringSoundset()
Definition cauldron.c:13
override bool CanPutInCargo(EntityAI parent)
Definition cauldron.c:48
override string GetEmptyingLoopSoundsetWater()
Definition cauldron.c:28
override string GetEmptyingEndSoundsetWater()
Definition cauldron.c:43
override bool IsCookware()
Definition cauldron.c:8
override bool IsContainer()
Definition cauldron.c:3
override string GetEmptyingLoopSoundsetSoft()
Definition cauldron.c:23
override string GetEmptyingLoopSoundsetHard()
Definition cauldron.c:18
override void SetActions()
Definition cauldron.c:104
override float GetQuantityNormalizedScripted()
Definition cauldron.c:99
bool IsCargoException4x3(EntityAI item)
Definition itembase.c:9629