Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
leatherbelt_colorbase.c
Go to the documentation of this file.
2{
3 override bool CanPutInCargo( EntityAI parent )
4 {
5 if( !super.CanPutInCargo( parent ) )
6 {
7 return false;
8 }
9
10 return IsEmpty();
11 }
12
13 override bool CanReceiveAttachment( EntityAI attachment,int slotId )
14 {
15 if( !super.CanReceiveAttachment( attachment, slotId ) )
16 {
17 return false;
18 }
19
20 return !GetInventory().IsInCargo();
21 }
22}
23class LeatherBelt_Beige extends LeatherBelt_ColorBase {};
24class LeatherBelt_Natural extends LeatherBelt_ColorBase {};
25class LeatherBelt_Brown extends LeatherBelt_ColorBase {};
26class LeatherBelt_Black extends LeatherBelt_ColorBase {};
override bool CanPutInCargo(EntityAI parent)
override bool IsEmpty()
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
Definition itembase.c:8990