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

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

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

class  ActionWashHandsWellCB
 

Функции

ActionWashHandsWellCB ActionContinuousBaseCB ActionWashHandsWell ()
 
override void CreateActionComponent ()
 
override GetInputType ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
override bool IsLockTargetOnUse ()
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
33 {
34 return player.HasBloodyHands() && !player.GetItemInHands() && target.GetObject() && (target.GetObject().GetWaterSourceObjectType() != EWaterSourceObjectType.NONE || target.GetObject().IsWell()) && !player.GetItemOnSlot("Gloves");
35 }
EWaterSourceObjectType
Definition EWaterSourceObjectType.c:2
Definition EntityAI.c:95

◆ ActionWashHandsWell()

12 {
13 m_CallbackClass = ActionWashHandsWellCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSWELL;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
17
18 m_Text = "#wash_hands";
19 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionWashHandsWell.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateActionComponent()

override void CreateActionComponent ( )
12 {
13 m_CallbackClass = ActionWashHandsWellCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSWELL;
15 m_FullBody = true;

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
27 {
28 m_ConditionItem = new CCINone();
29 m_ConditionTarget = new CCTObject(UAMaxDistances.DEFAULT);
30 }
Definition CCINone.c:2
Definition CCTObject.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

Перекрестные ссылки UAMaxDistances::DEFAULT.

◆ GetInputType()

override GetInputType ( )
22 {
24 }
Definition ActionInput.c:522

◆ IsLockTargetOnUse()

override bool IsLockTargetOnUse ( )
44 {
45 return false;
46 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
38 {
40 moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
41 }
void PluginLifespan()
Definition PluginLifespan.c:45
PluginBase GetPlugin(typename plugin_type)
Definition PluginManager.c:316

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