Is there any way to change weapon animation speed? Specifically reload animation.
I tried setting m_flFrameRate/var_framerate in Ham_Weapon_SendWeaponAnim but it didn't work. The speed hasn't changed.
PHP Code:
// Thanks to Vaqtincha
new const g_iReloadAnims[any:WEAPON_P90 + 1] = {
-1, 5, -1, 3, -1, 6, -1, 1, 1, -1, 14, 4, 2, 3, 1, 1, 13, 7, 4, 1, 3, 6, 11, 1, 3, -1, 4, 1, 1, -1, 1
};
public hamfwd_SendWeaponAnim_Pre(pWeapon, iAnim, iSkipLocal, iBody)
{
if(!IsCustomWeapon(pWeapon))
return HAM_IGNORED;
new WeaponIdType:iId = get_member(pWeapon, m_iId);
if(iAnim == g_iReloadAnims[iId])
set_entvar(iAnim, var_framerate, 3.0); // 3x faster
return HAM_IGNORED;
}
__________________