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

◆ Pause()

override void MissionBase::Pause ( )
inlineprotected

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

1263 {
1264 if (IsPaused() || (g_Game.GetUIManager().GetMenu() && g_Game.GetUIManager().GetMenu().GetID() == MENU_INGAME))
1265 {
1266 return;
1267 }
1268
1269 m_PauseQueued = true;
1270
1271 if ( g_Game.IsClient() && g_Game.GetGameState() != DayZGameState.IN_GAME )
1272 {
1273 return;
1274 }
1275
1276 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
1277 if ( player && !player.IsPlayerLoaded() || IsPlayerRespawning() )
1278 {
1279 return;
1280 }
1281
1282 CloseAllMenus();
1283
1284 // open ingame menu
1285 UIScriptedMenu menu = GetUIManager().EnterScriptedMenu( MENU_INGAME, g_Game.GetUIManager().GetMenu() );
1286 if (!menu || !menu.IsVisible())
1287 {
1288 return;
1289 }
1290
1291 AddActiveInputExcludes({"menu"});
1292 AddActiveInputRestriction(EInputRestrictors.INVENTORY);
1293
1294 m_PauseQueued = false;
1295 }
DayZGame g_Game
Определения DayZGame.c:3942
UIManager GetUIManager()
Определения missionGameplay.c:181
override void AddActiveInputExcludes(array< string > excludes)
Adds one or more exclude groups to disable and refreshes excludes.
Определения missionGameplay.c:969
void CloseAllMenus()
Определения missionGameplay.c:1115
override bool IsPlayerRespawning()
Определения missionGameplay.c:1638
bool m_PauseQueued
Определения missionGameplay.c:45
override void AddActiveInputRestriction(int restrictor)
Adds one input restriction (specific behaviour oudside regular excludes, defined below)
Определения missionGameplay.c:1001
override bool IsPaused()
Определения missionGameplay.c:1257
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:178

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