Found this code that is a "new" aim assist/ lazy aim, it drops the sensitivity whenever an enemy is aimed at (much like games on console)
Code:
const DWORD LocalPlayer = 0xa74c9c
const DWORD EntityList = 0x4a16bd4;
const DWORD m_iCrossHairID = 0x2410;
const DWORD SensivityAddress = 0xA7A434;
const DWORD m_iTeamNum = 0xF0;
const DWORD EntitySize = 0x10;
const DWORD m_fFlags = 0x100;
float GetSens()
{
DWORD PlayerBase = GetLocal();
if (PlayerBase)
{
float result;
memmove(&result, (float*)(DW_Client + SensivityAddress), sizeof(float));
return result;
}
}
void SetSens(float x)
{
DWORD PlayerBase = GetLocal();
if (PlayerBase)
{
memmove((float*)(DW_Client + SensivityAddress), &x, sizeof(float));
}
}
void SensDemo()
{
float OrigSens = NULL;
while (OrigSens == NULL)
OrigSens = GetSens();
while (true)
{
int InCross = GetInCross();
if (InCross < 64 && InCross > 0 && GetTeamNum(InCross - 1) != GetTeamNum())
SetSens((OrigSens*0.5));
if (InCross == NULL && GetSens() != OrigSens)
SetSens(OrigSens);
Sleep(1);
}
}
I know this is to be compiled in something like Visual Studio but not entirely sure what to do with it.
From experience the const DWORD looks like it is VB.net style of coding but I could be completely wrong. Would anyone mind helping me with this or releasing something with this?