Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
pot.c
Go to the documentation of this file.
1
class
Pot
:
Bottle_Base
2
{
3
void
Pot
();
4
void
~Pot
();
5
6
override
bool
IsContainer
()
7
{
8
return
true
;
9
}
10
11
override
bool
IsCookware
()
12
{
13
return
true
;
14
}
15
16
override
string
GetPouringSoundset
()
17
{
18
return
"emptyVessle_Pot_SoundSet"
;
19
}
20
21
override
string
GetEmptyingLoopSoundsetHard
()
22
{
23
return
"pour_HardGround_Pot_SoundSet"
;
24
}
25
26
override
string
GetEmptyingLoopSoundsetSoft
()
27
{
28
return
"pour_SoftGround_Pot_SoundSet"
;
29
}
30
31
override
string
GetEmptyingLoopSoundsetWater
()
32
{
33
return
"pour_Water_Pot_SoundSet"
;
34
}
35
36
override
string
GetEmptyingEndSoundsetHard
()
37
{
38
return
"pour_End_HardGround_Pot_SoundSet"
;
39
}
40
41
override
string
GetEmptyingEndSoundsetSoft
()
42
{
43
return
"pour_End_SoftGround_Pot_SoundSet"
;
44
}
45
46
override
string
GetEmptyingEndSoundsetWater
()
47
{
48
return
"pour_End_Water_Pot_SoundSet"
;
49
}
50
51
override
bool
CanPutInCargo
(
EntityAI
parent )
52
{
53
if
( !super.CanPutInCargo( parent ) )
54
return
false
;
55
56
if
( parent &&
IsCargoException4x3
( parent ) )
57
return
false
;
58
59
//is 'parent' somewhere in cargo?
60
if
(parent && !parent.GetInventory().AreChildrenAccessible())
61
return
false
;
62
63
return
true
;
64
}
65
66
override
bool
CanReceiveItemIntoCargo
(
EntityAI
item )
67
{
68
if
( !super.CanReceiveItemIntoCargo( item ) )
69
return
false
;
70
71
if
(
IsCargoException4x3
( item ) )
72
return
false
;
73
74
//is 'this' somewhere in cargo?
75
if
(!GetInventory().AreChildrenAccessible())
76
return
false
;
77
78
//can 'this' be attached to the item (->assumed smaller size than item)?
79
int
slotId;
80
for
(
int
i = 0; i < GetInventory().GetSlotIdCount(); i++)
81
{
82
slotId = GetInventory().GetSlotId(i);
83
if
(item.GetInventory().HasAttachmentSlot(slotId))
84
{
85
//Print("CanReceiveItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
86
return
false
;
87
}
88
}
89
90
return
true
;
91
}
92
93
override
bool
CanLoadItemIntoCargo
(
EntityAI
item )
94
{
95
if
( !super.CanLoadItemIntoCargo( item ) )
96
return
false
;
97
98
if
(
IsCargoException4x3
( item ) )
99
return
false
;
100
101
//can 'this' be attached to the item (->assumed smaller size than item)?
102
int
slotId;
103
for
(
int
i = 0; i < GetInventory().GetSlotIdCount(); i++)
104
{
105
slotId = GetInventory().GetSlotId(i);
106
if
(item.GetInventory().HasAttachmentSlot(slotId))
107
{
108
//Print("CanLoadItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
109
return
false
;
110
}
111
}
112
113
return
true
;
114
}
115
116
override
bool
IsOpen
()
117
{
118
return
true
;
119
}
120
121
override
bool
CanHaveWetness
()
122
{
123
return
true
;
124
}
125
126
override
float
GetQuantityNormalizedScripted
()
127
{
128
return
1.0;
129
}
130
131
override
void
SetActions
()
132
{
133
super.SetActions();
134
135
RemoveAction
(
ActionDrink
);
136
RemoveAction
(
ActionEmptyBottleBase
);
137
138
AddAction
(
ActionDrinkCookingPot
);
139
AddAction
(
ActionEmptyCookingPot
);
140
}
141
}
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
EntityAI
Definition
inventoryitem.c:2
Pot::GetEmptyingEndSoundsetSoft
override string GetEmptyingEndSoundsetSoft()
Definition
pot.c:41
Pot::IsOpen
override bool IsOpen()
Definition
pot.c:116
Pot::GetEmptyingEndSoundsetHard
override string GetEmptyingEndSoundsetHard()
Definition
pot.c:36
Pot::CanHaveWetness
override bool CanHaveWetness()
Definition
pot.c:121
Pot::CanReceiveItemIntoCargo
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition
pot.c:66
Pot::CanLoadItemIntoCargo
override bool CanLoadItemIntoCargo(EntityAI item)
Definition
pot.c:93
Pot::GetPouringSoundset
override string GetPouringSoundset()
Definition
pot.c:16
Pot::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition
pot.c:51
Pot::GetEmptyingLoopSoundsetWater
override string GetEmptyingLoopSoundsetWater()
Definition
pot.c:31
Pot::~Pot
void ~Pot()
Pot::Pot
void Pot()
Pot::GetEmptyingEndSoundsetWater
override string GetEmptyingEndSoundsetWater()
Definition
pot.c:46
Pot::IsCookware
override bool IsCookware()
Definition
pot.c:11
Pot::IsContainer
override bool IsContainer()
Definition
pot.c:6
Pot::GetEmptyingLoopSoundsetSoft
override string GetEmptyingLoopSoundsetSoft()
Definition
pot.c:26
Pot::GetEmptyingLoopSoundsetHard
override string GetEmptyingLoopSoundsetHard()
Definition
pot.c:21
Pot::SetActions
override void SetActions()
Definition
pot.c:131
Pot::GetQuantityNormalizedScripted
override float GetQuantityNormalizedScripted()
Definition
pot.c:126
IsCargoException4x3
bool IsCargoException4x3(EntityAI item)
Definition
itembase.c:9629
Games
Dayz
scripts
4_world
entities
itembase
edible_base
bottle_base
pot.c
Generated by
1.17.0