DayZ 1.28
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 строка 1524

1525 {
1526 switch (ctrl)
1527 {
1528 case CarSoundCtrl.ENGINE:
1529 if (!m_EngineStarted)
1530 {
1531 return 0.0;
1532 }
1533 break;
1534 }
1535
1536 return oldValue;
1537 }
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
Определения Car.c:4
bool m_EngineStarted
Определения CarScript.c:268

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