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

◆ HandleBlinking()

void EntityLightSource::HandleBlinking ( float time)
inlineprivate

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

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

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

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