DayZ 1.24
Loading...
Searching...
No Matches
ActionInteractBase.c
Go to the documentation of this file.
2{
7
8 override void OnAnimationEvent(int pEventID)
9 {
10#ifdef DIAG_DEVELOPER
12 {
13 if (m_ActionData)
14 Debug.ActionLog("n/a", m_ActionData.m_Action.ToString(), "n/a", "OnAnimationEvent", m_ActionData.m_Player.ToString());
15 }
16#endif
18 {
20 action.OnAnimationEvent(m_ActionData);
21 }
22 }
23
24 override void InitActionComponent()
25 {
26#ifdef DIAG_DEVELOPER
28 Debug.ActionLog("n/a", m_ActionData.m_Action.ToString(), "n/a", "InitActionComponent", m_ActionData.m_Player.ToString());
29#endif
30 m_Interrupted = false;
31 m_Canceled = false;
32
39 }
40
41 override void EndActionComponent()
42 {
43 SetCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
45 }
46};
47
48
50{
51 //deprecated
53
55 {
57 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_PICKUP_HANDS;
58 }
59
65
66 //deprecated
68 {
69 return "";
70 }
71
72 override typename GetInputType()
73 {
75 }
76
77 override int GetActionCategory()
78 {
79 return AC_INTERACT;
80 }
81
82 override bool UseMainItem()
83 {
84 return false;
85 }
86
87 override bool MainItemAlwaysInHands()
88 {
89 return false;
90 }
91};
const int AC_INTERACT
Definition _constants.c:4
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
class DayZCreatureAnimInterface RegisterAnimationEvent(string event_name, string function_name)
void SetCommand(int command_uid)
SoundOnVehicle m_SoundObject
ActionData m_ActionData
PlayerBase m_Player
Definition ActionBase.c:33
ref CABase m_ActionComponent
Definition ActionBase.c:30
ref ActionBase m_Action
Definition ActionBase.c:27
override void InitActionComponent()
override void EndActionComponent()
override void CreateActionComponent()
override void OnAnimationEvent(int pEventID)
override void CreateConditionComponents()
override int GetActionCategory()
override bool MainItemAlwaysInHands()
override bool UseMainItem()
Definition Debug.c:14
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Definition Debug.c:143
static bool IsActionLogEnable()
Definition Debug.c:719
const float DEFAULT
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
const int UA_FINISHED
Definition constants.c:436
const int UA_ANIM_EVENT
Definition constants.c:443
const int UA_PROCESSING
Definition constants.c:434