Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
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
{
8
return
DefaultCancelCondition
();
9
}
10
//SetCommand(DayZPlayerConstants.CMD_ACTIONINT_ACTIONLOOP);
11
//Print("cancel condition enabled: " + GetState().ToString() );
12
if
( !
m_Interrupted
&& (
GetState
() ==
STATE_LOOP_LOOP
||
GetState
() ==
STATE_LOOP_LOOP2
) )
13
{
14
AnimatedActionBase
action =
AnimatedActionBase
.Cast(
m_ActionData
.m_Action);
15
action.
Do
(
m_ActionData
,
m_ActionData
.m_State);
16
}
17
return
DefaultCancelCondition
();
18
}
19
20
override
void
CreateActionComponent
()
21
{
22
m_ActionData
.m_ActionComponent =
new
CAInteract
;
23
}
24
25
override
void
InitActionComponent
()
26
{
27
super.InitActionComponent();
28
EnableCancelCondition
(
true
);
29
}
30
31
};
32
33
class
ActionInteractLoopBase
:
ActionInteractBase
34
{
35
void
ActionInteractLoopBase
()
36
{
37
m_CallbackClass
=
ActionInteractLoopBaseCB
;
38
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_INTERACT;
39
}
40
};
ActionBaseCB::m_Interrupted
bool m_Interrupted
Definition
animatedactionbase.c:6
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionInteractBaseCB
Definition
actioninteractbase.c:2
ActionInteractBase::ActionInteractBase
void ActionInteractBase()
Definition
actioninteractbase.c:43
ActionInteractLoopBaseCB
Definition
actioninteractloopbase.c:2
ActionInteractLoopBaseCB::CancelCondition
bool CancelCondition()
Definition
actioninteractloopbase.c:4
ActionInteractLoopBaseCB::InitActionComponent
override void InitActionComponent()
Definition
actioninteractloopbase.c:25
ActionInteractLoopBaseCB::CreateActionComponent
override void CreateActionComponent()
Definition
actioninteractloopbase.c:20
ActionInteractLoopBase::ActionInteractLoopBase
void ActionInteractLoopBase()
Definition
actioninteractloopbase.c:35
AnimatedActionBase
Definition
animatedactionbase.c:142
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
animatedactionbase.c:143
AnimatedActionBase::Do
void Do(ActionData action_data, int state)
Definition
animatedactionbase.c:382
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
animatedactionbase.c:145
CAInteract
Definition
cainteract.c:2
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
EnableCancelCondition
proto native void EnableCancelCondition(bool pEnable)
enables calling cancel condition default is disabled when enabled - there must be a function "bool Ca...
STATE_LOOP_LOOP
static const int STATE_LOOP_LOOP
Definition
human.c:353
GetState
proto native int GetState()
returns one of STATE_...
Definition
staminahandler.c:31
STATE_LOOP_LOOP2
static const int STATE_LOOP_LOOP2
Definition
human.c:356
DefaultCancelCondition
proto native bool DefaultCancelCondition()
system implemented cancel condition (now raise or sprint cancels action)
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
actioninteractloopbase.c
Generated by
1.17.0