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

◆ PlaySurrenderInOut()

void PlaySurrenderInOut ( bool state)
protected

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

980 {
983 if (state)
984 {
985 if (m_Player.GetItemInHands() && !m_Player.CanDropEntity(m_Player.GetItemInHands()))
986 return;
987
988 if (m_Player.GetItemInHands() && GetGame().IsClient())
989 {
990 if (m_Player.GetInventory().HasInventoryReservation(null, m_HandInventoryLocation))
991 m_Player.GetInventory().ClearInventoryReservationEx(null, m_HandInventoryLocation);
992 m_Player.PhysicalPredictiveDropItem(m_Player.GetItemInHands());
993 }
994
995 CreateEmoteCallback(EmoteCB,DayZPlayerConstants.CMD_GESTUREFB_SURRENDERIN,DayZPlayerConstants.STANCEMASK_ALL,true);
996
997 if (m_Callback)
998 m_Callback.RegisterAnimationEvent("ActionExec", UA_ANIM_EVENT);
999 }
1000 else
1001 {
1002 if (m_Player.IsAlive() && !m_Player.IsUnconscious())
1003 {
1004 CreateEmoteCallback(EmoteCB,DayZPlayerConstants.CMD_GESTUREFB_SURRENDEROUT,DayZPlayerConstants.STANCEMASK_ALL,true);
1005 }
1006 else
1007 {
1008 OnEmoteEnd();
1009 }
1010 }
1011 }
EmoteCB m_Callback
Определения EmoteManager.c:111
int m_CurrentGestureID
Определения EmoteManager.c:134
ref InventoryLocation m_HandInventoryLocation
Определения EmoteManager.c:115
void OnEmoteEnd()
Определения EmoteManager.c:465
void CreateEmoteCallback(typename callbacktype, int id, int mask, bool fullbody)
Определения EmoteManager.c:634
int m_PreviousGestureID
Определения EmoteManager.c:133
DayZPlayer m_Player
Определения Hand_Events.c:42
Определения EmoteManager.c:2
Определения constants.c:359
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
proto native CGame GetGame()
const int ID_EMOTE_SURRENDER
Определения constants.c:399
const int UA_ANIM_EVENT
Определения constants.c:471

Перекрестные ссылки CreateEmoteCallback(), GetGame(), EmoteConstants::ID_EMOTE_SURRENDER, m_Callback, m_CurrentGestureID, m_HandInventoryLocation, m_Player, m_PreviousGestureID, OnEmoteEnd() и UA_ANIM_EVENT.

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