DayZ
1.24
Loading...
Searching...
No Matches
ActionCollectSampleTarget.c
Go to the documentation of this file.
1
class
ActionCollectSampleTargetCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.
m_ActionComponent
=
new
CAContinuousTime
(
UATimeSpent
.
COLLECT_SAMPLE
);
6
}
7
};
8
9
class
ActionCollectSampleTarget
:
ActionContinuousBase
10
{
11
void
ActionCollectSampleTarget
()
12
{
13
m_CallbackClass
=
ActionCollectSampleTargetCB
;
14
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_SALINEBLOODBAGTARGET;
15
m_FullBody
=
true
;
16
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_ERECT |
DayZPlayerConstants
.STANCEMASK_CROUCH;
17
m_SpecialtyWeight
=
UASoftSkillsWeight
.
PRECISE_MEDIUM
;
18
m_Text
=
"#collect_persons_sample"
;
19
}
20
21
override
void
CreateConditionComponents
()
22
{
23
m_ConditionItem
=
new
CCINonRuined
;
24
m_ConditionTarget
=
new
CCTMan
(
UAMaxDistances
.
DEFAULT
);
25
}
26
27
override
void
OnEndServer
(
ActionData
action_data
)
28
{
29
PlayerBase
ntarget
=
PlayerBase
.Cast(
action_data
.m_Target.GetObject());
30
Param1<float>
nacdata
;
31
Class
.
CastTo
(
nacdata
,
action_data
.m_ActionComponent.GetACData());
32
33
float
delta
= 0;
34
if
(
nacdata
)
35
delta
= (
nacdata
.param1 /
UATimeSpent
.
COLLECT_SAMPLE
);
36
37
if
(
delta
> 0)
38
{
39
ActionCollectBloodTargetLambda
lambda
=
new
ActionCollectBloodTargetLambda
(
action_data
.m_MainItem,
"BloodSyringe"
,
action_data
.m_Player,
m_SpecialtyWeight
,
ntarget
,
delta
);
40
action_data
.m_Player.ServerReplaceItemInHandsWithNew(
lambda
);
41
}
42
}
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
ActionCollectBloodTargetLambda
Definition
ActionCollectBloodTarget.c:50
ActionCollectSampleTargetCB
Definition
ActionCollectSampleTarget.c:2
ActionCollectSampleTargetCB::CreateActionComponent
override void CreateActionComponent()
Definition
ActionCollectSampleTarget.c:3
ActionCollectSampleTarget
Definition
ActionCollectSampleTarget.c:10
ActionCollectSampleTarget::CreateConditionComponents
override void CreateConditionComponents()
Definition
ActionCollectSampleTarget.c:21
ActionCollectSampleTarget::ActionCollectSampleTarget
void ActionCollectSampleTarget()
Definition
ActionCollectSampleTarget.c:11
ActionCollectSampleTarget::OnEndServer
override void OnEndServer(ActionData action_data)
Definition
ActionCollectSampleTarget.c:27
ActionContinuousBaseCB
Definition
ActionContinuousBase.c:2
ActionContinuousBase
Definition
ActionContinuousBase.c:119
ActionData
Definition
ActionBase.c:21
ActionData::m_ActionComponent
ref CABase m_ActionComponent
Definition
ActionBase.c:30
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_MEDIUM
const float PRECISE_MEDIUM
Definition
ActionConstants.c:124
UATimeSpent
Definition
ActionConstants.c:27
UATimeSpent::COLLECT_SAMPLE
const float COLLECT_SAMPLE
Definition
ActionConstants.c:47
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
ActionCollectSampleTarget.c
Generated by
1.10.0