Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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
20class FirstAidKit : Container_Base
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
44 override bool CanReceiveItemIntoCargo( EntityAI item )
45 {
46 if (!super.CanReceiveItemIntoCargo(item))
47 return false;
48
49 if (GetInventory().IsAttachment())
50 {
51 return !GetHierarchyParent().GetInventory().IsInCargo() && (!item.GetInventory().GetCargo() || (item.GetInventory().GetCargo().GetItemCount() == 0 || item.IsContainer()));
52 }
53
54 return !item.GetInventory().GetCargo() || (item.GetInventory().GetCargo().GetItemCount() == 0 || item.IsContainer());
55 }
56
57 override bool CanLoadItemIntoCargo( EntityAI item )
58 {
59 if (!super.CanLoadItemIntoCargo(item))
60 return false;
61
62 return !item.GetInventory().GetCargo() || (item.GetInventory().GetCargo().GetItemCount() == 0 || item.IsContainer());
63 }
64}
65
66class PlateCarrierPouches_Black extends PlateCarrierPouches {};
67class PlateCarrierPouches_Camo extends PlateCarrierPouches {};
68class PlateCarrierPouches_Green extends PlateCarrierPouches {};
69class PlateCarrierPouches_Winter extends PlateCarrierPouches {};
70
74{
76 {
77 return 110;
78 }
79}
80
81class TrashCan : WorldContainer_Base {};
override bool CanPutInCargo(EntityAI parent)
Definition containers.c:8
override int GetDamageSystemVersionChange()
Definition containers.c:3
override int GetDamageSystemVersionChange()
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition containers.c:44
override bool CanLoadItemIntoCargo(EntityAI item)
Definition containers.c:57
override bool CanPutInCargo(EntityAI parent)
Definition containers.c:30
override int GetDamageSystemVersionChange()
Definition containers.c:75
SmallProtectorCase WorldContainer_Base