DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
ActionWashHandsWell.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
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
27 {
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 {
40 moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
41 }
42
43}
void CreateConditionComponents()
Definition ActionBase.c:218
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
protected string m_Text
Definition ActionBase.c:49
protected bool m_FullBody
Definition ActionBase.c:52
protected int m_StanceMask
Definition ActionBase.c:53
class ActionTargets ActionTarget
ActionWashHandsWellCB ActionContinuousBaseCB ActionWashHandsWell()
EWaterSourceObjectType
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)
protected ActionData m_ActionData
protected void OnFinishProgressServer(ActionData action_data)
PlayerBase m_Player
Definition ActionBase.c:33
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void CreateActionComponent()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float DEFAULT
const float WASH_HANDS
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602