Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actionwashhandswellone.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
5 m_ActionData.m_ActionComponent = new CAInteractLoop(UATimeSpent.WASH_HANDS);
6 }
7}
8
11{
13 {
14 m_CallbackClass = ActionWashHandsWellOneCB;
15 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSWELL;
16 m_FullBody = true;
17 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18
19 m_Text = "#wash_hands";
20 }
21
23 {
24 m_ConditionItem = new CCINone();
25 m_ConditionTarget = new CCTObject(UAMaxDistances.DEFAULT);
26 }
27
28 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item )
29 {
30 return player.HasBloodyHands() && !player.GetItemInHands() && !player.GetItemOnSlot("Gloves") && target.GetObject() && (target.GetObject().GetWaterSourceObjectType() == EWaterSourceObjectType.WELL || target.GetObject().IsWell());
31 }
32
33 override void OnEndServer(ActionData action_data)
34 {
35 super.OnEndServer(action_data);
36
37 if (action_data.m_State == UA_FINISHED)
38 {
40 moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
41 action_data.m_Player.ClearBloodyHandsPenaltyChancePerAgent(eAgents.SALMONELLA);
42 }
43 }
44}
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnEndServer(ActionData action_data)
int m_CommandUID
Definition actionbase.c:31
int m_StanceMask
Definition actionbase.c:33
ActionWashHandsWellOneCB ActionInteractLoopBaseCB ActionWashHandsWellOne()
DEPRECATED.
ActionData m_ActionData
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602
eAgents
Definition eagents.c:3
EWaterSourceObjectType
const int UA_FINISHED
Definition constants.c:466
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)