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

◆ PlayCatchNoise()

void ItemBase::PlayCatchNoise ( YieldItemBase yItem)
inlineprotected

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

640 {
641 string noiseType = yItem.GetCatchAINoise();
642 if (noiseType == "")
643 return;
644
646 m_NoisePar.Load(noiseType);
647 float noiseMultiplier = yItem.GetCatchAINoiseBaseStrength();
648 noiseMultiplier *= NoiseAIEvaluate.GetNoiseReduction(g_Game.GetWeather());
649 g_Game.GetNoiseSystem().AddNoiseTarget(m_PreyPos, 5, m_NoisePar, noiseMultiplier);
650 }
ref NoiseParams m_NoisePar
Определения ActionOpenDoors.c:94
DayZGame g_Game
Определения DayZGame.c:3942
class NoiseSystem NoiseParams()
Определения Noise.c:15
vector m_PreyPos
Определения TrapSpawnBase.c:31
string GetCatchAINoise()
Определения CatchYieldItemBase.c:86
float GetCatchAINoiseBaseStrength()
Определения CatchYieldItemBase.c:91

Перекрестные ссылки g_Game, YieldItemBase::GetCatchAINoise(), YieldItemBase::GetCatchAINoiseBaseStrength(), NoiseAIEvaluate::GetNoiseReduction(), m_NoisePar, m_PreyPos и NoiseParams().

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