if ( config->misc.staticlegs2)
{
static auto alpha = 1.0f;
static auto switch_alpha = false;
if (alpha <= 0.0f || alpha >= 1.0f)
switch_alpha = !switch_alpha;
alpha += switch_alpha ? 1.75f * memory->globalVars->frametime : -1.75f * memory->globalVars->frametime;
alpha = std::clamp(alpha, 0.0f, 1.0f);
if (switch_alpha)
{
localPlayer->poseParameters()[6] = 1f;
localPlayer->poseParameters()[0] = 1f;
}
else if (!switch_alpha)
{
localPlayer->poseParameters()[0] = -1f;
localPlayer->poseParameters()[6] = 1f;
}
}