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

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

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

class  ActionWashHandsWellOneCB
 

Функции

ActionWashHandsWellOneCB ActionInteractLoopBaseCB ActionWashHandsWellOne ()
 DEPRECATED.
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnEndServer (ActionData action_data)
 

Функции

◆ ActionCondition()

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

◆ ActionWashHandsWellOne()

DEPRECATED.

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

◆ CreateActionComponent()

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

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
23 {
24 m_ConditionItem = new CCINone();
25 m_ConditionTarget = new CCTObject(UAMaxDistances.DEFAULT);
26 }
Definition CCINone.c:2
Definition CCTObject.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

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

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)
34 {
35 super.OnEndServer(action_data);
36
37 if (action_data.m_State == UA_FINISHED)
38 {
40 moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
41 }
42 }
void PluginLifespan()
Definition PluginLifespan.c:45
PluginBase GetPlugin(typename plugin_type)
Definition PluginManager.c:316
const int UA_FINISHED
Definition constants.c:443

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