add source-sdk-2013

This commit is contained in:
nillerusr
2022-03-01 23:00:42 +03:00
parent 88b8830e8b
commit edc8d6c584
3288 changed files with 3731 additions and 1062455 deletions
+6 -5
View File
@@ -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);