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

Go to the source code of this file.

Classes

class  ActionWashHandsWellOneCB
 

Functions

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

Function Documentation

◆ ActionCondition()

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

Definition at line 27 of file ActionWashHandsWellOne.c.

28 {
29 return player.HasBloodyHands() && !player.GetItemInHands() && !player.GetItemOnSlot("Gloves") && target.GetObject() && (target.GetObject().GetWaterSourceObjectType() == EWaterSourceObjectType.WELL || target.GetObject().IsWell());
30 }
EWaterSourceObjectType

◆ ActionWashHandsWellOne()

Definition at line 1 of file ActionWashHandsWellOne.c.

12 {
13 m_CallbackClass = ActionWashHandsWellOneCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSWELL;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
17
18 m_Text = "#wash_hands";
19 }
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

◆ CreateActionComponent()

override void ActionWashHandsWellOne::CreateActionComponent ( )

Definition at line 12 of file ActionWashHandsWellOne.c.

12 {
13 m_CallbackClass = ActionWashHandsWellOneCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSWELL;
15 m_FullBody = true;

References m_FullBody, m_StanceMask, and m_Text.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

Definition at line 21 of file ActionWashHandsWellOne.c.

22 {
25 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)

Definition at line 32 of file ActionWashHandsWellOne.c.

33 {
34 if (action_data.m_State == UA_FINISHED)
35 {
37 moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
38 }
39 }
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)
const int UA_FINISHED
Definition constants.c:436

References GetPlugin(), PluginLifespan(), and UA_FINISHED.