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

◆ GetSandstormNoiseReduction()

float Weather::GetSandstormNoiseReduction ( notnull Object object)
inlineprivate

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

433 {
434 SandstormController sandstormController = GetSandstorm();
435 if (sandstormController.IsActive())
436 {
437 Man player = Man.Cast(object);
438 if (player)
439 {
440 return sandstormController.GetIntensityForPlayer(player) * GameConstants.SANDSTORM_NOISE_REDUCTION_WEIGHT;
441 }
442 else
443 {
444 return sandstormController.GetIntensity(object.GetPosition()) * GameConstants.SANDSTORM_NOISE_REDUCTION_WEIGHT;
445 }
446 }
447
448 return 0;
449 }
proto native float GetIntensity(vector worldPosition)
Returns the intensity of the sandstorm at a given position in world space. The sandstorm must be acti...
float GetIntensityForPlayer(Man player)
Returns the intensity of the sandstorm at a players head position in world space. Value is influenced...
proto native bool IsActive()
Returns whether sandstorm is currently active.
proto native Sandstorm GetSandstorm()
Returns the sandstorm phenomenon weather controller.
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки SandstormController::GetIntensity(), SandstormController::GetIntensityForPlayer(), GetPosition(), GetSandstorm(), SandstormController::IsActive() и GameConstants::SANDSTORM_NOISE_REDUCTION_WEIGHT.

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