Solved Hooking fields offset HP

Status
Not open for further replies.

DieckyAwsm

Platinian
I want trying to hooking fields offset of Health for ESP but i can't find Update offset on same class, but i found direct fields offset to connecing class A > B with Update offset there

class CEnemyBase
public CConfigEnemy enemyConfig; // 0xEF8B
Update 0x1309210

class CConfigEnemy
public int health_Head; // 0xC0000

Anyone have solution for this??
 
Code:
void (*old_update)(void* instance);
void hook_update(void* instance){
    if (instance != NULL){
        void* CConfigEnemy = *(void**)((uint64_t)instance + 0xEF8B);
        if (CConfigEnemy){
            int health_Head = *(int*)((uint64_t)CConfigEnemy + 0xC0000);
        }
    }
    old_update(instance);
}
 
Code:
(*old_healthUpdate)(void *instance); 
void healthUpdateMod(void *instance) {
    if (instance != NULL) {
        if (isHealth) {
            *(float *) ((uint64_t) instance + 0x10) = 9999.8f;
        }
    }
    old_healthUpdate(instance);
}
 
Thread will be set to "solved" and closed.
When you're not happy with that just send me a message and i will re-open the thread for you.

Thanks.
 
Status
Not open for further replies.
Back
Top Bottom