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

◆ GetNoiseReductionByWeatherEx()

float Weather::GetNoiseReductionByWeatherEx ( notnull Object object)
inlineprivate

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

409 {
410 float rainReduction = GetRainNoiseReduction();
411 float snowfallReduction = GetSnowfallNoiseReduction();
412 float sandstormReduction = GetSandstormNoiseReduction(object);
413
414 // If all reductions are zero, return 1 (no reduction)
415 if (rainReduction == 0 && snowfallReduction == 0 && sandstormReduction == 0)
416 return 1;
417
418 float maxReduction = Math.Max(rainReduction, Math.Max(snowfallReduction, sandstormReduction));
419 return 1 - maxReduction;
420 }
float GetSnowfallNoiseReduction()
Определения Weather.c:427
float GetRainNoiseReduction()
Определения Weather.c:422
float GetSandstormNoiseReduction(notnull Object object)
Определения Weather.c:432

Перекрестные ссылки GetRainNoiseReduction(), GetSandstormNoiseReduction(), GetSnowfallNoiseReduction() и Math::Max().

Используется в NoiseAIEvaluate::GetNoiseReductionEx().