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

◆ PlaySurrenderInOut()

void PlaySurrenderInOut ( bool state)
protected

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

1118 {
1121
1122 if (state)
1123 {
1124 ItemBase item = m_Player.GetItemInHands();
1125 if (item)
1126 {
1127 if (!m_Player.CanDropEntity(item))
1128 return;
1129
1130 if (m_Player.GetInventory().HasInventoryReservation(null, m_HandInventoryLocation))
1131 m_Player.GetInventory().ClearInventoryReservationEx(null, m_HandInventoryLocation);
1132
1133 if (g_Game.IsMultiplayer())
1134 {
1135 if (g_Game.IsServer())
1136 m_Player.ServerDropEntity(item);
1137 }
1138 else
1139 {
1140 m_Player.PhysicalPredictiveDropItem(item); //SP only
1141 }
1142 }
1143
1144 CreateEmoteCallback(EmoteCB,DayZPlayerConstants.CMD_GESTUREFB_SURRENDERIN,DayZPlayerConstants.STANCEMASK_ALL,true);
1145
1146 if (m_Callback)
1147 {
1148 m_Callback.RegisterAnimationEvent("ActionExec", UA_ANIM_EVENT);
1149 }
1150 }
1151 else
1152 {
1153 if (m_Player.IsAlive() && !m_Player.IsUnconscious())
1154 {
1155 CreateEmoteCallback(EmoteCB,DayZPlayerConstants.CMD_GESTUREFB_SURRENDEROUT,DayZPlayerConstants.STANCEMASK_ALL,true);
1156 }
1157 else
1158 {
1159 OnEmoteEnd();
1160 }
1161 }
1162 }
DayZGame g_Game
Определения DayZGame.c:4074
EmoteCB m_Callback
Определения EmoteManager.c:120
int m_CurrentGestureID
Определения EmoteManager.c:144
ref InventoryLocation m_HandInventoryLocation
Определения EmoteManager.c:124
void OnEmoteEnd()
Определения EmoteManager.c:491
void CreateEmoteCallback(typename callbacktype, int id, int mask, bool fullbody)
Определения EmoteManager.c:691
int m_PreviousGestureID
Определения EmoteManager.c:143
DayZPlayer m_Player
Определения Hand_Events.c:42
Определения EmoteManager.c:2
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
const int ID_EMOTE_SURRENDER
Определения 3_Game/DayZ/constants.c:407
const int UA_ANIM_EVENT
Определения 3_Game/DayZ/constants.c:505

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