HHIDE_DUMP
Гость
H
HHIDE_DUMP
Гость
Код:
mov ecx, offset off_10D50348
push 0
push offset aShowTrajectory ; "Show trajectory of a grenade when pin i"...
push 84000h
push offset unk_10ADBB34
push offset aClGrenadeprevi ; "cl_grenadepreview"
call sub_108F7C70
push offset sub_10A87730 ; void (__cdecl *)()
Код:
DWORD cl_grenadepreview = 0xD50348;
void GrenadePreview(bool value) {
DWORD xored = value ^ (DWORD)(client->GetImage() + cl_grenadepreview);
mem->Write<DWORD>(client->GetImage() + cl_grenadepreview + 0x30, xored);
}
Код:
if (cfg->GrenadePrediction)
GrenadePreview(TRUE);
else
GrenadePreview(FALSE);