DayZ
1.24
Loading...
Searching...
No Matches
HoxtonMask.c
Go to the documentation of this file.
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
headgear_present
= parent.FindAttachmentBySlotName(
"Headgear"
).ConfigGetBool(
"noMask"
);
10
11
if
((
GetNumberOfItems
() == 0 || !parent || parent.
IsMan
()) && !
headgear_present
)
12
return
true
;
13
return
false
;
14
}
15
}
GetNumberOfItems
int GetNumberOfItems()
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
Definition
ItemBase.c:8059
ClothingBase
Definition
DallasMask.c:2
ClothingBase::CanPutAsAttachment
override bool CanPutAsAttachment(EntityAI parent)
Definition
HoxtonMask.c:3
EntityAI
Definition
Building.c:6
EntityAI::IsMan
override bool IsMan()
Definition
Man.c:33
Param3
Definition
EntityAI.c:95
scripts
4_World
Entities
ItemBase
Clothing
HoxtonMask.c
Generated by
1.10.0