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

◆ OnUnconsciousStop()

void ManBase::OnUnconsciousStop ( int pCurrentCommandID)
inlineprotected

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

3820 {
3822 SetSynchDirty();
3825 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
3826 {
3827#ifndef NO_GUI
3828 Hud hud = g_Game.GetMission().GetHud();
3829 hud.ShowHudUI(true);
3830 if (pCurrentCommandID != DayZPlayerConstants.COMMANDID_DEATH)
3831 {
3832 g_Game.GetSoundScene().SetSoundVolume(g_Game.m_volume_sound,1);
3833 PPERequester_UnconEffects requester = PPERequester_UnconEffects.Cast(PPERequesterBank.GetRequester(PPERequester_UnconEffects));
3834 requester.FadeOutEffect(); //fading
3835 hud.ShowQuickbarUI(true);
3836 UIManager uiManager = g_Game.GetUIManager();
3837 if (uiManager.IsDialogVisible())
3838 {
3839 uiManager.CloseDialog();
3840 }
3841 if (uiManager.IsMenuOpen(MENU_RESPAWN_DIALOGUE))
3842 {
3843 uiManager.FindMenu(MENU_RESPAWN_DIALOGUE).Close();
3844 }
3845 }
3846#endif
3847 SetInventorySoftLock(false);
3848#ifndef NO_GUI
3849 m_EffectWidgets.RemoveSuspendRequest(EffectWidgetSuspends.UNCON);
3850#endif
3851 }
3852 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER)
3853 {
3854 // enable voice communication
3855 if (IsAlive())
3856 g_Game.EnableVoN(this, true);
3857
3858 if (m_AdminLog)
3859 {
3860 m_AdminLog.UnconStop(this);
3861 }
3862 }
3863
3864 SetMasterAttenuation("");
3865
3867 m_OnUnconsciousStop.Invoke(this);
3868 }
DayZGame g_Game
Определения DayZGame.c:4074
void ShowHudUI(bool show)
void ShowQuickbarUI(bool show)
float m_UnconsciousTime
Определения PlayerBase.c:154
GameplayEffectWidgets_base m_EffectWidgets
effect widgets
Определения PlayerBase.c:342
float m_UnconsciousVignetteTarget
Определения PlayerBase.c:164
ref ScriptInvoker m_OnUnconsciousStop
Определения PlayerBase.c:354
float m_UnconRefillModifier
Определения PlayerBase.c:200
PluginAdminLog m_AdminLog
Определения PlayerBase.c:322
override void SetInventorySoftLock(bool status)
'soft lock' meaning inventory screen cannot be displayed, but mechanically, inventory operations are ...
Определения PlayerBase.c:8684
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:1084
proto native DayZPlayerInstanceType GetInstanceType()
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
const int MENU_RESPAWN_DIALOGUE
Определения 3_Game/DayZ/constants.c:215

Перекрестные ссылки 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().