-
Автор темы
- #1
hook:
int __fastcall hkGetBool(ConVar* thisptr, void* edx) {
static tGetBool oGetBool = (tGetBool)Hooks::ConVarVMT->GetOriginal(13);
static void* cameraThink = Utils::PatternScan("client.dll", "85 C0 75 30 38 86");
if (_ReturnAddress() == cameraThink && config.visuals.effects.thirdperson->get())
return 1;
return oGetBool(thisptr, edx);
}
Код:
ConVarVMT->Hook(13, hkGetBool);
ConVarVMT = new VMT(CVar);