DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CanPutAsAttachment()

override bool ClothingBase::CanPutAsAttachment ( EntityAI parent)
inlineprivate

См. определение в файле HoxtonMask.c строка 3

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 }
int GetNumberOfItems()
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
Определения ItemBase.c:8218
override bool IsMan()
Определения Man.c:44

Перекрестные ссылки GetNumberOfItems() и EntityAI::IsMan().