_declspec(noinline)void hooks::updateclientsideanimation_detour(player_t* player)
{
if (g_ctx.globals.updating_animation)
return ((UpdateClientSideAnimationFn)original_updateclientsideanimation)(player);
if (player == g_ctx.local())
return ((UpdateClientSideAnimationFn)original_updateclientsideanimation)(player);
if (!g_cfg.ragebot.enable && !g_cfg.legitbot.enabled)
return ((UpdateClientSideAnimationFn)original_updateclientsideanimation)(player);
if (!player->valid(false, false))
return ((UpdateClientSideAnimationFn)original_updateclientsideanimation)(player);
}