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

◆ IsSandstormActiveForPlayer()

bool IsSandstormActiveForPlayer ( PlayerBase player)
protected

Active sandstorm at the player's position. Uses the per-player intensity so the shelter/underground fade the sandstorm system already applies is respected.

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

736 {
737 if (!player || !g_Game)
738 return false;
739
740 Weather weather = g_Game.GetWeather();
741 if (!weather)
742 return false;
743
745 if (!sandstorm || !sandstorm.IsActive())
746 return false;
747
748 float intensity = sandstorm.GetIntensity(player.GetPosition());
749 return intensity > SANDSTORM_NVG_THRESHOLD;
750 }
DayZGame g_Game
Определения DayZGame.c:4074
const float SANDSTORM_NVG_THRESHOLD
Определения DayZPlayerCamera_Base.c:92
proto native float GetIntensity(vector worldPosition)
Returns the intensity of the sandstorm at a given position in world space. The sandstorm must be acti...
proto native bool IsActive()
Returns whether sandstorm is currently active.
proto native Sandstorm GetSandstorm()
Returns the sandstorm phenomenon weather controller.
Определения Weather.c:168

Перекрестные ссылки g_Game, SandstormController::GetIntensity(), Weather::GetSandstorm(), SandstormController::IsActive() и SANDSTORM_NVG_THRESHOLD.

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