mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-23 18:29:36 +01:00
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:
parent
a4acefb25c
commit
5ca6684096
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user