Reset handgrenade frame when setting animation framerate to 0 to avoid leaving grenade in a 'flying' frame. Fix #238 (#458)

This commit is contained in:
Roman Chistokhodov 2024-07-04 22:59:30 +03:00 committed by GitHub
parent a4acefb25c
commit 5ca6684096
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -278,7 +278,10 @@ void CGrenade::BounceTouch( CBaseEntity *pOther )
if( pev->framerate > 1.0f )
pev->framerate = 1.0f;
else if( pev->framerate < 0.5f )
{
pev->framerate = 0.0f;
pev->frame = 0.0f;
}
}
void CGrenade::SlideTouch( CBaseEntity *pOther )