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

◆ CloseMapEx()

void ManBase::CloseMapEx ( bool cancelled)
inlineprotected

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

3305 {
3306 if (m_hac && !GetMapClosingSyncSent())
3307 {
3308 Mission mission = g_Game.GetMission();
3309 if (ScriptInputUserData.CanStoreInputUserData())
3310 {
3311 if (g_Game.IsMultiplayer() && g_Game.IsClient())
3312 {
3313 ActionManagerClient mngr_client;
3314 CastTo(mngr_client, GetActionManager());
3315
3316 if (cancelled)
3317 {
3318 mngr_client.RequestInterruptAction();
3319 }
3320 else
3321 {
3322 mngr_client.RequestEndAction();
3323 }
3324
3326 mission.RemoveActiveInputRestriction(EInputRestrictors.MAP);
3327 }
3328 else if (!g_Game.IsMultiplayer())
3329 {
3330 int command_ID = DayZPlayerConstants.CMD_ACTIONINT_END;
3331 if (cancelled)
3332 {
3333 command_ID = DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT;
3334 }
3335 m_hac.InternalCommand(command_ID);
3336 }
3338 }
3339 }
3340
3341 if (!g_Game.IsDedicatedServer())
3342 {
3343 UIManager uiManager = g_Game.GetUIManager();
3344 if (uiManager.IsMenuOpen(MENU_MAP))
3345 {
3346 uiManager.FindMenu(MENU_MAP).Close();
3347 if (m_Hud)
3348 {
3349 m_Hud.ShowQuickbarPlayer(true);
3350 }
3351
3353 mission.RemoveActiveInputRestriction(EInputRestrictors.MAP);
3354 }
3355 }
3356 }
DayZGame g_Game
Определения DayZGame.c:3942
Mission mission
Определения DisplayStatus.c:28
override void RequestInterruptAction()
client requests action interrupt
Определения ActionManagerClient.c:1280
override void RequestEndAction()
Определения ActionManagerClient.c:266
ActionManagerBase GetActionManager()
Определения PlayerBase.c:1829
Hud m_Hud
Определения PlayerBase.c:140
void SetMapClosingSyncSet(bool state)
Определения PlayerBase.c:3368
ActionUnfoldMapCB m_hac
Определения PlayerBase.c:285
bool GetMapClosingSyncSent()
Определения PlayerBase.c:3373
void RemoveActiveInputRestriction(int restrictor)
void RemoveActiveInputExcludes(array< string > excludes, bool bForceSupress=false)
deprecated
UIScriptedMenu FindMenu(int id)
Returns menu with specific ID if it is open (see MenuID)
Определения UIManager.c:160
bool IsMenuOpen(int id)
Returns true if menu with specific ID is opened (see MenuID)
Определения UIManager.c:154
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
const int MENU_MAP
Определения 3_Game/DayZ/constants.c:191

Перекрестные ссылки ScriptInputUserData::CanStoreInputUserData(), UIManager::FindMenu(), g_Game, GetActionManager(), GetMapClosingSyncSent(), UIManager::IsMenuOpen(), m_hac, m_Hud, MENU_MAP, mission, ActionManagerClient::RequestEndAction(), ActionManagerClient::RequestInterruptAction() и SetMapClosingSyncSet().

Используется в CloseMap(), CommandHandler(), OnJumpStart() и OnPlayerRecievedHit().