DayZ 1.24
Loading...
Searching...
No Matches
containers.c
Go to the documentation of this file.
2{
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
21{
22 override int GetDamageSystemVersionChange()
23 {
24 return 110;
25 }
26}
27
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
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
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
64class Refrigerator : WorldContainer_Base {};
65class RefrigeratorMinsk : WorldContainer_Base {};
67{
69 {
70 return 110;
71 }
72}
73
74class TrashCan : WorldContainer_Base {};
int GetDamageSystemVersionChange()
Re-sets DamageSystem changes.
Definition ItemBase.c:5384
override int GetDamageSystemVersionChange()
Definition containers.c:3
override bool CanPutInCargo(EntityAI parent)
Definition containers.c:8
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition containers.c:44
override bool CanPutInCargo(EntityAI parent)
Definition containers.c:30
override bool CanLoadItemIntoCargo(EntityAI item)
Definition containers.c:55
override int GetDamageSystemVersionChange()
Definition containers.c:68