Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionwashhandswater.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 = ActionWashHandsWaterCB;
14  m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSPOND;
15  m_FullBody = true;
16  m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
17  m_Text = "#wash_hands";
18  }
19 
20  override void CreateConditionComponents()
21  {
22  m_ConditionItem = new CCINone();
24  }
25 
26  override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
27  {
28  // Other conditions are in CCTWaterSurface
29  return (player.HasBloodyHands() && !player.GetItemInHands() && !player.GetItemOnSlot("Gloves"));
30  }
31 
32  override void OnFinishProgressServer( ActionData action_data )
33  {
34  PluginLifespan moduleLifespan = PluginLifespan.Cast(GetPlugin(PluginLifespan));
35  moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
36  }
37 }
ItemBase
Definition: inventoryitem.c:730
CAContinuousRepeat
Definition: cacontinuousrepeat.c:1
ActionWashHandsWater
ActionWashHandsWaterCB ActionContinuousBaseCB ActionWashHandsWater()
Definition: actionwashhandswater.c:11
CCTWaterSurface
Definition: cctwatersurface.c:1
CCINone
Definition: ccinone.c:1
UAWaterType
Definition: actionconstants.c:144
UAMaxDistances
Definition: actionconstants.c:104
CreateConditionComponents
override void CreateConditionComponents()
Definition: actionwashhandswater.c:20
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
ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition: actionwashhandswater.c:26
UATimeSpent
Definition: actionconstants.c:26
ActionWashHandsWaterCB
Definition: actionwashhandswater.c:1
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
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
OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition: actionwashhandswater.c:32