DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ PlayEmote()

bool PlayEmote ( int id)
protected

См. определение в файле EmoteManager.c строка 588

589 {
592
593 if (CanPlayEmote(id))
594 {
595 EmoteBase emote;
596 m_NameEmoteMap.Find(id,emote);
597
598 if (m_AdminLog)
599 m_AdminLog.OnEmote(m_Player, emote);
600
603 if (id > 0)
604 {
605 if (emote)
606 {
607 int callback_ID;
608 int stancemask;
609 bool is_fullbody;
610 if (DetermineEmoteData(emote,callback_ID,stancemask,is_fullbody))
611 {
612 if (!emote.EmoteStartOverride(EmoteCB,callback_ID,stancemask,is_fullbody))
613 {
614 emote.OnBeforeStandardCallbackCreated(callback_ID,stancemask,is_fullbody);
615 CreateEmoteCallback(EmoteCB,callback_ID,stancemask,is_fullbody);
616 }
617
618 if (emote.GetHideItemInHands())
619 {
621 }
622 }
623 else
624 {
625 ErrorEx("EmoteManager | DetermineEmoteData failed!");
626 }
627 }
628 }
629 }
630
632 return m_bEmoteIsPlaying;
633 }
void HideItemInHands()
Определения EmoteManager.c:664
const int CALLBACK_CMD_INVALID
Определения EmoteManager.c:138
int m_CurrentGestureID
Определения EmoteManager.c:134
bool CanPlayEmote(int id)
Определения EmoteManager.c:880
int m_DeferredEmoteExecution
Определения EmoteManager.c:131
PluginAdminLog m_AdminLog
Определения EmoteManager.c:142
void SetEmoteLockState(bool state)
Определения EmoteManager.c:1030
void CreateEmoteCallback(typename callbacktype, int id, int mask, bool fullbody)
Определения EmoteManager.c:636
bool DetermineEmoteData(EmoteBase emote, out int callback_ID, out int stancemask, out bool is_fullbody)
Also includes a stance check for FB callbacks.
Определения EmoteManager.c:249
ref map< int, ref EmoteBase > m_NameEmoteMap
Определения EmoteManager.c:145
bool m_bEmoteIsPlaying
Определения EmoteManager.c:118
bool m_bEmoteIsRequestPending
Определения EmoteManager.c:117
int m_PreviousGestureID
Определения EmoteManager.c:133
DayZPlayer m_Player
Определения Hand_Events.c:42
bool EmoteStartOverride(typename callbacktype, int id, int mask, bool fullbody)
Определения EmoteBase.c:47
void OnBeforeStandardCallbackCreated(int callback_ID, int stancemask, bool is_fullbody)
bool GetHideItemInHands()
Определения EmoteBase.c:95
Определения EmoteBase.c:2
Определения EmoteManager.c:2
enum ShapeType ErrorEx

Перекрестные ссылки CALLBACK_CMD_INVALID, CanPlayEmote(), CreateEmoteCallback(), DetermineEmoteData(), EmoteBase::EmoteStartOverride(), ErrorEx, EmoteBase::GetHideItemInHands(), HideItemInHands(), m_AdminLog, m_bEmoteIsPlaying, m_bEmoteIsRequestPending, m_CurrentGestureID, m_DeferredEmoteExecution, m_NameEmoteMap, m_Player, m_PreviousGestureID, EmoteBase::OnBeforeStandardCallbackCreated() и SetEmoteLockState().

Используется в SendEmoteRequestSync() и Update().