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

◆ OnUnconsciousStop()

void ManBase::OnUnconsciousStop ( int pCurrentCommandID)
inlineprotected

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

3440 {
3442 SetSynchDirty();
3445 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
3446 {
3447 GetGame().GetMission().GetHud().ShowHudUI(true);
3448 if (pCurrentCommandID != DayZPlayerConstants.COMMANDID_DEATH)
3449 {
3450 GetGame().GetSoundScene().SetSoundVolume(g_Game.m_volume_sound,1);
3451 PPERequesterBank.GetRequester(PPERequester_UnconEffects).Stop();
3453 if (GetGame().GetUIManager().IsDialogVisible())
3454 {
3456 }
3457 if (GetGame().GetUIManager().IsMenuOpen(MENU_RESPAWN_DIALOGUE))
3458 {
3460 }
3461 }
3462 SetInventorySoftLock(false);
3463 m_EffectWidgets.RemoveSuspendRequest(EffectWidgetSuspends.UNCON);
3464 }
3465 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER)
3466 {
3467 // enable voice communication
3468 if (IsAlive())
3469 GetGame().EnableVoN(this, true);
3470
3471 if (m_AdminLog)
3472 {
3473 m_AdminLog.UnconStop(this);
3474 }
3475 }
3476
3477 SetMasterAttenuation("");
3478
3480 m_OnUnconsciousStop.Invoke(this);
3481 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native UIManager GetUIManager()
proto native void EnableVoN(Object player, bool enable)
Enable/disable VoN for target player.
proto native AbstractSoundScene GetSoundScene()
proto native Mission GetMission()
void ShowHudUI(bool show)
void ShowQuickbarUI(bool show)
float m_UnconsciousTime
Определения PlayerBase.c:108
GameplayEffectWidgets_base m_EffectWidgets
effect widgets
Определения PlayerBase.c:291
float m_UnconsciousVignetteTarget
Определения PlayerBase.c:118
ref ScriptInvoker m_OnUnconsciousStop
Определения PlayerBase.c:303
float m_UnconRefillModifier
Определения PlayerBase.c:154
PluginAdminLog m_AdminLog
Определения PlayerBase.c:272
override void SetInventorySoftLock(bool status)
'soft lock' meaning inventory screen cannot be displayed, but mechanically, inventory operations are ...
Определения PlayerBase.c:8045
Hud GetHud()
Определения gameplay.c:721
UIScriptedMenu FindMenu(int id)
Returns menu with specific ID if it is open (see MenuID)
Определения UIManager.c:160
proto native void CloseDialog()
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068
proto native DayZPlayerInstanceType GetInstanceType()
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
proto native CGame GetGame()
const int MENU_RESPAWN_DIALOGUE
Определения constants.c:209
proto native void SetSoundVolume(float vol, float time)

Перекрестные ссылки UIManager::CloseDialog(), CGame::EnableVoN(), UIManager::FindMenu(), g_Game, GetGame(), Mission::GetHud(), GetInstanceType(), CGame::GetMission(), CGame::GetSoundScene(), CGame::GetUIManager(), m_AdminLog, m_EffectWidgets, m_OnUnconsciousStop, m_UnconRefillModifier, m_UnconsciousTime, m_UnconsciousVignetteTarget, MENU_RESPAWN_DIALOGUE, SetInventorySoftLock(), AbstractSoundScene::SetSoundVolume(), Hud::ShowHudUI() и Hud::ShowQuickbarUI().

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