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

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

void ActionUngagSelf ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
bool IsWearingGag (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)
 

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

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

◆ ActionUngagSelf()

void ActionUngagSelf ( )
inlineprivate
4 {
6 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_COVERHEAD_SELF;
7 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
8 m_Text = "#ungag";
9 }
string m_Text
Definition ActionBase.c:58
int m_StanceMask
Definition ActionBase.c:62
Definition ActionUncoverHeadSelf.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_StanceMask и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
23 {
24 if ( IsWearingGag(player) && null == player.GetHumanInventory().GetEntityInHands())
25 return true;
26
27 return false;
28 }
bool IsWearingGag(PlayerBase player)
Definition ActionUngagSelf.c:42
Definition EntityAI.c:95

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
12 {
15 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINone.c:2
Definition CCTNone.c:2

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

◆ HasTarget()

override bool HasTarget ( )
inlineprivate
18 {
19 return false;
20 }

◆ IsWearingGag()

bool IsWearingGag ( PlayerBase player)
inlineprivate
43 {
45 Class.CastTo(attachment, player.GetInventory().FindAttachment(InventorySlots.MASK));
46 if ( attachment && attachment.GetType() == "MouthRag" )
47 {
48 return true;
49 }
50 return false;
51 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition Building.c:6
provides access to slot configuration
Definition InventorySlots.c:6
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

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

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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
31 {
33 Class.CastTo(attachment, action_data.m_Player.GetInventory().FindAttachment(InventorySlots.MASK));
34 if ( attachment && attachment.GetType() == "MouthRag" )
35 {
37 lamb.SetTransferParams(true, true, true, false, 1);
38 action_data.m_Player.ServerReplaceItemElsewhereWithNewInHands(lamb);
39 }
40 }
Definition ActionUngagSelf.c:55

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


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