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

◆ OnExplosionEffects()

override void FuelStation::OnExplosionEffects ( Object source,
Object directHit,
int componentIndex,
string surface,
vector pos,
vector surfNormal,
float energyFactor,
float explosionFactor,
bool isWater,
string ammoType )
inlineprivate

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

11 {
12 super.OnExplosionEffects(source, directHit, componentIndex, surface, pos, surfNormal, energyFactor, explosionFactor, isWater, ammoType);
13 if ( !GetGame().IsDedicatedServer() )
14 {
15 vector n = surfNormal.VectorToAngles() + "0 90 0";
16 Particle p1 = ParticleManager.GetInstance().PlayInWorld(ParticleList.SMOKE_GENERIC_WRECK, pos);
17 p1.SetOrientation(n);
18
19 Particle p2 = ParticleManager.GetInstance().PlayInWorld(ParticleList.EXPLOSION_LANDMINE, pos);
20 p2.SetOrientation(n);
21
22 Particle p3 = ParticleManager.GetInstance().PlayInWorld(ParticleList.IMPACT_METAL_RICOCHET, pos);
23 p3.SetOrientation(n);
24
25 Particle p4 = ParticleManager.GetInstance().PlayInWorld(ParticleList.IMPACT_GRAVEL_RICOCHET, pos);
26 p4.SetOrientation(n);
27 }
28 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
static Particle PlayInWorld(int particle_id, vector global_pos)
Creates a particle emitter on the given position and activates it.
Определения Particle.c:174
proto vector VectorToAngles()
Converts vector to spherical coordinates with radius = 1.
proto native CGame GetGame()

Перекрестные ссылки ParticleList::EXPLOSION_LANDMINE, GetGame(), ParticleList::IMPACT_GRAVEL_RICOCHET, ParticleList::IMPACT_METAL_RICOCHET, ParticleManager(), ParticleList::SMOKE_GENERIC_WRECK и vector::VectorToAngles().