DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionCoverHeadSelf
+ Граф наследования:ActionCoverHeadSelf:

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

void ActionCoverHeadSelf ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
bool IsWearingHeadgear (PlayerBase player)
 
- Закрытые члены унаследованные от ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

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

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

◆ ActionCoverHeadSelf()

void ActionCoverHeadSelf ( )
inlineprivate
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_COVERHEAD_SELF;
15 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_PRONE;
16 //m_Animation = "INJECTEPIPENS";
18 m_Text = "#put_on_head";
19 }
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
int m_StanceMask
Definition ActionBase.c:62
Definition ActionCoverHeadSelf.c:2
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
Definition EntityAI.c:95
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, ActionBase::m_SpecialtyWeight, ActionBase::m_StanceMask и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
33 {
35 return false;
36
37 return true;
38 }
bool IsWearingHeadgear(PlayerBase player)
Definition ActionCoverHeadSelf.c:51

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
22 {
25 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTSelf.c:2

Перекрестные ссылки ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ HasTarget()

override bool HasTarget ( )
inlineprivate
28 {
29 return false;
30 }

◆ IsWearingHeadgear()

bool IsWearingHeadgear ( PlayerBase player)
inlineprivate
52 {
53 if (player.GetInventory().FindAttachment(InventorySlots.HEADGEAR))
54 {
55 return true;
56 }
57 return false;
58 }
provides access to slot configuration
Definition InventorySlots.c:6

Используется в ActionCondition().

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
41 {
43 if (Class.CastTo(new_item,action_data.m_Player.GetInventory().CreateAttachmentEx("BurlapSackCover",InventorySlots.HEADGEAR)))
44 {
45 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem,new_item,true,false,true);
46 action_data.m_MainItem.Delete();
47 }
48 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition InventoryItem.c:731
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

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


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