DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ActionUncoverHeadSelf.c

См. исходные тексты.

Структуры данных

class  ActionUncoverHeadSelfCB
 
class  ActionUncoverHeadBase
 

Функции

ActionUncoverHeadBase ActionContinuousBase ActionUncoverHeadSelf ()
 
void UncoverHead (PlayerBase target, PlayerBase source)
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
bool IsWearingBurlap (PlayerBase player)
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
67 {
68 if ( IsWearingBurlap(player) )
69 return true;
70
71 return false;
72 }
bool IsWearingBurlap(PlayerBase player)
Definition ActionUncoverHeadSelf.c:80
Definition EntityAI.c:95

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

◆ ActionUncoverHeadSelf()

ActionUncoverHeadBase ActionContinuousBase ActionUncoverHeadSelf ( )
47 {
48 m_CallbackClass = ActionUncoverHeadSelfCB;
49 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_COVERHEAD_SELF;
50 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_PRONE;
51
52 m_Text = "#uncover_head";
53 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionUncoverHeadSelf.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Используется в ActionConstructor::RegisterActions() и ManBase::SetActions().

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
56 {
57 m_ConditionItem = new CCINone;
58 m_ConditionTarget = new CCTNone;
59 }
Definition CCINone.c:2
Definition CCTNone.c:2

◆ HasTarget()

override bool HasTarget ( )
62 {
63 return false;
64 }

◆ IsWearingBurlap()

bool IsWearingBurlap ( PlayerBase player)
81 {
83 Class.CastTo(attachment, player.GetInventory().FindAttachment(InventorySlots.HEADGEAR));
84 if ( attachment && attachment.IsInherited(BurlapSackCover) )
85 {
86 return true;
87 }
88 return false;
89 }
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)
75 {
76 UncoverHead(action_data.m_Player, action_data.m_Player);
77 }
void UncoverHead(PlayerBase target, PlayerBase source)
Definition ActionUncoverHeadSelf.c:47

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

◆ UncoverHead()

void UncoverHead ( PlayerBase target,
PlayerBase source )
47 {
48 m_CallbackClass = ActionUncoverHeadSelfCB;
49 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_COVERHEAD_SELF;
50 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_PRONE;
51
52 m_Text = "#uncover_head";
53 }
54
55 override void CreateConditionComponents()
56 {
57 m_ConditionItem = new CCINone;
58 m_ConditionTarget = new CCTNone;
59 }
60
61 override bool HasTarget()
62 {
63 return false;
64 }
65
66 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
67 {
68 if ( IsWearingBurlap(player) )
69 return true;
70
71 return false;
72 }
73
74 override void OnFinishProgressServer( ActionData action_data )
75 {
override void OnFinishProgressServer(ActionData action_data)
Definition ActionUncoverHeadSelf.c:74
override void CreateConditionComponents()
Definition ActionUncoverHeadSelf.c:55
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition ActionUncoverHeadSelf.c:66
override bool HasTarget()
Definition ActionUncoverHeadSelf.c:61
Definition InventoryItem.c:731
Definition PlayerBaseClient.c:2

Перекрестные ссылки m_CommandUID и m_StanceMask.