void AutoStrafe(CUserCmd* pCmd, CBaseEntity* pLocal)
{
if (pLocal->GetMoveType() == MOVETYPE_LADDER || pLocal->GetMoveType() == MOVETYPE_NOCLIP)
return;
if (pLocal->GetFlags() & FL_ONGROUND)
return;
static CConVar* cl_sidespeed = I::ConVar->FindVar(XorStr("cl_sidespeed"));
if (cl_sidespeed == nullptr)
return;
pCmd->flSideMove = pCmd->sMouseDeltaX < 0 ? -cl_sidespeed->GetFloat() : cl_sidespeed->GetFloat();
}