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

◆ PlaySurrenderInOut()

void PlaySurrenderInOut ( bool state)
protected

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

1157 {
1160
1161 if (state)
1162 {
1163 ItemBase item = m_Player.GetItemInHands();
1164 if (item)
1165 {
1166 if (!m_Player.CanDropEntity(item))
1167 return;
1168
1169 if (m_Player.GetInventory().HasInventoryReservation(null, m_HandInventoryLocation))
1170 m_Player.GetInventory().ClearInventoryReservationEx(null, m_HandInventoryLocation);
1171
1172 if (g_Game.IsMultiplayer())
1173 {
1174 if (g_Game.IsServer())
1175 m_Player.ServerDropEntity(item);
1176 }
1177 else
1178 {
1179 m_Player.PhysicalPredictiveDropItem(item); //SP only
1180 }
1181 }
1182
1183 CreateEmoteCallback(EmoteCB,DayZPlayerConstants.CMD_GESTUREFB_SURRENDERIN,DayZPlayerConstants.STANCEMASK_ALL,true);
1184
1185 if (m_Callback)
1186 {
1187 m_Callback.RegisterAnimationEvent("ActionExec", UA_ANIM_EVENT);
1188 }
1189 }
1190 else
1191 {
1192 if (m_Player.IsAlive() && !m_Player.IsUnconscious())
1193 {
1194 CreateEmoteCallback(EmoteCB,DayZPlayerConstants.CMD_GESTUREFB_SURRENDEROUT,DayZPlayerConstants.STANCEMASK_ALL,true);
1195 }
1196 else
1197 {
1198 OnEmoteEnd();
1199 }
1200 }
1201 }
map m_Player
DayZGame g_Game
Определения DayZGame.c:3942
EmoteCB m_Callback
Определения EmoteManager.c:125
int m_CurrentGestureID
Определения EmoteManager.c:151
ref InventoryLocation m_HandInventoryLocation
Определения EmoteManager.c:129
void OnEmoteEnd()
Определения EmoteManager.c:523
void CreateEmoteCallback(typename callbacktype, int id, int mask, bool fullbody)
Определения EmoteManager.c:724
int m_PreviousGestureID
Определения EmoteManager.c:150
Определения EmoteManager.c:2
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
const int ID_EMOTE_SURRENDER
Определения 3_Game/DayZ/constants.c:399
const int UA_ANIM_EVENT
Определения 3_Game/DayZ/constants.c:476

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

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