I'm trying to verify that i'm getting to the glow object offsets correctly
Here's what I have:
Code:
/*
* DWORD glow = 0x4FB576C;
* DWORD glowIndex = 0xA310;
*/
static DWORD getBaseEntity(int playerNumber){
return debugger.read<DWORD>(dwClient + entityList + (entitySize * playerNumber) + glowIndex);
}
static DWORD getGlowBase(){
return debugger.read<DWORD>(dwClient + glow);
}
static void glowPlayer(int playerNumber){
DWORD index = getBaseEntity(playerNumber);
debugger.write<float>((getGlowBase() + (index * 0x38) + 0x4), 0.3); //r
debugger.write<float>((getGlowBase() + (index * 0x38) + 0x8), 0.2); //g
debugger.write<float>((getGlowBase() + (index * 0x38) + 0xC), 0.2); //b
debugger.write<float>((getGlowBase() + (index * 0x38) + 0x10), 0.8); //a
debugger.write<bool>((getGlowBase() + (index * 0x38) + 0x24), true); //one
debugger.write<bool>((getGlowBase() + (index * 0x38) + 0x25), false); //two
}
If anyone sees my error it will save me lots of debugging thanks.
- - - Updated - - -
nevermind got it working!