Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
cauldron.c
Go to the documentation of this file.
1
class
Cauldron
:
Bottle_Base
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
108
RemoveAction
(
ActionDrink
);
109
RemoveAction
(
ActionEmptyBottleBase
);
110
AddAction
(
ActionDrinkCookingPot
);
111
AddAction
(
ActionEmptyCookingPot
);
112
}
113
}
AddAction
void AddAction(typename actionName)
Definition
advancedcommunication.c:220
RemoveAction
void RemoveAction(typename actionName)
Definition
advancedcommunication.c:252
ActionDrinkCookingPot
Definition
actiondrinkcookingpot.c:2
ActionDrink
Definition
actiondrink.c:10
ActionEmptyBottleBase
Definition
actionemptybottlebase.c:24
ActionEmptyCookingPot
Definition
actionemptycookingpot.c:2
Bottle_Base
Definition
canteen.c:2
Cauldron
Definition
cauldron.c:2
Cauldron::GetEmptyingEndSoundsetSoft
override string GetEmptyingEndSoundsetSoft()
Definition
cauldron.c:38
Cauldron::IsOpen
override bool IsOpen()
Definition
cauldron.c:89
Cauldron::GetEmptyingEndSoundsetHard
override string GetEmptyingEndSoundsetHard()
Definition
cauldron.c:33
Cauldron::CanHaveWetness
override bool CanHaveWetness()
Definition
cauldron.c:94
Cauldron::CanReceiveItemIntoCargo
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition
cauldron.c:63
Cauldron::CanLoadItemIntoCargo
override bool CanLoadItemIntoCargo(EntityAI item)
Definition
cauldron.c:78
Cauldron::GetPouringSoundset
override string GetPouringSoundset()
Definition
cauldron.c:13
Cauldron::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition
cauldron.c:48
Cauldron::GetEmptyingLoopSoundsetWater
override string GetEmptyingLoopSoundsetWater()
Definition
cauldron.c:28
Cauldron::GetEmptyingEndSoundsetWater
override string GetEmptyingEndSoundsetWater()
Definition
cauldron.c:43
Cauldron::IsCookware
override bool IsCookware()
Definition
cauldron.c:8
Cauldron::IsContainer
override bool IsContainer()
Definition
cauldron.c:3
Cauldron::GetEmptyingLoopSoundsetSoft
override string GetEmptyingLoopSoundsetSoft()
Definition
cauldron.c:23
Cauldron::GetEmptyingLoopSoundsetHard
override string GetEmptyingLoopSoundsetHard()
Definition
cauldron.c:18
Cauldron::SetActions
override void SetActions()
Definition
cauldron.c:104
Cauldron::GetQuantityNormalizedScripted
override float GetQuantityNormalizedScripted()
Definition
cauldron.c:99
EntityAI
Definition
inventoryitem.c:2
IsCargoException4x3
bool IsCargoException4x3(EntityAI item)
Definition
itembase.c:9629
Games
Dayz
scripts
4_world
entities
itembase
edible_base
bottle_base
cauldron.c
Generated by
1.17.0