DayZ
1.24
Loading...
Searching...
No Matches
ActionInteractLoopBase.c
Go to the documentation of this file.
1
class
ActionInteractLoopBaseCB
:
ActionInteractBaseCB
2
{
3
4
bool
CancelCondition
()
5
{
6
if
(!
m_ActionData
)
7
return
DefaultCancelCondition
();
8
//SetCommand(DayZPlayerConstants.CMD_ACTIONINT_ACTIONLOOP);
9
//Print("cancel condition enabled: " + GetState().ToString() );
10
if
(!
m_Interrupted
&& (
GetState
() ==
STATE_LOOP_LOOP
||
GetState
() ==
STATE_LOOP_LOOP2
))
11
{
12
AnimatedActionBase
action
=
AnimatedActionBase
.Cast(
m_ActionData
.
m_Action
);
13
action
.Do(
m_ActionData
,
m_ActionData
.
m_State
);
14
}
15
return
DefaultCancelCondition
();
16
}
17
18
override
void
OnAnimationEvent
(
int
pEventID
)
19
{
20
}
21
22
override
void
CreateActionComponent
()
23
{
24
m_ActionData
.
m_ActionComponent
=
new
CAInteract
;
25
}
26
27
override
void
InitActionComponent
()
28
{
29
super
.InitActionComponent();
30
EnableCancelCondition
(
true
);
31
}
32
33
};
34
35
class
ActionInteractLoopBase
:
ActionInteractBase
36
{
37
void
ActionInteractLoopBase
()
38
{
39
m_CallbackClass
=
ActionInteractLoopBaseCB
;
40
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_INTERACT;
41
}
42
};
ActionBaseCB::m_Interrupted
bool m_Interrupted
Definition
AnimatedActionBase.c:6
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
AnimatedActionBase.c:3
ActionData::m_ActionComponent
ref CABase m_ActionComponent
Definition
ActionBase.c:30
ActionData::m_State
int m_State
Definition
ActionBase.c:31
ActionData::m_Action
ref ActionBase m_Action
Definition
ActionBase.c:27
ActionInteractBaseCB
Definition
ActionInteractBase.c:2
ActionInteractBase
Definition
ActionInteractBase.c:50
ActionInteractLoopBaseCB
Definition
ActionInteractLoopBase.c:2
ActionInteractLoopBaseCB::OnAnimationEvent
override void OnAnimationEvent(int pEventID)
Definition
ActionInteractLoopBase.c:18
ActionInteractLoopBaseCB::CreateActionComponent
override void CreateActionComponent()
Definition
ActionInteractLoopBase.c:22
ActionInteractLoopBaseCB::CancelCondition
bool CancelCondition()
Definition
ActionInteractLoopBase.c:4
ActionInteractLoopBaseCB::InitActionComponent
override void InitActionComponent()
Definition
ActionInteractLoopBase.c:27
ActionInteractLoopBase
Definition
ActionInteractLoopBase.c:36
ActionInteractLoopBase::ActionInteractLoopBase
void ActionInteractLoopBase()
Definition
ActionInteractLoopBase.c:37
AnimatedActionBase
Definition
AnimatedActionBase.c:121
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
AnimatedActionBase.c:122
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
AnimatedActionBase.c:124
CAInteract
Definition
CAInteract.c:2
Param3
Definition
EntityAI.c:95
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:597
EnableCancelCondition
proto native void EnableCancelCondition(bool pEnable)
STATE_LOOP_LOOP
static const int STATE_LOOP_LOOP
Definition
human.c:352
GetState
proto native int GetState()
returns one of STATE_...
Definition
StaminaHandler.c:29
STATE_LOOP_LOOP2
static const int STATE_LOOP_LOOP2
Definition
human.c:355
DefaultCancelCondition
proto native bool DefaultCancelCondition()
system implemented cancel condition (now raise or sprint cancels action)
scripts
4_World
Classes
UserActionsComponent
Actions
ActionInteractLoopBase.c
Generated by
1.10.0