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

◆ ExplosionEffectsEx()

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

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

3397 {
3398 vector pos = hitInfo.GetPosition();
3399 string ammoType = hitInfo.GetAmmoType();
3400
3401 // Call legacy method
3402 ExplosionEffects(source, directHit, componentIndex, hitInfo.GetSurface(), pos, hitInfo.GetSurfaceNormal(), energyFactor, explosionFactor, hitInfo.IsWater(), ammoType);
3403
3404 // add explosion noise
3405 if (IsServer())
3406 {
3407 //NoiseParams npar = new NoiseParams();
3408 m_NoiseParams.LoadFromPath(string.Format("cfgAmmo %1 NoiseExplosion", ammoType));
3409
3410 float multiplier = hitInfo.GetSurfaceNoiseMultiplier();
3411 if (multiplier == 0)
3412 multiplier = 1;
3413
3414 GetNoiseSystem().AddNoiseTarget(pos, 21, m_NoiseParams, multiplier * GetGame().GetWeather().GetNoiseReductionByWeather());
3415 }
3416 }
proto native NoiseSystem GetNoiseSystem()
static ref NoiseParams m_NoiseParams
Определения DayZGame.c:982
proto native bool IsServer()
proto native Weather GetWeather()
Returns weather controller object.
void ExplosionEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
Определения DayZGame.c:3419
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'.
proto native CGame GetGame()

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