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

◆ ExplosionEffectsEx()

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

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

3601 {
3602 vector pos = hitInfo.GetPosition();
3603 string ammoType = hitInfo.GetAmmoType();
3604
3605 // Call legacy method
3606 ExplosionEffects(source, directHit, componentIndex, hitInfo.GetSurface(), pos, hitInfo.GetSurfaceNormal(), energyFactor, explosionFactor, hitInfo.IsWater(), ammoType);
3607
3608 // add explosion noise
3609 if (IsServer())
3610 {
3611 //NoiseParams npar = new NoiseParams();
3612 m_NoiseParams.LoadFromPath(string.Format("cfgAmmo %1 NoiseExplosion", ammoType));
3613
3614 float multiplier = hitInfo.GetSurfaceNoiseMultiplier();
3615 if (multiplier == 0)
3616 multiplier = 1;
3617
3618 GetNoiseSystem().AddNoiseTarget(pos, 21, m_NoiseParams, multiplier);
3619 }
3620 }
string ammoType
Определения DustKickupEffects.c:24
proto native NoiseSystem GetNoiseSystem()
static ref NoiseParams m_NoiseParams
Определения DayZGame.c:1005
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:3623
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(), ammoType, ExplosionEffects(), HitInfo::GetAmmoType(), GetNoiseSystem(), HitInfo::GetPosition(), HitInfo::GetSurface(), HitInfo::GetSurfaceNoiseMultiplier(), HitInfo::GetSurfaceNormal(), IsServer(), HitInfo::IsWater() и m_NoiseParams.