DayZ 1.24
Loading...
Searching...
No Matches
ActionWashHandsWater.c File Reference

Go to the source code of this file.

Classes

class  ActionWashHandsWaterCB
 

Functions

ActionWashHandsWaterCB ActionContinuousBaseCB ActionWashHandsWater ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Function Documentation

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )

Definition at line 26 of file ActionWashHandsWater.c.

27 {
28 // Other conditions are in CCTWaterSurface
29 return (player.HasBloodyHands() && !player.GetItemInHands() && !player.GetItemOnSlot("Gloves"));
30 }

◆ ActionWashHandsWater()

Definition at line 1 of file ActionWashHandsWater.c.

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 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

Referenced by ActionConstructor::RegisterActions(), and ManBase::SetActions().

◆ CreateActionComponent()

override void ActionWashHandsWater::CreateActionComponent ( )

Definition at line 12 of file ActionWashHandsWater.c.

12 {
13 m_CallbackClass = ActionWashHandsWaterCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSPOND;
15 m_FullBody = true;

References m_FullBody, m_StanceMask, and m_Text.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 32 of file ActionWashHandsWater.c.

33 {
35 moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
36 }
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)

References GetPlugin(), and PluginLifespan().