DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionWashHandsWell.c
См. документацию.
1
class
ActionWashHandsWellCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.m_ActionComponent =
new
CAContinuousRepeat
(
UATimeSpent
.
WASH_HANDS
);
6
}
7
}
8
9
class
ActionWashHandsWell
:
ActionContinuousBase
10
{
11
void
ActionWashHandsWell
()
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
{
23
return
ContinuousInteractActionInput
;
24
}
25
26
override
void
CreateConditionComponents
()
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
{
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
override
bool
IsLockTargetOnUse
()
45
{
46
return
false
;
47
}
48
49
}
m_CommandUID
int m_CommandUID
Определения
ActionBase.c:31
m_StanceMask
int m_StanceMask
Определения
ActionBase.c:33
ActionData
ActionBase ActionData
Определения
ActionBase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionWashHandsWell
ActionWashHandsWellCB ActionContinuousBaseCB ActionWashHandsWell()
Определения
ActionWashHandsWell.c:11
eAgents
eAgents
Определения
EAgents.c:3
EWaterSourceObjectType
EWaterSourceObjectType
Определения
EWaterSourceObjectType.c:2
PluginLifespan
void PluginLifespan()
Определения
PluginLifespan.c:45
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Определения
PluginManager.c:316
ActionBase::IsLockTargetOnUse
bool IsLockTargetOnUse()
Определения
ActionBase.c:99
ActionBase::CreateConditionComponents
void CreateConditionComponents()
Определения
ActionBase.c:230
ActionBaseCB::m_ActionData
ActionData m_ActionData
Определения
AnimatedActionBase.c:3
ActionContinuousBase::GetInputType
override GetInputType()
Определения
ActionContinuousBase.c:179
ActionContinuousBase::OnFinishProgressServer
void OnFinishProgressServer(ActionData action_data)
Определения
ActionContinuousBase.c:283
ActionContinuousBaseCB
Определения
ActionContinuousBase.c:2
ActionContinuousBase
Определения
ActionContinuousBase.c:121
ActionWashHandsWellCB::CreateActionComponent
override void CreateActionComponent()
Определения
ActionWashHandsWell.c:3
ActionWashHandsWellCB
Определения
ActionWashHandsWell.c:2
AnimatedActionBase::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
AnimatedActionBase.c:240
CAContinuousRepeat
Определения
CAContinuousRepeat.c:2
CCINone
Определения
CCINone.c:2
CCTObject
Определения
CCTObject.c:2
ContinuousInteractActionInput
Определения
ActionInput.c:523
ItemBase
Определения
InventoryItem.c:731
PlayerBase
Определения
PlayerBaseClient.c:2
UAMaxDistances::DEFAULT
const float DEFAULT
Определения
ActionConstants.c:112
UAMaxDistances
Определения
ActionConstants.c:110
UATimeSpent::WASH_HANDS
const float WASH_HANDS
Определения
ActionConstants.c:87
UATimeSpent
Определения
ActionConstants.c:28
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Определения
dayzplayer.c:602
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionWashHandsWell.c
Создано системой
1.13.2