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

◆ SetEmoteLockState()

void SetEmoteLockState ( bool state)
protected

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

1031 {
1032 //separate inventory access locking
1033 if (state != m_InventoryAccessLocked)
1034 {
1035 m_Player.SetInventorySoftLock(state);
1037 }
1038
1039 if (GetGame().IsClient() && m_InventoryAccessLocked && GetGame().GetUIManager().FindMenu(MENU_INVENTORY))
1040 m_Player.CloseInventoryMenu();
1041
1042 //Movement lock in fullbody anims
1043 if (state && m_Callback && m_Callback.m_IsFullbody)
1044 m_controllsLocked = true;
1045 else
1046 m_controllsLocked = false;
1047
1048 if (state == m_EmoteLockState)
1049 return;
1050
1052 {
1054 m_HandInventoryLocation.SetHands(m_Player,null);
1055 }
1056
1057 if (!state)
1058 {
1059 if (m_Player.GetInventory().HasInventoryReservation(null, m_HandInventoryLocation))
1060 m_Player.GetInventory().ClearInventoryReservationEx(null, m_HandInventoryLocation);
1061
1062 if (m_Player.GetActionManager())
1063 m_Player.GetActionManager().EnableActions(true);
1064 }
1065 else
1066 {
1067 if (!m_Player.GetInventory().HasInventoryReservation(null, m_HandInventoryLocation))
1068 m_Player.GetInventory().AddInventoryReservationEx(null, m_HandInventoryLocation, GameInventory.c_InventoryReservationTimeoutMS);
1069
1070 if (m_Player.GetActionManager())
1071 m_Player.GetActionManager().EnableActions(false);
1072 }
1073 m_EmoteLockState = state;
1074 }
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
script counterpart to engine's class Inventory
InventoryLocation.
Определения InventoryLocation.c:29
proto native CGame GetGame()
const int MENU_INVENTORY
Определения 3_Game/constants.c:180

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

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