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

◆ Pause()

override void MissionBase::Pause ( )
inlineprotected

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

1300 {
1301 if (IsPaused() || (g_Game.GetUIManager().GetMenu() && g_Game.GetUIManager().GetMenu().GetID() == MENU_INGAME))
1302 {
1303 return;
1304 }
1305
1306 m_PauseQueued = true;
1307
1308 if ( g_Game.IsClient() && g_Game.GetGameState() != DayZGameState.IN_GAME )
1309 {
1310 return;
1311 }
1312
1313 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
1314 if ( player && !player.IsPlayerLoaded() || IsPlayerRespawning() )
1315 {
1316 return;
1317 }
1318
1319 CloseAllMenus();
1320
1321 // open ingame menu
1322 UIScriptedMenu menu = GetUIManager().EnterScriptedMenu( MENU_INGAME, g_Game.GetUIManager().GetMenu() );
1323 if (!menu || !menu.IsVisible())
1324 {
1325 return;
1326 }
1327
1328 AddActiveInputExcludes({"menu"});
1329 AddActiveInputRestriction(EInputRestrictors.INVENTORY);
1330
1331 m_PauseQueued = false;
1332 }
DayZGame g_Game
Определения DayZGame.c:4074
UIManager GetUIManager()
Определения missionGameplay.c:188
override void AddActiveInputExcludes(array< string > excludes)
Adds one or more exclude groups to disable and refreshes excludes.
Определения missionGameplay.c:1001
void CloseAllMenus()
Определения missionGameplay.c:1152
override bool IsPlayerRespawning()
Определения missionGameplay.c:1702
bool m_PauseQueued
Определения missionGameplay.c:45
override void AddActiveInputRestriction(int restrictor)
Adds one input restriction (specific behaviour oudside regular excludes, defined below)
Определения missionGameplay.c:1033
override bool IsPaused()
Определения missionGameplay.c:1294
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
const int MENU_INGAME
Определения 3_Game/DayZ/constants.c:184

Перекрестные ссылки AddActiveInputExcludes(), AddActiveInputRestriction(), CloseAllMenus(), UIManager::EnterScriptedMenu(), g_Game, GetUIManager(), IsPaused(), IsPlayerRespawning(), m_PauseQueued и MENU_INGAME.

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