Update AutoBackstab.cpp
This commit is contained in:
parent
5e9c66d09f
commit
d1f2c3444e
@ -66,11 +66,11 @@ void CreateMove()
|
||||
if (!CE_GOOD(ent))
|
||||
return;
|
||||
float ent_eye = CE_FLOAT(ent, netvar.m_angEyeAngles + 4);
|
||||
float min = CE_FLOAT(LOCAL_E, netvar.m_angEyeAngles + 4) - 39.0f;
|
||||
float min = CE_FLOAT(LOCAL_E, netvar.m_angEyeAngles + 4) - 45.0f;
|
||||
float min2;
|
||||
if (min < 1.0f)
|
||||
min2 = 360.0f - min;
|
||||
float max = CE_FLOAT(LOCAL_E, netvar.m_angEyeAngles + 4) + 39.0f;
|
||||
float max = CE_FLOAT(LOCAL_E, netvar.m_angEyeAngles + 4) + 45.0f;
|
||||
float max2;
|
||||
if (max > 360.0f)
|
||||
max2 = max - 360.0f;
|
||||
@ -80,14 +80,14 @@ void CreateMove()
|
||||
{
|
||||
if (ent_eye >= max && ent_eye <= min2)
|
||||
{
|
||||
if (LOCAL_E->m_vecOrigin.DistTo(ent->m_vecOrigin) <= 67)
|
||||
if (LOCAL_E->m_vecOrigin.DistTo(ent->m_vecOrigin) <= 80)
|
||||
g_pUserCmd->buttons |= IN_ATTACK;
|
||||
}
|
||||
}
|
||||
else if (min2 && min2 < max)
|
||||
{
|
||||
if (ent_eye >= min2 && ent_eye <= max)
|
||||
if (LOCAL_E->m_vecOrigin.DistTo(ent->m_vecOrigin) <= 67)
|
||||
if (LOCAL_E->m_vecOrigin.DistTo(ent->m_vecOrigin) <= 80)
|
||||
g_pUserCmd->buttons |= IN_ATTACK;
|
||||
}
|
||||
else if (max2 && max2 < min)
|
||||
|
Reference in New Issue
Block a user