DayZ 1.24
Loading...
Searching...
No Matches
PlateCarrierPouches Class Reference
Inheritance diagram for PlateCarrierPouches:
[legend]
Collaboration diagram for PlateCarrierPouches:
[legend]

Private Member Functions

override bool CanPutInCargo (EntityAI parent)
 
override bool CanReceiveItemIntoCargo (EntityAI item)
 
override bool CanLoadItemIntoCargo (EntityAI item)
 
- Private Member Functions inherited from Container_Base
override void DeferredInit ()
 
override void EEDelete (EntityAI parent)
 
override bool IsContainer ()
 
override bool IsTakeable ()
 
override bool CanSwapEntities (EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
 
override bool CanPutInCargo (EntityAI parent)
 
override bool DisableVicinityIcon ()
 
override bool CanDisplayCargo ()
 
void EmtpyInventory ()
 
void FillInventory ()
 
void GiftBox_Base ()
 
override bool CanReceiveItemIntoCargo (EntityAI item)
 
override void Open ()
 
override void Close ()
 
override bool IsOpen ()
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
 

Additional Inherited Members

- Private Attributes inherited from Container_Base
AnniversaryBoxLight m_Light
 
vector m_HalfExtents
 
ref OpenableBehaviour m_Openable
 

Detailed Description

Definition at line 28 of file containers.c.

Member Function Documentation

◆ CanLoadItemIntoCargo()

override bool PlateCarrierPouches::CanLoadItemIntoCargo ( EntityAI item)
inlineprivate

Definition at line 55 of file containers.c.

56 {
57 if (!super.CanLoadItemIntoCargo(item))
58 return false;
59
60 return !item.GetInventory().GetCargo() || (item.GetInventory().GetCargo().GetItemCount() == 0 || item.IsContainer());
61 }

◆ CanPutInCargo()

override bool PlateCarrierPouches::CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 30 of file containers.c.

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 }

◆ CanReceiveItemIntoCargo()

override bool PlateCarrierPouches::CanReceiveItemIntoCargo ( EntityAI item)
inlineprivate

Definition at line 44 of file containers.c.

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 }

The documentation for this class was generated from the following file: