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

Protected Member Functions

set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
void InitGlobalExclusionValues ()
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 

Private Member Functions

override array< intGetEffectWidgetTypes ()
 
override bool IsObstructingVoice ()
 
override int GetVoiceEffect ()
 
override array< intGetEffectWidgetTypes ()
 
override bool IsObstructingVoice ()
 
override int GetVoiceEffect ()
 
override int GetGlassesEffectID ()
 
override void OnDebugSpawn ()
 
override void OnDebugSpawn ()
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
override array< intGetEffectWidgetTypes ()
 
override bool IsObstructingVoice ()
 
override int GetVoiceEffect ()
 
override array< intGetEffectWidgetTypes ()
 
override array< intGetEffectWidgetTypes ()
 
override int GetGlassesEffectID ()
 

Detailed Description

Definition at line 1 of file GreatHelm.c.

Member Function Documentation

◆ GetAttachmentExclusionInitSlotValue() [1/5]

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

Definition at line 18 of file GreatHelm.c.

19 {
20 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
21 if (slotId == InventorySlots.HEADGEAR)
22 {
23 ret.Insert(EAttExclusions.EXCLUSION_HEADGEAR_HELMET_0);
24
25 ret.Insert(EAttExclusions.EXCLUSION_MASK_0);
26 ret.Insert(EAttExclusions.EXCLUSION_MASK_1);
27 ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
28 ret.Insert(EAttExclusions.EXCLUSION_HEADSTRAP_0);
29
30 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
31 }
32 return ret;
33 }
provides access to slot configuration

◆ GetAttachmentExclusionInitSlotValue() [2/5]

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

Definition at line 23 of file DarkMotoHelmet_ColorBase.c.

24 {
25 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
26 if (slotId == InventorySlots.HEADGEAR)
27 {
28 ret.Insert(EAttExclusions.EXCLUSION_HEADGEAR_HELMET_0);
29
30 ret.Insert(EAttExclusions.EXCLUSION_MASK_0);
31 ret.Insert(EAttExclusions.EXCLUSION_MASK_1);
32 ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
33 ret.Insert(EAttExclusions.EXCLUSION_HEADSTRAP_0);
34
35 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
36 }
37 return ret;
38 }

◆ GetAttachmentExclusionInitSlotValue() [3/5]

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

Definition at line 18 of file MotoHelmet_ColorBase.c.

19 {
20 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
21 if (slotId == InventorySlots.HEADGEAR)
22 {
23 ret.Insert(EAttExclusions.EXCLUSION_HEADGEAR_HELMET_0);
24
25 ret.Insert(EAttExclusions.EXCLUSION_MASK_0);
26 ret.Insert(EAttExclusions.EXCLUSION_MASK_1);
27 ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
28 ret.Insert(EAttExclusions.EXCLUSION_HEADSTRAP_0);
29
30 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
31 }
32 return ret;
33 }

◆ GetAttachmentExclusionInitSlotValue() [4/5]

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

Definition at line 8 of file NorseHelm.c.

9 {
10 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
11 if (slotId == InventorySlots.HEADGEAR)
12 {
13 ret.Insert(EAttExclusions.EXCLUSION_HEADGEAR_HELMET_0);
14
15 ret.Insert(EAttExclusions.EXCLUSION_MASK_0);
16 ret.Insert(EAttExclusions.EXCLUSION_MASK_1);
17 ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
18 ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
19 ret.Insert(EAttExclusions.EXCLUSION_HEADSTRAP_0);
20
21 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
22 }
23 return ret;
24 }

◆ GetAttachmentExclusionInitSlotValue() [5/5]

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

Definition at line 13 of file WeldingMask.c.

14 {
15 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
16 if (slotId == InventorySlots.HEADGEAR)
17 {
18 ret.Insert(EAttExclusions.EXCLUSION_HEADGEAR_HELMET_0);
19
20 ret.Insert(EAttExclusions.EXCLUSION_MASK_0);
21 ret.Insert(EAttExclusions.EXCLUSION_MASK_1);
22 ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
23 ret.Insert(EAttExclusions.EXCLUSION_HEADSTRAP_0);
24
25 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
26 }
27 return ret;
28 }

◆ GetEffectWidgetTypes() [1/5]

override array< int > HelmetBase::GetEffectWidgetTypes ( )
inlineprivate

Definition at line 3 of file GreatHelm.c.

4 {
5 return {EffectWidgetsTypes.HELMET_OCCLUDER/*,EffectWidgetsTypes.HELMET_BREATH*/};
6 }

◆ GetEffectWidgetTypes() [2/5]

override array< int > HelmetBase::GetEffectWidgetTypes ( )
inlineprivate

Definition at line 3 of file DarkMotoHelmet_ColorBase.c.

