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

◆ OnUnconsciousStop()

void ManBase::OnUnconsciousStop ( int pCurrentCommandID)
inlineprotected

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

3556 {
3558 SetSynchDirty();
3561 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
3562 {
3563 Hud hud = g_Game.GetMission().GetHud();
3564 hud.ShowHudUI(true);
3565 if (pCurrentCommandID != DayZPlayerConstants.COMMANDID_DEATH)
3566 {
3567 g_Game.GetSoundScene().SetSoundVolume(g_Game.m_volume_sound,1);
3568 PPERequester_UnconEffects requester = PPERequester_UnconEffects.Cast(PPERequesterBank.GetRequester(PPERequester_UnconEffects));
3569 requester.FadeOutEffect(); //fading
3570 hud.ShowQuickbarUI(true);
3571 UIManager uiManager = g_Game.GetUIManager();
3572 if (uiManager.IsDialogVisible())
3573 {
3574 uiManager.CloseDialog();
3575 }
3576 if (uiManager.IsMenuOpen(MENU_RESPAWN_DIALOGUE))
3577 {
3578 uiManager.FindMenu(MENU_RESPAWN_DIALOGUE).Close();
3579 }
3580 }
3581 SetInventorySoftLock(false);
3582 m_EffectWidgets.RemoveSuspendRequest(EffectWidgetSuspends.UNCON);
3583 }
3584 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER)
3585 {
3586 // enable voice communication
3587 if (IsAlive())
3588 g_Game.EnableVoN(this, true);
3589
3590 if (m_AdminLog)
3591 {
3592 m_AdminLog.UnconStop(this);
3593 }
3594 }
3595
3596 SetMasterAttenuation("");
3597
3599 m_OnUnconsciousStop.Invoke(this);
3600 }
DayZGame g_Game
Определения DayZGame.c:3942
void ShowHudUI(bool show)
void ShowQuickbarUI(bool show)
float m_UnconsciousTime
Определения PlayerBase.c:155
GameplayEffectWidgets_base m_EffectWidgets
effect widgets
Определения PlayerBase.c:338
float m_UnconsciousVignetteTarget
Определения PlayerBase.c:165
ref ScriptInvoker m_OnUnconsciousStop
Определения PlayerBase.c:350
float m_UnconRefillModifier
Определения PlayerBase.c:201
PluginAdminLog m_AdminLog
Определения PlayerBase.c:319
override void SetInventorySoftLock(bool status)
'soft lock' meaning inventory screen cannot be displayed, but mechanically, inventory operations are ...
Определения PlayerBase.c:8330
proto native bool IsDialogVisible()
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
proto native void CloseDialog()
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1071
proto native DayZPlayerInstanceType GetInstanceType()
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
const int MENU_RESPAWN_DIALOGUE
Определения 3_Game/DayZ/constants.c:209

Перекрестные ссылки UIManager::CloseDialog(), UIManager::FindMenu(), g_Game, GetInstanceType(), UIManager::IsDialogVisible(), UIManager::IsMenuOpen(), m_AdminLog, m_EffectWidgets, m_OnUnconsciousStop, m_UnconRefillModifier, m_UnconsciousTime, m_UnconsciousVignetteTarget, MENU_RESPAWN_DIALOGUE, SetInventorySoftLock(), Hud::ShowHudUI() и Hud::ShowQuickbarUI().

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