Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actionwashhandswell.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 = 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 {
28 m_ConditionItem = new CCINone();
29 m_ConditionTarget = new CCTObject(UAMaxDistances.DEFAULT);
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 action_data.m_Player.ClearBloodyHandsPenaltyChancePerAgent(eAgents.SALMONELLA);
42 }
43
44 override bool IsLockTargetOnUse()
45 {
46 return false;
47 }
48
49}
int m_CommandUID
Definition actionbase.c:31
int m_StanceMask
Definition actionbase.c:33
override GetInputType()
ActionWashHandsWellCB ActionContinuousBaseCB ActionWashHandsWell()
ActionData m_ActionData
bool IsLockTargetOnUse()
Definition actionbase.c:99
void CreateConditionComponents()
Definition actionbase.c:230
void OnFinishProgressServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602
eAgents
Definition eagents.c:3
EWaterSourceObjectType
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)