DayZ
1.24
Loading...
Searching...
No Matches
ActionDefibrilateTarget.c
Go to the documentation of this file.
1
class
ActionDefibrilateTargetCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.
m_ActionComponent
=
new
CAContinuousTime
(
UATimeSpent
.
DEFIBRILATE
);
6
}
7
};
8
9
class
ActionDefibrilateTarget
:
ActionDefibrilateBase
10
{
11
void
ActionDefibrilateTarget
()
12
{
13
m_CallbackClass
=
ActionDefibrilateTargetCB
;
14
m_SpecialtyWeight
=
UASoftSkillsWeight
.
PRECISE_HIGH
;
15
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_CRAFTING;
16
m_FullBody
=
true
;
17
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_CROUCH;
18
m_Text
=
"#defibrilate_target"
;
19
}
20
21
override
void
CreateConditionComponents
()
22
{
23
24
m_ConditionItem
=
new
CCINonRuined
;
25
m_ConditionTarget
=
new
CCTMan
(
UAMaxDistances
.
DEFAULT
);
26
}
27
28
override
void
OnFinishProgressClient
(
ActionData
action_data
)
29
{
30
Defibrillator
defib
;
31
PlayerBase
player
=
action_data
.m_Player;
32
Class
.
CastTo
(
defib
,
action_data
.m_MainItem);
33
34
DefibrillateClient
(
action_data
.m_Player,
defib
);
35
}
36
37
override
void
OnFinishProgressServer
(
ActionData
action_data
)
38
{
39
Defibrillator
defib
= Defibrillator.Cast(
action_data
.m_MainItem);
40
PlayerBase
target_player
=
PlayerBase
.Cast(
action_data
.m_Target.GetObject());
41
42
DefibrillateServer
(
target_player
,
defib
);
43
}
44
};
m_FullBody
bool m_FullBody
Definition
ActionBase.c:52
m_Text
string m_Text
Definition
ActionBase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition
ActionBase.c:55
m_SpecialtyWeight
float m_SpecialtyWeight
Definition
ActionBase.c:68
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
ActionBase.c:56
m_StanceMask
int m_StanceMask
Definition
ActionBase.c:53
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
AnimatedActionBase.c:3
ActionContinuousBaseCB
Definition
ActionContinuousBase.c:2
ActionData
Definition
ActionBase.c:21
ActionData::m_ActionComponent
ref CABase m_ActionComponent
Definition
ActionBase.c:30
ActionDefibrilateBase
Definition
ActionDefibrilateBase.c:2
ActionDefibrilateBase::DefibrillateClient
void DefibrillateClient(PlayerBase player, Defibrillator defib)
Definition
ActionDefibrilateBase.c:19
ActionDefibrilateBase::DefibrillateServer
void DefibrillateServer(PlayerBase player, Defibrillator defib)
Definition
ActionDefibrilateBase.c:24
ActionDefibrilateTargetCB
Definition
ActionDefibrilateTarget.c:2
ActionDefibrilateTargetCB::CreateActionComponent
override void CreateActionComponent()
Definition
ActionDefibrilateTarget.c:3
ActionDefibrilateTarget
Definition
ActionDefibrilateTarget.c:10
ActionDefibrilateTarget::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition
ActionDefibrilateTarget.c:37
ActionDefibrilateTarget::ActionDefibrilateTarget
void ActionDefibrilateTarget()
Definition
ActionDefibrilateTarget.c:11
ActionDefibrilateTarget::CreateConditionComponents
override void CreateConditionComponents()
Definition
ActionDefibrilateTarget.c:21
ActionDefibrilateTarget::OnFinishProgressClient
override void OnFinishProgressClient(ActionData action_data)
Definition
ActionDefibrilateTarget.c:28
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
AnimatedActionBase.c:122
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
AnimatedActionBase.c:124
CAContinuousTime
Definition
CAContinuousTime.c:2
CCINonRuined
Definition
CCINonRuined.c:2
CCTMan
Definition
CCTMan.c:2
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
UAMaxDistances
Definition
ActionConstants.c:105
UAMaxDistances::DEFAULT
const float DEFAULT
Definition
ActionConstants.c:107
UASoftSkillsWeight
Definition
ActionConstants.c:119
UASoftSkillsWeight::PRECISE_HIGH
const float PRECISE_HIGH
Definition
ActionConstants.c:125
UATimeSpent
Definition
ActionConstants.c:27
UATimeSpent::DEFIBRILATE
const float DEFIBRILATE
Definition
ActionConstants.c:49
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:597
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
Medical
ActionDefibrilateTarget.c
Generated by
1.10.0