mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-16 05:37:00 +00:00
add source-sdk-2013
This commit is contained in:
@@ -173,18 +173,18 @@ void TE_BloodStream( IRecipientFilter& filter, float delay,
|
||||
// 'chunkier' appearance.
|
||||
for (count2 = 0; count2 < 2; count2++)
|
||||
{
|
||||
StandardParticle_t *pChunky = pRen->AddParticle();
|
||||
if( pChunky )
|
||||
StandardParticle_t *p = pRen->AddParticle();
|
||||
if(p)
|
||||
{
|
||||
pRen->SetParticleLifetime( pChunky, 3);
|
||||
pChunky->SetColor(random->RandomFloat(0.7, 1.0), g, b);
|
||||
pChunky->SetAlpha(a);
|
||||
pChunky->m_Pos.Init(
|
||||
pRen->SetParticleLifetime(p, 3);
|
||||
p->SetColor(random->RandomFloat(0.7, 1.0), g, b);
|
||||
p->SetAlpha(a);
|
||||
p->m_Pos.Init(
|
||||
(*org)[0] + random->RandomFloat(-1,1),
|
||||
(*org)[1] + random->RandomFloat(-1,1),
|
||||
(*org)[2] + random->RandomFloat(-1,1));
|
||||
|
||||
pRen->SetParticleType( pChunky, pt_vox_slowgrav);
|
||||
pRen->SetParticleType(p, pt_vox_slowgrav);
|
||||
|
||||
VectorCopy (dir, dirCopy);
|
||||
|
||||
@@ -192,7 +192,7 @@ void TE_BloodStream( IRecipientFilter& filter, float delay,
|
||||
|
||||
VectorScale (dirCopy, num, dirCopy);// randomize a bit
|
||||
|
||||
pChunky->m_Velocity = dirCopy * speedCopy;
|
||||
p->m_Velocity = dirCopy * speedCopy;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user