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

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

void ActionUncoverHeadTarget ()
 
override void CreateConditionComponents ()
 
override GetInputType ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
bool IsWearingBurlap (PlayerBase player)
 

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

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

◆ ActionUncoverHeadTarget()

void ActionUncoverHeadTarget ( )
inlineprivate
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INTERACT;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
17 m_Text = "#uncover_players_head";
18 }
int m_StanceMask
Definition ActionBase.c:33
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
Definition ActionUncoverHeadTarget.c:2
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
32 {
34 if (Class.CastTo(targetPlayer, target.GetObject()))
35 {
37 {
38 return true;
39 }
40 }
41 return false;
42 }
bool IsWearingBurlap(PlayerBase player)
Definition ActionUncoverHeadTarget.c:53
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition EntityAI.c:95
Definition PlayerBaseClient.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
21 {
24 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINone.c:2
Definition CCTMan.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

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

◆ GetInputType()

override GetInputType ( )
inlineprivate
27 {
29 }
Definition ActionInput.c:522

◆ IsWearingBurlap()

bool IsWearingBurlap ( PlayerBase player)
inlineprivate
54 {
56 Class.CastTo(attachment, player.GetInventory().FindAttachment(InventorySlots.HEADGEAR));
57 if (attachment && attachment.GetType() == "BurlapSackCover")
58 {
59 return true;
60 }
61 return false;
62 }
Definition Building.c:6
provides access to slot configuration
Definition InventorySlots.c:6

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

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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
45 {
46 PlayerBase targetPlayer = PlayerBase.Cast(action_data.m_Target.GetObject());
47 if (CanReceiveAction(action_data.m_Target))
48 {
49 UncoverHead(PlayerBase.Cast(action_data.m_Target.GetObject()),action_data.m_Player);
50 }
51 }
bool CanReceiveAction(ActionTarget target)
Definition ActionBase.c:690
void UncoverHead(PlayerBase target, PlayerBase source)
Definition ActionUncoverHeadSelf.c:12

Перекрестные ссылки ActionBase::CanReceiveAction() и ActionUncoverHeadBase::UncoverHead().


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