Closed bruhmoment21 closed 4 years ago
No need to cast sig and return address to DWORD...
bool __fastcall hooks::sv_cheats_get_bool::hook(PVOID convar, int edx) {
if ((_ReturnAddress()) == cam_think)
return true;
else
return sv_cheats_get_bool_original(convar);
}
still have it. didn't fix
works fine for me using method above
lol it worked the whole time. with alphauc hooking method you could use commands that needed sv_cheats like r_drawothermodels with this hooking method you can't use them
i am trying to hook sv_cheats like this
this is what i get for hooking it. i appreciate any help!