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

◆ CloseMapEx()

void ManBase::CloseMapEx ( bool cancelled)
inlineprotected

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

3193 {
3194 if (m_hac && !GetMapClosingSyncSent())
3195 {
3196 if (ScriptInputUserData.CanStoreInputUserData())
3197 {
3198 if (GetGame().IsMultiplayer() && GetGame().IsClient())
3199 {
3200 ActionManagerClient mngr_client;
3201 CastTo(mngr_client, GetActionManager());
3202
3203 if (cancelled)
3204 {
3205 mngr_client.RequestInterruptAction();
3206 }
3207 else
3208 {
3209 mngr_client.RequestEndAction();
3210 }
3211
3213 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.MAP);
3214 }
3215 else if (!GetGame().IsMultiplayer())
3216 {
3217 int command_ID = DayZPlayerConstants.CMD_ACTIONINT_END;
3218 if (cancelled)
3219 {
3220 command_ID = DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT;
3221 }
3222 m_hac.InternalCommand(command_ID);
3223 }
3225 }
3226 }
3227
3228 if (!GetGame().IsDedicatedServer())
3229 {
3230 if (GetGame().GetUIManager().IsMenuOpen(MENU_MAP))
3231 {
3233 if (m_Hud)
3234 {
3235 m_Hud.ShowQuickbarPlayer(true);
3236 }
3237
3239 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.MAP);
3240 }
3241 }
3242 }
override void RequestInterruptAction()
client requests action interrupt
Определения ActionManagerClient.c:1280
override void RequestEndAction()
Определения ActionManagerClient.c:266
proto native UIManager GetUIManager()
proto native Mission GetMission()
ActionManagerBase GetActionManager()
Определения PlayerBase.c:1699
Hud m_Hud
Определения PlayerBase.c:93
void SetMapClosingSyncSet(bool state)
Определения PlayerBase.c:3254
ActionUnfoldMapCB m_hac
Определения PlayerBase.c:238
bool GetMapClosingSyncSent()
Определения PlayerBase.c:3259
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
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
proto native CGame GetGame()
const int MENU_MAP
Определения constants.c:191

Перекрестные ссылки ScriptInputUserData::CanStoreInputUserData(), UIManager::FindMenu(), GetActionManager(), GetGame(), GetMapClosingSyncSent(), CGame::GetMission(), CGame::GetUIManager(), m_hac, m_Hud, MENU_MAP, Mission::RemoveActiveInputExcludes(), Mission::RemoveActiveInputRestriction(), ActionManagerClient::RequestEndAction(), ActionManagerClient::RequestInterruptAction() и SetMapClosingSyncSet().

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