DayZ 1.24
Loading...
Searching...
No Matches
ClothingBase Class Reference
Inheritance diagram for ClothingBase:
[legend]

Protected Member Functions

void InitGlobalExclusionValues ()
 
void InitGlobalExclusionValues ()
 
void InitGlobalExclusionValues ()
 

Private Member Functions

override bool CanPutAsAttachment (EntityAI parent)
 

Detailed Description

Definition at line 1 of file DallasMask.c.

Member Function Documentation

◆ CanPutAsAttachment()

override bool ClothingBase::CanPutAsAttachment ( EntityAI parent)
inlineprivate

Definition at line 3 of file HoxtonMask.c.

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 }
int GetNumberOfItems()
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
Definition ItemBase.c:8059
override bool IsMan()
Definition Man.c:33

References GetNumberOfItems(), and EntityAI::IsMan().

◆ InitGlobalExclusionValues() [1/3]

void ClothingBase::InitGlobalExclusionValues ( )
inlineprotected

Definition at line 3 of file DallasMask.c.

4 {
5 super.InitGlobalExclusionValues();
6
7 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_0);
8 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_1);
9 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_2);
10 }

◆ InitGlobalExclusionValues() [2/3]

void ClothingBase::InitGlobalExclusionValues ( )
inlineprotected

Definition at line 3 of file GuyFawkesMask.c.

4 {
5 super.InitGlobalExclusionValues();
6
7 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_0);
8 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_1);
9 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_2);
10 }

◆ InitGlobalExclusionValues() [3/3]

void ClothingBase::InitGlobalExclusionValues ( )
inlineprotected

Definition at line 3 of file WolfMask.c.

4 {
5 super.InitGlobalExclusionValues();
6
7 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_0);
8 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_1);
9 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_2);
10 }

The documentation for this class was generated from the following files: