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

◆ ShowDeadScreen()

void DayZPlayer::ShowDeadScreen ( bool show,
float duration )
inlineprotected

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

794 {
795 #ifndef NO_GUI
796 if (show && IsPlayerSelected())
797 {
798 #ifdef PLATFORM_PS4
799 OnlineServices.SetMultiplayState(false);
800 #endif
801
802 string message = "";
803 if (!g_Game.GetMission().IsPlayerRespawning())
804 {
805 message = "#dayz_implement_dead";
806 }
807
808 #ifdef PLATFORM_CONSOLE
809 g_Game.GetUIManager().ScreenFadeIn(duration, message, FadeColors.DARK_RED, FadeColors.WHITE);
810 #else
811 g_Game.GetUIManager().ScreenFadeIn(duration, message, FadeColors.BLACK, FadeColors.WHITE);
812 #endif
813 }
814 else
815 {
816 g_Game.GetUIManager().ScreenFadeOut(duration);
817
818 if (duration > 0)
819 g_Game.GetCallQueue(CALL_CATEGORY_GUI).CallLater(StopDeathDarkeningEffect, duration*1000, false);
820 else
822 }
823 #endif
824 }
DayZGame g_Game
Определения DayZGame.c:3942
override void StopDeathDarkeningEffect()
Определения DayZPlayerImplement.c:826
bool IsPlayerSelected()
Определения DayZPlayerImplement.c:3786
const int CALL_CATEGORY_GUI
Определения 3_Game/DayZ/tools/tools.c:9

Перекрестные ссылки CALL_CATEGORY_GUI, g_Game, IsPlayerSelected(), OnlineServices::SetMultiplayState() и StopDeathDarkeningEffect().

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