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

◆ SetEmoteLockState()

void SetEmoteLockState ( bool state)
protected

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

1015 {
1016 //separate inventory access locking
1017 if (state != m_InventoryAccessLocked)
1018 {
1019 m_Player.SetInventorySoftLock(state);
1021 }
1022
1023 //Movement lock in fullbody anims
1024 if (state && m_Callback && m_Callback.m_IsFullbody)
1025 m_controllsLocked = true;
1026 else
1027 m_controllsLocked = false;
1028
1029 if (state == m_EmoteLockState)
1030 return;
1031
1033 {
1035 m_HandInventoryLocation.SetHands(m_Player,null);
1036 }
1037
1038 if (!state)
1039 {
1040 if (m_Player.GetInventory().HasInventoryReservation(null, m_HandInventoryLocation))
1041 m_Player.GetInventory().ClearInventoryReservationEx(null, m_HandInventoryLocation);
1042
1043 if (m_Player.GetActionManager())
1044 m_Player.GetActionManager().EnableActions(true);
1045 }
1046 else
1047 {
1048 if (!m_Player.GetInventory().HasInventoryReservation(null, m_HandInventoryLocation))
1049 m_Player.GetInventory().AddInventoryReservationEx(null, m_HandInventoryLocation, GameInventory.c_InventoryReservationTimeoutMS);
1050
1051 if (m_Player.GetActionManager())
1052 m_Player.GetActionManager().EnableActions(false);
1053 }
1054 m_EmoteLockState = state;
1055 }
EmoteCB m_Callback
Определения EmoteManager.c:111
bool m_controllsLocked
Определения EmoteManager.c:128
ref InventoryLocation m_HandInventoryLocation
Определения EmoteManager.c:115
bool m_InventoryAccessLocked
Определения EmoteManager.c:129
bool m_EmoteLockState
Определения EmoteManager.c:130
DayZPlayer m_Player
Определения Hand_Events.c:42
const int c_InventoryReservationTimeoutMS
reservations
Определения Inventory.c:712
script counterpart to engine's class Inventory
Определения Inventory.c:79
InventoryLocation.
Определения InventoryLocation.c:29

Перекрестные ссылки GameInventory::c_InventoryReservationTimeoutMS, m_Callback, m_controllsLocked, m_EmoteLockState, m_HandInventoryLocation, m_InventoryAccessLocked и m_Player.

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