Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actioninteractbase.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
5 m_ActionData.m_ActionComponent = new CAInteract;
6 }
7
8 override void InitActionComponent()
9 {
10#ifdef ENABLE_LOGGING
11 if ( LogManager.IsActionLogEnable() )
12 {
13 Debug.ActionLog("n/a", m_ActionData.m_Action.ToString() , "n/a", "InitActionComponent", m_ActionData.m_Player.ToString() );
14 }
15#endif
16 m_Interrupted = false;
17 m_Canceled = false;
18
19 CreateActionComponent();
20 if ( m_ActionData.m_ActionComponent )
21 {
22 m_ActionData.m_ActionComponent.Init(m_ActionData);
23 }
26 m_SoundObject = m_ActionData.m_Action.PlayActionSound(m_ActionData.m_Player);
27 }
28
29 override void EndActionComponent()
30 {
31 SetCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
32 m_ActionData.m_State = UA_FINISHED;
33 }
34};
35
36
37
39{
40 //deprecated
41 string m_HUDCursorIcon;
42
43 void ActionInteractBase()
44 {
46 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_PICKUP_HANDS;
47 }
48
49 override void CreateConditionComponents()
50 {
53 }
54
55 //deprecated
56 string GetHUDCursorIcon()
57 {
58 return "";
59 }
60
61 override typename GetInputType()
62 {
64 }
65
66 override int GetActionCategory()
67 {
68 return AC_INTERACT;
69 }
70
71 override bool UseMainItem()
72 {
73 return false;
74 }
75
76 override bool MainItemAlwaysInHands()
77 {
78 return false;
79 }
80};
const int AC_INTERACT
Definition _constants.c:4
void SetCommand(int command_uid)
SoundOnVehicle m_SoundObject
ActionData m_ActionData
ref CCIBase m_ConditionItem
Definition actionbase.c:64
ref CCTBase m_ConditionTarget
Definition actionbase.c:65
Definition debug.c:2
class DayZCreatureAnimInterface RegisterAnimationEvent(string event_name, string function_name)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602
const int UA_FINISHED
Definition constants.c:466
const int UA_ANIM_EVENT
Definition constants.c:473
const int UA_PROCESSING
Definition constants.c:464