mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-09 21:44:15 +00:00
Merge 336bc05c82
This commit is contained in:
parent
004054586b
commit
2b2fdac7d0
@ -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…
x
Reference in New Issue
Block a user