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

◆ CloseMapEx()

void ManBase::CloseMapEx ( bool cancelled)
inlineprotected

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

3174 {
3175 if (m_hac && !GetMapClosingSyncSent())
3176 {
3177 if (ScriptInputUserData.CanStoreInputUserData())
3178 {
3179 if (GetGame().IsMultiplayer() && GetGame().IsClient())
3180 {
3181 ActionManagerClient mngr_client;
3182 CastTo(mngr_client, GetActionManager());
3183
3184 if (cancelled)
3185 {
3186 mngr_client.RequestInterruptAction();
3187 }
3188 else
3189 {
3190 mngr_client.RequestEndAction();
3191 }
3192
3194 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.MAP);
3195 }
3196 else if (!GetGame().IsMultiplayer())
3197 {
3198 int command_ID = DayZPlayerConstants.CMD_ACTIONINT_END;
3199 if (cancelled)
3200 {
3201 command_ID = DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT;
3202 }
3203 m_hac.InternalCommand(command_ID);
3204 }
3206 }
3207 }
3208
3209 if (!GetGame().IsDedicatedServer())
3210 {
3211 if (GetGame().GetUIManager().IsMenuOpen(MENU_MAP))
3212 {
3214 if (m_Hud)
3215 {
3216 m_Hud.ShowQuickbarPlayer(true);
3217 }
3218
3220 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.MAP);
3221 }
3222 }
3223 }
override void RequestInterruptAction()
client requests action interrupt
Определения ActionManagerClient.c:1286
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:3235
ActionUnfoldMapCB m_hac
Определения PlayerBase.c:238
bool GetMapClosingSyncSent()
Определения PlayerBase.c:3240
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
Определения 3_Game/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().