mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-26 06:44:18 +00:00
game: grenade trail fix
This commit is contained in:
parent
b525e49d6f
commit
448b353844
@ -155,9 +155,10 @@ void CGrenadeFrag::OnRestore( void )
|
|||||||
void CGrenadeFrag::CreateEffects( void )
|
void CGrenadeFrag::CreateEffects( void )
|
||||||
{
|
{
|
||||||
// Start up the eye glow
|
// Start up the eye glow
|
||||||
m_pMainGlow = CSprite::SpriteCreate( "sprites/redglow1.vmt", GetLocalOrigin(), false );
|
if( !m_pMainGlow )
|
||||||
|
m_pMainGlow = CSprite::SpriteCreate( "sprites/redglow1.vmt", GetLocalOrigin(), false );
|
||||||
|
|
||||||
int nAttachment = LookupAttachment( "fuse" );
|
int nAttachment = LookupAttachment( "fuse" );
|
||||||
|
|
||||||
if ( m_pMainGlow != NULL )
|
if ( m_pMainGlow != NULL )
|
||||||
{
|
{
|
||||||
@ -169,7 +170,8 @@ void CGrenadeFrag::CreateEffects( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start up the eye trail
|
// Start up the eye trail
|
||||||
m_pGlowTrail = CSpriteTrail::SpriteTrailCreate( "sprites/bluelaser1.vmt", GetLocalOrigin(), false );
|
if( !m_pGlowTrail )
|
||||||
|
m_pGlowTrail = CSpriteTrail::SpriteTrailCreate( "sprites/bluelaser1.vmt", GetLocalOrigin(), false );
|
||||||
|
|
||||||
if ( m_pGlowTrail != NULL )
|
if ( m_pGlowTrail != NULL )
|
||||||
{
|
{
|
||||||
@ -450,4 +452,4 @@ bool Fraggrenade_WasCreatedByCombine( const CBaseEntity *pEntity )
|
|||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user