fix aa issue
This commit is contained in:
parent
6f81c68ce9
commit
104b779f14
@ -463,7 +463,7 @@ void ProcessUserCmd(CUserCmd *cmd)
|
|||||||
angstate = !angstate;
|
angstate = !angstate;
|
||||||
if (!LOCAL_E->m_bAlivePlayer)
|
if (!LOCAL_E->m_bAlivePlayer)
|
||||||
angstate = true;
|
angstate = true;
|
||||||
if (g_pUserCmd->buttons & IN_ATTACK || g_pUserCmd->buttons & IN_ATTACK2)
|
if (lagexploit::ExploitActive() || g_pUserCmd->buttons & IN_ATTACK || g_pUserCmd->buttons & IN_ATTACK2)
|
||||||
angstate = true;
|
angstate = true;
|
||||||
*bSendPackets = angstate;
|
*bSendPackets = angstate;
|
||||||
float &p = cmd->viewangles.x;
|
float &p = cmd->viewangles.x;
|
||||||
|
@ -52,7 +52,7 @@ void AddExploitTicks(int ticks)
|
|||||||
{
|
{
|
||||||
exticks = std::max(ticks, exticks);
|
exticks = std::max(ticks, exticks);
|
||||||
}
|
}
|
||||||
|
bool active = false;
|
||||||
bool ExploitActive()
|
bool ExploitActive()
|
||||||
{
|
{
|
||||||
if (toggle)
|
if (toggle)
|
||||||
@ -65,6 +65,8 @@ bool ExploitActive()
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (active)
|
||||||
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,6 +78,7 @@ float servertime, nextattack;
|
|||||||
static int lastwep = 0;
|
static int lastwep = 0;
|
||||||
void CreateMove()
|
void CreateMove()
|
||||||
{
|
{
|
||||||
|
active = false;
|
||||||
if (CE_BAD(LOCAL_E))
|
if (CE_BAD(LOCAL_E))
|
||||||
return;
|
return;
|
||||||
if (!LOCAL_E->m_bAlivePlayer)
|
if (!LOCAL_E->m_bAlivePlayer)
|
||||||
@ -445,6 +448,7 @@ void CreateMove()
|
|||||||
}
|
}
|
||||||
if (!amount)
|
if (!amount)
|
||||||
return;
|
return;
|
||||||
|
active = true;
|
||||||
/*g_pUserCmd->command_number += amount;
|
/*g_pUserCmd->command_number += amount;
|
||||||
g_pUserCmd->hasbeenpredicted = true;
|
g_pUserCmd->hasbeenpredicted = true;
|
||||||
*(int *) ((unsigned) g_IBaseClientState + offsets::lastoutgoingcommand()) +=
|
*(int *) ((unsigned) g_IBaseClientState + offsets::lastoutgoingcommand()) +=
|
||||||
|
Reference in New Issue
Block a user