This is the AMP version of this page.
If you want to load the real page instead, click this text.

Solved Hooking fields offset HP

Status
Not open for further replies.

DieckyAwsm

Platinian
Original poster
Feb 23, 2022
22
3
3
27
Indonesia
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??
 

xuser

Platinian
Jun 29, 2018
5
0
3
25
Indonesia
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);
}
 

Exequel

Platinian
Jan 14, 2024
41
5
8
15
Code:
(*old_healthUpdate)(void *instance); 
void healthUpdateMod(void *instance) {
    if (instance != NULL) {
        if (isHealth) {
            *(float *) ((uint64_t) instance + 0x10) = 9999.8f;
        }
    }
    old_healthUpdate(instance);
}
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,884
15,706
2,120
27
Skyrim
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.