Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionwashhandswell.c
Go to the documentation of this file.
2 {
3  override void CreateActionComponent()
4  {
5  m_ActionData.m_ActionComponent = new CAContinuousRepeat(UATimeSpent.WASH_HANDS);
6  }
7 }
8 
10 {
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  }
20 
21  override typename GetInputType()
22  {
24  }
25 
26  override void CreateConditionComponents()
27  {
28  m_ConditionItem = new CCINone();
30  }
31 
32  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  }
36 
37  override void OnFinishProgressServer(ActionData action_data)
38  {
39  PluginLifespan moduleLifespan = PluginLifespan.Cast(GetPlugin(PluginLifespan));
40  moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
41  }
42 
43 }
ItemBase
Definition: inventoryitem.c:730
CreateConditionComponents
override void CreateConditionComponents()
Definition: actionwashhandswell.c:26
OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition: actionwashhandswell.c:37
CAContinuousRepeat
Definition: cacontinuousrepeat.c:1
GetInputType
override GetInputType()
Definition: actionwashhandswell.c:21
ContinuousInteractActionInput
Definition: actioninput.c:521
EWaterSourceObjectType
EWaterSourceObjectType
Definition: ewatersourceobjecttype.c:1
ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition: actionwashhandswell.c:32
CCINone
Definition: ccinone.c:1
CCTObject
Definition: cctobject.c:1
ActionWashHandsWell
ActionWashHandsWellCB ActionContinuousBaseCB ActionWashHandsWell()
Definition: actionwashhandswell.c:11
UAMaxDistances
Definition: actionconstants.c:104
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition: pluginmanager.c:316
m_FullBody
protected bool m_FullBody
Definition: actionbase.c:52
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition: actionbase.c:20
PluginLifespan
void PluginLifespan()
Definition: pluginlifespan.c:45
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
UATimeSpent
Definition: actionconstants.c:26
ActionContinuousBaseCB
Definition: actioncontinuousbase.c:1
m_Text
protected string m_Text
Definition: actionbase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
ActionWashHandsWellCB
Definition: actionwashhandswell.c:1
ActionContinuousBase
Definition: actioncontinuousbase.c:132
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56
m_StanceMask
protected int m_StanceMask
Definition: actionbase.c:53