Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actioninteractloopbase.c
Go to the documentation of this file.
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 OnAnimationEvent(int pEventID)
21  {
22  }
23 
24  override void CreateActionComponent()
25  {
26  m_ActionData.m_ActionComponent = new CAInteract;
27  }
28 
29  override void InitActionComponent()
30  {
31  super.InitActionComponent();
33  }
34 
35 };
36 
38 {
40  {
41  m_CallbackClass = ActionInteractLoopBaseCB;
42  m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INTERACT;
43  }
44 };
GetState
proto native int GetState()
returns one of STATE_...
Definition: staminahandler.c:29
ActionInteractLoopBaseCB
Definition: actioninteractloopbase.c:1
EnableCancelCondition
proto native void EnableCancelCondition(bool pEnable)
ActionInteractBaseCB
Definition: actioninteractbase.c:1
AnimatedActionBase
Definition: animatedactionbase.c:133
CAInteract
Definition: cainteract.c:1
ActionInteractBase
Definition: actioninteractbase.c:54
ActionInteractLoopBase
Definition: actioninteractloopbase.c:37
DefaultCancelCondition
proto native bool DefaultCancelCondition()
system implemented cancel condition (now raise or sprint cancels action)
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
m_Interrupted
bool m_Interrupted
Definition: actionmanagerbase.c:49