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

◆ ShowDeadScreen()

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

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

762 {
763 #ifndef NO_GUI
764 if (show && IsPlayerSelected())
765 {
766 #ifdef PLATFORM_PS4
767 OnlineServices.SetMultiplayState(false);
768 #endif
769
770 string message = "";
771 if (!GetGame().GetMission().IsPlayerRespawning())
772 {
773 message = "#dayz_implement_dead";
774 }
775
776 #ifdef PLATFORM_CONSOLE
777 GetGame().GetUIManager().ScreenFadeIn(duration, message, FadeColors.DARK_RED, FadeColors.WHITE);
778 #else
779 GetGame().GetUIManager().ScreenFadeIn(duration, message, FadeColors.BLACK, FadeColors.WHITE);
780 #endif
781 }
782 else
783 {
784 GetGame().GetUIManager().ScreenFadeOut(duration);
785
786 if (duration > 0)
788 else
790 }
791 #endif
792 }
proto native UIManager GetUIManager()
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
override void StopDeathDarkeningEffect()
Определения DayZPlayerImplement.c:794
bool IsPlayerSelected()
Определения DayZPlayerImplement.c:3737
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native void ScreenFadeOut(float duration)
proto native void ScreenFadeIn(float duration, string text, int backgroundColor, int textColor)
proto native CGame GetGame()
const int CALL_CATEGORY_GUI
Определения tools.c:9

Перекрестные ссылки ScriptCallQueue::Call(), CALL_CATEGORY_GUI, ScriptCallQueue::CallLater(), CGame::GetCallQueue(), GetGame(), CGame::GetUIManager(), IsPlayerSelected(), UIManager::ScreenFadeIn(), UIManager::ScreenFadeOut(), OnlineServices::SetMultiplayState() и StopDeathDarkeningEffect().

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