Solution for bugged weapon animation.

This commit is contained in:
Night Owl 2017-02-10 01:02:16 +05:00
parent 5171dfb729
commit d2257de3bf
2 changed files with 3 additions and 1 deletions

View File

@ -492,7 +492,7 @@ void CXenSquasher::WeaponIdle(void)
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + (93.0f / 30.0f); m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + (93.0f / 30.0f);
} }
return; //return;
SendWeaponAnim(iAnim); SendWeaponAnim(iAnim);
} }

View File

@ -654,6 +654,8 @@ void CWorld::Precache( void )
CVAR_SET_FLOAT( "mp_defaultteam", 0 ); CVAR_SET_FLOAT( "mp_defaultteam", 0 );
} }
CVAR_SET_FLOAT( "cl_lw", 0 ); //Temporary solution for weapon animation.
// g-cont. moved here so cheats will working on restore level // g-cont. moved here so cheats will working on restore level
g_flWeaponCheat = CVAR_GET_FLOAT( "sv_cheats" ); // Is the impulse 101 command allowed? g_flWeaponCheat = CVAR_GET_FLOAT( "sv_cheats" ); // Is the impulse 101 command allowed?
} }