DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
Loading...
Searching...
No Matches
LeatherBelt_ColorBase.c
Go to the documentation of this file.
1
class
LeatherBelt_ColorBase
extends
Belt_Base
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
}
23
class
LeatherBelt_Beige
extends
LeatherBelt_ColorBase
{};
24
class
LeatherBelt_Natural
extends
LeatherBelt_ColorBase
{};
25
class
LeatherBelt_Brown
extends
LeatherBelt_ColorBase
{};
26
class
LeatherBelt_Black
extends
LeatherBelt_ColorBase
{};
IsEmpty
override bool IsEmpty()
Definition
FireplaceBase.c:2455
Belt_Base
Definition
LeatherBelt_ColorBase.c:2
Belt_Base::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition
LeatherBelt_ColorBase.c:3
Belt_Base::CanReceiveAttachment
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
Definition
LeatherBelt_ColorBase.c:13
EntityAI
Definition
Building.c:2
LeatherBelt_ColorBase
Definition
LeatherBelt_ColorBase.c:24