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

◆ GenerateCarHornAINoise()

void Car::GenerateCarHornAINoise ( int pState)
inlineprotected

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

3080 {
3081 if (pState != ECarHornState.OFF)
3082 {
3084 {
3085 float noiseMultiplier = 1.0;
3086 if (pState == ECarHornState.LONG)
3087 noiseMultiplier = 2.0;
3088
3089 noiseMultiplier *= NoiseAIEvaluate.GetNoiseReduction(g_Game.GetWeather());
3090
3091 m_NoiseSystem.AddNoiseTarget(GetPosition(), 5, m_NoisePar, noiseMultiplier);
3092 }
3093 }
3094 }
DayZGame g_Game
Определения DayZGame.c:3942
NoiseSystem m_NoiseSystem
Определения CarScript.c:266
ref NoiseParams m_NoisePar
Определения CarScript.c:265
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки g_Game, NoiseAIEvaluate::GetNoiseReduction(), GetPosition(), m_NoisePar и m_NoiseSystem.

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