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

◆ SimulateDeath()

void DayZPlayer::SimulateDeath ( bool state)
inlineprotected

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

804 {
805 if (g_Game.GetMissionState() != DayZGame.MISSION_STATE_GAME)
806 return;
807
808 LockControls(state);
809
810 if (state)
811 {
812 float duration = DEFAULT_DYING_TIME;
813 if (m_KilledByHeadshot)
814 {
815 duration = 0;
816 }
817
818 if (duration > DYING_PROGRESSION_TIME && !m_IsUnconscious)
819 {
821 m_DeathEffectTimer = new DeathEffectTimer();
822
823 Param2<float,float> par = new Param2<float,float>(duration, DYING_PROGRESSION_TIME);
824 m_DeathEffectTimer.Run(DYING_PROGRESSION_TIME, this, "SetDeathDarknessLevel", par, true);
825 }
826
827 ShowDeadScreen(state, duration);
828
834 }
835 else
836 {
838 ShowDeadScreen(state, 0);
839 }
840 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native AbstractSoundScene GetSoundScene()
void LockControls(bool state)
Определения DayZPlayerImplement.c:842
override void StopDeathDarkeningEffect()
Определения DayZPlayerImplement.c:794
void ShowDeadScreen(bool show, float duration)
Определения DayZPlayerImplement.c:761
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().