Browse Source

Fix toad viewmodel animation.

half-secret
Andrey Akhmichin 5 years ago
parent
commit
41024d8d37
  1. 8
      dlls/squeakgrenade.cpp

8
dlls/squeakgrenade.cpp

@ -35,6 +35,7 @@ enum w_squeak_e
enum squeak_e enum squeak_e
{ {
SQUEAK_IDLE1 = 0, SQUEAK_IDLE1 = 0,
SQUEAK_IDLE2,
SQUEAK_FIDGETFIT, SQUEAK_FIDGETFIT,
SQUEAK_FIDGETNIP, SQUEAK_FIDGETNIP,
SQUEAK_DOWN, SQUEAK_DOWN,
@ -565,11 +566,16 @@ void CSqueak::WeaponIdle( void )
int iAnim; int iAnim;
float flRand = UTIL_SharedRandomFloat( m_pPlayer->random_seed, 0, 1 ); float flRand = UTIL_SharedRandomFloat( m_pPlayer->random_seed, 0, 1 );
if( flRand <= 0.75f ) if( flRand <= 0.625f )
{ {
iAnim = SQUEAK_IDLE1; iAnim = SQUEAK_IDLE1;
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 30.0f / 16.0f * 2.0f; m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 30.0f / 16.0f * 2.0f;
} }
else if( flRand <= 0.75f )
{
iAnim = SQUEAK_IDLE2;
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 30.0f / 16.0f * 2.0f;
}
else if( flRand <= 0.875f ) else if( flRand <= 0.875f )
{ {
iAnim = SQUEAK_FIDGETFIT; iAnim = SQUEAK_FIDGETFIT;

Loading…
Cancel
Save