This commit is contained in:
Night Owl 2017-07-17 10:04:33 +05:00
parent 004054586b
commit 2b2fdac7d0

View File

@ -265,6 +265,11 @@ void CRpgRocket::FollowThink( void )
pev->velocity = pev->velocity * 0.2 + vecTarget * flSpeed * 0.798;
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();
}
}