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

◆ OnSound()

override float Car::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Gets called every sound simulation step. In this callback, user can modify behaviour of sound controllers The higher the return value is the more muted sound is.

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

1655 {
1656 switch (ctrl)
1657 {
1658 case CarSoundCtrl.ENGINE:
1659 if (!m_EngineStarted)
1660 {
1661 return 0.0;
1662 }
1663 break;
1664 }
1665
1666 return oldValue;
1667 }
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
Определения Car.c:4
bool m_EngineStarted
Определения CarScript.c:275

Перекрестные ссылки m_EngineStarted.