DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
ActionInteractBase.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
6 }
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 {
21 }
22 }
23
24 override void InitActionComponent()
25 {
26#ifdef DIAG_DEVELOPER
28 {
29 Debug.ActionLog("n/a", m_ActionData.m_Action.ToString() , "n/a", "InitActionComponent", m_ActionData.m_Player.ToString() );
30 }
31#endif
32 m_Interrupted = false;
33 m_Canceled = false;
34
37 {
39 }
43 }
44
45 override void EndActionComponent()
46 {
47 SetCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
49 }
50};
51
52
53
55{
56 //deprecated
58
60 {
62 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_PICKUP_HANDS;
63 }
64
66 {
69 }
70
71 //deprecated
73 {
74 return "";
75 }
76
77 override typename GetInputType()
78 {
80 }
81
82 override int GetActionCategory()
83 {
84 return AC_INTERACT;
85 }
86
87 override bool UseMainItem()
88 {
89 return false;
90 }
91
92 override bool MainItemAlwaysInHands()
93 {
94 return false;
95 }
96};
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)
protected bool m_Interrupted
protected bool m_Canceled
protected ActionData m_ActionData
protected SoundOnVehicle m_SoundObject
PlayerBase m_Player
Definition ActionBase.c:33
ref ActionBase m_Action
Definition ActionBase.c:27
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void OnAnimationEvent(int pEventID)
override void InitActionComponent()
override void CreateActionComponent()
override void EndActionComponent()
override int GetActionCategory()
override bool MainItemAlwaysInHands()
override void CreateConditionComponents()
override bool UseMainItem()
void OnAnimationEvent(ActionData action_data)
void Init(ActionData action_data)
Definition CABase.c:8
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:138
static bool IsActionLogEnable()
Definition Debug.c:590
const float DEFAULT
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602
const int UA_FINISHED
Definition constants.c:420
const int UA_ANIM_EVENT
Definition constants.c:427
const int UA_PROCESSING
Definition constants.c:418