Dayz Explorer
1.28.160049
Loading...
Searching...
No Matches
actionwashhandswellone.c
Go to the documentation of this file.
1
class
ActionWashHandsWellOneCB
:
ActionInteractLoopBaseCB
2
{
3
override
void
CreateActionComponent()
4
{
5
m_ActionData
.m_ActionComponent =
new
CAInteractLoop
(
UATimeSpent
.WASH_HANDS);
6
}
7
}
8
10
class
ActionWashHandsWellOne
extends
ActionInteractLoopBase
11
{
12
void
ActionWashHandsWellOne
()
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
22
override
void
CreateConditionComponents
()
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
{
39
PluginLifespan
moduleLifespan =
PluginLifespan
.Cast(
GetPlugin
(
PluginLifespan
));
40
moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player,
false
);
41
action_data.m_Player.ClearBloodyHandsPenaltyChancePerAgent(
eAgents
.SALMONELLA);
42
}
43
}
44
}
CreateConditionComponents
override void CreateConditionComponents()
Definition
actionactivatetrap.c:30
ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionactivatetrap.c:46
OnEndServer
override void OnEndServer(ActionData action_data)
Definition
actionarmexplosive.c:67
m_CommandUID
int m_CommandUID
Definition
actionbase.c:31
m_StanceMask
int m_StanceMask
Definition
actionbase.c:33
ActionWashHandsWellOne
ActionWashHandsWellOneCB ActionInteractLoopBaseCB ActionWashHandsWellOne()
DEPRECATED.
Definition
actionwashhandswellone.c:12
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionInteractLoopBaseCB
Definition
actioninteractloopbase.c:2
ActionInteractLoopBase
DEPRECATED.
Definition
actioninteractloopbase.c:34
ActionWashHandsWellOneCB
Definition
actionwashhandswellone.c:2
CAInteractLoop
Definition
cainteractloop.c:2
CCINone
Definition
ccinone.c:2
CCTObject
Definition
cctobject.c:2
ItemBase
Definition
inventoryitem.c:731
PlayerBase
Definition
playerbaseclient.c:2
UAMaxDistances
Definition
actionconstants.c:110
UATimeSpent
Definition
actionconstants.c:28
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
eAgents
eAgents
Definition
eagents.c:3
EWaterSourceObjectType
EWaterSourceObjectType
Definition
ewatersourceobjecttype.c:2
UA_FINISHED
const int UA_FINISHED
Definition
constants.c:466
PluginLifespan
void PluginLifespan()
Definition
pluginlifespan.c:45
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition
pluginmanager.c:316
Daten
4_world
classes
useractionscomponent
actions
interact
actionwashhandswellone.c
Generated by
1.12.0