Dayz Explorer
1.28.160049
Loading...
Searching...
No Matches
actioninteractbase.c
Go to the documentation of this file.
1
class
ActionInteractBaseCB
:
ActionBaseCB
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
}
24
m_ActionData
.m_State =
UA_PROCESSING
;
25
RegisterAnimationEvent
(
"ActionExec"
,
UA_ANIM_EVENT
);
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
38
class
ActionInteractBase
:
AnimatedActionBase
39
{
40
//deprecated
41
string
m_HUDCursorIcon;
42
43
void
ActionInteractBase
()
44
{
45
m_CallbackClass
=
ActionInteractBaseCB
;
46
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONMOD_PICKUP_HANDS;
47
}
48
49
override
void
CreateConditionComponents()
50
{
51
m_ConditionItem
=
new
CCINone
;
52
m_ConditionTarget
=
new
CCTObject
(
UAMaxDistances
.DEFAULT);
53
}
54
55
//deprecated
56
string
GetHUDCursorIcon()
57
{
58
return
""
;
59
}
60
61
override
typename
GetInputType()
62
{
63
return
InteractActionInput
;
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
};
AC_INTERACT
const int AC_INTERACT
Definition
_constants.c:4
ActionBaseCB
Definition
animatedactionbase.c:2
ActionBaseCB::m_Interrupted
bool m_Interrupted
Definition
animatedactionbase.c:6
ActionBaseCB::m_Canceled
bool m_Canceled
Definition
animatedactionbase.c:5
ActionBaseCB::SetCommand
void SetCommand(int command_uid)
Definition
animatedactionbase.c:54
ActionBaseCB::m_SoundObject
SoundOnVehicle m_SoundObject
Definition
animatedactionbase.c:4
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:64
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:65
ActionInteractBaseCB
Definition
actioninteractbase.c:2
ActionInteractBase
Definition
actioninteractbase.c:39
AnimatedActionBase
Definition
animatedactionbase.c:142
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
animatedactionbase.c:143
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
animatedactionbase.c:145
CAInteract
Definition
cainteract.c:2
CCINone
Definition
ccinone.c:2
CCTObject
Definition
cctobject.c:2
Debug
Definition
debug.c:2
InteractActionInput
Definition
actioninput.c:536
LogManager
Definition
debug.c:594
UAMaxDistances
Definition
actionconstants.c:110
RegisterAnimationEvent
class DayZCreatureAnimInterface RegisterAnimationEvent(string event_name, string function_name)
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
UA_FINISHED
const int UA_FINISHED
Definition
constants.c:466
UA_ANIM_EVENT
const int UA_ANIM_EVENT
Definition
constants.c:473
UA_PROCESSING
const int UA_PROCESSING
Definition
constants.c:464
Daten
4_world
classes
useractionscomponent
actions
actioninteractbase.c
Generated by
1.12.0