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

◆ ShowDeadScreen()

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

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

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

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

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