Everyone of you want to do sum extern nospread aimbots and triggerbots imarite?
So, what we actually need to achieve it? When we look at simple spread xy vector code we see the most important thing is random_seed,
but the randumness is actually a lie, we can even predict random_seed for n ticks by simply doing this:
random_seed = MD5_PseudoRandom( command_number + future ) & 0x7FFFFFFF;
Okay so we know this but we need command_number. command_number is part of the CUserCmd, we can rpm current CUserCmd but we need to get the address to it, here i give out findpattern code that will do everything for you:
dwTemp = ExternFindPattern( g_dwClientTextSectionBase, g_dwClientTextSectionSize, ( PBYTE )"\x33\xC0\x38\x44\x24\x04\xB9\x00\x00\x00\x00", "xxxxxxx????", 0x7 ); ReadProcessMemory( g_hProcess, ( PVOID )dwTemp, &g_dwCUserCmd, 0x4, NULL );
So, we got CUserCmd address we can now simply do this:
ReadProcessMemory( g_hProcess, ( PVOID )( g_dwCUserCmd + 0xCC ), &command_number, 4, NULL );
DWORD dwWeapon = g_pFuncs->GetEntityByHandle( g_pLocalPlayer->m_hWeapon ); DWORD dwModel; ReadProcessMemory( g_hProcess, ( PVOID )( dwWeapon + 0x5C ), &dwModel, 4, NULL ); char szWeaponName[32]; ReadProcessMemory( g_hProcess, ( PVOID )( dwModel + 0x14 ), &szWeaponName, 32, NULL ); szWeaponName[32] = 0x00; if( strstr( szWeaponName, "deagle" ) ) return WEAPON_DEAGLE; ...
Comment