Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс HeadGear_Base

hard helmet base Подробнее...

+ Граф наследования:HeadGear_Base:

Защищенные члены

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

Закрытые члены

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 ()
 
- Закрытые члены унаследованные от 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)
 

Закрытые данные

PlayerBase m_Player
 

Подробное описание

hard helmet base

Конструктор(ы)

◆ ~BurlapSackCover()

void ~BurlapSackCover ( )
inlineprivate
6 {
7 if (m_Player)
8 {
10 }
11 }
void OnRemovedFromHead(PlayerBase player)
Definition BurlapSackCover.c:61
PlayerBase m_Player
Definition BurlapSackCover.c:3

Перекрестные ссылки m_Player.

Методы

◆ CanDetachAttachment()

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate
57 {
58 return false;
59 }

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
46 {
47 if (!super.CanPutInCargo(parent))
48 return false;
49
50 if (parent && parent != this)
51 return true;
52
53 return false;
54 }
Definition EntityAI.c:95

◆ EEItemLocationChanged()

override void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprivate
14 {
15 super.EEItemLocationChanged(oldLoc,newLoc);
16
17 if (GetGame().IsDedicatedServer() && newLoc.GetType() == InventoryLocationType.GROUND)
18 {
19 EntityAI newItem = EntityAI.Cast(GetGame().CreateObjectEx("BurlapSack",newLoc.GetPos(),ECE_PLACE_ON_SURFACE,RF_DEFAULT));
20 MiscGameplayFunctions.TransferItemProperties(this,newItem);
21 DeleteSafe();
22 }
23 }
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
const int RF_DEFAULT
Definition CentralEconomy.c:65
InventoryLocationType
types of Inventory Location
Definition InventoryLocation.c:4
Definition Building.c:6
proto native CGame GetGame()

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame() и RF_DEFAULT.

◆ GetAttachmentExclusionInitSlotValue() [1/4]

set< int > GetAttachmentExclusionInitSlotValue ( int slotId)
inlineprotected
73 {
74 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
75 if (slotId == InventorySlots.HEADGEAR)
76 {
77 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
78 }
79 return ret;
80 }
provides access to slot configuration
Definition InventorySlots.c:6

◆ GetAttachmentExclusionInitSlotValue() [2/4]

set< int > GetAttachmentExclusionInitSlotValue ( int slotId)
inlineprotected
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 > GetAttachmentExclusionInitSlotValue ( int slotId)
inlineprotected
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 > GetAttachmentExclusionInitSlotValue ( int slotId)
inlineprotected
10 {
11 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
12 if (slotId == InventorySlots.HEADGEAR)
13 {
14 ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
15 }
16 return ret;
17 }

◆ OnRemovedFromHead()

void OnRemovedFromHead ( PlayerBase player)
inlineprivate
62 {
63 if (player.IsControlledPlayer())
64 {
66 player.SetInventorySoftLock(false);
67 player.SetMasterAttenuation("");
68 }
69 SetInvisibleRecursive(false,player,{InventorySlots.MASK,InventorySlots.EYEWEAR});
70 }

◆ OnWasAttached()

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
26 {
27 super.OnWasAttached(parent, slot_id);
28
29 Class.CastTo(m_Player, parent.GetHierarchyRootPlayer());
30
31 if ((!GetGame().IsDedicatedServer()) && m_Player && m_Player.IsControlledPlayer() && slot_id == InventorySlots.HEADGEAR)
32 {
34 m_Player.SetInventorySoftLock(true);
35 m_Player.SetMasterAttenuation("BurlapSackAttenuation");
36
37 if (GetGame().GetUIManager().IsMenuOpen(MENU_INVENTORY))
38 {
39 GetGame().GetMission().HideInventory();
40 }
41 }
42 SetInvisibleRecursive(true,m_Player,{InventorySlots.MASK,InventorySlots.EYEWEAR});
43 }
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

Перекрестные ссылки Class::CastTo(), GetGame(), m_Player и MENU_INVENTORY.

◆ SetActions() [1/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionWringClothes.c:13

Перекрестные ссылки AddAction().

◆ SetActions() [2/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [3/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [4/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [5/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [6/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [7/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [8/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [9/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [10/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [11/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [12/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [13/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [14/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [15/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [16/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [17/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

◆ SetActions() [18/18]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
7 }

Перекрестные ссылки AddAction().

Поля

◆ m_Player

PlayerBase m_Player
private

Объявления и описания членов классов находятся в файлах: