CHEATS GAMES
Solid & Active Platinian
I'm trying to access a class through another class to use the pointers that are in the gundata class, I made this script but it doesn't work, does anyone know why?
obs: I need to use an update from another class to call the gundata class pointers
0x30 is a pointer that is also in the gundata class so I used it to define
obs: I need to use an update from another class to call the gundata class pointers
C++:
void (orig_Update)(voidinstance);
void Update(void instance)
{
if(instance != nullptr && hack10)
{
voidAccessGunData = *(void**)((uint32_t)instance + 0x30);
if(AccessGunData != nullptr)
{
{
(int)((uint32_t)instance + 0x24) = 1000000; // public int dmg; public class GunData : BaseData
(int)((uint32_t)instance + 0x3C) = 1000000; // public float dmgPower; public class GunData : BaseData
}
}
}
return orig_Update(instance); // Return original value for bots
}
0x30 is a pointer that is also in the gundata class so I used it to define