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

◆ SimulateDeath()

void DayZPlayer::SimulateDeath ( bool state)
inlineprotected

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

812 {
813 if (g_Game.GetMissionState() != DayZGame.MISSION_STATE_GAME)
814 return;
815
816 LockControls(state);
817
818 if (state)
819 {
820 float duration = DEFAULT_DYING_TIME;
821 if (m_KilledByHeadshot)
822 {
823 duration = 0;
824 }
825
826 if (duration > DYING_PROGRESSION_TIME && !m_IsUnconscious)
827 {
829 m_DeathEffectTimer = new DeathEffectTimer();
830
831 Param2<float,float> par = new Param2<float,float>(duration, DYING_PROGRESSION_TIME);
832 m_DeathEffectTimer.Run(DYING_PROGRESSION_TIME, this, "SetDeathDarknessLevel", par, true);
833 }
834
835 ShowDeadScreen(state, duration);
836
842 }
843 else
844 {
846 ShowDeadScreen(state, 0);
847 }
848 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native AbstractSoundScene GetSoundScene()
void LockControls(bool state)
Определения DayZPlayerImplement.c:850
override void StopDeathDarkeningEffect()
Определения DayZPlayerImplement.c:802
void ShowDeadScreen(bool show, float duration)
Определения DayZPlayerImplement.c:769
bool m_IsUnconscious
Определения DayZPlayerImplement.c:148
ref DeathEffectTimer m_DeathEffectTimer
Определения DayZPlayerImplement.c:154
static const float DEFAULT_DYING_TIME
Определения DayZPlayerImplement.c:112
static const float DYING_PROGRESSION_TIME
how long does it take to full death screen [s]
Определения DayZPlayerImplement.c:113
proto native CGame GetGame()
proto native void SetSoundVolume(float vol, float time)
proto native void SetSpeechExVolume(float vol, float time)
proto native void SetVOIPVolume(float vol, float time)
proto native void SetRadioVolume(float vol, float time)
proto native void SetMusicVolume(float vol, float time)

Перекрестные ссылки DEFAULT_DYING_TIME, DYING_PROGRESSION_TIME, g_Game, GetGame(), CGame::GetSoundScene(), LockControls(), m_DeathEffectTimer, m_IsUnconscious, AbstractSoundScene::SetMusicVolume(), AbstractSoundScene::SetRadioVolume(), AbstractSoundScene::SetSoundVolume(), AbstractSoundScene::SetSpeechExVolume(), AbstractSoundScene::SetVOIPVolume(), ShowDeadScreen() и StopDeathDarkeningEffect().