DayZ 1.24
Loading...
Searching...
No Matches
EmoteBase.c
Go to the documentation of this file.
2{
3 protected PlayerBase m_Player; //useful for various conditions in child classes
4 protected int m_ID = -1;
5 protected string m_InputActionName = "";
6 protected int m_StanceMaskAdditive = 0;
7 protected int m_StanceMaskFullbody = 0;
8 protected int m_AdditiveCallbackUID = 0;
9 protected int m_FullbodyCallbackUID = 0;
10 protected bool m_HideItemInHands = false;
11
13 {
14 return true;
15 }
16
18 {
19 return true;
20 }
21
24 {
25 int stanceIdx = DayZPlayerUtils.ConvertStanceMaskToStanceIdx(stancemask);
26
27 if (!m_Player)
28 {
29 ErrorEx("No player for 'PlayerCanChangeStance'");
30 return false;
31 }
32
33 if (stanceIdx != -1 && !DayZPlayerUtils.PlayerCanChangeStance(m_Player, stanceIdx))
34 return false;
35
36 return true;
37 }
38
40 {
41 return false;
42 }
43
46
47 bool EmoteStartOverride(typename callbacktype, int id, int mask, bool fullbody)
48 {
49 return false;
50 }
51
56
58 //Getters//
61 {
62 return m_Player;
63 }
64
65 int GetID()
66 {
67 return m_ID;
68 }
69
71 {
72 return m_InputActionName;
73 }
74
76 {
78 }
79
81 {
83 }
84
89
94
96 {
97 return m_HideItemInHands;
98 }
99 /*
100 protected int m_StanceMaskAdditive = 0;
101 protected int m_StanceMaskFullbody = 0;
102 */
103}
void DayZPlayerUtils()
cannot be instantiated
void OnCallbackEnd()
bool m_HideItemInHands
Definition EmoteBase.c:10
bool EmoteFBStanceCheck(int stancemask)
Checks for valid stance mask.
Definition EmoteBase.c:23
int GetID()
Definition EmoteBase.c:65
int m_ID
Definition EmoteBase.c:4
bool CanBeCanceledNormally(notnull EmoteCB callback)
Definition EmoteBase.c:17
bool DetermineOverride(out int callback_ID, out int stancemask, out bool is_fullbody)
Definition EmoteBase.c:39
int GetAdditiveCallbackUID()
Definition EmoteBase.c:85
int m_StanceMaskFullbody
Definition EmoteBase.c:7
string GetInputActionName()
Definition EmoteBase.c:70
PlayerBase GetOwnerPlayer()
Definition EmoteBase.c:60
void SetOwnerPlayer(PlayerBase player)
Definition EmoteBase.c:52
int m_StanceMaskAdditive
Definition EmoteBase.c:6
int GetFullbodyCallbackUID()
Definition EmoteBase.c:90
PlayerBase m_Player
Definition EmoteBase.c:3
int GetStanceMaskAdditive()
Definition EmoteBase.c:75
int m_FullbodyCallbackUID
Definition EmoteBase.c:9
int m_AdditiveCallbackUID
Definition EmoteBase.c:8
string m_InputActionName
Definition EmoteBase.c:5
bool EmoteStartOverride(typename callbacktype, int id, int mask, bool fullbody)
Definition EmoteBase.c:47
int GetStanceMaskFullbody()
Definition EmoteBase.c:80
bool EmoteCondition(int stancemask)
Definition EmoteBase.c:12
void OnBeforeStandardCallbackCreated(int callback_ID, int stancemask, bool is_fullbody)
bool GetHideItemInHands()
Definition EmoteBase.c:95
enum ShapeType ErrorEx