DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionCollectSampleTarget.c
См. документацию.
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
super.OnEndServer(action_data);
30
31
PlayerBase
ntarget =
PlayerBase
.Cast( action_data.m_Target.GetObject() );
32
Param1<float> nacdata;
33
Class
.
CastTo
(nacdata, action_data.m_ActionComponent.GetACData() );
34
35
float
delta = 0;
36
if
(nacdata)
37
delta = (nacdata.param1 /
UATimeSpent
.
COLLECT_SAMPLE
);
38
39
if
(delta > 0)
40
{
41
ActionCollectBloodTargetLambda
lambda =
new
ActionCollectBloodTargetLambda
(action_data.m_MainItem,
"BloodSyringe"
, action_data.m_Player,
m_SpecialtyWeight
, ntarget, delta);
42
action_data.m_Player.ServerReplaceItemInHandsWithNew(lambda);
43
}
44
}
45
};
46
ActionData
ActionBase ActionData
Определения
ActionBase.c:30
ActionBase::m_SpecialtyWeight
float m_SpecialtyWeight
Определения
ActionBase.c:77
ActionBase::m_StanceMask
int m_StanceMask
Определения
ActionBase.c:62
ActionBase::m_Text
string m_Text
Определения
ActionBase.c:58
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Определения
ActionBase.c:64
ActionBase::m_FullBody
bool m_FullBody
Определения
ActionBase.c:61
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Определения
ActionBase.c:65
ActionBaseCB::m_ActionData
ActionData m_ActionData
Определения
AnimatedActionBase.c:3
ActionCollectBloodTargetLambda
Определения
ActionCollectBloodTarget.c:51
ActionCollectSampleTarget::CreateConditionComponents
override void CreateConditionComponents()
Определения
ActionCollectSampleTarget.c:21
ActionCollectSampleTarget::ActionCollectSampleTarget
void ActionCollectSampleTarget()
Определения
ActionCollectSampleTarget.c:11
ActionCollectSampleTarget::OnEndServer
override void OnEndServer(ActionData action_data)
Определения
ActionCollectSampleTarget.c:27
ActionCollectSampleTargetCB::CreateActionComponent
override void CreateActionComponent()
Определения
ActionCollectSampleTarget.c:3
ActionCollectSampleTargetCB
Определения
ActionCollectSampleTarget.c:2
ActionContinuousBase::ActionContinuousBase
void ActionContinuousBase()
Определения
ActionContinuousBase.c:124
ActionContinuousBaseCB
Определения
ActionContinuousBase.c:2
AnimatedActionBase::m_CommandUID
int m_CommandUID
Определения
AnimatedActionBase.c:143
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Определения
AnimatedActionBase.c:145
CAContinuousTime
Определения
CAContinuousTime.c:2
CCINonRuined
Определения
CCINonRuined.c:2
CCTMan
Определения
CCTMan.c:2
Class
Super root of all classes in Enforce script.
Определения
EnScript.c:11
PlayerBase
Определения
PlayerBaseClient.c:2
UAMaxDistances::DEFAULT
const float DEFAULT
Определения
ActionConstants.c:112
UAMaxDistances
Определения
ActionConstants.c:110
UATimeSpent::COLLECT_SAMPLE
const float COLLECT_SAMPLE
Определения
ActionConstants.c:49
UATimeSpent
Определения
ActionConstants.c:28
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Определения
dayzplayer.c:602
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
Medical
ActionCollectSampleTarget.c
Создано системой
1.13.2