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

◆ PlayEmote()

bool PlayEmote ( int id)
protected

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

587 {
590
591 if (CanPlayEmote(id))
592 {
593 EmoteBase emote;
594 m_NameEmoteMap.Find(id,emote);
595
596 if (m_AdminLog)
597 m_AdminLog.OnEmote(m_Player, emote);
598
601 if (id > 0)
602 {
603 if (emote)
604 {
605 int callback_ID;
606 int stancemask;
607 bool is_fullbody;
608 if (DetermineEmoteData(emote,callback_ID,stancemask,is_fullbody))
609 {
610 if (!emote.EmoteStartOverride(EmoteCB,callback_ID,stancemask,is_fullbody))
611 {
612 emote.OnBeforeStandardCallbackCreated(callback_ID,stancemask,is_fullbody);
613 CreateEmoteCallback(EmoteCB,callback_ID,stancemask,is_fullbody);
614 }
615
616 if (emote.GetHideItemInHands())
617 {
619 }
620 }
621 else
622 {
623 ErrorEx("EmoteManager | DetermineEmoteData failed!");
624 }
625 }
626 }
627 }
628
630 return m_bEmoteIsPlaying;
631 }
void HideItemInHands()
Определения EmoteManager.c:662
const int CALLBACK_CMD_INVALID
Определения EmoteManager.c:138
int m_CurrentGestureID
Определения EmoteManager.c:134
bool CanPlayEmote(int id)
Определения EmoteManager.c:878
int m_DeferredEmoteExecution
Определения EmoteManager.c:131
PluginAdminLog m_AdminLog
Определения EmoteManager.c:142
void SetEmoteLockState(bool state)
Определения EmoteManager.c:1014
void CreateEmoteCallback(typename callbacktype, int id, int mask, bool fullbody)
Определения EmoteManager.c:634
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().