AutoHeal + AntiAim, close #227
This commit is contained in:
parent
5f78c68a76
commit
be7e42b977
@ -305,9 +305,11 @@ void CreateMove() {
|
|||||||
CachedEntity* target = ENTITY(m_iCurrentHealingTarget);
|
CachedEntity* target = ENTITY(m_iCurrentHealingTarget);
|
||||||
Vector out;
|
Vector out;
|
||||||
GetHitbox(target, 7, out);
|
GetHitbox(target, 7, out);
|
||||||
AimAt(g_pLocalPlayer->v_Eye, out, g_pUserCmd);
|
if (m_iNewTarget || !(g_GlobalVars->tickcount % 300)) {
|
||||||
if (silent) g_pLocalPlayer->bUseSilentAngles = true;
|
if (silent) g_pLocalPlayer->bUseSilentAngles = true;
|
||||||
if (!m_iNewTarget && (g_GlobalVars->tickcount % 300)) g_pUserCmd->buttons |= IN_ATTACK;
|
AimAt(g_pLocalPlayer->v_Eye, out, g_pUserCmd);
|
||||||
|
g_pUserCmd->buttons |= IN_ATTACK;
|
||||||
|
}
|
||||||
if (IsVaccinator() && CE_GOOD(target) && auto_vacc) {
|
if (IsVaccinator() && CE_GOOD(target) && auto_vacc) {
|
||||||
int opt = OptimalResistance(target, &pop);
|
int opt = OptimalResistance(target, &pop);
|
||||||
if (!pop && opt != -1) SetResistance(opt);
|
if (!pop && opt != -1) SetResistance(opt);
|
||||||
|
Reference in New Issue
Block a user