4 {
5 return {EffectWidgetsTypes.MOTO_OCCLUDER/*,EffectWidgetsTypes.MOTO_BREATH*/};
6 }

◆ GetEffectWidgetTypes() [3/5]

override array< int > HelmetBase::GetEffectWidgetTypes ( )
inlineprivate

Definition at line 3 of file MotoHelmet_ColorBase.c.

4 {
5 return {EffectWidgetsTypes.MOTO_OCCLUDER/*,EffectWidgetsTypes.MOTO_BREATH*/};
6 }

◆ GetEffectWidgetTypes() [4/5]

override array< int > HelmetBase::GetEffectWidgetTypes ( )
inlineprivate

Definition at line 3 of file NorseHelm.c.

4 {
5 return { EffectWidgetsTypes.HELMET2_OCCLUDER };
6 }

◆ GetEffectWidgetTypes() [5/5]

override array< int > HelmetBase::GetEffectWidgetTypes ( )
inlineprivate

Definition at line 3 of file WeldingMask.c.

4 {
5 return {EffectWidgetsTypes.HELMET_OCCLUDER/*,EffectWidgetsTypes.HELMET_BREATH*/};
6 }

◆ GetGlassesEffectID() [1/2]

override int HelmetBase::GetGlassesEffectID ( )
inlineprivate

Definition at line 18 of file DarkMotoHelmet_ColorBase.c.

19 {
20 return PPERequesterBank.REQ_MOTOHELMETBLACK;
21 }

◆ GetGlassesEffectID() [2/2]

override int HelmetBase::GetGlassesEffectID ( )
inlineprivate

Definition at line 8 of file WeldingMask.c.

9 {
10 return PPERequesterBank.REQ_GLASSESWELDING;
11 }

◆ GetVoiceEffect() [1/3]

override int HelmetBase::GetVoiceEffect ( )
inlineprivate

Definition at line 13 of file GreatHelm.c.

14 {
16 }

◆ GetVoiceEffect() [2/3]

override int HelmetBase::GetVoiceEffect ( )
inlineprivate

Definition at line 13 of file DarkMotoHelmet_ColorBase.c.

14 {
16 }

◆ GetVoiceEffect() [3/3]

override int HelmetBase::GetVoiceEffect ( )
inlineprivate

Definition at line 13 of file MotoHelmet_ColorBase.c.

14 {
16 }

◆ InitGlobalExclusionValues()

void HelmetBase::InitGlobalExclusionValues ( )
inlineprotected

Definition at line 25 of file Mich2001Helmet.c.

26 {
27 super.InitGlobalExclusionValues();
28
29 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_HEADSTRAP_0);
30 }

◆ IsObstructingVoice() [1/3]

override bool HelmetBase::IsObstructingVoice ( )
inlineprivate

Definition at line 8 of file GreatHelm.c.

9 {
10 return true;
11 }

◆ IsObstructingVoice() [2/3]

override bool HelmetBase::IsObstructingVoice ( )
inlineprivate

Definition at line 8 of file DarkMotoHelmet_ColorBase.c.

9 {
10 return true;
11 }

◆ IsObstructingVoice() [3/3]

override bool HelmetBase::IsObstructingVoice ( )
inlineprivate

Definition at line 8 of file MotoHelmet_ColorBase.c.

9 {
10 return true;
11 }

◆ OnDebugSpawn() [1/3]

override void HelmetBase::OnDebugSpawn ( )
inlineprivate

Definition at line 4 of file DirtBikeHelmet_ColorBase.c.

5 {
7 if (Class.CastTo(entity, this))
8 {
9 entity.GetInventory().CreateInInventory("DirtBikeHelmet_Visor");
10 entity.GetInventory().CreateInInventory("DirtBikeHelmet_Mouthguard");
11 }
12 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo().

◆ OnDebugSpawn() [2/3]

override void HelmetBase::OnDebugSpawn ( )
inlineprivate

Definition at line 4 of file GorkaHelmetComplete.c.

5 {
7 if (Class.CastTo(entity, this))
8 entity.GetInventory().CreateInInventory("GorkaHelmetVisor");
9 }

References Class::CastTo().

◆ OnDebugSpawn() [3/3]

override void HelmetBase::OnDebugSpawn ( )
inlineprivate

Definition at line 13 of file Mich2001Helmet.c.

14 {
16 if (Class.CastTo(entity, this))
17 {
18 entity.GetInventory().CreateInInventory("NVGoggles");
19 entity.GetInventory().CreateInInventory("UniversalLight");
20 entity.GetInventory().CreateInInventory("Battery9V");
21 entity.GetInventory().CreateInInventory("Battery9V");
22 }
23 }

References Class::CastTo().

◆ SetActions()

override void HelmetBase::SetActions ( )
inlineprivate

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