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

◆ SimulateDeath()

void DayZPlayer::SimulateDeath ( bool state)
inlineprotected

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

845 {
846 if (g_Game.GetMissionState() != DayZGame.MISSION_STATE_GAME)
847 return;
848
849 LockControls(state);
850
851 if (state)
852 {
853 float duration = DEFAULT_DYING_TIME;
854 if (m_KilledByHeadshot)
855 {
856 duration = 0;
857 }
858
859 if (duration > DYING_PROGRESSION_TIME && !m_IsUnconscious)
860 {
862 m_DeathEffectTimer = new DeathEffectTimer();
863
864 Param2<float,float> par = new Param2<float,float>(duration, DYING_PROGRESSION_TIME);
865 m_DeathEffectTimer.Run(DYING_PROGRESSION_TIME, this, "SetDeathDarknessLevel", par, true);
866 }
867
868 ShowDeadScreen(state, duration);
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 {
879 ShowDeadScreen(state, 0);
880 }
881 }
DayZGame g_Game
Определения DayZGame.c:4074
void LockControls(bool state)
Определения DayZPlayerImplement.c:883
override void StopDeathDarkeningEffect()
Определения DayZPlayerImplement.c:835
void ShowDeadScreen(bool show, float duration)
Определения DayZPlayerImplement.c:802
bool m_IsUnconscious
Определения DayZPlayerImplement.c:124
ref DeathEffectTimer m_DeathEffectTimer
Определения DayZPlayerImplement.c:130
static const float DEFAULT_DYING_TIME
Определения DayZPlayerImplement.c:88
static const float DYING_PROGRESSION_TIME
how long does it take to full death screen [s]
Определения DayZPlayerImplement.c:89

Перекрестные ссылки DEFAULT_DYING_TIME, DYING_PROGRESSION_TIME, g_Game, LockControls(), m_DeathEffectTimer, m_IsUnconscious, ShowDeadScreen() и StopDeathDarkeningEffect().