DayZ
1.24
Loading...
Searching...
No Matches
containers.c
Go to the documentation of this file.
1
class
AmmoBox
:
Container_Base
2
{
3
override
int
GetDamageSystemVersionChange
()
4
{
5
return
110;
6
}
7
8
override
bool
CanPutInCargo
(
EntityAI
parent)
9
{
10
if
(!
super
.CanPutInCargo(parent))
11
return
false
;
12
13
if
(parent && parent.IsKindOf(
"WaterproofBag_ColorBase"
))
14
return
false
;
15
16
return
true
;
17
}
18
}
19
20
class
FirstAidKit
:
Container_Base
21
{
22
override
int
GetDamageSystemVersionChange
()
23
{
24
return
110;
25
}
26
}
27
28
class
PlateCarrierPouches
:
Container_Base
29
{
30
override
bool
CanPutInCargo
(
EntityAI
parent)
31
{
32
if
(!
super
.CanPutInCargo(parent))
33
return
false
;
34
35
if
(parent && parent.IsKindOf(
"AmmoBox"
))
36
return
false
;
37
38
if
(parent && parent.IsKindOf(
"PlateCarrierPouches"
))
39
return
false
;
40
41
return
true
;
42
}
43
44
override
bool
CanReceiveItemIntoCargo
(
EntityAI
item
)
45
{
46
if
(!
super
.CanReceiveItemIntoCargo(
item
))
47
return
false
;
48
49
if
(GetInventory().IsAttachment())
50
return
!GetHierarchyParent().GetInventory().IsInCargo() && (!
item
.GetInventory().GetCargo() || (
item
.GetInventory().GetCargo().GetItemCount() == 0 ||
item
.IsContainer()));
51
52
return
!
item
.GetInventory().GetCargo() || (
item
.GetInventory().GetCargo().GetItemCount() == 0 ||
item
.IsContainer());
53
}
54
55
override
bool
CanLoadItemIntoCargo
(
EntityAI
item
)
56
{
57
if
(!
super
.CanLoadItemIntoCargo(
item
))
58
return
false
;
59
60
return
!
item
.GetInventory().GetCargo() || (
item
.GetInventory().GetCargo().GetItemCount() == 0 ||
item
.IsContainer());
61
}
62
}
63
64
class
Refrigerator
: WorldContainer_Base {};
65
class
RefrigeratorMinsk
: WorldContainer_Base {};
66
class
SmallProtectorCase
:
Container_Base
67
{
68
override
int
GetDamageSystemVersionChange
()
69
{
70
return
110;
71
}
72
}
73
74
class
TrashCan
: WorldContainer_Base {};
GetDamageSystemVersionChange
int GetDamageSystemVersionChange()
Re-sets DamageSystem changes.
Definition
ItemBase.c:5384
AmmoBox
Definition
containers.c:2
AmmoBox::GetDamageSystemVersionChange
override int GetDamageSystemVersionChange()
Definition
containers.c:3
AmmoBox::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition
containers.c:8
Container_Base
Definition
Container_Base.c:2
EntityAI
Definition
Building.c:6
Param3
Definition
EntityAI.c:95
PlateCarrierPouches
Definition
containers.c:29
PlateCarrierPouches::CanReceiveItemIntoCargo
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition
containers.c:44
PlateCarrierPouches::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition
containers.c:30
PlateCarrierPouches::CanLoadItemIntoCargo
override bool CanLoadItemIntoCargo(EntityAI item)
Definition
containers.c:55
RefrigeratorMinsk
Definition
containers.c:65
SmallProtectorCase
Definition
containers.c:67
SmallProtectorCase::GetDamageSystemVersionChange
override int GetDamageSystemVersionChange()
Definition
containers.c:68
scripts
4_World
Entities
ItemBase
Gear
Containers
containers.c
Generated by
1.10.0