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

◆ PlayCatchNoise()

void ItemBase::PlayCatchNoise ( YieldItemBase yItem)
inlineprotected

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

610 {
612 string noiseType = yItem.GetCatchAINoise();
613 if (noiseType == "")
614 return;
615
616 m_NoisePar.Load(noiseType);
617 float noiseMultiplier = yItem.GetCatchAINoiseBaseStrength();
618 noiseMultiplier *= NoiseAIEvaluate.GetNoiseReduction(GetGame().GetWeather());
619 GetGame().GetNoiseSystem().AddNoiseTarget(m_PreyPos, 5, m_NoisePar, noiseMultiplier);
620 }
ref NoiseParams m_NoisePar
Определения ActionOpenDoors.c:94
class NoiseSystem NoiseParams()
Определения Noise.c:15
proto native NoiseSystem GetNoiseSystem()
vector m_PreyPos
Определения TrapSpawnBase.c:31
proto void AddNoiseTarget(vector pos, float lifetime, NoiseParams noise_params, float external_strength_multiplier=1.0)
Will make a noise at that position which the AI will "see" for the duration of 'lifetime'.
string GetCatchAINoise()
Определения CatchYieldItemBase.c:86
float GetCatchAINoiseBaseStrength()
Определения CatchYieldItemBase.c:91
proto native CGame GetGame()

Перекрестные ссылки NoiseSystem::AddNoiseTarget(), YieldItemBase::GetCatchAINoise(), YieldItemBase::GetCatchAINoiseBaseStrength(), GetGame(), NoiseAIEvaluate::GetNoiseReduction(), CGame::GetNoiseSystem(), m_NoisePar, m_PreyPos и NoiseParams().

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