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

Protected Member Functions

set< intGetAttachmentExclusionInitSlotValue (int slotId)
 

Private Member Functions

override void SetActions ()
 
void Bandana_ColorBase ()
 
override bool CanBeDisinfected ()
 
override float GetBandagingEffectivity ()
 
override float GetInfectionChance (int system=0, Param param=null)
 
- Private Member Functions inherited from Clothing
void InitGlobalExclusionValues ()
 
void CheckParent ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnWork (float consumed_energy)
 
void OnLightCreated ()
 
void CreateHeadtorchLight ()
 
void AttachLightOnHead (EntityAI person)
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void SetActions ()
 
override bool IsLightSource ()
 
override ItemBase GetLightSourceItem ()
 
override void OnInvisibleSet (bool invisible)
 

Detailed Description

Definition at line 2 of file consumables.c.

Constructor & Destructor Documentation

◆ Bandana_ColorBase()

void Bandana_ColorBase::Bandana_ColorBase ( )
inlineprivate

Definition at line 13 of file consumables.c.

14 {
15
16 }

Member Function Documentation

◆ CanBeDisinfected()

override bool Bandana_ColorBase::CanBeDisinfected ( )
inlineprivate

Definition at line 18 of file consumables.c.

19 {
20 return true;
21 }

◆ GetAttachmentExclusionInitSlotValue()

set< int > Bandana_ColorBase::GetAttachmentExclusionInitSlotValue ( int slotId)
inlineprotected

Definition at line 36 of file consumables.c.

37 {
38 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
39 switch (slotId)
40 {
41 case InventorySlots.HEADGEAR:
42 return ret;//no discernable conflict here
43 break;
44
45 default:
46 ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
47
48 ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
49 break;
50 }
51 return ret;
52 }
provides access to slot configuration

◆ GetBandagingEffectivity()

override float Bandana_ColorBase::GetBandagingEffectivity ( )
inlineprivate

Definition at line 23 of file consumables.c.

24 {
25 return 0.5;
26 };

◆ GetInfectionChance()

override float Bandana_ColorBase::GetInfectionChance ( int system = 0,
Param param = null )
inlineprivate

Definition at line 28 of file consumables.c.

29 {
30 if (m_Cleanness == 1)
31 return 0.00;
32 else
33 return 0.15;
34 }
int m_Cleanness
Definition ItemBase.c:4715

References m_Cleanness.

◆ SetActions()

override void Bandana_ColorBase::SetActions ( )
inlineprivate

Definition at line 4 of file consumables.c.

5 {
6 super.SetActions();
7
11 }
ActionBandageSelfCB ActionContinuousBaseCB ActionBandageSelf()
ActionBandageTargetCB ActionContinuousBaseCB ActionBandageTarget()
void AddAction(typename actionName)

References ActionBandageSelf(), ActionBandageTarget(), and AddAction().


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