Night Owl 7 years ago
parent
commit
2b2fdac7d0
  1. 5
      dlls/rpg.cpp

5
dlls/rpg.cpp

@ -265,6 +265,11 @@ void CRpgRocket::FollowThink( void )
pev->velocity = pev->velocity * 0.2 + vecTarget * flSpeed * 0.798; pev->velocity = pev->velocity * 0.2 + vecTarget * flSpeed * 0.798;
if( pev->waterlevel == 0 && pev->velocity.Length() < 1500 ) if( pev->waterlevel == 0 && pev->velocity.Length() < 1500 )
{ {
if( m_pLauncher )
{
// my launcher is still around, tell it I'm dead.
m_pLauncher->m_cActiveRockets--;
}
Detonate(); Detonate();
} }
} }

Loading…
Cancel
Save