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

Go to the source code of this file.

Classes

class  ActionWashHandsWellCB
 

Functions

ActionWashHandsWellCB ActionContinuousBaseCB ActionWashHandsWell ()
 
override void CreateActionComponent ()
 
override GetInputType ()
 
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 32 of file ActionWashHandsWell.c.

33 {
34 return player.HasBloodyHands() && !player.GetItemInHands() && target.GetObject() && (target.GetObject().GetWaterSourceObjectType() != EWaterSourceObjectType.NONE || target.GetObject().IsWell()) && !player.GetItemOnSlot("Gloves");
35 }
EWaterSourceObjectType

◆ ActionWashHandsWell()

Definition at line 1 of file ActionWashHandsWell.c.

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 }
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(), Land_Misc_Through_Static::SetActions(), and BuildingSuper::SetActions().

◆ CreateActionComponent()

override void ActionWashHandsWell::CreateActionComponent ( )

Definition at line 12 of file ActionWashHandsWell.c.

12 {
13 m_CallbackClass = ActionWashHandsWellCB;
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 26 of file ActionWashHandsWell.c.

27 {
30 }
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.

◆ GetInputType()

override GetInputType ( )

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 37 of file ActionWashHandsWell.c.

38 {
40 moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
41 }
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)

References GetPlugin(), and PluginLifespan().