mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-11 19:29:08 +00:00
add source-sdk-2013
This commit is contained in:
+6
-5
@@ -520,9 +520,9 @@ CSmartPtr<CSimpleEmitter> FX_Smoke( const Vector &origin, const Vector &velocity
|
||||
pParticle->m_flLifetime = 0.0f;
|
||||
pParticle->m_flDieTime = flDietime;
|
||||
pParticle->m_vecVelocity = velocity;
|
||||
for( int j = 0; j < 3; ++j )
|
||||
for( int i = 0; i < 3; ++i )
|
||||
{
|
||||
pParticle->m_uchColor[j] = pColor[j];
|
||||
pParticle->m_uchColor[i] = pColor[i];
|
||||
}
|
||||
pParticle->m_uchStartAlpha = iAlpha;
|
||||
pParticle->m_uchEndAlpha = 0;
|
||||
@@ -673,10 +673,10 @@ public:
|
||||
|
||||
// Randomize the color a little
|
||||
int color[3][2];
|
||||
for( int j = 0; j < 3; ++j )
|
||||
for( int i = 0; i < 3; ++i )
|
||||
{
|
||||
color[j][0] = MAX( 0, m_SpurtColor[j] - 64 );
|
||||
color[j][1] = MIN( 255, m_SpurtColor[j] + 64 );
|
||||
color[i][0] = MAX( 0, m_SpurtColor[i] - 64 );
|
||||
color[i][1] = MIN( 255, m_SpurtColor[i] + 64 );
|
||||
}
|
||||
pParticle->m_uchColor[0] = random->RandomInt( color[0][0], color[0][1] );
|
||||
pParticle->m_uchColor[1] = random->RandomInt( color[1][0], color[1][1] );
|
||||
@@ -1087,6 +1087,7 @@ void FX_Tesla( const CTeslaInfo &teslaInfo )
|
||||
{
|
||||
// Move it towards the camera
|
||||
Vector vecFlash = tr.endpos;
|
||||
Vector vecForward;
|
||||
AngleVectors( MainViewAngles(), &vecForward );
|
||||
vecFlash -= (vecForward * 8);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user