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

◆ HandleBlinking()

void EntityLightSource::HandleBlinking ( float time)
inlineprivate

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

739 {
740 if ( m_BlinkingSpeed <= 0 )
741 return;
742
743 float multiplier;
744
745 multiplier = Math.Sin(time * 0.001 * m_BlinkingSpeed); // Oscillate the multiplier overtime (time normalized to sec)
746 multiplier = (multiplier + 1)/2; // Normalized the value to 0-1
747
748 multiplier = Math.Round(multiplier); // Rounding to 0 or 1 to make it blink instantly
749 SetBrightness(m_Brightness * multiplier);
750 }
float m_Brightness
Определения ScriptedLightBase.c:18
float m_BlinkingSpeed
Определения ScriptedLightBase.c:31

Перекрестные ссылки m_BlinkingSpeed, m_Brightness, Math::Round() и Math::Sin().

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