Browse Source

game: grenade trail fix

pull/100/head
SanyaSho 2 years ago
parent
commit
448b353844
  1. 8
      game/server/hl2/grenade_frag.cpp

8
game/server/hl2/grenade_frag.cpp

@ -155,9 +155,10 @@ void CGrenadeFrag::OnRestore( void ) @@ -155,9 +155,10 @@ void CGrenadeFrag::OnRestore( void )
void CGrenadeFrag::CreateEffects( void )
{
// 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 )
{
@ -169,7 +170,8 @@ void CGrenadeFrag::CreateEffects( void ) @@ -169,7 +170,8 @@ void CGrenadeFrag::CreateEffects( void )
}
// 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 )
{

Loading…
Cancel
Save