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

◆ PlayEmote()

bool PlayEmote ( int id)
protected

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

641 {
646 SetPending(false);
647
648 if (CanPlayEmote(id))
649 {
650 EmoteBase emote;
651 m_NameEmoteMap.Find(id,emote);
652
653 if (m_AdminLog)
654 m_AdminLog.OnEmote(m_Player, emote);
655
658 if (id > 0)
659 {
660 if (emote)
661 {
662 int callback_ID;
663 int stancemask;
664 bool is_fullbody;
665 if (DetermineEmoteData(emote,callback_ID,stancemask,is_fullbody))
666 {
667 if (!emote.EmoteStartOverride(EmoteCB,callback_ID,stancemask,is_fullbody))
668 {
669 emote.OnBeforeStandardCallbackCreated(callback_ID,stancemask,is_fullbody);
670 CreateEmoteCallback(EmoteCB,callback_ID,stancemask,is_fullbody);
671 }
672
673 if (emote.GetHideItemInHands())
674 {
676 }
677 }
678 else
679 {
680 ErrorEx("EmoteManager | DetermineEmoteData failed!");
681 }
682 }
683 }
684 }
685
687 return m_bEmoteIsPlaying;
688 }
bool ClearDeferredExecution()
Определения EmoteManager.c:829
void HideItemInHands()
Определения EmoteManager.c:719
const int CALLBACK_CMD_INVALID
Определения EmoteManager.c:148
int m_CurrentGestureID
Определения EmoteManager.c:144
bool CanPlayEmote(int id)
Определения EmoteManager.c:1026
int m_DeferredGuaranteedEmoteId
Определения EmoteManager.c:140
PluginAdminLog m_AdminLog
Определения EmoteManager.c:152
void SetPending(bool state)
Определения EmoteManager.c:280
void SetEmoteLockState(bool state)
Определения EmoteManager.c:1165
bool ClearEmoteLauncher(bool forced=false)
Определения EmoteManager.c:820
void CreateEmoteCallback(typename callbacktype, int id, int mask, bool fullbody)
Определения EmoteManager.c:691
bool IsEmotePlaying()
Определения EmoteManager.c:1328
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:256
ref map< int, ref EmoteBase > m_NameEmoteMap
Определения EmoteManager.c:154
bool m_bEmoteIsPlaying
Определения EmoteManager.c:127
int m_PreviousGestureID
Определения EmoteManager.c:143
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(), ClearDeferredExecution(), ClearEmoteLauncher(), CreateEmoteCallback(), DetermineEmoteData(), EmoteBase::EmoteStartOverride(), ErrorEx, EmoteBase::GetHideItemInHands(), HideItemInHands(), IsEmotePlaying(), m_AdminLog, m_bEmoteIsPlaying, m_CurrentGestureID, m_DeferredGuaranteedEmoteId, m_NameEmoteMap, m_Player, m_PreviousGestureID, EmoteBase::OnBeforeStandardCallbackCreated(), SetEmoteLockState() и SetPending().

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