DayZ 1.24
Loading...
Searching...
No Matches
HeadGear_Base Class Reference

hard helmet base More...

Inheritance diagram for HeadGear_Base:
[legend]
Collaboration diagram for HeadGear_Base:
[legend]

Protected Member Functions

set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 

Private Member Functions

override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
void ~BurlapSackCover ()
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanDetachAttachment (EntityAI parent)
 
void OnRemovedFromHead (PlayerBase player)
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
- 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)
 

Private Attributes

PlayerBase m_Player
 

Detailed Description

hard helmet base

Definition at line 1 of file BaseballCap_ColorBase.c.

Constructor & Destructor Documentation

◆ ~BurlapSackCover()

void HeadGear_Base::~BurlapSackCover ( )
inlineprivate

Definition at line 5 of file BurlapSackCover.c.

6 {
7 if (m_Player)
9 }
void OnRemovedFromHead(PlayerBase player)
PlayerBase m_Player

References m_Player.

Member Function Documentation

◆ CanDetachAttachment()

override bool HeadGear_Base::CanDetachAttachment ( EntityAI parent)
inlineprivate

Definition at line 52 of file BurlapSackCover.c.

53 {
54 return false;
55 }

◆ CanPutInCargo()

override bool HeadGear_Base::CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 41 of file BurlapSackCover.c.

42 {
43 if (!super.CanPutInCargo(parent))
44 return false;
45
46 if (parent && parent != this)
47 return true;
48
49 return false;
50 }

◆ EEItemLocationChanged()

override void HeadGear_Base::EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprivate

Definition at line 11 of file BurlapSackCover.c.

12 {
13 super.EEItemLocationChanged(oldLoc, newLoc);
14
15 if (GetGame().IsDedicatedServer() && newLoc.GetType() == InventoryLocationType.GROUND)
16 {
17 EntityAI newItem = EntityAI.Cast(GetGame().CreateObjectEx("BurlapSack", newLoc.GetPos(), ECE_PLACE_ON_SURFACE, RF_DEFAULT));
18 MiscGameplayFunctions.TransferItemProperties(this, newItem);
19 DeleteSafe();
20 }
21 }
const int ECE_PLACE_ON_SURFACE
const int RF_DEFAULT
InventoryLocationType
types of Inventory Location
proto native CGame GetGame()

References ECE_PLACE_ON_SURFACE, GetGame(), and RF_DEFAULT.

◆ GetAttachmentExclusionInitSlotValue() [1/4]

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

Definition at line 68 of file BurlapSackCover.c.

69 {
70 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
71 if (slotId == InventorySlots.HEADGEAR)
72 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
73 return ret;
74 }
provides access to slot configuration

◆ GetAttachmentExclusionInitSlotValue() [2/4]

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

Definition at line 3 of file Chainmail_Coif.c.

4 {
5 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
6 if (slotId == InventorySlots.HEADGEAR)
7 {
8 ret.Insert(EAttExclusions.LEGACY_MASK_HEADGEAR); //same as 'noMask' used to be
9
10 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
11 }
12 return ret;
13 }

◆ GetAttachmentExclusionInitSlotValue() [3/4]

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

Definition at line 9 of file OKZKCap_ColorBase.c.

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

◆ GetAttachmentExclusionInitSlotValue() [4/4]

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

Definition at line 9 of file WinterCoif_ColorBase.c.

10 {
11 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
12 if (slotId == InventorySlots.HEADGEAR)
13 ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
14 return ret;
15 }

◆ OnRemovedFromHead()

void HeadGear_Base::OnRemovedFromHead ( PlayerBase player)
inlineprivate

Definition at line 57 of file BurlapSackCover.c.

58 {
59 if (player.IsControlledPlayer())
60 {
62 player.SetInventorySoftLock(false);
63 player.SetMasterAttenuation("");
64 }
65 SetInvisibleRecursive(false, player, {InventorySlots.MASK, InventorySlots.EYEWEAR});
66 }

◆ OnWasAttached()

override void HeadGear_Base::OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate

Definition at line 23 of file BurlapSackCover.c.

24 {
25 super.OnWasAttached(parent, slot_id);
26
27 Class.CastTo(m_Player, parent.GetHierarchyRootPlayer());
28
29 if ((!GetGame().IsDedicatedServer()) && m_Player && m_Player.IsControlledPlayer() && slot_id == InventorySlots.HEADGEAR)
30 {
32 m_Player.SetInventorySoftLock(true);
33 m_Player.SetMasterAttenuation("BurlapSackAttenuation");
34
35 if (GetGame().GetUIManager().IsMenuOpen(MENU_INVENTORY))
36 GetGame().GetMission().HideInventory();
37 }
38 SetInvisibleRecursive(true, m_Player, {InventorySlots.MASK, InventorySlots.EYEWEAR});
39 }
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.
const int MENU_INVENTORY
Definition constants.c:170

References Class::CastTo(), GetGame(), m_Player, and MENU_INVENTORY.

◆ SetActions() [1/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file BaseballCap_ColorBase.c.

4 {
5 super.SetActions();
7 }
void AddAction(typename actionName)

References AddAction().

◆ SetActions() [2/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file BeanieHat_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [3/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file BoonieHat_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [4/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file FlatCap_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [5/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file HeadCover_improvised.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [6/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file MedicalScrubsHat_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [7/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file MorozkoHat.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [8/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file OKZKCap_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [9/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file PetushokHat_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [10/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file PilotkaCap.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [11/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file PrisonerCap.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [12/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file RadarCap_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [13/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file SantasHat.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [14/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file TankerHelmet.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [15/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file Ushanka_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [16/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file WinterCoif_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [17/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file WitchHat.c.

4 {
5 super.SetActions();
7 }

References AddAction().

◆ SetActions() [18/18]

override void HeadGear_Base::SetActions ( )
inlineprivate

Definition at line 3 of file ZmijovkaCap_ColorBase.c.

4 {
5 super.SetActions();
7 }

References AddAction().

Member Data Documentation

◆ m_Player

PlayerBase HeadGear_Base::m_Player
private

Definition at line 3 of file BurlapSackCover.c.


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