mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-05-07 12:48:11 +00:00
game: grenade trail fix
This commit is contained in:
parent
b525e49d6f
commit
448b353844
@ -155,6 +155,7 @@ void CGrenadeFrag::OnRestore( void )
|
|||||||
void CGrenadeFrag::CreateEffects( void )
|
void CGrenadeFrag::CreateEffects( void )
|
||||||
{
|
{
|
||||||
// Start up the eye glow
|
// Start up the eye glow
|
||||||
|
if( !m_pMainGlow )
|
||||||
m_pMainGlow = CSprite::SpriteCreate( "sprites/redglow1.vmt", GetLocalOrigin(), false );
|
m_pMainGlow = CSprite::SpriteCreate( "sprites/redglow1.vmt", GetLocalOrigin(), false );
|
||||||
|
|
||||||
int nAttachment = LookupAttachment( "fuse" );
|
int nAttachment = LookupAttachment( "fuse" );
|
||||||
@ -169,6 +170,7 @@ void CGrenadeFrag::CreateEffects( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start up the eye trail
|
// Start up the eye trail
|
||||||
|
if( !m_pGlowTrail )
|
||||||
m_pGlowTrail = CSpriteTrail::SpriteTrailCreate( "sprites/bluelaser1.vmt", GetLocalOrigin(), false );
|
m_pGlowTrail = CSpriteTrail::SpriteTrailCreate( "sprites/bluelaser1.vmt", GetLocalOrigin(), false );
|
||||||
|
|
||||||
if ( m_pGlowTrail != NULL )
|
if ( m_pGlowTrail != NULL )
|
||||||
|
Loading…
Reference in New Issue
Block a user