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

◆ ExplosionEffectsEx()

void CGame::ExplosionEffectsEx ( Object source,
Object directHit,
int componentIndex,
float energyFactor,
float explosionFactor,
HitInfo hitInfo )
inlineprotected

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

3471 {
3472 vector pos = hitInfo.GetPosition();
3473 string ammoType = hitInfo.GetAmmoType();
3474
3475 // Call legacy method
3476 ExplosionEffects(source, directHit, componentIndex, hitInfo.GetSurface(), pos, hitInfo.GetSurfaceNormal(), energyFactor, explosionFactor, hitInfo.IsWater(), ammoType);
3477
3478 // add explosion noise
3479 if (IsServer())
3480 {
3481 //NoiseParams npar = new NoiseParams();
3482 m_NoiseParams.LoadFromPath(string.Format("cfgAmmo %1 NoiseExplosion", ammoType));
3483
3484 float multiplier = hitInfo.GetSurfaceNoiseMultiplier();
3485 if (multiplier == 0)
3486 multiplier = 1;
3487
3488 GetNoiseSystem().AddNoiseTarget(pos, 21, m_NoiseParams, multiplier * g_Game.GetWeather().GetNoiseReductionByWeather());
3489 }
3490 }
DayZGame g_Game
Определения DayZGame.c:3942
proto native NoiseSystem GetNoiseSystem()
static ref NoiseParams m_NoiseParams
Определения DayZGame.c:984
proto native bool IsServer()
void ExplosionEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
Определения DayZGame.c:3493
proto native vector GetPosition()
proto native string GetAmmoType()
proto native bool IsWater()
proto native string GetSurface()
proto native vector GetSurfaceNormal()
proto native float GetSurfaceNoiseMultiplier()
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'.

Перекрестные ссылки NoiseSystem::AddNoiseTarget(), ExplosionEffects(), g_Game, HitInfo::GetAmmoType(), GetNoiseSystem(), HitInfo::GetPosition(), HitInfo::GetSurface(), HitInfo::GetSurfaceNoiseMultiplier(), HitInfo::GetSurfaceNormal(), IsServer(), HitInfo::IsWater() и m_NoiseParams.