Dayz Explorer 1.28.160049
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
12 bool EmoteCondition(int stancemask)
13 {
14 return true;
15 }
16
17 bool CanBeCanceledNormally(notnull EmoteCB callback)
18 {
19 return true;
20 }
21
23 bool EmoteFBStanceCheck(int stancemask)
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
39 bool DetermineOverride(out int callback_ID, out int stancemask, out bool is_fullbody)
40 {
41 return false;
42 }
43
44 void OnBeforeStandardCallbackCreated(int callback_ID, int stancemask, bool is_fullbody);
46
47 bool EmoteStartOverride(typename callbacktype, int id, int mask, bool fullbody)
48 {
49 return false;
50 }
51
53 {
54 m_Player = player;
55 }
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 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