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

◆ BloodSplatGround()

void Hit_MeatBones::BloodSplatGround ( vector start_pos,
vector speed_vector,
float decay_coef )
inlineprivate

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

69 {
70 vector pos = start_pos;
71 float power = m_StoppingForce;
72 float upscale = 1;
73 float rnd_offset = 0.5;
74 float rnd_offset_2 = rnd_offset * 0.5;
75
76 while (power > 200)
77 {
78 pos = pos + ( speed_vector * 0.001 );
79 pos = pos + Vector( rnd_offset_2 - Math.RandomFloat( 0, rnd_offset ), 0, rnd_offset_2 - Math.RandomFloat( 0, rnd_offset ) );
80 pos[1] = g_Game.SurfaceY(pos[0], pos[2]);
81
82 EffectParticle eff = new BloodSplatter();
83 eff.SetAutodestroy(true);
84 SEffectManager.PlayInWorld(eff, pos);
85
86 Particle blood = eff.GetParticle(); // TO DO: Handle particle changes inside the Effect instance itself! Not here!
87
88 vector ori = g_Game.GetSurfaceOrientation(pos[0], pos[2]);
89
90 blood.SetOrientation(ori);
91 blood.ScaleParticleParam(EmitorParam.SIZE, upscale);
92
93 Particle blood_chunks = ParticleManager.GetInstance().PlayInWorld(ParticleList.BLOOD_SURFACE_CHUNKS, pos);
94 blood_chunks.SetOrientation(ori);
95
96 power = power * decay_coef;
97 upscale = upscale + Math.RandomFloat(0.1, 1);
98
100 }
101 }
DayZGame g_Game
Определения DayZGame.c:3942
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
float m_StoppingForce
Определения BulletImpactBase.c:10
Particle GetParticle()
Gets the main particle which this Effect is managing.
Определения EffectParticle.c:162
void EffectParticle()
ctor
Определения EffectParticle.c:34
void BloodSplatWall()
Определения Hit_MeatBones.c:103
void ScaleParticleParam(int parameter_id, float coef)
Scales the given parameter on all emitors relatively to their CURRENT value.
Определения Particle.c:697
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
EmitorParam
Определения EnVisual.c:114

Перекрестные ссылки ParticleList::BLOOD_SURFACE_CHUNKS, BloodSplatWall(), EffectParticle::EffectParticle(), g_Game, EffectParticle::GetParticle(), EffBulletImpactBase::m_StoppingForce, ParticleManager(), SEffectManager::PlayInWorld(), Math::RandomFloat(), Particle::ScaleParticleParam() и Vector().

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