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

◆ GenerateCarHornAINoise()

void GenerateCarHornAINoise ( int pState)
protected

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

2760 {
2761 if (pState != ECarHornState.OFF)
2762 {
2764 {
2765 float noiseMultiplier = 1.0;
2766 if (pState == ECarHornState.LONG)
2767 noiseMultiplier = 2.0;
2768
2769 noiseMultiplier *= NoiseAIEvaluate.GetNoiseReduction(GetGame().GetWeather());
2770
2771 m_NoiseSystem.AddNoiseTarget(GetPosition(), 5, m_NoisePar, noiseMultiplier);
2772 }
2773 }
2774 }
ref NoiseParams m_NoisePar
Определения ActionOpenDoors.c:94
NoiseSystem m_NoiseSystem
Определения CarScript.c:229
static float GetNoiseReduction(Weather weather)
Определения SensesAIEvaluate.c:18
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

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

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