845 {
846 if (
g_Game.GetMissionState() != DayZGame.MISSION_STATE_GAME)
847 return;
848
850
851 if (state)
852 {
854 if (m_KilledByHeadshot)
855 {
856 duration = 0;
857 }
858
860 {
863
866 }
867
869
870 g_Game.GetSoundScene().SetSoundVolume(0,0);
871 g_Game.GetSoundScene().SetSpeechExVolume(0,0);
872 g_Game.GetSoundScene().SetMusicVolume(0,0);
873 g_Game.GetSoundScene().SetVOIPVolume(0,0);
874 g_Game.GetSoundScene().SetRadioVolume(0,0);
875 }
876 else
877 {
880 }
881 }
void LockControls(bool state)
override void StopDeathDarkeningEffect()
void ShowDeadScreen(bool show, float duration)
ref DeathEffectTimer m_DeathEffectTimer
static const float DEFAULT_DYING_TIME
static const float DYING_PROGRESSION_TIME
how long does it take to full death screen [s]