DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
HoxtonMask.c
См. документацию.
1
class
HoxtonMask
extends
ClothingBase
2
{
3
override
bool
CanPutAsAttachment
(
EntityAI
parent )
4
{
5
if
(!super.CanPutAsAttachment(parent)) {
return
false
;}
6
bool
headgear_present =
false
;
7
8
if
( parent.FindAttachmentBySlotName(
"Headgear"
) )
9
{
10
headgear_present = parent.FindAttachmentBySlotName(
"Headgear"
).ConfigGetBool(
"noMask"
);
11
}
12
13
if
( (
GetNumberOfItems
() == 0 || !parent || parent.
IsMan
() ) && !headgear_present )
14
{
15
return
true
;
16
}
17
return
false
;
18
}
19
}
GetNumberOfItems
int GetNumberOfItems()
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
Определения
ItemBase.c:8218
ClothingBase::CanPutAsAttachment
override bool CanPutAsAttachment(EntityAI parent)
Определения
HoxtonMask.c:3
ClothingBase
Определения
DallasMask.c:2
EntityAI::IsMan
override bool IsMan()
Определения
Man.c:44
EntityAI
Определения
Building.c:6
Ishodniki
scripts
4_World
Entities
ItemBase
Clothing
HoxtonMask.c
Создано системой
1.13.2