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

◆ SetEmoteLockState()

void SetEmoteLockState ( bool state)
protected

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

1166 {
1167 //separate inventory access locking
1168 if (state != m_InventoryAccessLocked)
1169 {
1170 m_Player.SetInventorySoftLock(state);
1172 }
1173
1174 if (g_Game.IsClient() && m_InventoryAccessLocked && g_Game.GetUIManager().FindMenu(MENU_INVENTORY))
1175 m_Player.CloseInventoryMenu();
1176
1177 //Movement lock in fullbody anims
1178 if (state && m_Callback && m_Callback.m_IsFullbody)
1179 m_controllsLocked = true;
1180 else
1181 m_controllsLocked = false;
1182
1183 if (state == m_EmoteLockState)
1184 return;
1185
1187 {
1189 m_HandInventoryLocation.SetHands(m_Player,null);
1190 }
1191
1192 if (!state)
1193 {
1194 if (m_Player.GetInventory().HasInventoryReservation(null, m_HandInventoryLocation))
1195 m_Player.GetInventory().ClearInventoryReservationEx(null, m_HandInventoryLocation);
1196
1197 if (m_Player.GetActionManager())
1198 m_Player.GetActionManager().EnableActions(true);
1199 }
1200 else
1201 {
1202 if (!m_Player.GetInventory().HasInventoryReservation(null, m_HandInventoryLocation))
1203 m_Player.GetInventory().AddInventoryReservationEx(null, m_HandInventoryLocation, GameInventory.c_InventoryReservationTimeoutMS);
1204
1205 if (m_Player.GetActionManager())
1206 m_Player.GetActionManager().EnableActions(false);
1207 }
1208 m_EmoteLockState = state;
1209 }
DayZGame g_Game
Определения DayZGame.c:4074
EmoteCB m_Callback
Определения EmoteManager.c:120
bool m_controllsLocked
Определения EmoteManager.c:137
ref InventoryLocation m_HandInventoryLocation
Определения EmoteManager.c:124
bool m_InventoryAccessLocked
Определения EmoteManager.c:138
bool m_EmoteLockState
Определения EmoteManager.c:139
DayZPlayer m_Player
Определения Hand_Events.c:42
const int c_InventoryReservationTimeoutMS
reservations
script counterpart to engine's class Inventory
InventoryLocation.
Определения InventoryLocation.c:30
const int MENU_INVENTORY
Определения 3_Game/DayZ/constants.c:186

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

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